/freebsd/contrib/ofed/libibverbs/ |
H A D | device.c | 209 int cmd_fd, ret; in __ibv_open_device() local 220 cmd_fd = open(devpath, O_RDWR | O_CLOEXEC); in __ibv_open_device() 223 if (cmd_fd < 0) in __ibv_open_device() 227 context = verbs_device->ops->alloc_context(device, cmd_fd); in __ibv_open_device() 260 ret = verbs_device->ops->init_context(verbs_device, context, cmd_fd); in __ibv_open_device() 285 context->cmd_fd = cmd_fd; in __ibv_open_device() 296 close(cmd_fd); in __ibv_open_device() 304 int cmd_fd = context->cmd_fd; in __ibv_close_device() local 319 close(cmd_fd); in __ibv_close_device()
|
H A D | cmd.c | 56 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 …]
|
H A D | driver.h | 106 int cmd_fd); 111 struct ibv_context *ctx, int cmd_fd);
|
H A D | verbs.h | 1383 struct ibv_context * (*_dummy1)(struct ibv_device *device, int cmd_fd); 1467 int cmd_fd; member
|
H A D | verbs.c | 413 if (write(context->cmd_fd, &cmd, sizeof cmd) != sizeof cmd) { in ibv_create_comp_channel()
|
H A D | compat-1_0.c | 220 int cmd_fd; member
|
/freebsd/contrib/ofed/libmlx4/ |
H A D | mlx4.c | 128 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()
|
/freebsd/contrib/ofed/libirdma/ |
H A D | irdma_umain.c | 145 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()
|
H A D | irdma_uverbs.c | 1536 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/contrib/ofed/libcxgb4/ |
H A D | verbs.c | 206 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 D | dev.c | 107 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/contrib/bmake/ |
H A D | main.c | 1728 int cmd_fd = -1; in Cmd_Argv() 1738 cmd_fd = mkTempFile(NULL, cmd_file, cmd_filesz); in Cmd_Argv() 1739 if (cmd_fd >= 0) { in Cmd_Argv() 1742 n = write(cmd_fd, cmd, cmd_len); in Cmd_Argv() 1743 close(cmd_fd); in Cmd_Argv() 1746 cmd_fd = -1; in Cmd_Argv() 1760 if (cmd_fd >= 0) { in Cmd_Argv() 1731 int cmd_fd = -1; Cmd_Argv() local
|
/freebsd/contrib/ofed/libmlx5/ |
H A D | mlx5.c | 606 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 D | buf.c | 509 context->cmd_fd, page_size * offset); in mlx5_alloc_buf_contig()
|