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_MISC;
39 RPC_FUNC(&msg) = (uint8_t)MISC_FUNC_SET_CONTROL;
40 RPC_U32(&msg, 0U) = (uint32_t)ctrl;
41 RPC_U32(&msg, 4U) = (uint32_t)val;
42 RPC_U16(&msg, 8U) = (uint16_t)resource;
43 RPC_SIZE(&msg) = 4U;
45 sc_call_rpc(ipc, &msg, SC_FALSE);
47 result = RPC_R8(&msg);
54 sc_rpc_msg_t msg;
57 RPC_VER(&msg) = SC_RPC_VERSION;
58 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_MISC;
59 RPC_FUNC(&msg) = (uint8_t)MISC_FUNC_GET_CONTROL;
60 RPC_U32(&msg, 0U) = (uint32_t)ctrl;
61 RPC_U16(&msg, 4U) = (uint16_t)resource;
62 RPC_SIZE(&msg) = 3U;
64 sc_call_rpc(ipc, &msg, SC_FALSE);
67 *val = RPC_U32(&msg, 0U);
69 result = RPC_R8(&msg);
76 sc_rpc_msg_t msg;
79 RPC_VER(&msg) = SC_RPC_VERSION;
80 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_MISC;
81 RPC_FUNC(&msg) = (uint8_t)MISC_FUNC_SET_MAX_DMA_GROUP;
82 RPC_U8(&msg, 0U) = (uint8_t)pt;
83 RPC_U8(&msg, 1U) = (uint8_t)max;
84 RPC_SIZE(&msg) = 2U;
86 sc_call_rpc(ipc, &msg, SC_FALSE);
88 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_MISC;
100 RPC_FUNC(&msg) = (uint8_t)MISC_FUNC_SET_DMA_GROUP;
101 RPC_U16(&msg, 0U) = (uint16_t)resource;
102 RPC_U8(&msg, 2U) = (uint8_t)group;
103 RPC_SIZE(&msg) = 2U;
105 sc_call_rpc(ipc, &msg, SC_FALSE);
107 result = RPC_R8(&msg);
115 sc_rpc_msg_t msg;
118 RPC_VER(&msg) = SC_RPC_VERSION;
119 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_MISC;
120 RPC_FUNC(&msg) = (uint8_t)MISC_FUNC_SECO_IMAGE_LOAD;
121 RPC_U32(&msg, 0U) = (uint32_t)(addr_src >> 32U);
122 RPC_U32(&msg, 4U) = (uint32_t)addr_src;
123 RPC_U32(&msg, 8U) = (uint32_t)(addr_dst >> 32U);
124 RPC_U32(&msg, 12U) = (uint32_t)addr_dst;
125 RPC_U32(&msg, 16U) = (uint32_t)len;
126 RPC_U8(&msg, 20U) = (uint8_t)fw;
127 RPC_SIZE(&msg) = 7U;
129 sc_call_rpc(ipc, &msg, SC_FALSE);
131 result = RPC_R8(&msg);
138 sc_rpc_msg_t msg;
141 RPC_VER(&msg) = SC_RPC_VERSION;
142 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_MISC;
143 RPC_FUNC(&msg) = (uint8_t)MISC_FUNC_SECO_AUTHENTICATE;
144 RPC_U32(&msg, 0U) = (uint32_t)(addr >> 32U);
145 RPC_U32(&msg, 4U) = (uint32_t)addr;
146 RPC_U8(&msg, 8U) = (uint8_t)cmd;
147 RPC_SIZE(&msg) = 4U;
149 sc_call_rpc(ipc, &msg, SC_FALSE);
151 result = RPC_R8(&msg);
157 sc_rpc_msg_t msg;
160 RPC_VER(&msg) = SC_RPC_VERSION;
161 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_MISC;
162 RPC_FUNC(&msg) = (uint8_t)MISC_FUNC_SECO_FUSE_WRITE;
163 RPC_U32(&msg, 0U) = (uint32_t)(addr >> 32U);
164 RPC_U32(&msg, 4U) = (uint32_t)addr;
165 RPC_SIZE(&msg) = 3U;
167 sc_call_rpc(ipc, &msg, SC_FALSE);
169 result = RPC_R8(&msg);
175 sc_rpc_msg_t msg;
178 RPC_VER(&msg) = SC_RPC_VERSION;
179 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_MISC;
180 RPC_FUNC(&msg) = (uint8_t)MISC_FUNC_SECO_ENABLE_DEBUG;
181 RPC_U32(&msg, 0U) = (uint32_t)(addr >> 32U);
182 RPC_U32(&msg, 4U) = (uint32_t)addr;
183 RPC_SIZE(&msg) = 3U;
185 sc_call_rpc(ipc, &msg, SC_FALSE);
187 result = RPC_R8(&msg);
193 sc_rpc_msg_t msg;
196 RPC_VER(&msg) = SC_RPC_VERSION;
197 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_MISC;
198 RPC_FUNC(&msg) = (uint8_t)MISC_FUNC_SECO_FORWARD_LIFECYCLE;
199 RPC_U32(&msg, 0U) = (uint32_t)lifecycle;
200 RPC_SIZE(&msg) = 2U;
202 sc_call_rpc(ipc, &msg, SC_FALSE);
204 result = RPC_R8(&msg);
210 sc_rpc_msg_t msg;
213 RPC_VER(&msg) = SC_RPC_VERSION;
214 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_MISC;
215 RPC_FUNC(&msg) = (uint8_t)MISC_FUNC_SECO_RETURN_LIFECYCLE;
216 RPC_U32(&msg, 0U) = (uint32_t)(addr >> 32U);
217 RPC_U32(&msg, 4U) = (uint32_t)addr;
218 RPC_SIZE(&msg) = 3U;
220 sc_call_rpc(ipc, &msg, SC_FALSE);
222 result = RPC_R8(&msg);
228 sc_rpc_msg_t msg;
230 RPC_VER(&msg) = SC_RPC_VERSION;
231 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_MISC;
232 RPC_FUNC(&msg) = (uint8_t)MISC_FUNC_SECO_BUILD_INFO;
233 RPC_SIZE(&msg) = 1U;
235 sc_call_rpc(ipc, &msg, SC_FALSE);
238 *version = RPC_U32(&msg, 0U);
241 *commit = RPC_U32(&msg, 4U);
248 sc_rpc_msg_t msg;
251 RPC_VER(&msg) = SC_RPC_VERSION;
252 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_MISC;
253 RPC_FUNC(&msg) = (uint8_t)MISC_FUNC_SECO_CHIP_INFO;
254 RPC_SIZE(&msg) = 1U;
256 sc_call_rpc(ipc, &msg, SC_FALSE);
259 *uid_l = RPC_U32(&msg, 0U);
262 *uid_h = RPC_U32(&msg, 4U);
265 *lc = RPC_U16(&msg, 8U);
268 *monotonic = RPC_U16(&msg, 10U);
270 result = RPC_R8(&msg);
276 sc_rpc_msg_t msg;
278 RPC_VER(&msg) = SC_RPC_VERSION;
279 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_MISC;
280 RPC_FUNC(&msg) = (uint8_t)MISC_FUNC_DEBUG_OUT;
281 RPC_U8(&msg, 0U) = (uint8_t)ch;
282 RPC_SIZE(&msg) = 2U;
284 sc_call_rpc(ipc, &msg, SC_FALSE);
289 sc_rpc_msg_t msg;
292 RPC_VER(&msg) = SC_RPC_VERSION;
293 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_MISC;
294 RPC_FUNC(&msg) = (uint8_t)MISC_FUNC_WAVEFORM_CAPTURE;
295 RPC_U8(&msg, 0U) = (uint8_t)enable;
296 RPC_SIZE(&msg) = 2U;
298 sc_call_rpc(ipc, &msg, SC_FALSE);
300 result = RPC_R8(&msg);
306 sc_rpc_msg_t msg;
308 RPC_VER(&msg) = SC_RPC_VERSION;
309 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_MISC;
310 RPC_FUNC(&msg) = (uint8_t)MISC_FUNC_BUILD_INFO;
311 RPC_SIZE(&msg) = 1U;
313 sc_call_rpc(ipc, &msg, SC_FALSE);
316 *build = RPC_U32(&msg, 0U);
319 *commit = RPC_U32(&msg, 4U);
324 sc_rpc_msg_t msg;
326 RPC_VER(&msg) = SC_RPC_VERSION;
327 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_MISC;
328 RPC_FUNC(&msg) = (uint8_t)MISC_FUNC_UNIQUE_ID;
329 RPC_SIZE(&msg) = 1U;
331 sc_call_rpc(ipc, &msg, SC_FALSE);
334 *id_l = RPC_U32(&msg, 0U);
337 *id_h = RPC_U32(&msg, 4U);
343 sc_rpc_msg_t msg;
346 RPC_VER(&msg) = SC_RPC_VERSION;
347 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_MISC;
348 RPC_FUNC(&msg) = (uint8_t)MISC_FUNC_SET_ARI;
349 RPC_U16(&msg, 0U) = (uint16_t)resource;
350 RPC_U16(&msg, 2U) = (uint16_t)resource_mst;
351 RPC_U16(&msg, 4U) = (uint16_t)ari;
352 RPC_U8(&msg, 6U) = (uint8_t)enable;
353 RPC_SIZE(&msg) = 3U;
355 sc_call_rpc(ipc, &msg, SC_FALSE);
357 result = RPC_R8(&msg);
363 sc_rpc_msg_t msg;
365 RPC_VER(&msg) = SC_RPC_VERSION;
366 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_MISC;
367 RPC_FUNC(&msg) = (uint8_t)MISC_FUNC_BOOT_STATUS;
368 RPC_U8(&msg, 0U) = (uint8_t)status;
369 RPC_SIZE(&msg) = 2U;
371 sc_call_rpc(ipc, &msg, SC_TRUE);
376 sc_rpc_msg_t msg;
379 RPC_VER(&msg) = SC_RPC_VERSION;
380 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_MISC;
381 RPC_FUNC(&msg) = (uint8_t)MISC_FUNC_BOOT_DONE;
382 RPC_U16(&msg, 0U) = (uint16_t)cpu;
383 RPC_SIZE(&msg) = 2U;
385 sc_call_rpc(ipc, &msg, SC_FALSE);
387 result = RPC_R8(&msg);
393 sc_rpc_msg_t msg;
396 RPC_VER(&msg) = SC_RPC_VERSION;
397 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_MISC;
398 RPC_FUNC(&msg) = (uint8_t)MISC_FUNC_OTP_FUSE_READ;
399 RPC_U32(&msg, 0U) = (uint32_t)word;
400 RPC_SIZE(&msg) = 2U;
402 sc_call_rpc(ipc, &msg, SC_FALSE);
405 *val = RPC_U32(&msg, 0U);
407 result = RPC_R8(&msg);
413 sc_rpc_msg_t msg;
416 RPC_VER(&msg) = SC_RPC_VERSION;
417 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_MISC;
418 RPC_FUNC(&msg) = (uint8_t)MISC_FUNC_OTP_FUSE_WRITE;
419 RPC_U32(&msg, 0U) = (uint32_t)word;
420 RPC_U32(&msg, 4U) = (uint32_t)val;
421 RPC_SIZE(&msg) = 3U;
423 sc_call_rpc(ipc, &msg, SC_FALSE);
425 result = RPC_R8(&msg);
432 sc_rpc_msg_t msg;
435 RPC_VER(&msg) = SC_RPC_VERSION;
436 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_MISC;
437 RPC_FUNC(&msg) = (uint8_t)MISC_FUNC_SET_TEMP;
438 RPC_U16(&msg, 0U) = (uint16_t)resource;
439 RPC_I16(&msg, 2U) = (int16_t) celsius;
440 RPC_U8(&msg, 4U) = (uint8_t)temp;
441 RPC_I8(&msg, 5U) = (int8_t) tenths;
442 RPC_SIZE(&msg) = 3U;
444 sc_call_rpc(ipc, &msg, SC_FALSE);
446 result = RPC_R8(&msg);
454 sc_rpc_msg_t msg;
457 RPC_VER(&msg) = SC_RPC_VERSION;
458 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_MISC;
459 RPC_FUNC(&msg) = (uint8_t)MISC_FUNC_GET_TEMP;
460 RPC_U16(&msg, 0U) = (uint16_t)resource;
461 RPC_U8(&msg, 2U) = (uint8_t)temp;
462 RPC_SIZE(&msg) = 2U;
464 sc_call_rpc(ipc, &msg, SC_FALSE);
467 *celsius = RPC_I16(&msg, 0U);
469 result = RPC_R8(&msg);
471 *tenths = RPC_I8(&msg, 2U);
478 sc_rpc_msg_t msg;
480 RPC_VER(&msg) = SC_RPC_VERSION;
481 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_MISC;
482 RPC_FUNC(&msg) = (uint8_t)MISC_FUNC_GET_BOOT_DEV;
483 RPC_SIZE(&msg) = 1U;
485 sc_call_rpc(ipc, &msg, SC_FALSE);
488 *dev = RPC_U16(&msg, 0U);
493 sc_rpc_msg_t msg;
495 RPC_VER(&msg) = SC_RPC_VERSION;
496 RPC_SVC(&msg) = (uint8_t)SC_RPC_SVC_MISC;
497 RPC_FUNC(&msg) = (uint8_t)MISC_FUNC_GET_BUTTON_STATUS;
498 RPC_SIZE(&msg) = 1U;
500 sc_call_rpc(ipc, &msg, SC_FALSE);
503 *status = RPC_U8(&msg, 0U);