Lines Matching full:item
55 struct zep_work_item *item = CONTAINER_OF(work, struct zep_work_item, work); in workqueue_callback() local
57 item->callback(item->data); in workqueue_callback()
123 void work_init(struct zep_work_item *item, void (*callback)(unsigned long), in work_init() argument
126 item->callback = callback; in work_init()
127 item->data = data; in work_init()
129 k_work_init(&item->work, workqueue_callback); in work_init()
132 void work_schedule(struct zep_work_item *item) in work_schedule() argument
134 if (item->type == ZEP_WORK_TYPE_IRQ) { in work_schedule()
135 k_work_submit_to_queue(&zep_wifi_intr_q, &item->work); in work_schedule()
136 } else if (item->type == ZEP_WORK_TYPE_BH) { in work_schedule()
137 k_work_submit_to_queue(&zep_wifi_bh_q, &item->work); in work_schedule()
140 else if (item->type == ZEP_WORK_TYPE_TX_DONE) { in work_schedule()
141 k_work_submit_to_queue(&zep_wifi_tx_done_q, &item->work); in work_schedule()
145 else if (item->type == ZEP_WORK_TYPE_RX) { in work_schedule()
146 k_work_submit_to_queue(&zep_wifi_rx_q, &item->work); in work_schedule()
151 void work_kill(struct zep_work_item *item) in work_kill() argument
154 k_work_cancel(&item->work); in work_kill()
157 void work_free(struct zep_work_item *item) in work_free() argument
159 item->in_use = 0; in work_free()