Lines Matching defs:msg
35 sc_rpc_msg_t msg;
38 RPC_VER(&msg) = SC_RPC_VERSION;
39 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_RM;
40 RPC_FUNC(&msg) = (uint8_t)RM_FUNC_PARTITION_ALLOC;
41 RPC_U8(&msg, 0U) = (uint8_t)secure;
42 RPC_U8(&msg, 1U) = (uint8_t)isolated;
43 RPC_U8(&msg, 2U) = (uint8_t)restricted;
44 RPC_U8(&msg, 3U) = (uint8_t)grant;
45 RPC_U8(&msg, 4U) = (uint8_t)coherent;
46 RPC_SIZE(&msg) = 3U;
48 sc_call_rpc(ipc, &msg, SC_FALSE);
50 result = RPC_R8(&msg);
52 *pt = RPC_U8(&msg, 0U);
60 sc_rpc_msg_t msg;
63 RPC_VER(&msg) = SC_RPC_VERSION;
64 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_RM;
65 RPC_FUNC(&msg) = (uint8_t)RM_FUNC_SET_CONFIDENTIAL;
66 RPC_U8(&msg, 0U) = (uint8_t)pt;
67 RPC_U8(&msg, 1U) = (uint8_t)retro;
68 RPC_SIZE(&msg) = 2U;
70 sc_call_rpc(ipc, &msg, SC_FALSE);
72 result = RPC_R8(&msg);
78 sc_rpc_msg_t msg;
81 RPC_VER(&msg) = SC_RPC_VERSION;
82 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_RM;
83 RPC_FUNC(&msg) = (uint8_t)RM_FUNC_PARTITION_FREE;
84 RPC_U8(&msg, 0U) = (uint8_t)pt;
85 RPC_SIZE(&msg) = 2U;
87 sc_call_rpc(ipc, &msg, SC_FALSE);
89 result = RPC_R8(&msg);
95 sc_rpc_msg_t msg;
98 RPC_VER(&msg) = SC_RPC_VERSION;
99 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_RM;
100 RPC_FUNC(&msg) = (uint8_t)RM_FUNC_GET_DID;
101 RPC_SIZE(&msg) = 1U;
103 sc_call_rpc(ipc, &msg, SC_FALSE);
105 result = RPC_R8(&msg);
111 sc_rpc_msg_t msg;
114 RPC_VER(&msg) = SC_RPC_VERSION;
115 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_RM;
116 RPC_FUNC(&msg) = (uint8_t)RM_FUNC_PARTITION_STATIC;
117 RPC_U8(&msg, 0U) = (uint8_t)pt;
118 RPC_U8(&msg, 1U) = (uint8_t)did;
119 RPC_SIZE(&msg) = 2U;
121 sc_call_rpc(ipc, &msg, SC_FALSE);
123 result = RPC_R8(&msg);
129 sc_rpc_msg_t msg;
132 RPC_VER(&msg) = SC_RPC_VERSION;
133 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_RM;
134 RPC_FUNC(&msg) = (uint8_t)RM_FUNC_PARTITION_LOCK;
135 RPC_U8(&msg, 0U) = (uint8_t)pt;
136 RPC_SIZE(&msg) = 2U;
138 sc_call_rpc(ipc, &msg, SC_FALSE);
140 result = RPC_R8(&msg);
146 sc_rpc_msg_t msg;
149 RPC_VER(&msg) = SC_RPC_VERSION;
150 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_RM;
151 RPC_FUNC(&msg) = (uint8_t)RM_FUNC_GET_PARTITION;
152 RPC_SIZE(&msg) = 1U;
154 sc_call_rpc(ipc, &msg, SC_FALSE);
156 result = RPC_R8(&msg);
158 *pt = RPC_U8(&msg, 0U);
166 sc_rpc_msg_t msg;
169 RPC_VER(&msg) = SC_RPC_VERSION;
170 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_RM;
171 RPC_FUNC(&msg) = (uint8_t)RM_FUNC_SET_PARENT;
172 RPC_U8(&msg, 0U) = (uint8_t)pt;
173 RPC_U8(&msg, 1U) = (uint8_t)pt_parent;
174 RPC_SIZE(&msg) = 2U;
176 sc_call_rpc(ipc, &msg, SC_FALSE);
178 result = RPC_R8(&msg);
185 sc_rpc_msg_t msg;
188 RPC_VER(&msg) = SC_RPC_VERSION;
189 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_RM;
190 RPC_FUNC(&msg) = (uint8_t)RM_FUNC_MOVE_ALL;
191 RPC_U8(&msg, 0U) = (uint8_t)pt_src;
192 RPC_U8(&msg, 1U) = (uint8_t)pt_dst;
193 RPC_U8(&msg, 2U) = (uint8_t)move_rsrc;
194 RPC_U8(&msg, 3U) = (uint8_t)move_pads;
195 RPC_SIZE(&msg) = 2U;
197 sc_call_rpc(ipc, &msg, SC_FALSE);
199 result = RPC_R8(&msg);
205 sc_rpc_msg_t msg;
208 RPC_VER(&msg) = SC_RPC_VERSION;
209 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_RM;
210 RPC_FUNC(&msg) = (uint8_t)RM_FUNC_ASSIGN_RESOURCE;
211 RPC_U16(&msg, 0U) = (uint16_t)resource;
212 RPC_U8(&msg, 2U) = (uint8_t)pt;
213 RPC_SIZE(&msg) = 2U;
215 sc_call_rpc(ipc, &msg, SC_FALSE);
217 result = RPC_R8(&msg);
224 sc_rpc_msg_t msg;
227 RPC_VER(&msg) = SC_RPC_VERSION;
228 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_RM;
229 RPC_FUNC(&msg) = (uint8_t)RM_FUNC_SET_RESOURCE_MOVABLE;
230 RPC_U16(&msg, 0U) = (uint16_t)resource_fst;
231 RPC_U16(&msg, 2U) = (uint16_t)resource_lst;
232 RPC_U8(&msg, 4U) = (uint8_t)movable;
233 RPC_SIZE(&msg) = 3U;
235 sc_call_rpc(ipc, &msg, SC_FALSE);
237 result = RPC_R8(&msg);
244 sc_rpc_msg_t msg;
247 RPC_VER(&msg) = SC_RPC_VERSION;
248 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_RM;
249 RPC_FUNC(&msg) = (uint8_t)RM_FUNC_SET_SUBSYS_RSRC_MOVABLE;
250 RPC_U16(&msg, 0U) = (uint16_t)resource;
251 RPC_U8(&msg, 2U) = (uint8_t)movable;
252 RPC_SIZE(&msg) = 2U;
254 sc_call_rpc(ipc, &msg, SC_FALSE);
256 result = RPC_R8(&msg);
264 sc_rpc_msg_t msg;
267 RPC_VER(&msg) = SC_RPC_VERSION;
268 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_RM;
269 RPC_FUNC(&msg) = (uint8_t)RM_FUNC_SET_MASTER_ATTRIBUTES;
270 RPC_U16(&msg, 0U) = (uint16_t)resource;
271 RPC_U8(&msg, 2U) = (uint8_t)sa;
272 RPC_U8(&msg, 3U) = (uint8_t)pa;
273 RPC_U8(&msg, 4U) = (uint8_t)smmu_bypass;
274 RPC_SIZE(&msg) = 3U;
276 sc_call_rpc(ipc, &msg, SC_FALSE);
278 result = RPC_R8(&msg);
284 sc_rpc_msg_t msg;
287 RPC_VER(&msg) = SC_RPC_VERSION;
288 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_RM;
289 RPC_FUNC(&msg) = (uint8_t)RM_FUNC_SET_MASTER_SID;
290 RPC_U16(&msg, 0U) = (uint16_t)resource;
291 RPC_U16(&msg, 2U) = (uint16_t)sid;
292 RPC_SIZE(&msg) = 2U;
294 sc_call_rpc(ipc, &msg, SC_FALSE);
296 result = RPC_R8(&msg);
303 sc_rpc_msg_t msg;
306 RPC_VER(&msg) = SC_RPC_VERSION;
307 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_RM;
308 RPC_FUNC(&msg) = (uint8_t)RM_FUNC_SET_PERIPHERAL_PERMISSIONS;
309 RPC_U16(&msg, 0U) = (uint16_t)resource;
310 RPC_U8(&msg, 2U) = (uint8_t)pt;
311 RPC_U8(&msg, 3U) = (uint8_t)perm;
312 RPC_SIZE(&msg) = 2U;
314 sc_call_rpc(ipc, &msg, SC_FALSE);
316 result = RPC_R8(&msg);
322 sc_rpc_msg_t msg;
325 RPC_VER(&msg) = SC_RPC_VERSION;
326 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_RM;
327 RPC_FUNC(&msg) = (uint8_t)RM_FUNC_IS_RESOURCE_OWNED;
328 RPC_U16(&msg, 0U) = (uint16_t)resource;
329 RPC_SIZE(&msg) = 2U;
331 sc_call_rpc(ipc, &msg, SC_FALSE);
333 result = RPC_R8(&msg);
339 sc_rpc_msg_t msg;
342 RPC_VER(&msg) = SC_RPC_VERSION;
343 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_RM;
344 RPC_FUNC(&msg) = (uint8_t)RM_FUNC_IS_RESOURCE_MASTER;
345 RPC_U16(&msg, 0U) = (uint16_t)resource;
346 RPC_SIZE(&msg) = 2U;
348 sc_call_rpc(ipc, &msg, SC_FALSE);
350 result = RPC_R8(&msg);
356 sc_rpc_msg_t msg;
359 RPC_VER(&msg) = SC_RPC_VERSION;
360 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_RM;
361 RPC_FUNC(&msg) = (uint8_t)RM_FUNC_IS_RESOURCE_PERIPHERAL;
362 RPC_U16(&msg, 0U) = (uint16_t)resource;
363 RPC_SIZE(&msg) = 2U;
365 sc_call_rpc(ipc, &msg, SC_FALSE);
367 result = RPC_R8(&msg);
374 sc_rpc_msg_t msg;
377 RPC_VER(&msg) = SC_RPC_VERSION;
378 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_RM;
379 RPC_FUNC(&msg) = (uint8_t)RM_FUNC_GET_RESOURCE_INFO;
380 RPC_U16(&msg, 0U) = (uint16_t)resource;
381 RPC_SIZE(&msg) = 2U;
383 sc_call_rpc(ipc, &msg, SC_FALSE);
386 *sid = RPC_U16(&msg, 0U);
389 result = RPC_R8(&msg);
396 sc_rpc_msg_t msg;
399 RPC_VER(&msg) = SC_RPC_VERSION;
400 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_RM;
401 RPC_FUNC(&msg) = (uint8_t)RM_FUNC_MEMREG_ALLOC;
402 RPC_U32(&msg, 0U) = (uint32_t)(addr_start >> 32U);
403 RPC_U32(&msg, 4U) = (uint32_t)addr_start;
404 RPC_U32(&msg, 8U) = (uint32_t)(addr_end >> 32U);
405 RPC_U32(&msg, 12U) = (uint32_t)addr_end;
406 RPC_SIZE(&msg) = 5U;
408 sc_call_rpc(ipc, &msg, SC_FALSE);
410 result = RPC_R8(&msg);
412 *mr = RPC_U8(&msg, 0U);
422 sc_rpc_msg_t msg;
425 RPC_VER(&msg) = SC_RPC_VERSION;
426 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_RM;
427 RPC_FUNC(&msg) = (uint8_t)RM_FUNC_MEMREG_SPLIT;
428 RPC_U32(&msg, 0U) = (uint32_t)(addr_start >> 32U);
429 RPC_U32(&msg, 4U) = (uint32_t)addr_start;
430 RPC_U32(&msg, 8U) = (uint32_t)(addr_end >> 32U);
431 RPC_U32(&msg, 12U) = (uint32_t)addr_end;
432 RPC_U8(&msg, 16U) = (uint8_t)mr;
433 RPC_SIZE(&msg) = 6U;
435 sc_call_rpc(ipc, &msg, SC_FALSE);
437 result = RPC_R8(&msg);
439 *mr_ret = RPC_U8(&msg, 0U);
447 sc_rpc_msg_t msg;
450 RPC_VER(&msg) = SC_RPC_VERSION;
451 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_RM;
452 RPC_FUNC(&msg) = (uint8_t)RM_FUNC_MEMREG_FREE;
453 RPC_U8(&msg, 0U) = (uint8_t)mr;
454 RPC_SIZE(&msg) = 2U;
456 sc_call_rpc(ipc, &msg, SC_FALSE);
458 result = RPC_R8(&msg);
465 sc_rpc_msg_t msg;
468 RPC_VER(&msg) = SC_RPC_VERSION;
469 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_RM;
470 RPC_FUNC(&msg) = (uint8_t)RM_FUNC_FIND_MEMREG;
471 RPC_U32(&msg, 0U) = (uint32_t)(addr_start >> 32U);
472 RPC_U32(&msg, 4U) = (uint32_t)addr_start;
473 RPC_U32(&msg, 8U) = (uint32_t)(addr_end >> 32U);
474 RPC_U32(&msg, 12U) = (uint32_t)addr_end;
475 RPC_SIZE(&msg) = 5U;
477 sc_call_rpc(ipc, &msg, SC_FALSE);
479 result = RPC_R8(&msg);
481 *mr = RPC_U8(&msg, 0U);
489 sc_rpc_msg_t msg;
492 RPC_VER(&msg) = SC_RPC_VERSION;
493 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_RM;
494 RPC_FUNC(&msg) = (uint8_t)RM_FUNC_ASSIGN_MEMREG;
495 RPC_U8(&msg, 0U) = (uint8_t)pt;
496 RPC_U8(&msg, 1U) = (uint8_t)mr;
497 RPC_SIZE(&msg) = 2U;
499 sc_call_rpc(ipc, &msg, SC_FALSE);
501 result = RPC_R8(&msg);
508 sc_rpc_msg_t msg;
511 RPC_VER(&msg) = SC_RPC_VERSION;
512 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_RM;
513 RPC_FUNC(&msg) = (uint8_t)RM_FUNC_SET_MEMREG_PERMISSIONS;
514 RPC_U8(&msg, 0U) = (uint8_t)mr;
515 RPC_U8(&msg, 1U) = (uint8_t)pt;
516 RPC_U8(&msg, 2U) = (uint8_t)perm;
517 RPC_SIZE(&msg) = 2U;
519 sc_call_rpc(ipc, &msg, SC_FALSE);
521 result = RPC_R8(&msg);
527 sc_rpc_msg_t msg;
530 RPC_VER(&msg) = SC_RPC_VERSION;
531 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_RM;
532 RPC_FUNC(&msg) = (uint8_t)RM_FUNC_IS_MEMREG_OWNED;
533 RPC_U8(&msg, 0U) = (uint8_t)mr;
534 RPC_SIZE(&msg) = 2U;
536 sc_call_rpc(ipc, &msg, SC_FALSE);
538 result = RPC_R8(&msg);
545 sc_rpc_msg_t msg;
548 RPC_VER(&msg) = SC_RPC_VERSION;
549 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_RM;
550 RPC_FUNC(&msg) = (uint8_t)RM_FUNC_GET_MEMREG_INFO;
551 RPC_U8(&msg, 0U) = (uint8_t)mr;
552 RPC_SIZE(&msg) = 2U;
554 sc_call_rpc(ipc, &msg, SC_FALSE);
558 ((uint64_t) RPC_U32(&msg, 0U) << 32U) | RPC_U32(&msg, 4U);
563 ((uint64_t) RPC_U32(&msg, 8U) << 32U) | RPC_U32(&msg, 12U);
566 result = RPC_R8(&msg);
572 sc_rpc_msg_t msg;
575 RPC_VER(&msg) = SC_RPC_VERSION;
576 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_RM;
577 RPC_FUNC(&msg) = (uint8_t)RM_FUNC_ASSIGN_PAD;
578 RPC_U16(&msg, 0U) = (uint16_t)pad;
579 RPC_U8(&msg, 2U) = (uint8_t)pt;
580 RPC_SIZE(&msg) = 2U;
582 sc_call_rpc(ipc, &msg, SC_FALSE);
584 result = RPC_R8(&msg);
591 sc_rpc_msg_t msg;
594 RPC_VER(&msg) = SC_RPC_VERSION;
595 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_RM;
596 RPC_FUNC(&msg) = (uint8_t)RM_FUNC_SET_PAD_MOVABLE;
597 RPC_U16(&msg, 0U) = (uint16_t)pad_fst;
598 RPC_U16(&msg, 2U) = (uint16_t)pad_lst;
599 RPC_U8(&msg, 4U) = (uint8_t)movable;
600 RPC_SIZE(&msg) = 3U;
602 sc_call_rpc(ipc, &msg, SC_FALSE);
604 result = RPC_R8(&msg);
610 sc_rpc_msg_t msg;
613 RPC_VER(&msg) = SC_RPC_VERSION;
614 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_RM;
615 RPC_FUNC(&msg) = (uint8_t)RM_FUNC_IS_PAD_OWNED;
616 RPC_U8(&msg, 0U) = (uint8_t)pad;
617 RPC_SIZE(&msg) = 2U;
619 sc_call_rpc(ipc, &msg, SC_FALSE);
621 result = RPC_R8(&msg);
627 sc_rpc_msg_t msg;
629 RPC_VER(&msg) = SC_RPC_VERSION;
630 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_RM;
631 RPC_FUNC(&msg) = (uint8_t)RM_FUNC_DUMP;
632 RPC_SIZE(&msg) = 1U;
634 sc_call_rpc(ipc, &msg, SC_FALSE);