Lines Matching refs:mlist

139 lpfc_free_bsg_buffers(struct lpfc_hba *phba, struct lpfc_dmabuf *mlist)  in lpfc_free_bsg_buffers()  argument
143 if (mlist) { in lpfc_free_bsg_buffers()
144 list_for_each_entry_safe(mlast, next_mlast, &mlist->list, in lpfc_free_bsg_buffers()
150 lpfc_mbuf_free(phba, mlist->virt, mlist->phys); in lpfc_free_bsg_buffers()
151 kfree(mlist); in lpfc_free_bsg_buffers()
161 struct lpfc_dmabuf *mlist = NULL; in lpfc_alloc_bsg_buffers() local
178 if (mlist) in lpfc_alloc_bsg_buffers()
179 lpfc_free_bsg_buffers(phba, mlist); in lpfc_alloc_bsg_buffers()
188 if (mlist) in lpfc_alloc_bsg_buffers()
189 lpfc_free_bsg_buffers(phba, mlist); in lpfc_alloc_bsg_buffers()
194 if (!mlist) in lpfc_alloc_bsg_buffers()
195 mlist = mp; in lpfc_alloc_bsg_buffers()
197 list_add_tail(&mp->list, &mlist->list); in lpfc_alloc_bsg_buffers()
213 return mlist; in lpfc_alloc_bsg_buffers()
879 diag_cmd_data_free(struct lpfc_hba *phba, struct lpfc_dmabufext *mlist) in diag_cmd_data_free() argument
885 if ((!mlist) || (!lpfc_is_link_up(phba) && in diag_cmd_data_free()
891 list_add_tail(&head, &mlist->dma.list); in diag_cmd_data_free()
2876 struct lpfc_dmabufext *mlist = NULL; in diag_cmd_data_alloc() local
2898 if (mlist) in diag_cmd_data_alloc()
2899 list_add_tail(&dmp->dma.list, &mlist->dma.list); in diag_cmd_data_alloc()
2901 mlist = dmp; in diag_cmd_data_alloc()
2933 if (mlist) { in diag_cmd_data_alloc()
2934 mlist->flag = i; in diag_cmd_data_alloc()
2935 return mlist; in diag_cmd_data_alloc()
2938 diag_cmd_data_free(phba, mlist); in diag_cmd_data_alloc()