Home
last modified time | relevance | path

Searched refs:lmsg (Results 1 – 1 of 1) sorted by relevance

/hal_espressif-latest/components/bt/common/btc/core/
Dbtc_task.c238 btc_msg_t* lmsg; in btc_transfer_context() local
248 lmsg = (btc_msg_t *)osi_malloc(sizeof(btc_msg_t) + arg_len); in btc_transfer_context()
249 if (lmsg == NULL) { in btc_transfer_context()
254 memcpy(lmsg, msg, sizeof(btc_msg_t)); in btc_transfer_context()
256 memset(lmsg->arg, 0x00, arg_len); //important, avoid arg which have no length in btc_transfer_context()
257 memcpy(lmsg->arg, arg, arg_len); in btc_transfer_context()
259 copy_func(lmsg, lmsg->arg, arg); in btc_transfer_context()
263 ret = btc_task_post(lmsg, OSI_THREAD_MAX_TIMEOUT); in btc_transfer_context()
266 free_func(lmsg); in btc_transfer_context()
268 osi_free(lmsg); in btc_transfer_context()