Lines Matching refs:mlist
130 lpfc_free_bsg_buffers(struct lpfc_hba *phba, struct lpfc_dmabuf *mlist) in lpfc_free_bsg_buffers() argument
134 if (mlist) { in lpfc_free_bsg_buffers()
135 list_for_each_entry_safe(mlast, next_mlast, &mlist->list, in lpfc_free_bsg_buffers()
141 lpfc_mbuf_free(phba, mlist->virt, mlist->phys); in lpfc_free_bsg_buffers()
142 kfree(mlist); in lpfc_free_bsg_buffers()
152 struct lpfc_dmabuf *mlist = NULL; in lpfc_alloc_bsg_buffers() local
169 if (mlist) in lpfc_alloc_bsg_buffers()
170 lpfc_free_bsg_buffers(phba, mlist); in lpfc_alloc_bsg_buffers()
179 if (mlist) in lpfc_alloc_bsg_buffers()
180 lpfc_free_bsg_buffers(phba, mlist); in lpfc_alloc_bsg_buffers()
185 if (!mlist) in lpfc_alloc_bsg_buffers()
186 mlist = mp; in lpfc_alloc_bsg_buffers()
188 list_add_tail(&mp->list, &mlist->list); in lpfc_alloc_bsg_buffers()
204 return mlist; in lpfc_alloc_bsg_buffers()
855 diag_cmd_data_free(struct lpfc_hba *phba, struct lpfc_dmabufext *mlist) in diag_cmd_data_free() argument
861 if ((!mlist) || (!lpfc_is_link_up(phba) && in diag_cmd_data_free()
867 list_add_tail(&head, &mlist->dma.list); in diag_cmd_data_free()
2804 struct lpfc_dmabufext *mlist = NULL; in diag_cmd_data_alloc() local
2826 if (mlist) in diag_cmd_data_alloc()
2827 list_add_tail(&dmp->dma.list, &mlist->dma.list); in diag_cmd_data_alloc()
2829 mlist = dmp; in diag_cmd_data_alloc()
2861 if (mlist) { in diag_cmd_data_alloc()
2862 mlist->flag = i; in diag_cmd_data_alloc()
2863 return mlist; in diag_cmd_data_alloc()
2866 diag_cmd_data_free(phba, mlist); in diag_cmd_data_alloc()