Lines Matching refs:queue

98 	wifi_static_queue_t *queue = NULL;  in wifi_create_queue()  local
100 queue = (wifi_static_queue_t *)k_malloc(sizeof(wifi_static_queue_t)); in wifi_create_queue()
101 if (!queue) { in wifi_create_queue()
111 queue->handle = k_malloc(sizeof(struct k_msgq)); in wifi_create_queue()
112 if (queue->handle == NULL) { in wifi_create_queue()
118 k_msgq_init((struct k_msgq *)queue->handle, wifi_msgq_buffer, item_size, queue_len); in wifi_create_queue()
120 return queue; in wifi_create_queue()
123 void wifi_delete_queue(wifi_static_queue_t *queue) in wifi_delete_queue() argument
125 if (queue) { in wifi_delete_queue()
126 k_free(queue->handle); in wifi_delete_queue()
127 k_free(queue); in wifi_delete_queue()
136 static void wifi_delete_queue_wrapper(void *queue) in wifi_delete_queue_wrapper() argument
138 wifi_delete_queue(queue); in wifi_delete_queue_wrapper()
269 struct k_queue *queue = (struct k_queue *)k_malloc(sizeof(struct k_queue)); in queue_create_wrapper() local
271 if (queue == NULL) { in queue_create_wrapper()
276 k_msgq_init((struct k_msgq *)queue, wifi_msgq_buffer, item_size, queue_len); in queue_create_wrapper()
277 return (void *)queue; in queue_create_wrapper()
285 static int32_t queue_send_wrapper(void *queue, void *item, uint32_t block_time_tick) in queue_send_wrapper() argument
288 k_msgq_put((struct k_msgq *)queue, item, K_FOREVER); in queue_send_wrapper()
292 k_msgq_put((struct k_msgq *)queue, item, K_MSEC(ms)); in queue_send_wrapper()
297 static int32_t IRAM_ATTR queue_send_from_isr_wrapper(void *queue, void *item, void *hptw) in queue_send_from_isr_wrapper() argument
301 k_msgq_put((struct k_msgq *)queue, item, K_NO_WAIT); in queue_send_from_isr_wrapper()
306 int32_t queue_send_to_back_wrapper(void *queue, void *item, uint32_t block_time_tick) in queue_send_to_back_wrapper() argument
311 int32_t queue_send_to_front_wrapper(void *queue, void *item, uint32_t block_time_tick) in queue_send_to_front_wrapper() argument
316 static int32_t queue_recv_wrapper(void *queue, void *item, uint32_t block_time_tick) in queue_recv_wrapper() argument
319 k_msgq_get((struct k_msgq *)queue, item, K_FOREVER); in queue_recv_wrapper()
323 k_msgq_get((struct k_msgq *)queue, item, K_MSEC(ms)); in queue_recv_wrapper()
453 uint32_t uxQueueMessagesWaiting(void *queue) in uxQueueMessagesWaiting() argument