Lines Matching refs:wqe
80 union lpfc_wqe128 *wqe; in lpfc_nvmet_cmd_template() local
83 wqe = &lpfc_tsend_cmd_template; in lpfc_nvmet_cmd_template()
84 memset(wqe, 0, sizeof(union lpfc_wqe128)); in lpfc_nvmet_cmd_template()
97 bf_set(wqe_cmnd, &wqe->fcp_tsend.wqe_com, CMD_FCP_TSEND64_WQE); in lpfc_nvmet_cmd_template()
98 bf_set(wqe_pu, &wqe->fcp_tsend.wqe_com, PARM_REL_OFF); in lpfc_nvmet_cmd_template()
99 bf_set(wqe_class, &wqe->fcp_tsend.wqe_com, CLASS3); in lpfc_nvmet_cmd_template()
100 bf_set(wqe_ct, &wqe->fcp_tsend.wqe_com, SLI4_CT_RPI); in lpfc_nvmet_cmd_template()
101 bf_set(wqe_ar, &wqe->fcp_tsend.wqe_com, 1); in lpfc_nvmet_cmd_template()
108 bf_set(wqe_xchg, &wqe->fcp_tsend.wqe_com, LPFC_NVME_XCHG); in lpfc_nvmet_cmd_template()
109 bf_set(wqe_dbde, &wqe->fcp_tsend.wqe_com, 1); in lpfc_nvmet_cmd_template()
110 bf_set(wqe_wqes, &wqe->fcp_tsend.wqe_com, 0); in lpfc_nvmet_cmd_template()
111 bf_set(wqe_xc, &wqe->fcp_tsend.wqe_com, 1); in lpfc_nvmet_cmd_template()
112 bf_set(wqe_iod, &wqe->fcp_tsend.wqe_com, LPFC_WQE_IOD_WRITE); in lpfc_nvmet_cmd_template()
113 bf_set(wqe_lenloc, &wqe->fcp_tsend.wqe_com, LPFC_WQE_LENLOC_WORD12); in lpfc_nvmet_cmd_template()
116 bf_set(wqe_cmd_type, &wqe->fcp_tsend.wqe_com, FCP_COMMAND_TSEND); in lpfc_nvmet_cmd_template()
117 bf_set(wqe_cqid, &wqe->fcp_tsend.wqe_com, LPFC_WQE_CQ_ID_DEFAULT); in lpfc_nvmet_cmd_template()
118 bf_set(wqe_sup, &wqe->fcp_tsend.wqe_com, 0); in lpfc_nvmet_cmd_template()
119 bf_set(wqe_irsp, &wqe->fcp_tsend.wqe_com, 0); in lpfc_nvmet_cmd_template()
120 bf_set(wqe_irsplen, &wqe->fcp_tsend.wqe_com, 0); in lpfc_nvmet_cmd_template()
121 bf_set(wqe_pbde, &wqe->fcp_tsend.wqe_com, 0); in lpfc_nvmet_cmd_template()
128 wqe = &lpfc_treceive_cmd_template; in lpfc_nvmet_cmd_template()
129 memset(wqe, 0, sizeof(union lpfc_wqe128)); in lpfc_nvmet_cmd_template()
134 wqe->fcp_treceive.payload_offset_len = TXRDY_PAYLOAD_LEN; in lpfc_nvmet_cmd_template()
143 bf_set(wqe_cmnd, &wqe->fcp_treceive.wqe_com, CMD_FCP_TRECEIVE64_WQE); in lpfc_nvmet_cmd_template()
144 bf_set(wqe_pu, &wqe->fcp_treceive.wqe_com, PARM_REL_OFF); in lpfc_nvmet_cmd_template()
145 bf_set(wqe_class, &wqe->fcp_treceive.wqe_com, CLASS3); in lpfc_nvmet_cmd_template()
146 bf_set(wqe_ct, &wqe->fcp_treceive.wqe_com, SLI4_CT_RPI); in lpfc_nvmet_cmd_template()
147 bf_set(wqe_ar, &wqe->fcp_treceive.wqe_com, 0); in lpfc_nvmet_cmd_template()
154 bf_set(wqe_dbde, &wqe->fcp_treceive.wqe_com, 1); in lpfc_nvmet_cmd_template()
155 bf_set(wqe_wqes, &wqe->fcp_treceive.wqe_com, 0); in lpfc_nvmet_cmd_template()
156 bf_set(wqe_xchg, &wqe->fcp_treceive.wqe_com, LPFC_NVME_XCHG); in lpfc_nvmet_cmd_template()
157 bf_set(wqe_iod, &wqe->fcp_treceive.wqe_com, LPFC_WQE_IOD_READ); in lpfc_nvmet_cmd_template()
158 bf_set(wqe_lenloc, &wqe->fcp_treceive.wqe_com, LPFC_WQE_LENLOC_WORD12); in lpfc_nvmet_cmd_template()
159 bf_set(wqe_xc, &wqe->fcp_tsend.wqe_com, 1); in lpfc_nvmet_cmd_template()
162 bf_set(wqe_cmd_type, &wqe->fcp_treceive.wqe_com, FCP_COMMAND_TRECEIVE); in lpfc_nvmet_cmd_template()
163 bf_set(wqe_cqid, &wqe->fcp_treceive.wqe_com, LPFC_WQE_CQ_ID_DEFAULT); in lpfc_nvmet_cmd_template()
164 bf_set(wqe_sup, &wqe->fcp_treceive.wqe_com, 0); in lpfc_nvmet_cmd_template()
165 bf_set(wqe_irsp, &wqe->fcp_treceive.wqe_com, 0); in lpfc_nvmet_cmd_template()
166 bf_set(wqe_irsplen, &wqe->fcp_treceive.wqe_com, 0); in lpfc_nvmet_cmd_template()
167 bf_set(wqe_pbde, &wqe->fcp_treceive.wqe_com, 1); in lpfc_nvmet_cmd_template()
174 wqe = &lpfc_trsp_cmd_template; in lpfc_nvmet_cmd_template()
175 memset(wqe, 0, sizeof(union lpfc_wqe128)); in lpfc_nvmet_cmd_template()
186 bf_set(wqe_cmnd, &wqe->fcp_trsp.wqe_com, CMD_FCP_TRSP64_WQE); in lpfc_nvmet_cmd_template()
187 bf_set(wqe_pu, &wqe->fcp_trsp.wqe_com, PARM_UNUSED); in lpfc_nvmet_cmd_template()
188 bf_set(wqe_class, &wqe->fcp_trsp.wqe_com, CLASS3); in lpfc_nvmet_cmd_template()
189 bf_set(wqe_ct, &wqe->fcp_trsp.wqe_com, SLI4_CT_RPI); in lpfc_nvmet_cmd_template()
190 bf_set(wqe_ag, &wqe->fcp_trsp.wqe_com, 1); /* wqe_ar */ in lpfc_nvmet_cmd_template()
197 bf_set(wqe_dbde, &wqe->fcp_trsp.wqe_com, 1); in lpfc_nvmet_cmd_template()
198 bf_set(wqe_xchg, &wqe->fcp_trsp.wqe_com, LPFC_NVME_XCHG); in lpfc_nvmet_cmd_template()
199 bf_set(wqe_wqes, &wqe->fcp_trsp.wqe_com, 0); in lpfc_nvmet_cmd_template()
200 bf_set(wqe_xc, &wqe->fcp_trsp.wqe_com, 0); in lpfc_nvmet_cmd_template()
201 bf_set(wqe_iod, &wqe->fcp_trsp.wqe_com, LPFC_WQE_IOD_NONE); in lpfc_nvmet_cmd_template()
202 bf_set(wqe_lenloc, &wqe->fcp_trsp.wqe_com, LPFC_WQE_LENLOC_WORD3); in lpfc_nvmet_cmd_template()
205 bf_set(wqe_cmd_type, &wqe->fcp_trsp.wqe_com, FCP_COMMAND_TRSP); in lpfc_nvmet_cmd_template()
206 bf_set(wqe_cqid, &wqe->fcp_trsp.wqe_com, LPFC_WQE_CQ_ID_DEFAULT); in lpfc_nvmet_cmd_template()
207 bf_set(wqe_sup, &wqe->fcp_trsp.wqe_com, 0); in lpfc_nvmet_cmd_template()
208 bf_set(wqe_irsp, &wqe->fcp_trsp.wqe_com, 0); in lpfc_nvmet_cmd_template()
209 bf_set(wqe_irsplen, &wqe->fcp_trsp.wqe_com, 0); in lpfc_nvmet_cmd_template()
210 bf_set(wqe_pbde, &wqe->fcp_trsp.wqe_com, 0); in lpfc_nvmet_cmd_template()
906 bpl.addrLow = nvmewqeq->wqe.xmit_sequence.bde.addrLow; in __lpfc_nvme_xmt_ls_rsp()
907 bpl.addrHigh = nvmewqeq->wqe.xmit_sequence.bde.addrHigh; in __lpfc_nvme_xmt_ls_rsp()
1488 union lpfc_wqe128 *wqe; in lpfc_nvmet_setup_io_context() local
1586 wqe = &nvmewqe->wqe; in lpfc_nvmet_setup_io_context()
1589 memset(wqe, 0, sizeof(union lpfc_wqe)); in lpfc_nvmet_setup_io_context()
2585 union lpfc_wqe128 *wqe; in lpfc_nvmet_prep_ls_wqe() local
2623 wqe = &nvmewqe->wqe; in lpfc_nvmet_prep_ls_wqe()
2624 memset(wqe, 0, sizeof(union lpfc_wqe)); in lpfc_nvmet_prep_ls_wqe()
2627 wqe->xmit_sequence.bde.tus.f.bdeFlags = BUFF_TYPE_BDE_64; in lpfc_nvmet_prep_ls_wqe()
2628 wqe->xmit_sequence.bde.tus.f.bdeSize = rspsize; in lpfc_nvmet_prep_ls_wqe()
2629 wqe->xmit_sequence.bde.addrLow = le32_to_cpu(putPaddrLow(rspbuf)); in lpfc_nvmet_prep_ls_wqe()
2630 wqe->xmit_sequence.bde.addrHigh = le32_to_cpu(putPaddrHigh(rspbuf)); in lpfc_nvmet_prep_ls_wqe()
2637 bf_set(wqe_dfctl, &wqe->xmit_sequence.wge_ctl, 0); in lpfc_nvmet_prep_ls_wqe()
2638 bf_set(wqe_ls, &wqe->xmit_sequence.wge_ctl, 1); in lpfc_nvmet_prep_ls_wqe()
2639 bf_set(wqe_la, &wqe->xmit_sequence.wge_ctl, 0); in lpfc_nvmet_prep_ls_wqe()
2640 bf_set(wqe_rctl, &wqe->xmit_sequence.wge_ctl, FC_RCTL_ELS4_REP); in lpfc_nvmet_prep_ls_wqe()
2641 bf_set(wqe_type, &wqe->xmit_sequence.wge_ctl, FC_TYPE_NVME); in lpfc_nvmet_prep_ls_wqe()
2644 bf_set(wqe_ctxt_tag, &wqe->xmit_sequence.wqe_com, in lpfc_nvmet_prep_ls_wqe()
2646 bf_set(wqe_xri_tag, &wqe->xmit_sequence.wqe_com, nvmewqe->sli4_xritag); in lpfc_nvmet_prep_ls_wqe()
2649 bf_set(wqe_cmnd, &wqe->xmit_sequence.wqe_com, in lpfc_nvmet_prep_ls_wqe()
2651 bf_set(wqe_ct, &wqe->xmit_sequence.wqe_com, SLI4_CT_RPI); in lpfc_nvmet_prep_ls_wqe()
2652 bf_set(wqe_class, &wqe->xmit_sequence.wqe_com, CLASS3); in lpfc_nvmet_prep_ls_wqe()
2653 bf_set(wqe_pu, &wqe->xmit_sequence.wqe_com, 0); in lpfc_nvmet_prep_ls_wqe()
2656 wqe->xmit_sequence.wqe_com.abort_tag = nvmewqe->iotag; in lpfc_nvmet_prep_ls_wqe()
2659 bf_set(wqe_reqtag, &wqe->xmit_sequence.wqe_com, nvmewqe->iotag); in lpfc_nvmet_prep_ls_wqe()
2661 bf_set(wqe_rcvoxid, &wqe->xmit_sequence.wqe_com, ctxp->oxid); in lpfc_nvmet_prep_ls_wqe()
2664 bf_set(wqe_dbde, &wqe->xmit_sequence.wqe_com, 1); in lpfc_nvmet_prep_ls_wqe()
2665 bf_set(wqe_iod, &wqe->xmit_sequence.wqe_com, LPFC_WQE_IOD_WRITE); in lpfc_nvmet_prep_ls_wqe()
2666 bf_set(wqe_lenloc, &wqe->xmit_sequence.wqe_com, in lpfc_nvmet_prep_ls_wqe()
2668 bf_set(wqe_ebde_cnt, &wqe->xmit_sequence.wqe_com, 0); in lpfc_nvmet_prep_ls_wqe()
2671 bf_set(wqe_cqid, &wqe->xmit_sequence.wqe_com, in lpfc_nvmet_prep_ls_wqe()
2673 bf_set(wqe_cmd_type, &wqe->xmit_sequence.wqe_com, in lpfc_nvmet_prep_ls_wqe()
2677 wqe->xmit_sequence.xmit_len = rspsize; in lpfc_nvmet_prep_ls_wqe()
2711 union lpfc_wqe128 *wqe; in lpfc_nvmet_prep_fcp_wqe() local
2769 wqe = &nvmewqe->wqe; in lpfc_nvmet_prep_fcp_wqe()
2782 memcpy(&wqe->words[7], in lpfc_nvmet_prep_fcp_wqe()
2789 wqe->fcp_tsend.bde.tus.f.bdeFlags = BUFF_TYPE_BDE_64; in lpfc_nvmet_prep_fcp_wqe()
2790 wqe->fcp_tsend.bde.tus.f.bdeSize = sg_dma_len(sgel); in lpfc_nvmet_prep_fcp_wqe()
2791 wqe->fcp_tsend.bde.addrLow = cpu_to_le32(putPaddrLow(physaddr)); in lpfc_nvmet_prep_fcp_wqe()
2792 wqe->fcp_tsend.bde.addrHigh = in lpfc_nvmet_prep_fcp_wqe()
2796 wqe->fcp_tsend.payload_offset_len = 0; in lpfc_nvmet_prep_fcp_wqe()
2799 wqe->fcp_tsend.relative_offset = ctxp->offset; in lpfc_nvmet_prep_fcp_wqe()
2802 wqe->fcp_tsend.reserved = 0; in lpfc_nvmet_prep_fcp_wqe()
2805 bf_set(wqe_ctxt_tag, &wqe->fcp_tsend.wqe_com, in lpfc_nvmet_prep_fcp_wqe()
2807 bf_set(wqe_xri_tag, &wqe->fcp_tsend.wqe_com, in lpfc_nvmet_prep_fcp_wqe()
2813 wqe->fcp_tsend.wqe_com.abort_tag = nvmewqe->iotag; in lpfc_nvmet_prep_fcp_wqe()
2816 bf_set(wqe_reqtag, &wqe->fcp_tsend.wqe_com, nvmewqe->iotag); in lpfc_nvmet_prep_fcp_wqe()
2817 bf_set(wqe_rcvoxid, &wqe->fcp_tsend.wqe_com, ctxp->oxid); in lpfc_nvmet_prep_fcp_wqe()
2821 bf_set(wqe_xc, &wqe->fcp_tsend.wqe_com, 0); in lpfc_nvmet_prep_fcp_wqe()
2824 wqe->fcp_tsend.fcp_data_len = rsp->transfer_length; in lpfc_nvmet_prep_fcp_wqe()
2849 &wqe->fcp_tsend.wqe_com, 1); in lpfc_nvmet_prep_fcp_wqe()
2851 bf_set(wqe_wqes, &wqe->fcp_tsend.wqe_com, 1); in lpfc_nvmet_prep_fcp_wqe()
2852 bf_set(wqe_irsp, &wqe->fcp_tsend.wqe_com, 1); in lpfc_nvmet_prep_fcp_wqe()
2853 bf_set(wqe_irsplen, &wqe->fcp_tsend.wqe_com, in lpfc_nvmet_prep_fcp_wqe()
2855 memcpy(&wqe->words[16], rsp->rspaddr, in lpfc_nvmet_prep_fcp_wqe()
2862 bf_set(wqe_ar, &wqe->fcp_tsend.wqe_com, 0); in lpfc_nvmet_prep_fcp_wqe()
2868 memcpy(&wqe->words[3], in lpfc_nvmet_prep_fcp_wqe()
2873 wqe->fcp_treceive.bde.tus.f.bdeFlags = LPFC_SGE_TYPE_SKIP; in lpfc_nvmet_prep_fcp_wqe()
2874 wqe->fcp_treceive.bde.tus.f.bdeSize = 0; in lpfc_nvmet_prep_fcp_wqe()
2875 wqe->fcp_treceive.bde.addrLow = 0; in lpfc_nvmet_prep_fcp_wqe()
2876 wqe->fcp_treceive.bde.addrHigh = 0; in lpfc_nvmet_prep_fcp_wqe()
2879 wqe->fcp_treceive.relative_offset = ctxp->offset; in lpfc_nvmet_prep_fcp_wqe()
2882 bf_set(wqe_ctxt_tag, &wqe->fcp_treceive.wqe_com, in lpfc_nvmet_prep_fcp_wqe()
2884 bf_set(wqe_xri_tag, &wqe->fcp_treceive.wqe_com, in lpfc_nvmet_prep_fcp_wqe()
2890 wqe->fcp_treceive.wqe_com.abort_tag = nvmewqe->iotag; in lpfc_nvmet_prep_fcp_wqe()
2893 bf_set(wqe_reqtag, &wqe->fcp_treceive.wqe_com, nvmewqe->iotag); in lpfc_nvmet_prep_fcp_wqe()
2894 bf_set(wqe_rcvoxid, &wqe->fcp_treceive.wqe_com, ctxp->oxid); in lpfc_nvmet_prep_fcp_wqe()
2898 bf_set(wqe_xc, &wqe->fcp_treceive.wqe_com, 0); in lpfc_nvmet_prep_fcp_wqe()
2906 bf_set(wqe_pbde, &wqe->fcp_treceive.wqe_com, 0); in lpfc_nvmet_prep_fcp_wqe()
2910 wqe->fcp_tsend.fcp_data_len = rsp->transfer_length; in lpfc_nvmet_prep_fcp_wqe()
2932 memcpy(&wqe->words[4], in lpfc_nvmet_prep_fcp_wqe()
2938 wqe->fcp_trsp.bde.tus.f.bdeFlags = BUFF_TYPE_BDE_64; in lpfc_nvmet_prep_fcp_wqe()
2939 wqe->fcp_trsp.bde.tus.f.bdeSize = rsp->rsplen; in lpfc_nvmet_prep_fcp_wqe()
2940 wqe->fcp_trsp.bde.addrLow = in lpfc_nvmet_prep_fcp_wqe()
2942 wqe->fcp_trsp.bde.addrHigh = in lpfc_nvmet_prep_fcp_wqe()
2946 wqe->fcp_trsp.response_len = rsp->rsplen; in lpfc_nvmet_prep_fcp_wqe()
2949 bf_set(wqe_ctxt_tag, &wqe->fcp_trsp.wqe_com, in lpfc_nvmet_prep_fcp_wqe()
2951 bf_set(wqe_xri_tag, &wqe->fcp_trsp.wqe_com, in lpfc_nvmet_prep_fcp_wqe()
2957 wqe->fcp_trsp.wqe_com.abort_tag = nvmewqe->iotag; in lpfc_nvmet_prep_fcp_wqe()
2960 bf_set(wqe_reqtag, &wqe->fcp_trsp.wqe_com, nvmewqe->iotag); in lpfc_nvmet_prep_fcp_wqe()
2961 bf_set(wqe_rcvoxid, &wqe->fcp_trsp.wqe_com, ctxp->oxid); in lpfc_nvmet_prep_fcp_wqe()
2965 bf_set(wqe_xc, &wqe->fcp_trsp.wqe_com, 1); in lpfc_nvmet_prep_fcp_wqe()
2971 bf_set(wqe_wqes, &wqe->fcp_trsp.wqe_com, 1); in lpfc_nvmet_prep_fcp_wqe()
2972 bf_set(wqe_irsp, &wqe->fcp_trsp.wqe_com, 1); in lpfc_nvmet_prep_fcp_wqe()
2973 bf_set(wqe_irsplen, &wqe->fcp_trsp.wqe_com, in lpfc_nvmet_prep_fcp_wqe()
2975 memcpy(&wqe->words[16], rsp->rspaddr, rsp->rsplen); in lpfc_nvmet_prep_fcp_wqe()
2979 wqe->fcp_trsp.rsvd_12_15[0] = 0; in lpfc_nvmet_prep_fcp_wqe()
3015 bde = (struct ulp_bde64 *)&wqe->words[13]; in lpfc_nvmet_prep_fcp_wqe()
3274 wqe_abts = &abts_wqeq->wqe; in lpfc_nvmet_unsol_issue_abort()