Home
last modified time | relevance | path

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

/src/contrib/ofed/libibverbs/
H A Ddevice.c208 int cmd_fd, ret; in __ibv_open_device() local
219 cmd_fd = open(devpath, O_RDWR | O_CLOEXEC); in __ibv_open_device()
222 if (cmd_fd < 0) in __ibv_open_device()
226 context = verbs_device->ops->alloc_context(device, cmd_fd); in __ibv_open_device()
259 ret = verbs_device->ops->init_context(verbs_device, context, cmd_fd); in __ibv_open_device()
284 context->cmd_fd = cmd_fd; in __ibv_open_device()
295 close(cmd_fd); in __ibv_open_device()
303 int cmd_fd = context->cmd_fd; in __ibv_close_device() local
318 close(cmd_fd); in __ibv_close_device()
H A Dcmd.c55 if (write(context->cmd_fd, cmd, cmd_size) != cmd_size) in ibv_cmd_get_context()
121 if (write(context->cmd_fd, cmd, cmd_size) != cmd_size) in ibv_cmd_query_device()
164 err = write(context->cmd_fd, cmd, cmd_size); in ibv_cmd_query_device_ex()
253 if (write(context->cmd_fd, cmd, cmd_size) != cmd_size) in ibv_cmd_query_port()
288 if (write(context->cmd_fd, cmd, cmd_size) != cmd_size) in ibv_cmd_alloc_pd()
306 if (write(pd->context->cmd_fd, &cmd, sizeof cmd) != sizeof cmd) in ibv_cmd_dealloc_pd()
329 if (write(context->cmd_fd, cmd, cmd_size) != cmd_size) in ibv_cmd_open_xrcd()
351 if (write(xrcd->xrcd.context->cmd_fd, &cmd, sizeof cmd) != sizeof cmd) in ibv_cmd_close_xrcd()
372 if (write(pd->context->cmd_fd, cmd, cmd_size) != cmd_size) in ibv_cmd_reg_mr()
401 if (write(mr->context->cmd_fd, cmd, cmd_sz) != cmd_sz) in ibv_cmd_rereg_mr()
[all …]
H A Ddriver.h106 int cmd_fd);
111 struct ibv_context *ctx, int cmd_fd);
H A Dverbs.h1383 struct ibv_context * (*_dummy1)(struct ibv_device *device, int cmd_fd);
1467 int cmd_fd; member
H A Dverbs.c413 if (write(context->cmd_fd, &cmd, sizeof cmd) != sizeof cmd) { in ibv_create_comp_channel()
H A Dcompat-1_0.c219 int cmd_fd; member
/src/contrib/ofed/libbnxtre/
H A Dmain.c168 struct bnxt_re_cntx_resp *resp, int cmd_fd) in _bnxt_re_init_context() argument
198 MAP_SHARED, cmd_fd, 0); in _bnxt_re_init_context()
206 MAP_SHARED, cmd_fd, BNXT_RE_DBR_PAGE); in _bnxt_re_init_context()
286 int cmd_fd) in bnxt_re_init_context() argument
296 ibvctx->cmd_fd = cmd_fd; in bnxt_re_init_context()
309 ret = _bnxt_re_init_context(rdev, cntx, &resp, cmd_fd); in bnxt_re_init_context()
H A Dverbs.c155 MAP_SHARED, ibvctx->cmd_fd, dbr); in bnxt_re_map_db_page()
160 MAP_SHARED, ibvctx->cmd_fd, in bnxt_re_map_db_page()
202 MAP_SHARED, ibvctx->cmd_fd, dbr_map); in bnxt_re_alloc_pd()
346 ibvctx->cmd_fd, resp.cq_page); in _bnxt_re_create_cq()
401 ibvctx->cmd_fd, BNXT_RE_DB_RECOVERY_PAGE); in bnxt_re_create_cq()
2367 ibvpd->context->cmd_fd, resp.srq_page); in bnxt_re_create_srq()
/src/contrib/ofed/libmlx4/
H A Dmlx4.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
161 ibv_ctx->cmd_fd = cmd_fd; in mlx4_init_context()
207 MAP_SHARED, cmd_fd, 0); in mlx4_init_context()
213 PROT_WRITE, MAP_SHARED, cmd_fd, in mlx4_init_context()
/src/contrib/ofed/libirdma/
H A Dirdma_umain.c157 struct ibv_context *ctx, int cmd_fd) in irdma_init_context() argument
166 iwvctx->ibv_ctx.cmd_fd = cmd_fd; in irdma_init_context()
189 MAP_SHARED, cmd_fd, mmap_key); in irdma_init_context()
H A Dirdma_uverbs.c1554 iwuqp->qp.push_wqe_map = irdma_mmap(qp->context->cmd_fd, offset); in irdma_umodify_qp()
1559 iwuqp->qp.push_db_map = irdma_mmap(qp->context->cmd_fd, offset); in irdma_umodify_qp()
/src/contrib/ofed/libcxgb4/
H A Dverbs.c206 MAP_SHARED, context->cmd_fd, resp.key); in c4iw_create_cq()
211 context->cmd_fd, resp.gts_key); in c4iw_create_cq()
351 pd->context->cmd_fd, resp.sq_db_gts_key); in create_qp_v0()
358 pd->context->cmd_fd, resp.sq_key); in create_qp_v0()
363 pd->context->cmd_fd, resp.rq_db_gts_key); in create_qp_v0()
369 pd->context->cmd_fd, resp.rq_key); in create_qp_v0()
466 pd->context->cmd_fd, resp.sq_db_gts_key); in create_qp()
484 pd->context->cmd_fd, resp.sq_key); in create_qp()
489 pd->context->cmd_fd, resp.rq_db_gts_key); in create_qp()
506 pd->context->cmd_fd, resp.rq_key); in create_qp()
[all …]
H A Ddev.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()
/src/contrib/bmake/
H A Dmain.c1726 int cmd_fd = -1; in Cmd_Argv() local
1736 cmd_fd = mkTempFile(NULL, cmd_file, cmd_filesz); in Cmd_Argv()
1737 if (cmd_fd >= 0) { in Cmd_Argv()
1740 n = write(cmd_fd, cmd, cmd_len); in Cmd_Argv()
1741 close(cmd_fd); in Cmd_Argv()
1744 cmd_fd = -1; in Cmd_Argv()
1755 if (cmd_fd >= 0) { in Cmd_Argv()
/src/contrib/ofed/libmlx5/
H A Dmlx5.c606 PROT_READ, MAP_SHARED, ibv_ctx->cmd_fd, in mlx5_map_internal_clock()
758 struct ibv_context *ctx, int cmd_fd) in mlx5_init_context() argument
784 context->ibv_ctx.cmd_fd = cmd_fd; in mlx5_init_context()
876 cmd_fd, page_size * offset); in mlx5_init_context()
H A Dbuf.c509 context->cmd_fd, page_size * offset); in mlx5_alloc_buf_contig()