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()
1136 struct sgl_handle *psgl_handle; in alloc_io_sgl_handle() local
1144 psgl_handle = phba->io_sgl_hndl_base[phba-> in alloc_io_sgl_handle()
1154 psgl_handle = NULL; in alloc_io_sgl_handle()
1155 return psgl_handle; in alloc_io_sgl_handle()
1159 free_io_sgl_handle(struct beiscsi_hba *phba, struct sgl_handle *psgl_handle) in free_io_sgl_handle() argument
1177 phba->io_sgl_hndl_base[phba->io_sgl_free_index] = psgl_handle; in free_io_sgl_handle()
1247 struct sgl_handle *psgl_handle; in alloc_mgmt_sgl_handle() local
1250 psgl_handle = phba->eh_sgl_hndl_base[phba->eh_sgl_alloc_index]; in alloc_mgmt_sgl_handle()
1265 psgl_handle = NULL; in alloc_mgmt_sgl_handle()
1266 return psgl_handle; in alloc_mgmt_sgl_handle()
1270 free_mgmt_sgl_handle(struct beiscsi_hba *phba, struct sgl_handle *psgl_handle) in free_mgmt_sgl_handle() argument
1289 phba->eh_sgl_hndl_base[phba->eh_sgl_free_index] = psgl_handle; in free_mgmt_sgl_handle()
2346 psgl = (struct iscsi_sge *)io_task->psgl_handle->pfrag; in hwi_write_sgl_v2()
2435 psgl = (struct iscsi_sge *)io_task->psgl_handle->pfrag; in hwi_write_sgl()
2535 psgl = (struct iscsi_sge *)io_task->psgl_handle->pfrag; in hwi_write_buffer()
4042 struct sgl_handle *psgl_handle; in beiscsi_init_sgl_handle() local
4081 psgl_handle = mem_descr_sglh->mem_array[idx].virtual_address; in beiscsi_init_sgl_handle()
4086 phba->io_sgl_hndl_base[arr_index] = psgl_handle; in beiscsi_init_sgl_handle()
4092 psgl_handle; in beiscsi_init_sgl_handle()
4096 psgl_handle++; in beiscsi_init_sgl_handle()
4128 psgl_handle = phba->io_sgl_hndl_base[arr_index]; in beiscsi_init_sgl_handle()
4130 psgl_handle = phba->eh_sgl_hndl_base[arr_index - in beiscsi_init_sgl_handle()
4132 psgl_handle->pfrag = pfrag; in beiscsi_init_sgl_handle()
4136 psgl_handle->sgl_index = ulp_icd_start + arr_index++; in beiscsi_init_sgl_handle()
4576 if (io_task->psgl_handle) { in beiscsi_free_mgmt_task_handles()
4579 io_task->psgl_handle); in beiscsi_free_mgmt_task_handles()
4580 io_task->psgl_handle = NULL; in beiscsi_free_mgmt_task_handles()
4624 if (io_task->psgl_handle) { in beiscsi_cleanup_task()
4626 free_io_sgl_handle(phba, io_task->psgl_handle); in beiscsi_cleanup_task()
4628 io_task->psgl_handle = NULL; in beiscsi_cleanup_task()
4721 io_task->psgl_handle = NULL; in beiscsi_alloc_pdu()
4726 io_task->psgl_handle = alloc_io_sgl_handle(phba); in beiscsi_alloc_pdu()
4728 if (!io_task->psgl_handle) { in beiscsi_alloc_pdu()
4752 io_task->psgl_handle = (struct sgl_handle *) in beiscsi_alloc_pdu()
4755 if (!io_task->psgl_handle) { in beiscsi_alloc_pdu()
4768 io_task->psgl_handle; in beiscsi_alloc_pdu()
4786 io_task->psgl_handle = in beiscsi_alloc_pdu()
4793 io_task->psgl_handle = alloc_mgmt_sgl_handle(phba); in beiscsi_alloc_pdu()
4795 if (!io_task->psgl_handle) { in beiscsi_alloc_pdu()
4821 (io_task->psgl_handle->sgl_index)); in beiscsi_alloc_pdu()
4829 free_io_sgl_handle(phba, io_task->psgl_handle); in beiscsi_alloc_pdu()
4834 free_mgmt_sgl_handle(phba, io_task->psgl_handle); in beiscsi_alloc_pdu()
4835 io_task->psgl_handle = NULL; in beiscsi_alloc_pdu()
4889 io_task->psgl_handle->sgl_index); in beiscsi_iotask_v2()
4945 io_task->psgl_handle->sgl_index); in beiscsi_iotask()
4984 io_task->psgl_handle->sgl_index); in beiscsi_mtask()
4996 io_task->psgl_handle->sgl_index); in beiscsi_mtask()