Lines Matching refs:psgl_handle

263 	inv_tbl->icd = aborted_io_task->psgl_handle->sgl_index;  in beiscsi_eh_abort()
340 inv_tbl->icd = abrt_io_task->psgl_handle->sgl_index; in beiscsi_eh_device_reset()
1148 struct sgl_handle *psgl_handle; in alloc_io_sgl_handle() local
1156 psgl_handle = phba->io_sgl_hndl_base[phba-> in alloc_io_sgl_handle()
1166 psgl_handle = NULL; in alloc_io_sgl_handle()
1167 return psgl_handle; in alloc_io_sgl_handle()
1171 free_io_sgl_handle(struct beiscsi_hba *phba, struct sgl_handle *psgl_handle) in free_io_sgl_handle() argument
1189 phba->io_sgl_hndl_base[phba->io_sgl_free_index] = psgl_handle; in free_io_sgl_handle()
1261 struct sgl_handle *psgl_handle; in alloc_mgmt_sgl_handle() local
1264 psgl_handle = phba->eh_sgl_hndl_base[phba->eh_sgl_alloc_index]; in alloc_mgmt_sgl_handle()
1279 psgl_handle = NULL; in alloc_mgmt_sgl_handle()
1280 return psgl_handle; in alloc_mgmt_sgl_handle()
1284 free_mgmt_sgl_handle(struct beiscsi_hba *phba, struct sgl_handle *psgl_handle) in free_mgmt_sgl_handle() argument
1303 phba->eh_sgl_hndl_base[phba->eh_sgl_free_index] = psgl_handle; in free_mgmt_sgl_handle()
2367 psgl = (struct iscsi_sge *)io_task->psgl_handle->pfrag; in hwi_write_sgl_v2()
2456 psgl = (struct iscsi_sge *)io_task->psgl_handle->pfrag; in hwi_write_sgl()
2556 psgl = (struct iscsi_sge *)io_task->psgl_handle->pfrag; in hwi_write_buffer()
4069 struct sgl_handle *psgl_handle; in beiscsi_init_sgl_handle() local
4108 psgl_handle = mem_descr_sglh->mem_array[idx].virtual_address; in beiscsi_init_sgl_handle()
4113 phba->io_sgl_hndl_base[arr_index] = psgl_handle; in beiscsi_init_sgl_handle()
4119 psgl_handle; in beiscsi_init_sgl_handle()
4123 psgl_handle++; in beiscsi_init_sgl_handle()
4155 psgl_handle = phba->io_sgl_hndl_base[arr_index]; in beiscsi_init_sgl_handle()
4157 psgl_handle = phba->eh_sgl_hndl_base[arr_index - in beiscsi_init_sgl_handle()
4159 psgl_handle->pfrag = pfrag; in beiscsi_init_sgl_handle()
4163 psgl_handle->sgl_index = ulp_icd_start + arr_index++; in beiscsi_init_sgl_handle()
4612 if (io_task->psgl_handle) { in beiscsi_free_mgmt_task_handles()
4615 io_task->psgl_handle); in beiscsi_free_mgmt_task_handles()
4616 io_task->psgl_handle = NULL; in beiscsi_free_mgmt_task_handles()
4662 if (io_task->psgl_handle) { in beiscsi_cleanup_task()
4664 free_io_sgl_handle(phba, io_task->psgl_handle); in beiscsi_cleanup_task()
4666 io_task->psgl_handle = NULL; in beiscsi_cleanup_task()
4763 io_task->psgl_handle = NULL; in beiscsi_alloc_pdu()
4768 io_task->psgl_handle = alloc_io_sgl_handle(phba); in beiscsi_alloc_pdu()
4770 if (!io_task->psgl_handle) { in beiscsi_alloc_pdu()
4795 io_task->psgl_handle = (struct sgl_handle *) in beiscsi_alloc_pdu()
4798 if (!io_task->psgl_handle) { in beiscsi_alloc_pdu()
4811 io_task->psgl_handle; in beiscsi_alloc_pdu()
4830 io_task->psgl_handle = in beiscsi_alloc_pdu()
4837 io_task->psgl_handle = alloc_mgmt_sgl_handle(phba); in beiscsi_alloc_pdu()
4839 if (!io_task->psgl_handle) { in beiscsi_alloc_pdu()
4866 (io_task->psgl_handle->sgl_index)); in beiscsi_alloc_pdu()
4874 free_io_sgl_handle(phba, io_task->psgl_handle); in beiscsi_alloc_pdu()
4879 free_mgmt_sgl_handle(phba, io_task->psgl_handle); in beiscsi_alloc_pdu()
4880 io_task->psgl_handle = NULL; in beiscsi_alloc_pdu()
4934 io_task->psgl_handle->sgl_index); in beiscsi_iotask_v2()
4995 io_task->psgl_handle->sgl_index); in beiscsi_iotask()
5040 io_task->psgl_handle->sgl_index); in beiscsi_mtask()
5058 io_task->psgl_handle->sgl_index); in beiscsi_mtask()