Lines Matching refs:cmd

198 	struct pvrdma_cmd_create_qp *cmd = &req.create_qp;  in pvrdma_create_qp()  local
356 memset(cmd, 0, sizeof(*cmd)); in pvrdma_create_qp()
357 cmd->hdr.cmd = PVRDMA_CMD_CREATE_QP; in pvrdma_create_qp()
358 cmd->pd_handle = to_vpd(ibqp->pd)->pd_handle; in pvrdma_create_qp()
359 cmd->send_cq_handle = to_vcq(init_attr->send_cq)->cq_handle; in pvrdma_create_qp()
360 cmd->recv_cq_handle = to_vcq(init_attr->recv_cq)->cq_handle; in pvrdma_create_qp()
362 cmd->srq_handle = to_vsrq(init_attr->srq)->srq_handle; in pvrdma_create_qp()
364 cmd->srq_handle = 0; in pvrdma_create_qp()
365 cmd->max_send_wr = init_attr->cap.max_send_wr; in pvrdma_create_qp()
366 cmd->max_recv_wr = init_attr->cap.max_recv_wr; in pvrdma_create_qp()
367 cmd->max_send_sge = init_attr->cap.max_send_sge; in pvrdma_create_qp()
368 cmd->max_recv_sge = init_attr->cap.max_recv_sge; in pvrdma_create_qp()
369 cmd->max_inline_data = init_attr->cap.max_inline_data; in pvrdma_create_qp()
370 cmd->sq_sig_all = (init_attr->sq_sig_type == IB_SIGNAL_ALL_WR) ? 1 : 0; in pvrdma_create_qp()
371 cmd->qp_type = ib_qp_type_to_pvrdma(init_attr->qp_type); in pvrdma_create_qp()
372 cmd->is_srq = is_srq; in pvrdma_create_qp()
373 cmd->lkey = 0; in pvrdma_create_qp()
374 cmd->access_flags = IB_ACCESS_LOCAL_WRITE; in pvrdma_create_qp()
375 cmd->total_chunks = qp->npages; in pvrdma_create_qp()
376 cmd->send_chunks = qp->npages_send - PVRDMA_QP_NUM_HEADER_PAGES; in pvrdma_create_qp()
377 cmd->pdir_dma = qp->pdir.dir_dma; in pvrdma_create_qp()
380 cmd->max_send_wr, cmd->max_recv_wr, cmd->max_send_sge, in pvrdma_create_qp()
381 cmd->max_recv_sge); in pvrdma_create_qp()
479 struct pvrdma_cmd_destroy_qp *cmd = &req.destroy_qp; in _pvrdma_destroy_qp_work() local
482 memset(cmd, 0, sizeof(*cmd)); in _pvrdma_destroy_qp_work()
483 cmd->hdr.cmd = PVRDMA_CMD_DESTROY_QP; in _pvrdma_destroy_qp_work()
484 cmd->qp_handle = qp_handle; in _pvrdma_destroy_qp_work()
532 struct pvrdma_cmd_modify_qp *cmd = &req.modify_qp; in pvrdma_modify_qp() local
582 memset(cmd, 0, sizeof(*cmd)); in pvrdma_modify_qp()
583 cmd->hdr.cmd = PVRDMA_CMD_MODIFY_QP; in pvrdma_modify_qp()
584 cmd->qp_handle = qp->qp_handle; in pvrdma_modify_qp()
585 cmd->attr_mask = ib_qp_attr_mask_to_pvrdma(attr_mask); in pvrdma_modify_qp()
586 cmd->attrs.qp_state = ib_qp_state_to_pvrdma(attr->qp_state); in pvrdma_modify_qp()
587 cmd->attrs.cur_qp_state = in pvrdma_modify_qp()
589 cmd->attrs.path_mtu = ib_mtu_to_pvrdma(attr->path_mtu); in pvrdma_modify_qp()
590 cmd->attrs.path_mig_state = in pvrdma_modify_qp()
592 cmd->attrs.qkey = attr->qkey; in pvrdma_modify_qp()
593 cmd->attrs.rq_psn = attr->rq_psn; in pvrdma_modify_qp()
594 cmd->attrs.sq_psn = attr->sq_psn; in pvrdma_modify_qp()
595 cmd->attrs.dest_qp_num = attr->dest_qp_num; in pvrdma_modify_qp()
596 cmd->attrs.qp_access_flags = in pvrdma_modify_qp()
598 cmd->attrs.pkey_index = attr->pkey_index; in pvrdma_modify_qp()
599 cmd->attrs.alt_pkey_index = attr->alt_pkey_index; in pvrdma_modify_qp()
600 cmd->attrs.en_sqd_async_notify = attr->en_sqd_async_notify; in pvrdma_modify_qp()
601 cmd->attrs.sq_draining = attr->sq_draining; in pvrdma_modify_qp()
602 cmd->attrs.max_rd_atomic = attr->max_rd_atomic; in pvrdma_modify_qp()
603 cmd->attrs.max_dest_rd_atomic = attr->max_dest_rd_atomic; in pvrdma_modify_qp()
604 cmd->attrs.min_rnr_timer = attr->min_rnr_timer; in pvrdma_modify_qp()
605 cmd->attrs.port_num = attr->port_num; in pvrdma_modify_qp()
606 cmd->attrs.timeout = attr->timeout; in pvrdma_modify_qp()
607 cmd->attrs.retry_cnt = attr->retry_cnt; in pvrdma_modify_qp()
608 cmd->attrs.rnr_retry = attr->rnr_retry; in pvrdma_modify_qp()
609 cmd->attrs.alt_port_num = attr->alt_port_num; in pvrdma_modify_qp()
610 cmd->attrs.alt_timeout = attr->alt_timeout; in pvrdma_modify_qp()
611 ib_qp_cap_to_pvrdma(&cmd->attrs.cap, &attr->cap); in pvrdma_modify_qp()
612 rdma_ah_attr_to_pvrdma(&cmd->attrs.ah_attr, &attr->ah_attr); in pvrdma_modify_qp()
613 rdma_ah_attr_to_pvrdma(&cmd->attrs.alt_ah_attr, &attr->alt_ah_attr); in pvrdma_modify_qp()
973 struct pvrdma_cmd_query_qp *cmd = &req.query_qp; in pvrdma_query_qp() local
984 memset(cmd, 0, sizeof(*cmd)); in pvrdma_query_qp()
985 cmd->hdr.cmd = PVRDMA_CMD_QUERY_QP; in pvrdma_query_qp()
986 cmd->qp_handle = qp->qp_handle; in pvrdma_query_qp()
987 cmd->attr_mask = ib_qp_attr_mask_to_pvrdma(attr_mask); in pvrdma_query_qp()