Home
last modified time | relevance | path

Searched refs:cmd_fd (Results 1 – 13 of 13) sorted by relevance

/freebsd-13-stable/contrib/ofed/libibverbs/
HDdevice.c180 int cmd_fd, ret; in __ibv_open_device() local
191 cmd_fd = open(devpath, O_RDWR | O_CLOEXEC); in __ibv_open_device()
194 if (cmd_fd < 0) in __ibv_open_device()
198 context = verbs_device->ops->alloc_context(device, cmd_fd); in __ibv_open_device()
224 ret = verbs_device->ops->init_context(verbs_device, context, cmd_fd); in __ibv_open_device()
249 context->cmd_fd = cmd_fd; in __ibv_open_device()
258 close(cmd_fd); in __ibv_open_device()
266 int cmd_fd = context->cmd_fd; in __ibv_close_device() local
280 close(cmd_fd); in __ibv_close_device()
HDcmd.c56 if (write(context->cmd_fd, cmd, cmd_size) != cmd_size) in ibv_cmd_get_context()
122 if (write(context->cmd_fd, cmd, cmd_size) != cmd_size) in ibv_cmd_query_device()
165 err = write(context->cmd_fd, cmd, cmd_size); in ibv_cmd_query_device_ex()
254 if (write(context->cmd_fd, cmd, cmd_size) != cmd_size) in ibv_cmd_query_port()
289 if (write(context->cmd_fd, cmd, cmd_size) != cmd_size) in ibv_cmd_alloc_pd()
307 if (write(pd->context->cmd_fd, &cmd, sizeof cmd) != sizeof cmd) in ibv_cmd_dealloc_pd()
330 if (write(context->cmd_fd, cmd, cmd_size) != cmd_size) in ibv_cmd_open_xrcd()
352 if (write(xrcd->xrcd.context->cmd_fd, &cmd, sizeof cmd) != sizeof cmd) in ibv_cmd_close_xrcd()
373 if (write(pd->context->cmd_fd, cmd, cmd_size) != cmd_size) in ibv_cmd_reg_mr()
402 if (write(mr->context->cmd_fd, cmd, cmd_sz) != cmd_sz) in ibv_cmd_rereg_mr()
[all …]
HDdriver.h106 int cmd_fd);
111 struct ibv_context *ctx, int cmd_fd);
HDverbs.h1381 struct ibv_context * (*_dummy1)(struct ibv_device *device, int cmd_fd);
1465 int cmd_fd; member
HDverbs.c405 if (write(context->cmd_fd, &cmd, sizeof cmd) != sizeof cmd) { in ibv_create_comp_channel()
HDcompat-1_0.c220 int cmd_fd; member
/freebsd-13-stable/contrib/ofed/libmlx4/
HDmlx4.c128 PROT_READ, MAP_SHARED, ibv_ctx->cmd_fd, in mlx4_map_internal_clock()
144 struct ibv_context *ibv_ctx, int cmd_fd) in mlx4_init_context() argument
160 ibv_ctx->cmd_fd = cmd_fd; in mlx4_init_context()
199 MAP_SHARED, cmd_fd, 0); in mlx4_init_context()
205 PROT_WRITE, MAP_SHARED, cmd_fd, in mlx4_init_context()
/freebsd-13-stable/contrib/ofed/libirdma/
HDirdma_umain.c145 struct ibv_context *ctx, int cmd_fd) in irdma_init_context() argument
154 iwvctx->ibv_ctx.cmd_fd = cmd_fd; in irdma_init_context()
177 MAP_SHARED, cmd_fd, mmap_key); in irdma_init_context()
HDirdma_uverbs.c1536 map = irdma_mmap(qp->context->cmd_fd, offset); in irdma_umodify_qp()
1543 map = irdma_mmap(qp->context->cmd_fd, offset); in irdma_umodify_qp()
/freebsd-13-stable/contrib/ofed/libcxgb4/
HDverbs.c204 MAP_SHARED, context->cmd_fd, resp.key); in c4iw_create_cq()
209 context->cmd_fd, resp.gts_key); in c4iw_create_cq()
343 pd->context->cmd_fd, resp.sq_db_gts_key); in create_qp_v0()
350 pd->context->cmd_fd, resp.sq_key); in create_qp_v0()
355 pd->context->cmd_fd, resp.rq_db_gts_key); in create_qp_v0()
361 pd->context->cmd_fd, resp.rq_key); in create_qp_v0()
454 pd->context->cmd_fd, resp.sq_db_gts_key); in create_qp()
472 pd->context->cmd_fd, resp.sq_key); in create_qp()
477 pd->context->cmd_fd, resp.rq_db_gts_key); in create_qp()
494 pd->context->cmd_fd, resp.rq_key); in create_qp()
[all …]
HDdev.c107 int cmd_fd) in c4iw_alloc_context() argument
122 context->ibv_ctx.cmd_fd = cmd_fd; in c4iw_alloc_context()
137 PROT_READ, MAP_SHARED, cmd_fd, in c4iw_alloc_context()
/freebsd-13-stable/contrib/ofed/libmlx5/
HDmlx5.c595 PROT_READ, MAP_SHARED, ibv_ctx->cmd_fd, in mlx5_map_internal_clock()
747 struct ibv_context *ctx, int cmd_fd) in mlx5_init_context() argument
773 context->ibv_ctx.cmd_fd = cmd_fd; in mlx5_init_context()
861 cmd_fd, page_size * offset); in mlx5_init_context()
HDbuf.c509 context->cmd_fd, page_size * offset); in mlx5_alloc_buf_contig()