Lines Matching refs:cmd

48 	struct ibv_query_device cmd;
53 ret = ibv_cmd_query_device(context, attr, &raw_fw_ver, &cmd, sizeof cmd);
74 struct mlx4_query_device_ex cmd = {};
83 &cmd.ibv_cmd, sizeof(cmd.ibv_cmd), sizeof(cmd),
153 struct ibv_query_port cmd;
156 err = ibv_cmd_query_port(context, port, attr, &cmd, sizeof(cmd));
196 struct ibv_alloc_pd cmd;
204 if (ibv_cmd_alloc_pd(context, &pd->ibv_pd, &cmd, sizeof cmd,
230 struct ibv_open_xrcd cmd;
240 &cmd, sizeof cmd, &resp, sizeof resp);
267 struct ibv_reg_mr cmd;
276 access, mr, &cmd, sizeof cmd,
291 struct ibv_rereg_mr cmd;
300 &cmd, sizeof(cmd),
319 struct ibv_alloc_mw cmd;
327 ret = ibv_cmd_alloc_mw(pd, type, mw, &cmd, sizeof(cmd),
341 struct ibv_dealloc_mw cmd;
343 ret = ibv_cmd_dealloc_mw(mw, &cmd, sizeof(cmd));
408 struct mlx4_create_cq cmd = {};
412 cmd.buf_addr = (uintptr_t) cq->buf.buf;
413 cmd.db_addr = (uintptr_t) cq->set_ci_db;
418 &cmd.ibv_cmd, sizeof(cmd),
431 struct mlx4_create_cq_ex cmd = {};
435 cmd.buf_addr = (uintptr_t) cq->buf.buf;
436 cmd.db_addr = (uintptr_t) cq->set_ci_db;
439 &cq->ibv_cq, &cmd.ibv_cmd,
440 sizeof(cmd.ibv_cmd),
441 sizeof(cmd),
577 struct mlx4_resize_cq cmd;
606 cmd.buf_addr = (uintptr_t) buf.buf;
608 ret = ibv_cmd_resize_cq(ibcq, cqe - 1, &cmd.ibv_cmd, sizeof cmd,
644 struct mlx4_create_srq cmd;
674 cmd.buf_addr = (uintptr_t) srq->buf.buf;
675 cmd.db_addr = (uintptr_t) srq->db;
678 &cmd.ibv_cmd, sizeof cmd,
714 struct ibv_modify_srq cmd;
716 return ibv_cmd_modify_srq(srq, attr, attr_mask, &cmd, sizeof cmd);
722 struct ibv_query_srq cmd;
724 return ibv_cmd_query_srq(srq, attr, &cmd, sizeof cmd);
748 struct mlx4_create_qp *cmd,
756 memcpy(&cmd_ex.ibv_cmd.base, &cmd->ibv_cmd.user_handle,
757 offsetof(typeof(cmd->ibv_cmd), is_srq) +
758 sizeof(cmd->ibv_cmd.is_srq) -
759 offsetof(typeof(cmd->ibv_cmd), user_handle));
761 memcpy(&cmd_ex.drv_ex, &cmd->buf_addr,
762 offsetof(typeof(*cmd), sq_no_prefetch) +
763 sizeof(cmd->sq_no_prefetch) - sizeof(cmd->ibv_cmd));
787 struct mlx4_create_qp cmd;
854 cmd.db_addr = (uintptr_t) qp->db;
856 cmd.db_addr = 0;
859 cmd.buf_addr = (uintptr_t) qp->buf.buf;
860 cmd.log_sq_stride = qp->sq.wqe_shift;
861 for (cmd.log_sq_bb_count = 0;
862 qp->sq.wqe_cnt > 1 << cmd.log_sq_bb_count;
863 ++cmd.log_sq_bb_count)
865 cmd.sq_no_prefetch = 0; /* OK for ABI 2: just a reserved field */
866 memset(cmd.reserved, 0, sizeof cmd.reserved);
870 ret = mlx4_cmd_create_qp_ex(context, attr, &cmd, qp);
874 &cmd.ibv_cmd, sizeof(cmd), &resp,
935 struct ibv_open_qp cmd;
945 &cmd, sizeof cmd, &resp, sizeof resp);
960 struct ibv_query_qp cmd;
964 ret = ibv_cmd_query_qp(ibqp, attr, attr_mask, init_attr, &cmd, sizeof cmd);
980 struct ibv_modify_qp cmd = {};
1023 ret = ibv_cmd_modify_qp(qp, attr, attr_mask, &cmd, sizeof cmd);