Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/infiniband/hw/mlx5/
Ddevx.c74 struct devx_async_event_file *ev_file; member
1615 struct devx_async_cmd_event_file *ev_file; in UVERBS_HANDLER() local
1621 ev_file = container_of(uobj, struct devx_async_cmd_event_file, in UVERBS_HANDLER()
1623 devx_init_event_queue(&ev_file->ev_queue); in UVERBS_HANDLER()
1624 mlx5_cmd_init_async_ctx(mdev->mdev, &ev_file->async_ctx); in UVERBS_HANDLER()
1633 struct devx_async_event_file *ev_file; in UVERBS_HANDLER() local
1647 ev_file = container_of(uobj, struct devx_async_event_file, in UVERBS_HANDLER()
1649 spin_lock_init(&ev_file->lock); in UVERBS_HANDLER()
1650 INIT_LIST_HEAD(&ev_file->event_list); in UVERBS_HANDLER()
1651 init_waitqueue_head(&ev_file->poll_wait); in UVERBS_HANDLER()
[all …]
/Linux-v5.4/drivers/infiniband/core/
Duverbs_std_types_cq.c72 struct ib_uverbs_completion_event_file *ev_file = NULL; in UVERBS_HANDLER() local
98 ev_file = container_of(ev_file_uobj, in UVERBS_HANDLER()
124 cq->cq_context = ev_file ? &ev_file->ev_queue : NULL; in UVERBS_HANDLER()
148 if (ev_file) in UVERBS_HANDLER()
Duverbs_main.c137 struct ib_uverbs_completion_event_file *ev_file, in ib_uverbs_release_ucq() argument
142 if (ev_file) { in ib_uverbs_release_ucq()
143 spin_lock_irq(&ev_file->ev_queue.lock); in ib_uverbs_release_ucq()
148 spin_unlock_irq(&ev_file->ev_queue.lock); in ib_uverbs_release_ucq()
150 uverbs_uobject_put(&ev_file->uobj); in ib_uverbs_release_ucq()
564 struct ib_uverbs_async_event_file *ev_file; in ib_uverbs_alloc_async_event_file() local
567 ev_file = kzalloc(sizeof(*ev_file), GFP_KERNEL); in ib_uverbs_alloc_async_event_file()
568 if (!ev_file) in ib_uverbs_alloc_async_event_file()
571 ib_uverbs_init_event_queue(&ev_file->ev_queue); in ib_uverbs_alloc_async_event_file()
572 ev_file->uverbs_file = uverbs_file; in ib_uverbs_alloc_async_event_file()
[all …]
Duverbs.h228 struct ib_uverbs_completion_event_file *ev_file,
Duverbs_cmd.c957 struct ib_uverbs_completion_event_file *ev_file; in ib_uverbs_create_comp_channel() local
971 ev_file = container_of(uobj, struct ib_uverbs_completion_event_file, in ib_uverbs_create_comp_channel()
973 ib_uverbs_init_event_queue(&ev_file->ev_queue); in ib_uverbs_create_comp_channel()
988 struct ib_uverbs_completion_event_file *ev_file = NULL; in create_cq() local
1004 ev_file = ib_uverbs_lookup_comp_file(cmd->comp_channel, attrs); in create_cq()
1005 if (IS_ERR(ev_file)) { in create_cq()
1006 ret = PTR_ERR(ev_file); in create_cq()
1030 cq->cq_context = ev_file ? &ev_file->ev_queue : NULL; in create_cq()
1061 if (ev_file) in create_cq()
1062 ib_uverbs_release_ucq(attrs->ufile, ev_file, obj); in create_cq()