Lines Matching refs:queue
93 wifi_static_queue_t *queue = NULL; in wifi_create_queue() local
95 queue = (wifi_static_queue_t *) wifi_malloc(sizeof(wifi_static_queue_t)); in wifi_create_queue()
96 if (!queue) { in wifi_create_queue()
107 queue->handle = wifi_malloc(sizeof(struct k_msgq)); in wifi_create_queue()
108 if (queue->handle == NULL) { in wifi_create_queue()
114 k_msgq_init((struct k_msgq *)queue->handle, wifi_msgq_buffer, item_size, queue_len); in wifi_create_queue()
116 return queue; in wifi_create_queue()
119 void wifi_delete_queue(wifi_static_queue_t *queue) in wifi_delete_queue() argument
121 if (queue) { in wifi_delete_queue()
122 esp_wifi_free(queue->handle); in wifi_delete_queue()
123 esp_wifi_free(queue); in wifi_delete_queue()
132 static void wifi_delete_queue_wrapper(void *queue) in wifi_delete_queue_wrapper() argument
134 wifi_delete_queue(queue); in wifi_delete_queue_wrapper()
309 struct k_queue *queue = (struct k_queue *) wifi_malloc(sizeof(struct k_queue)); in queue_create_wrapper() local
311 if (queue == NULL) { in queue_create_wrapper()
316 k_msgq_init((struct k_msgq *)queue, wifi_msgq_buffer, item_size, queue_len); in queue_create_wrapper()
318 return (void *)queue; in queue_create_wrapper()
326 static int32_t queue_send_wrapper(void *queue, void *item, uint32_t block_time_tick) in queue_send_wrapper() argument
329 k_msgq_put((struct k_msgq *)queue, item, K_FOREVER); in queue_send_wrapper()
331 k_msgq_put((struct k_msgq *)queue, item, K_TICKS(block_time_tick)); in queue_send_wrapper()
336 static int32_t IRAM_ATTR queue_send_from_isr_wrapper(void *queue, void *item, void *hptw) in queue_send_from_isr_wrapper() argument
340 k_msgq_put((struct k_msgq *)queue, item, K_NO_WAIT); in queue_send_from_isr_wrapper()
345 int32_t queue_send_to_back_wrapper(void *queue, void *item, uint32_t block_time_tick) in queue_send_to_back_wrapper() argument
350 int32_t queue_send_to_front_wrapper(void *queue, void *item, uint32_t block_time_tick) in queue_send_to_front_wrapper() argument
355 static int32_t queue_recv_wrapper(void *queue, void *item, uint32_t block_time_tick) in queue_recv_wrapper() argument
358 k_msgq_get((struct k_msgq *)queue, item, K_FOREVER); in queue_recv_wrapper()
360 k_msgq_get((struct k_msgq *)queue, item, K_TICKS(block_time_tick)); in queue_recv_wrapper()
517 uint32_t uxQueueMessagesWaiting(void *queue) in uxQueueMessagesWaiting() argument