Lines Matching refs:mlist
135 lpfc_free_bsg_buffers(struct lpfc_hba *phba, struct lpfc_dmabuf *mlist) in lpfc_free_bsg_buffers() argument
139 if (mlist) { in lpfc_free_bsg_buffers()
140 list_for_each_entry_safe(mlast, next_mlast, &mlist->list, in lpfc_free_bsg_buffers()
146 lpfc_mbuf_free(phba, mlist->virt, mlist->phys); in lpfc_free_bsg_buffers()
147 kfree(mlist); in lpfc_free_bsg_buffers()
157 struct lpfc_dmabuf *mlist = NULL; in lpfc_alloc_bsg_buffers() local
174 if (mlist) in lpfc_alloc_bsg_buffers()
175 lpfc_free_bsg_buffers(phba, mlist); in lpfc_alloc_bsg_buffers()
184 if (mlist) in lpfc_alloc_bsg_buffers()
185 lpfc_free_bsg_buffers(phba, mlist); in lpfc_alloc_bsg_buffers()
190 if (!mlist) in lpfc_alloc_bsg_buffers()
191 mlist = mp; in lpfc_alloc_bsg_buffers()
193 list_add_tail(&mp->list, &mlist->list); in lpfc_alloc_bsg_buffers()
209 return mlist; in lpfc_alloc_bsg_buffers()
866 diag_cmd_data_free(struct lpfc_hba *phba, struct lpfc_dmabufext *mlist) in diag_cmd_data_free() argument
872 if ((!mlist) || (!lpfc_is_link_up(phba) && in diag_cmd_data_free()
878 list_add_tail(&head, &mlist->dma.list); in diag_cmd_data_free()
2763 struct lpfc_dmabufext *mlist = NULL; in diag_cmd_data_alloc() local
2785 if (mlist) in diag_cmd_data_alloc()
2786 list_add_tail(&dmp->dma.list, &mlist->dma.list); in diag_cmd_data_alloc()
2788 mlist = dmp; in diag_cmd_data_alloc()
2823 if (mlist) { in diag_cmd_data_alloc()
2824 mlist->flag = i; in diag_cmd_data_alloc()
2825 return mlist; in diag_cmd_data_alloc()
2828 diag_cmd_data_free(phba, mlist); in diag_cmd_data_alloc()