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()
3893 struct sgl_handle *psgl_handle; in beiscsi_init_sgl_handle() local
3932 psgl_handle = mem_descr_sglh->mem_array[idx].virtual_address; in beiscsi_init_sgl_handle()
3937 phba->io_sgl_hndl_base[arr_index] = psgl_handle; in beiscsi_init_sgl_handle()
3943 psgl_handle; in beiscsi_init_sgl_handle()
3947 psgl_handle++; in beiscsi_init_sgl_handle()
3979 psgl_handle = phba->io_sgl_hndl_base[arr_index]; in beiscsi_init_sgl_handle()
3981 psgl_handle = phba->eh_sgl_hndl_base[arr_index - in beiscsi_init_sgl_handle()
3983 psgl_handle->pfrag = pfrag; in beiscsi_init_sgl_handle()
3987 psgl_handle->sgl_index = ulp_icd_start + arr_index++; in beiscsi_init_sgl_handle()
4228 if (io_task->psgl_handle) { in beiscsi_free_mgmt_task_handles()
4229 free_mgmt_sgl_handle(phba, io_task->psgl_handle); in beiscsi_free_mgmt_task_handles()
4230 io_task->psgl_handle = NULL; in beiscsi_free_mgmt_task_handles()
4276 if (io_task->psgl_handle) { in beiscsi_cleanup_task()
4277 free_io_sgl_handle(phba, io_task->psgl_handle); in beiscsi_cleanup_task()
4278 io_task->psgl_handle = NULL; in beiscsi_cleanup_task()
4390 io_task->psgl_handle = NULL; in beiscsi_alloc_pdu()
4394 io_task->psgl_handle = alloc_io_sgl_handle(phba); in beiscsi_alloc_pdu()
4395 if (!io_task->psgl_handle) { in beiscsi_alloc_pdu()
4419 io_task->psgl_handle = (struct sgl_handle *) in beiscsi_alloc_pdu()
4421 if (!io_task->psgl_handle) { in beiscsi_alloc_pdu()
4433 io_task->psgl_handle; in beiscsi_alloc_pdu()
4451 io_task->psgl_handle = in beiscsi_alloc_pdu()
4457 io_task->psgl_handle = alloc_mgmt_sgl_handle(phba); in beiscsi_alloc_pdu()
4458 if (!io_task->psgl_handle) { in beiscsi_alloc_pdu()
4484 (io_task->psgl_handle->sgl_index)); in beiscsi_alloc_pdu()
4491 free_io_sgl_handle(phba, io_task->psgl_handle); in beiscsi_alloc_pdu()
4494 free_mgmt_sgl_handle(phba, io_task->psgl_handle); in beiscsi_alloc_pdu()
4495 io_task->psgl_handle = NULL; in beiscsi_alloc_pdu()
4547 io_task->psgl_handle->sgl_index); in beiscsi_iotask_v2()
4607 io_task->psgl_handle->sgl_index); in beiscsi_iotask()
4652 io_task->psgl_handle->sgl_index); in beiscsi_mtask()
4670 io_task->psgl_handle->sgl_index); in beiscsi_mtask()