Lines Matching refs:sglq_entry

1088 	struct lpfc_sglq *sglq_entry = NULL;  in lpfc_hba_down_post_s4()  local
1106 list_for_each_entry(sglq_entry, in lpfc_hba_down_post_s4()
1108 sglq_entry->state = SGL_FREED; in lpfc_hba_down_post_s4()
4062 struct lpfc_sglq *sglq_entry = NULL, *sglq_entry_next = NULL; in lpfc_sli4_els_sgl_update() local
4081 sglq_entry = kzalloc(sizeof(struct lpfc_sglq), in lpfc_sli4_els_sgl_update()
4083 if (sglq_entry == NULL) { in lpfc_sli4_els_sgl_update()
4091 sglq_entry->buff_type = GEN_BUFF_TYPE; in lpfc_sli4_els_sgl_update()
4092 sglq_entry->virt = lpfc_mbuf_alloc(phba, 0, in lpfc_sli4_els_sgl_update()
4093 &sglq_entry->phys); in lpfc_sli4_els_sgl_update()
4094 if (sglq_entry->virt == NULL) { in lpfc_sli4_els_sgl_update()
4095 kfree(sglq_entry); in lpfc_sli4_els_sgl_update()
4103 sglq_entry->sgl = sglq_entry->virt; in lpfc_sli4_els_sgl_update()
4104 memset(sglq_entry->sgl, 0, LPFC_BPL_SIZE); in lpfc_sli4_els_sgl_update()
4105 sglq_entry->state = SGL_FREED; in lpfc_sli4_els_sgl_update()
4106 list_add_tail(&sglq_entry->list, &els_sgl_list); in lpfc_sli4_els_sgl_update()
4125 sglq_entry, struct lpfc_sglq, list); in lpfc_sli4_els_sgl_update()
4126 if (sglq_entry) { in lpfc_sli4_els_sgl_update()
4127 __lpfc_mbuf_free(phba, sglq_entry->virt, in lpfc_sli4_els_sgl_update()
4128 sglq_entry->phys); in lpfc_sli4_els_sgl_update()
4129 kfree(sglq_entry); in lpfc_sli4_els_sgl_update()
4142 sglq_entry = NULL; in lpfc_sli4_els_sgl_update()
4144 list_for_each_entry_safe(sglq_entry, sglq_entry_next, in lpfc_sli4_els_sgl_update()
4155 sglq_entry->sli4_lxritag = lxri; in lpfc_sli4_els_sgl_update()
4156 sglq_entry->sli4_xritag = phba->sli4_hba.xri_ids[lxri]; in lpfc_sli4_els_sgl_update()
4180 struct lpfc_sglq *sglq_entry = NULL, *sglq_entry_next = NULL; in lpfc_sli4_nvmet_sgl_update() local
4201 sglq_entry = kzalloc(sizeof(struct lpfc_sglq), in lpfc_sli4_nvmet_sgl_update()
4203 if (sglq_entry == NULL) { in lpfc_sli4_nvmet_sgl_update()
4211 sglq_entry->buff_type = NVMET_BUFF_TYPE; in lpfc_sli4_nvmet_sgl_update()
4212 sglq_entry->virt = lpfc_nvmet_buf_alloc(phba, 0, in lpfc_sli4_nvmet_sgl_update()
4213 &sglq_entry->phys); in lpfc_sli4_nvmet_sgl_update()
4214 if (sglq_entry->virt == NULL) { in lpfc_sli4_nvmet_sgl_update()
4215 kfree(sglq_entry); in lpfc_sli4_nvmet_sgl_update()
4223 sglq_entry->sgl = sglq_entry->virt; in lpfc_sli4_nvmet_sgl_update()
4224 memset(sglq_entry->sgl, 0, in lpfc_sli4_nvmet_sgl_update()
4226 sglq_entry->state = SGL_FREED; in lpfc_sli4_nvmet_sgl_update()
4227 list_add_tail(&sglq_entry->list, &nvmet_sgl_list); in lpfc_sli4_nvmet_sgl_update()
4249 sglq_entry, struct lpfc_sglq, list); in lpfc_sli4_nvmet_sgl_update()
4250 if (sglq_entry) { in lpfc_sli4_nvmet_sgl_update()
4251 lpfc_nvmet_buf_free(phba, sglq_entry->virt, in lpfc_sli4_nvmet_sgl_update()
4252 sglq_entry->phys); in lpfc_sli4_nvmet_sgl_update()
4253 kfree(sglq_entry); in lpfc_sli4_nvmet_sgl_update()
4267 sglq_entry = NULL; in lpfc_sli4_nvmet_sgl_update()
4269 list_for_each_entry_safe(sglq_entry, sglq_entry_next, in lpfc_sli4_nvmet_sgl_update()
4280 sglq_entry->sli4_lxritag = lxri; in lpfc_sli4_nvmet_sgl_update()
4281 sglq_entry->sli4_xritag = phba->sli4_hba.xri_ids[lxri]; in lpfc_sli4_nvmet_sgl_update()
8733 struct lpfc_sglq *sglq_entry = NULL, *sglq_next = NULL; in lpfc_free_sgl_list() local
8735 list_for_each_entry_safe(sglq_entry, sglq_next, sglq_list, list) { in lpfc_free_sgl_list()
8736 list_del(&sglq_entry->list); in lpfc_free_sgl_list()
8737 lpfc_mbuf_free(phba, sglq_entry->virt, sglq_entry->phys); in lpfc_free_sgl_list()
8738 kfree(sglq_entry); in lpfc_free_sgl_list()
8771 struct lpfc_sglq *sglq_entry = NULL, *sglq_next = NULL; in lpfc_free_nvmet_sgl_list() local
8782 list_for_each_entry_safe(sglq_entry, sglq_next, &sglq_list, list) { in lpfc_free_nvmet_sgl_list()
8783 list_del(&sglq_entry->list); in lpfc_free_nvmet_sgl_list()
8784 lpfc_nvmet_buf_free(phba, sglq_entry->virt, sglq_entry->phys); in lpfc_free_nvmet_sgl_list()
8785 kfree(sglq_entry); in lpfc_free_nvmet_sgl_list()