Home
last modified time | relevance | path

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

/src/sys/dev/mlx5/mlx5_ib/
H A Dmlx5_ib_devx.c63 struct devx_async_cmd_event_file *ev_file; member
104 struct devx_async_event_file *ev_file; member
1609 struct devx_async_cmd_event_file *ev_file; in MLX5_IB_METHOD_DEVX_ASYNC_CMD_FD_ALLOC() local
1615 ev_file = container_of(uobj, struct devx_async_cmd_event_file, in MLX5_IB_METHOD_DEVX_ASYNC_CMD_FD_ALLOC()
1617 devx_init_event_queue(&ev_file->ev_queue); in MLX5_IB_METHOD_DEVX_ASYNC_CMD_FD_ALLOC()
1618 mlx5_cmd_init_async_ctx(mdev->mdev, &ev_file->async_ctx); in MLX5_IB_METHOD_DEVX_ASYNC_CMD_FD_ALLOC()
1627 struct devx_async_event_file *ev_file; in MLX5_IB_METHOD_DEVX_ASYNC_EVENT_FD_ALLOC() local
1641 ev_file = container_of(uobj, struct devx_async_event_file, in MLX5_IB_METHOD_DEVX_ASYNC_EVENT_FD_ALLOC()
1643 spin_lock_init(&ev_file->lock); in MLX5_IB_METHOD_DEVX_ASYNC_EVENT_FD_ALLOC()
1644 INIT_LIST_HEAD(&ev_file->event_list); in MLX5_IB_METHOD_DEVX_ASYNC_EVENT_FD_ALLOC()
[all …]
/src/sys/ofed/drivers/infiniband/core/
H A Dib_uverbs_std_types_cq.c71 struct ib_uverbs_completion_event_file *ev_file = NULL; in UVERBS_METHOD_CQ_CREATE() local
97 ev_file = container_of(ev_file_uobj, in UVERBS_METHOD_CQ_CREATE()
121 cq->cq_context = ev_file ? &ev_file->ev_queue : NULL; in UVERBS_METHOD_CQ_CREATE()
143 if (ev_file) in UVERBS_METHOD_CQ_CREATE()
H A Duverbs.h222 void ib_uverbs_init_async_event_file(struct ib_uverbs_async_event_file *ev_file);
229 void ib_uverbs_release_ucq(struct ib_uverbs_completion_event_file *ev_file,
H A Dib_uverbs_main.c129 void ib_uverbs_release_ucq(struct ib_uverbs_completion_event_file *ev_file, in ib_uverbs_release_ucq() argument
134 if (ev_file) { in ib_uverbs_release_ucq()
135 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()
142 uverbs_uobject_put(&ev_file->uobj); in ib_uverbs_release_ucq()
H A Dib_uverbs_cmd.c965 struct ib_uverbs_completion_event_file *ev_file; in ib_uverbs_create_comp_channel() local
979 ev_file = container_of(uobj, struct ib_uverbs_completion_event_file, in ib_uverbs_create_comp_channel()
981 ib_uverbs_init_event_queue(&ev_file->ev_queue); in ib_uverbs_create_comp_channel()
997 struct ib_uverbs_completion_event_file *ev_file = NULL; in create_cq() local
1013 ev_file = ib_uverbs_lookup_comp_file(cmd->comp_channel, attrs); in create_cq()
1014 if (IS_ERR(ev_file)) { in create_cq()
1015 ret = PTR_ERR(ev_file); in create_cq()
1037 cq->cq_context = ev_file ? &ev_file->ev_queue : NULL; in create_cq()
1063 if (ev_file) in create_cq()
1064 ib_uverbs_release_ucq(ev_file, obj); in create_cq()