Lines Matching refs:lpfc_ncmd

17858 	struct lpfc_io_buf *lpfc_ncmd;  in lpfc_sli4_post_io_sgl_block()  local
17909 list_for_each_entry(lpfc_ncmd, nblist, list) { in lpfc_sli4_post_io_sgl_block()
17912 cpu_to_le32(putPaddrLow(lpfc_ncmd->dma_phys_sgl)); in lpfc_sli4_post_io_sgl_block()
17914 cpu_to_le32(putPaddrHigh(lpfc_ncmd->dma_phys_sgl)); in lpfc_sli4_post_io_sgl_block()
17916 pdma_phys_bpl1 = lpfc_ncmd->dma_phys_sgl + in lpfc_sli4_post_io_sgl_block()
17926 xritag_start = lpfc_ncmd->cur_iocbq.sli4_xritag; in lpfc_sli4_post_io_sgl_block()
17977 struct lpfc_io_buf *lpfc_ncmd, *lpfc_ncmd_next; in lpfc_sli4_post_io_sgl_list() local
17992 list_for_each_entry_safe(lpfc_ncmd, lpfc_ncmd_next, post_nblist, list) { in lpfc_sli4_post_io_sgl_list()
17993 list_del_init(&lpfc_ncmd->list); in lpfc_sli4_post_io_sgl_list()
17996 (lpfc_ncmd->cur_iocbq.sli4_xritag != last_xritag + 1)) { in lpfc_sli4_post_io_sgl_list()
18001 list_add_tail(&lpfc_ncmd->list, &prep_nblist); in lpfc_sli4_post_io_sgl_list()
18005 list_add_tail(&lpfc_ncmd->list, &prep_nblist); in lpfc_sli4_post_io_sgl_list()
18014 last_xritag = lpfc_ncmd->cur_iocbq.sli4_xritag; in lpfc_sli4_post_io_sgl_list()
18026 lpfc_ncmd->dma_phys_sgl + in lpfc_sli4_post_io_sgl_list()
18030 cur_xritag = lpfc_ncmd->cur_iocbq.sli4_xritag; in lpfc_sli4_post_io_sgl_list()
18032 phba, lpfc_ncmd->dma_phys_sgl, in lpfc_sli4_post_io_sgl_list()
18036 lpfc_ncmd->flags |= in lpfc_sli4_post_io_sgl_list()
18040 lpfc_ncmd->flags &= in lpfc_sli4_post_io_sgl_list()
18042 lpfc_ncmd->status = IOSTAT_SUCCESS; in lpfc_sli4_post_io_sgl_list()
18046 list_add_tail(&lpfc_ncmd->list, &nvme_nblist); in lpfc_sli4_post_io_sgl_list()
18067 list_remove_head(&blck_nblist, lpfc_ncmd, in lpfc_sli4_post_io_sgl_list()
18071 lpfc_ncmd->flags |= LPFC_SBUF_NOT_POSTED; in lpfc_sli4_post_io_sgl_list()
18074 lpfc_ncmd->flags &= ~LPFC_SBUF_NOT_POSTED; in lpfc_sli4_post_io_sgl_list()
18075 lpfc_ncmd->status = IOSTAT_SUCCESS; in lpfc_sli4_post_io_sgl_list()
18078 list_add_tail(&lpfc_ncmd->list, &nvme_nblist); in lpfc_sli4_post_io_sgl_list()
21280 struct lpfc_io_buf *lpfc_ncmd; in lpfc_move_xri_pvt_to_pbl() local
21301 list_for_each_entry_safe(lpfc_ncmd, lpfc_ncmd_next, in lpfc_move_xri_pvt_to_pbl()
21303 list_move_tail(&lpfc_ncmd->list, &tmp_list); in lpfc_move_xri_pvt_to_pbl()
21350 struct lpfc_io_buf *lpfc_ncmd; in _lpfc_move_xri_pbl_to_pvt() local
21360 list_for_each_entry_safe(lpfc_ncmd, in _lpfc_move_xri_pbl_to_pvt()
21364 list_move_tail(&lpfc_ncmd->list, in _lpfc_move_xri_pbl_to_pvt()
21490 void lpfc_release_io_buf(struct lpfc_hba *phba, struct lpfc_io_buf *lpfc_ncmd, in lpfc_release_io_buf() argument
21503 lpfc_ncmd->nvmeCmd = NULL; in lpfc_release_io_buf()
21504 lpfc_ncmd->cur_iocbq.cmd_cmpl = NULL; in lpfc_release_io_buf()
21507 !list_empty(&lpfc_ncmd->dma_sgl_xtra_list)) in lpfc_release_io_buf()
21508 lpfc_put_sgl_per_hdwq(phba, lpfc_ncmd); in lpfc_release_io_buf()
21510 if (!list_empty(&lpfc_ncmd->dma_cmd_rsp_list)) in lpfc_release_io_buf()
21511 lpfc_put_cmd_rsp_buf_per_hdwq(phba, lpfc_ncmd); in lpfc_release_io_buf()
21514 if (lpfc_ncmd->expedite) { in lpfc_release_io_buf()
21518 list_add_tail(&lpfc_ncmd->list, &epd_pool->list); in lpfc_release_io_buf()
21556 list_add_tail(&lpfc_ncmd->list, in lpfc_release_io_buf()
21563 list_add_tail(&lpfc_ncmd->list, in lpfc_release_io_buf()
21571 list_add_tail(&lpfc_ncmd->list, in lpfc_release_io_buf()
21598 struct lpfc_io_buf *lpfc_ncmd; in lpfc_get_io_buf_from_private_pool() local
21603 list_for_each_entry_safe(lpfc_ncmd, lpfc_ncmd_next, in lpfc_get_io_buf_from_private_pool()
21606 phba, ndlp, lpfc_ncmd->cur_iocbq.sli4_lxritag)) in lpfc_get_io_buf_from_private_pool()
21608 list_del(&lpfc_ncmd->list); in lpfc_get_io_buf_from_private_pool()
21611 return lpfc_ncmd; in lpfc_get_io_buf_from_private_pool()
21631 struct lpfc_io_buf *lpfc_ncmd; in lpfc_get_io_buf_from_expedite_pool() local
21637 lpfc_ncmd = NULL; in lpfc_get_io_buf_from_expedite_pool()
21641 list_for_each_entry_safe(lpfc_ncmd, lpfc_ncmd_next, in lpfc_get_io_buf_from_expedite_pool()
21643 list_del(&lpfc_ncmd->list); in lpfc_get_io_buf_from_expedite_pool()
21650 return lpfc_ncmd; in lpfc_get_io_buf_from_expedite_pool()
21684 struct lpfc_io_buf *lpfc_ncmd; in lpfc_get_io_buf_from_multixri_pools() local
21687 lpfc_ncmd = NULL; in lpfc_get_io_buf_from_multixri_pools()
21692 return lpfc_ncmd; in lpfc_get_io_buf_from_multixri_pools()
21699 return lpfc_ncmd; in lpfc_get_io_buf_from_multixri_pools()
21706 return lpfc_ncmd; in lpfc_get_io_buf_from_multixri_pools()
21715 lpfc_ncmd = lpfc_get_io_buf_from_private_pool(phba, qp, pvt_pool, ndlp); in lpfc_get_io_buf_from_multixri_pools()
21717 if (lpfc_ncmd) { in lpfc_get_io_buf_from_multixri_pools()
21718 lpfc_ncmd->hdwq = qp; in lpfc_get_io_buf_from_multixri_pools()
21719 lpfc_ncmd->hdwq_no = hwqid; in lpfc_get_io_buf_from_multixri_pools()
21724 lpfc_ncmd = lpfc_get_io_buf_from_expedite_pool(phba); in lpfc_get_io_buf_from_multixri_pools()
21727 return lpfc_ncmd; in lpfc_get_io_buf_from_multixri_pools()