Lines Matching defs:msg
34 sc_rpc_msg_t msg;
37 RPC_VER(&msg) = SC_RPC_VERSION;
38 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_PM;
39 RPC_FUNC(&msg) = (uint8_t)PM_FUNC_SET_SYS_POWER_MODE;
40 RPC_U8(&msg, 0U) = (uint8_t)mode;
41 RPC_SIZE(&msg) = 2U;
43 sc_call_rpc(ipc, &msg, SC_FALSE);
45 result = RPC_R8(&msg);
52 sc_rpc_msg_t msg;
55 RPC_VER(&msg) = SC_RPC_VERSION;
56 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_PM;
57 RPC_FUNC(&msg) = (uint8_t)PM_FUNC_SET_PARTITION_POWER_MODE;
58 RPC_U8(&msg, 0U) = (uint8_t)pt;
59 RPC_U8(&msg, 1U) = (uint8_t)mode;
60 RPC_SIZE(&msg) = 2U;
62 sc_call_rpc(ipc, &msg, SC_FALSE);
64 result = RPC_R8(&msg);
71 sc_rpc_msg_t msg;
74 RPC_VER(&msg) = SC_RPC_VERSION;
75 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_PM;
76 RPC_FUNC(&msg) = (uint8_t)PM_FUNC_GET_SYS_POWER_MODE;
77 RPC_U8(&msg, 0U) = (uint8_t)pt;
78 RPC_SIZE(&msg) = 2U;
80 sc_call_rpc(ipc, &msg, SC_FALSE);
82 result = RPC_R8(&msg);
84 *mode = RPC_U8(&msg, 0U);
93 sc_rpc_msg_t msg;
96 RPC_VER(&msg) = SC_RPC_VERSION;
97 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_PM;
98 RPC_FUNC(&msg) = (uint8_t)PM_FUNC_SET_RESOURCE_POWER_MODE;
99 RPC_U16(&msg, 0U) = (uint16_t)resource;
100 RPC_U8(&msg, 2U) = (uint8_t)mode;
101 RPC_SIZE(&msg) = 2U;
103 sc_call_rpc(ipc, &msg, SC_FALSE);
105 result = RPC_R8(&msg);
112 sc_rpc_msg_t msg;
115 RPC_VER(&msg) = SC_RPC_VERSION;
116 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_PM;
117 RPC_FUNC(&msg) = (uint8_t)PM_FUNC_GET_RESOURCE_POWER_MODE;
118 RPC_U16(&msg, 0U) = (uint16_t)resource;
119 RPC_SIZE(&msg) = 2U;
121 sc_call_rpc(ipc, &msg, SC_FALSE);
123 result = RPC_R8(&msg);
125 *mode = RPC_U8(&msg, 0U);
134 sc_rpc_msg_t msg;
137 RPC_VER(&msg) = SC_RPC_VERSION;
138 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_PM;
139 RPC_FUNC(&msg) = (uint8_t)PM_FUNC_REQ_LOW_POWER_MODE;
140 RPC_U16(&msg, 0U) = (uint16_t)resource;
141 RPC_U8(&msg, 2U) = (uint8_t)mode;
142 RPC_SIZE(&msg) = 2U;
144 sc_call_rpc(ipc, &msg, SC_FALSE);
146 result = RPC_R8(&msg);
154 sc_rpc_msg_t msg;
157 RPC_VER(&msg) = SC_RPC_VERSION;
158 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_PM;
159 RPC_FUNC(&msg) = (uint8_t)PM_FUNC_REQ_CPU_LOW_POWER_MODE;
160 RPC_U16(&msg, 0U) = (uint16_t)resource;
161 RPC_U8(&msg, 2U) = (uint8_t)mode;
162 RPC_U8(&msg, 3U) = (uint8_t)wake_src;
163 RPC_SIZE(&msg) = 2U;
165 sc_call_rpc(ipc, &msg, SC_FALSE);
167 result = RPC_R8(&msg);
174 sc_rpc_msg_t msg;
177 RPC_VER(&msg) = SC_RPC_VERSION;
178 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_PM;
179 RPC_FUNC(&msg) = (uint8_t)PM_FUNC_SET_CPU_RESUME_ADDR;
180 RPC_U32(&msg, 0U) = (uint32_t)(address >> 32U);
181 RPC_U32(&msg, 4U) = (uint32_t)address;
182 RPC_U16(&msg, 8U) = (uint16_t)resource;
183 RPC_SIZE(&msg) = 4U;
185 sc_call_rpc(ipc, &msg, SC_FALSE);
187 result = RPC_R8(&msg);
194 sc_rpc_msg_t msg;
197 RPC_VER(&msg) = SC_RPC_VERSION;
198 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_PM;
199 RPC_FUNC(&msg) = (uint8_t)PM_FUNC_SET_CPU_RESUME;
200 RPC_U32(&msg, 0U) = (uint32_t)(address >> 32U);
201 RPC_U32(&msg, 4U) = (uint32_t)address;
202 RPC_U16(&msg, 8U) = (uint16_t)resource;
203 RPC_U8(&msg, 10U) = (uint8_t)isPrimary;
204 RPC_SIZE(&msg) = 4U;
206 sc_call_rpc(ipc, &msg, SC_FALSE);
208 result = RPC_R8(&msg);
217 sc_rpc_msg_t msg;
220 RPC_VER(&msg) = SC_RPC_VERSION;
221 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_PM;
222 RPC_FUNC(&msg) = (uint8_t)PM_FUNC_REQ_SYS_IF_POWER_MODE;
223 RPC_U16(&msg, 0U) = (uint16_t)resource;
224 RPC_U8(&msg, 2U) = (uint8_t)sys_if;
225 RPC_U8(&msg, 3U) = (uint8_t)hpm;
226 RPC_U8(&msg, 4U) = (uint8_t)lpm;
227 RPC_SIZE(&msg) = 3U;
229 sc_call_rpc(ipc, &msg, SC_FALSE);
231 result = RPC_R8(&msg);
238 sc_rpc_msg_t msg;
241 RPC_VER(&msg) = SC_RPC_VERSION;
242 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_PM;
243 RPC_FUNC(&msg) = (uint8_t)PM_FUNC_SET_CLOCK_RATE;
244 RPC_U32(&msg, 0U) = *(uint32_t *)rate;
245 RPC_U16(&msg, 4U) = (uint16_t)resource;
246 RPC_U8(&msg, 6U) = (uint8_t)clk;
247 RPC_SIZE(&msg) = 3U;
249 sc_call_rpc(ipc, &msg, SC_FALSE);
251 *rate = RPC_U32(&msg, 0U);
252 result = RPC_R8(&msg);
259 sc_rpc_msg_t msg;
262 RPC_VER(&msg) = SC_RPC_VERSION;
263 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_PM;
264 RPC_FUNC(&msg) = (uint8_t)PM_FUNC_GET_CLOCK_RATE;
265 RPC_U16(&msg, 0U) = (uint16_t)resource;
266 RPC_U8(&msg, 2U) = (uint8_t)clk;
267 RPC_SIZE(&msg) = 2U;
269 sc_call_rpc(ipc, &msg, SC_FALSE);
272 *rate = RPC_U32(&msg, 0U);
275 result = RPC_R8(&msg);
282 sc_rpc_msg_t msg;
285 RPC_VER(&msg) = SC_RPC_VERSION;
286 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_PM;
287 RPC_FUNC(&msg) = (uint8_t)PM_FUNC_CLOCK_ENABLE;
288 RPC_U16(&msg, 0U) = (uint16_t)resource;
289 RPC_U8(&msg, 2U) = (uint8_t)clk;
290 RPC_U8(&msg, 3U) = (uint8_t)enable;
291 RPC_U8(&msg, 4U) = (uint8_t)autog;
292 RPC_SIZE(&msg) = 3U;
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_PM;
308 RPC_FUNC(&msg) = (uint8_t)PM_FUNC_SET_CLOCK_PARENT;
309 RPC_U16(&msg, 0U) = (uint16_t)resource;
310 RPC_U8(&msg, 2U) = (uint8_t)clk;
311 RPC_U8(&msg, 3U) = (uint8_t)parent;
312 RPC_SIZE(&msg) = 2U;
314 sc_call_rpc(ipc, &msg, SC_FALSE);
316 result = RPC_R8(&msg);
323 sc_rpc_msg_t msg;
326 RPC_VER(&msg) = SC_RPC_VERSION;
327 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_PM;
328 RPC_FUNC(&msg) = (uint8_t)PM_FUNC_GET_CLOCK_PARENT;
329 RPC_U16(&msg, 0U) = (uint16_t)resource;
330 RPC_U8(&msg, 2U) = (uint8_t)clk;
331 RPC_SIZE(&msg) = 2U;
333 sc_call_rpc(ipc, &msg, SC_FALSE);
335 result = RPC_R8(&msg);
337 *parent = RPC_U8(&msg, 0U);
345 sc_rpc_msg_t msg;
348 RPC_VER(&msg) = SC_RPC_VERSION;
349 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_PM;
350 RPC_FUNC(&msg) = (uint8_t)PM_FUNC_RESET;
351 RPC_U8(&msg, 0U) = (uint8_t)type;
352 RPC_SIZE(&msg) = 2U;
354 sc_call_rpc(ipc, &msg, SC_FALSE);
356 result = RPC_R8(&msg);
362 sc_rpc_msg_t msg;
365 RPC_VER(&msg) = SC_RPC_VERSION;
366 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_PM;
367 RPC_FUNC(&msg) = (uint8_t)PM_FUNC_RESET_REASON;
368 RPC_SIZE(&msg) = 1U;
370 sc_call_rpc(ipc, &msg, SC_FALSE);
372 result = RPC_R8(&msg);
374 *reason = RPC_U8(&msg, 0U);
384 sc_rpc_msg_t msg;
387 RPC_VER(&msg) = SC_RPC_VERSION;
388 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_PM;
389 RPC_FUNC(&msg) = (uint8_t)PM_FUNC_BOOT;
390 RPC_U32(&msg, 0U) = (uint32_t)(boot_addr >> 32U);
391 RPC_U32(&msg, 4U) = (uint32_t)boot_addr;
392 RPC_U16(&msg, 8U) = (uint16_t)resource_cpu;
393 RPC_U16(&msg, 10U) = (uint16_t)resource_mu;
394 RPC_U16(&msg, 12U) = (uint16_t)resource_dev;
395 RPC_U8(&msg, 14U) = (uint8_t)pt;
396 RPC_SIZE(&msg) = 5U;
398 sc_call_rpc(ipc, &msg, SC_FALSE);
400 result = RPC_R8(&msg);
406 sc_rpc_msg_t msg;
408 RPC_VER(&msg) = SC_RPC_VERSION;
409 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_PM;
410 RPC_FUNC(&msg) = (uint8_t)PM_FUNC_REBOOT;
411 RPC_U8(&msg, 0U) = (uint8_t)type;
412 RPC_SIZE(&msg) = 2U;
414 sc_call_rpc(ipc, &msg, SC_TRUE);
420 sc_rpc_msg_t msg;
423 RPC_VER(&msg) = SC_RPC_VERSION;
424 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_PM;
425 RPC_FUNC(&msg) = (uint8_t)PM_FUNC_REBOOT_PARTITION;
426 RPC_U8(&msg, 0U) = (uint8_t)pt;
427 RPC_U8(&msg, 1U) = (uint8_t)type;
428 RPC_SIZE(&msg) = 2U;
430 sc_call_rpc(ipc, &msg, SC_FALSE);
432 result = RPC_R8(&msg);
439 sc_rpc_msg_t msg;
442 RPC_VER(&msg) = SC_RPC_VERSION;
443 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_PM;
444 RPC_FUNC(&msg) = (uint8_t)PM_FUNC_CPU_START;
445 RPC_U32(&msg, 0U) = (uint32_t)(address >> 32U);
446 RPC_U32(&msg, 4U) = (uint32_t)address;
447 RPC_U16(&msg, 8U) = (uint16_t)resource;
448 RPC_U8(&msg, 10U) = (uint8_t)enable;
449 RPC_SIZE(&msg) = 4U;
451 sc_call_rpc(ipc, &msg, SC_FALSE);
453 result = RPC_R8(&msg);