Lines Matching refs:psgl_handle

262 	inv_tbl.icd = abrt_io_task->psgl_handle->sgl_index;  in beiscsi_eh_abort()
353 inv_tbl->tbl[nents].icd = io_task->psgl_handle->sgl_index; in beiscsi_eh_device_reset()
911 struct sgl_handle *psgl_handle; in alloc_io_sgl_handle() local
921 psgl_handle = phba->io_sgl_hndl_base[phba-> in alloc_io_sgl_handle()
931 psgl_handle = NULL; in alloc_io_sgl_handle()
933 return psgl_handle; in alloc_io_sgl_handle()
937 free_io_sgl_handle(struct beiscsi_hba *phba, struct sgl_handle *psgl_handle) in free_io_sgl_handle() argument
958 phba->io_sgl_hndl_base[phba->io_sgl_free_index] = psgl_handle; in free_io_sgl_handle()
1058 struct sgl_handle *psgl_handle; in alloc_mgmt_sgl_handle() local
1063 psgl_handle = phba->eh_sgl_hndl_base[phba->eh_sgl_alloc_index]; in alloc_mgmt_sgl_handle()
1078 psgl_handle = NULL; in alloc_mgmt_sgl_handle()
1080 return psgl_handle; in alloc_mgmt_sgl_handle()
1084 free_mgmt_sgl_handle(struct beiscsi_hba *phba, struct sgl_handle *psgl_handle) in free_mgmt_sgl_handle() argument
1106 phba->eh_sgl_hndl_base[phba->eh_sgl_free_index] = psgl_handle; in free_mgmt_sgl_handle()
2137 psgl = (struct iscsi_sge *)io_task->psgl_handle->pfrag; in hwi_write_sgl_v2()
2226 psgl = (struct iscsi_sge *)io_task->psgl_handle->pfrag; in hwi_write_sgl()
2329 psgl = (struct iscsi_sge *)io_task->psgl_handle->pfrag; in hwi_write_buffer()
3894 struct sgl_handle *psgl_handle; in beiscsi_init_sgl_handle() local
3933 psgl_handle = mem_descr_sglh->mem_array[idx].virtual_address; in beiscsi_init_sgl_handle()
3938 phba->io_sgl_hndl_base[arr_index] = psgl_handle; in beiscsi_init_sgl_handle()
3944 psgl_handle; in beiscsi_init_sgl_handle()
3948 psgl_handle++; in beiscsi_init_sgl_handle()
3980 psgl_handle = phba->io_sgl_hndl_base[arr_index]; in beiscsi_init_sgl_handle()
3982 psgl_handle = phba->eh_sgl_hndl_base[arr_index - in beiscsi_init_sgl_handle()
3984 psgl_handle->pfrag = pfrag; in beiscsi_init_sgl_handle()
3988 psgl_handle->sgl_index = ulp_icd_start + arr_index++; in beiscsi_init_sgl_handle()
4229 if (io_task->psgl_handle) { in beiscsi_free_mgmt_task_handles()
4230 free_mgmt_sgl_handle(phba, io_task->psgl_handle); in beiscsi_free_mgmt_task_handles()
4231 io_task->psgl_handle = NULL; in beiscsi_free_mgmt_task_handles()
4277 if (io_task->psgl_handle) { in beiscsi_cleanup_task()
4278 free_io_sgl_handle(phba, io_task->psgl_handle); in beiscsi_cleanup_task()
4279 io_task->psgl_handle = NULL; in beiscsi_cleanup_task()
4391 io_task->psgl_handle = NULL; in beiscsi_alloc_pdu()
4395 io_task->psgl_handle = alloc_io_sgl_handle(phba); in beiscsi_alloc_pdu()
4396 if (!io_task->psgl_handle) { in beiscsi_alloc_pdu()
4420 io_task->psgl_handle = (struct sgl_handle *) in beiscsi_alloc_pdu()
4422 if (!io_task->psgl_handle) { in beiscsi_alloc_pdu()
4434 io_task->psgl_handle; in beiscsi_alloc_pdu()
4452 io_task->psgl_handle = in beiscsi_alloc_pdu()
4458 io_task->psgl_handle = alloc_mgmt_sgl_handle(phba); in beiscsi_alloc_pdu()
4459 if (!io_task->psgl_handle) { in beiscsi_alloc_pdu()
4485 (io_task->psgl_handle->sgl_index)); in beiscsi_alloc_pdu()
4492 free_io_sgl_handle(phba, io_task->psgl_handle); in beiscsi_alloc_pdu()
4495 free_mgmt_sgl_handle(phba, io_task->psgl_handle); in beiscsi_alloc_pdu()
4496 io_task->psgl_handle = NULL; in beiscsi_alloc_pdu()
4548 io_task->psgl_handle->sgl_index); in beiscsi_iotask_v2()
4608 io_task->psgl_handle->sgl_index); in beiscsi_iotask()
4653 io_task->psgl_handle->sgl_index); in beiscsi_mtask()
4671 io_task->psgl_handle->sgl_index); in beiscsi_mtask()