Lines Matching refs:wqe

140 	struct t3_modify_qp_wr *wqe;  in cxio_hal_clear_qp_ctx()  local
141 struct sk_buff *skb = alloc_skb(sizeof(*wqe), GFP_KERNEL); in cxio_hal_clear_qp_ctx()
146 wqe = (struct t3_modify_qp_wr *) skb_put(skb, sizeof(*wqe)); in cxio_hal_clear_qp_ctx()
147 memset(wqe, 0, sizeof(*wqe)); in cxio_hal_clear_qp_ctx()
148 build_fw_riwrh((struct fw_riwrh *) wqe, T3_WR_QP_MOD, in cxio_hal_clear_qp_ctx()
151 wqe->flags = cpu_to_be32(MODQP_WRITE_EC); in cxio_hal_clear_qp_ctx()
153 wqe->sge_cmd = cpu_to_be64(sge_cmd); in cxio_hal_clear_qp_ctx()
519 struct t3_modify_qp_wr *wqe; in cxio_hal_init_ctrl_qp() local
522 skb = alloc_skb(sizeof(*wqe), GFP_KERNEL); in cxio_hal_init_ctrl_qp()
565 wqe = (struct t3_modify_qp_wr *) skb_put(skb, sizeof(*wqe)); in cxio_hal_init_ctrl_qp()
566 memset(wqe, 0, sizeof(*wqe)); in cxio_hal_init_ctrl_qp()
567 build_fw_riwrh((struct fw_riwrh *) wqe, T3_WR_QP_MOD, 0, 0, in cxio_hal_init_ctrl_qp()
569 wqe->flags = cpu_to_be32(MODQP_WRITE_EC); in cxio_hal_init_ctrl_qp()
571 wqe->sge_cmd = cpu_to_be64(sge_cmd); in cxio_hal_init_ctrl_qp()
572 wqe->ctx1 = cpu_to_be64(ctx1); in cxio_hal_init_ctrl_qp()
573 wqe->ctx0 = cpu_to_be64(ctx0); in cxio_hal_init_ctrl_qp()
604 __be64 *wqe; in cxio_hal_ctrl_qp_write_mem() local
629 wqe = (__be64 *)(rdev_p->ctrl_qp.workq + (rdev_p->ctrl_qp.wptr % in cxio_hal_ctrl_qp_write_mem()
652 wqe += (sizeof(struct t3_bypass_wr) >> 3); in cxio_hal_ctrl_qp_write_mem()
656 *wqe = cpu_to_be64(utx_cmd); in cxio_hal_ctrl_qp_write_mem()
657 wqe++; in cxio_hal_ctrl_qp_write_mem()
663 memcpy(wqe, copy_data, copy_len); in cxio_hal_ctrl_qp_write_mem()
665 memset(wqe, 0, copy_len); in cxio_hal_ctrl_qp_write_mem()
667 memset(((u8 *) wqe) + copy_len, 0, in cxio_hal_ctrl_qp_write_mem()
671 wqe = (__be64 *)(rdev_p->ctrl_qp.workq + (rdev_p->ctrl_qp.wptr % in cxio_hal_ctrl_qp_write_mem()
675 ((union t3_wrid *)(wqe+1))->id0.low = rdev_p->ctrl_qp.wptr; in cxio_hal_ctrl_qp_write_mem()
681 build_fw_riwrh((struct fw_riwrh *) wqe, T3_WR_BP, flag, in cxio_hal_ctrl_qp_write_mem()
836 struct t3_rdma_init_wr *wqe; in cxio_rdma_init() local
837 struct sk_buff *skb = alloc_skb(sizeof(*wqe), GFP_ATOMIC); in cxio_rdma_init()
841 wqe = (struct t3_rdma_init_wr *) __skb_put(skb, sizeof(*wqe)); in cxio_rdma_init()
842 wqe->wrh.op_seop_flags = cpu_to_be32(V_FW_RIWR_OP(T3_WR_INIT)); in cxio_rdma_init()
843 wqe->wrh.gen_tid_len = cpu_to_be32(V_FW_RIWR_TID(attr->tid) | in cxio_rdma_init()
844 V_FW_RIWR_LEN(sizeof(*wqe) >> 3)); in cxio_rdma_init()
845 wqe->wrid.id1 = 0; in cxio_rdma_init()
846 wqe->qpid = cpu_to_be32(attr->qpid); in cxio_rdma_init()
847 wqe->pdid = cpu_to_be32(attr->pdid); in cxio_rdma_init()
848 wqe->scqid = cpu_to_be32(attr->scqid); in cxio_rdma_init()
849 wqe->rcqid = cpu_to_be32(attr->rcqid); in cxio_rdma_init()
850 wqe->rq_addr = cpu_to_be32(attr->rq_addr - rdev_p->rnic_info.rqt_base); in cxio_rdma_init()
851 wqe->rq_size = cpu_to_be32(attr->rq_size); in cxio_rdma_init()
852 wqe->mpaattrs = attr->mpaattrs; in cxio_rdma_init()
853 wqe->qpcaps = attr->qpcaps; in cxio_rdma_init()
854 wqe->ulpdu_size = cpu_to_be16(attr->tcp_emss); in cxio_rdma_init()
855 wqe->rqe_count = cpu_to_be16(attr->rqe_count); in cxio_rdma_init()
856 wqe->flags_rtr_type = cpu_to_be16(attr->flags | in cxio_rdma_init()
859 wqe->ord = cpu_to_be32(attr->ord); in cxio_rdma_init()
860 wqe->ird = cpu_to_be32(attr->ird); in cxio_rdma_init()
861 wqe->qp_dma_addr = cpu_to_be64(attr->qp_dma_addr); in cxio_rdma_init()
862 wqe->qp_dma_size = cpu_to_be32(attr->qp_dma_size); in cxio_rdma_init()
863 wqe->irs = cpu_to_be32(attr->irs); in cxio_rdma_init()