Lines Matching refs:piocbq
1128 __lpfc_sli_get_els_sglq(struct lpfc_hba *phba, struct lpfc_iocbq *piocbq) in __lpfc_sli_get_els_sglq() argument
1138 if (piocbq->iocb_flag & LPFC_IO_NVME_LS) in __lpfc_sli_get_els_sglq()
1145 if (piocbq->iocb_flag & LPFC_IO_FCP) { in __lpfc_sli_get_els_sglq()
1146 lpfc_cmd = (struct lpfc_io_buf *) piocbq->context1; in __lpfc_sli_get_els_sglq()
1148 } else if ((piocbq->iocb.ulpCommand == CMD_GEN_REQUEST64_CR) && in __lpfc_sli_get_els_sglq()
1149 !(piocbq->iocb_flag & LPFC_IO_LIBDFC)) { in __lpfc_sli_get_els_sglq()
1150 ndlp = piocbq->context_un.ndlp; in __lpfc_sli_get_els_sglq()
1151 } else if (piocbq->iocb_flag & LPFC_IO_LIBDFC) { in __lpfc_sli_get_els_sglq()
1152 if (piocbq->iocb_flag & LPFC_IO_LOOPBACK) in __lpfc_sli_get_els_sglq()
1155 ndlp = piocbq->context_un.ndlp; in __lpfc_sli_get_els_sglq()
1157 ndlp = piocbq->context1; in __lpfc_sli_get_els_sglq()
1203 __lpfc_sli_get_nvmet_sglq(struct lpfc_hba *phba, struct lpfc_iocbq *piocbq) in __lpfc_sli_get_nvmet_sglq() argument
9405 lpfc_sli4_bpl2sgl(struct lpfc_hba *phba, struct lpfc_iocbq *piocbq, in lpfc_sli4_bpl2sgl() argument
9419 if (!piocbq || !sglq) in lpfc_sli4_bpl2sgl()
9423 icmd = &piocbq->iocb; in lpfc_sli4_bpl2sgl()
9433 if (piocbq->context3) in lpfc_sli4_bpl2sgl()
9434 dmabuf = (struct lpfc_dmabuf *)piocbq->context3; in lpfc_sli4_bpl2sgl()
9461 if (piocbq->iocb.ulpCommand == CMD_GEN_REQUEST64_CR) { in lpfc_sli4_bpl2sgl()
12007 struct lpfc_iocbq *piocbq, uint32_t flag) in lpfc_chk_iocb_flg() argument
12013 ret = piocbq->iocb_flag & flag; in lpfc_chk_iocb_flg()
19955 struct lpfc_iocbq *piocbq = NULL; in lpfc_drain_txq() local
19980 list_for_each_entry(piocbq, &pring->txq, list) { in lpfc_drain_txq()
19992 piocbq = lpfc_sli_ringtx_get(phba, pring); in lpfc_drain_txq()
19993 if (!piocbq) { in lpfc_drain_txq()
20000 sglq = __lpfc_sli_get_els_sglq(phba, piocbq); in lpfc_drain_txq()
20002 __lpfc_sli_ringtx_put(phba, pring, piocbq); in lpfc_drain_txq()
20011 piocbq->sli4_lxritag = sglq->sli4_lxritag; in lpfc_drain_txq()
20012 piocbq->sli4_xritag = sglq->sli4_xritag; in lpfc_drain_txq()
20013 if (NO_XRI == lpfc_sli4_bpl2sgl(phba, piocbq, sglq)) in lpfc_drain_txq()
20015 else if (lpfc_sli4_iocb2wqe(phba, piocbq, &wqe)) in lpfc_drain_txq()
20020 lpfc_sli_ringtxcmpl_put(phba, pring, piocbq); in lpfc_drain_txq()
20028 piocbq->iotag, piocbq->sli4_xritag); in lpfc_drain_txq()
20029 list_add_tail(&piocbq->list, &completions); in lpfc_drain_txq()