Home
last modified time | relevance | path

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

/freebsd/sys/ofed/drivers/infiniband/core/
H A Dib_uverbs_main.c135 spin_lock_irq(&ev_file->ev_queue.lock); in ib_uverbs_release_ucq()
140 spin_unlock_irq(&ev_file->ev_queue.lock); in ib_uverbs_release_ucq()
157 spin_lock_irq(&async_file->ev_queue.lock); in ib_uverbs_release_uevent()
162 spin_unlock_irq(&async_file->ev_queue.lock); in ib_uverbs_release_uevent()
210 static ssize_t ib_uverbs_event_read(struct ib_uverbs_event_queue *ev_queue, in ib_uverbs_event_read() argument
218 spin_lock_irq(&ev_queue->lock); in ib_uverbs_event_read()
220 while (list_empty(&ev_queue->event_list)) { in ib_uverbs_event_read()
221 spin_unlock_irq(&ev_queue->lock); in ib_uverbs_event_read()
226 if (wait_event_interruptible(ev_queue->poll_wait, in ib_uverbs_event_read()
227 (!list_empty(&ev_queue->event_list) || in ib_uverbs_event_read()
[all …]
H A Dib_uverbs_std_types_cq.c42 struct ib_uverbs_event_queue *ev_queue = cq->cq_context; in uverbs_free_cq() local
52 ev_queue ? container_of(ev_queue, in uverbs_free_cq()
54 ev_queue) : in uverbs_free_cq()
121 cq->cq_context = ev_file ? &ev_file->ev_queue : NULL; in UVERBS_HANDLER()
H A Duverbs.h131 struct ib_uverbs_event_queue ev_queue; member
137 struct ib_uverbs_event_queue ev_queue; member
221 void ib_uverbs_init_event_queue(struct ib_uverbs_event_queue *ev_queue);
H A Dib_uverbs_std_types_async_fd.c31 ib_uverbs_free_event_queue(&event_file->ev_queue); in uverbs_async_event_destroy_uobj()
H A Dib_uverbs_std_types.c235 ib_uverbs_free_event_queue(&file->ev_queue); in uverbs_completion_event_file_destroy_uobj()
H A Dib_uverbs_cmd.c981 ib_uverbs_init_event_queue(&ev_file->ev_queue); in ib_uverbs_create_comp_channel()
1037 cq->cq_context = ev_file ? &ev_file->ev_queue : NULL; in create_cq()
/freebsd/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_devx.c1593 struct devx_async_event_queue ev_queue; member
1597 static void devx_init_event_queue(struct devx_async_event_queue *ev_queue) in devx_init_event_queue() argument
1599 spin_lock_init(&ev_queue->lock); in devx_init_event_queue()
1600 INIT_LIST_HEAD(&ev_queue->event_list); in devx_init_event_queue()
1601 init_waitqueue_head(&ev_queue->poll_wait); in devx_init_event_queue()
1602 atomic_set(&ev_queue->bytes_in_use, 0); in devx_init_event_queue()
1603 ev_queue->is_destroyed = 0; in devx_init_event_queue()
1617 devx_init_event_queue(&ev_file->ev_queue); in UVERBS_HANDLER()
1659 struct devx_async_event_queue *ev_queue = &ev_file->ev_queue; in devx_query_callback() local
1667 spin_lock_irqsave(&ev_queue->lock, flags); in devx_query_callback()
[all …]
/freebsd/sys/dev/mps/
H A Dmps_sas.h101 TAILQ_HEAD(, mps_fw_event_work) ev_queue;
H A Dmps_sas_lsi.c177 TAILQ_INSERT_TAIL(&sc->sassc->ev_queue, fw_event, ev_link); in mpssas_evt_handler()
605 while ((fw_event = TAILQ_FIRST(&sc->sassc->ev_queue)) != NULL) { in mpssas_firmware_event_work()
606 TAILQ_REMOVE(&sc->sassc->ev_queue, fw_event, ev_link); in mpssas_firmware_event_work()
H A Dmps_sas.c736 TAILQ_INIT(&sassc->ev_queue); in mps_attach_sas()
/freebsd/sys/dev/mpr/
H A Dmpr_sas.h107 TAILQ_HEAD(, mpr_fw_event_work) ev_queue;
H A Dmpr_sas_lsi.c181 TAILQ_INSERT_TAIL(&sc->sassc->ev_queue, fw_event, ev_link); in mprsas_evt_handler()
810 while ((fw_event = TAILQ_FIRST(&sc->sassc->ev_queue)) != NULL) { in mprsas_firmware_event_work()
811 TAILQ_REMOVE(&sc->sassc->ev_queue, fw_event, ev_link); in mprsas_firmware_event_work()
H A Dmpr_sas.c788 TAILQ_INIT(&sassc->ev_queue); in mpr_attach_sas()
/freebsd/sys/dev/mpi3mr/
H A Dmpi3mr_cam.h147 TAILQ_HEAD(, mpi3mr_fw_event_work) ev_queue;
H A Dmpi3mr_cam.c1550 while ((fw_event = TAILQ_FIRST(&sc->cam_sc->ev_queue)) != NULL) { in mpi3mr_freeup_events()
1551 TAILQ_REMOVE(&sc->cam_sc->ev_queue, fw_event, ev_link); in mpi3mr_freeup_events()
2072 while ((fw_event = TAILQ_FIRST(&sc->cam_sc->ev_queue)) != NULL) { in mpi3mr_firmware_event_work()
2073 TAILQ_REMOVE(&sc->cam_sc->ev_queue, fw_event, ev_link); in mpi3mr_firmware_event_work()
2125 TAILQ_INIT(&cam_sc->ev_queue); in mpi3mr_cam_attach()
H A Dmpi3mr.c4254 TAILQ_INSERT_TAIL(&sc->cam_sc->ev_queue, fw_event, ev_link); in mpi3mr_process_events()