Lines Matching refs:psgl_handle

253 	inv_tbl.icd = abrt_io_task->psgl_handle->sgl_index;  in beiscsi_eh_abort()
336 inv_tbl->tbl[nents].icd = io_task->psgl_handle->sgl_index; in beiscsi_eh_device_reset()
894 struct sgl_handle *psgl_handle; in alloc_io_sgl_handle() local
904 psgl_handle = phba->io_sgl_hndl_base[phba-> in alloc_io_sgl_handle()
914 psgl_handle = NULL; in alloc_io_sgl_handle()
916 return psgl_handle; in alloc_io_sgl_handle()
920 free_io_sgl_handle(struct beiscsi_hba *phba, struct sgl_handle *psgl_handle) in free_io_sgl_handle() argument
941 phba->io_sgl_hndl_base[phba->io_sgl_free_index] = psgl_handle; in free_io_sgl_handle()
1041 struct sgl_handle *psgl_handle; in alloc_mgmt_sgl_handle() local
1046 psgl_handle = phba->eh_sgl_hndl_base[phba->eh_sgl_alloc_index]; in alloc_mgmt_sgl_handle()
1061 psgl_handle = NULL; in alloc_mgmt_sgl_handle()
1063 return psgl_handle; in alloc_mgmt_sgl_handle()
1067 free_mgmt_sgl_handle(struct beiscsi_hba *phba, struct sgl_handle *psgl_handle) in free_mgmt_sgl_handle() argument
1089 phba->eh_sgl_hndl_base[phba->eh_sgl_free_index] = psgl_handle; in free_mgmt_sgl_handle()
2121 psgl = (struct iscsi_sge *)io_task->psgl_handle->pfrag; in hwi_write_sgl_v2()
2210 psgl = (struct iscsi_sge *)io_task->psgl_handle->pfrag; in hwi_write_sgl()
2313 psgl = (struct iscsi_sge *)io_task->psgl_handle->pfrag; in hwi_write_buffer()
3883 struct sgl_handle *psgl_handle; in beiscsi_init_sgl_handle() local
3922 psgl_handle = mem_descr_sglh->mem_array[idx].virtual_address; in beiscsi_init_sgl_handle()
3927 phba->io_sgl_hndl_base[arr_index] = psgl_handle; in beiscsi_init_sgl_handle()
3933 psgl_handle; in beiscsi_init_sgl_handle()
3937 psgl_handle++; in beiscsi_init_sgl_handle()
3969 psgl_handle = phba->io_sgl_hndl_base[arr_index]; in beiscsi_init_sgl_handle()
3971 psgl_handle = phba->eh_sgl_hndl_base[arr_index - in beiscsi_init_sgl_handle()
3973 psgl_handle->pfrag = pfrag; in beiscsi_init_sgl_handle()
3977 psgl_handle->sgl_index = ulp_icd_start + arr_index++; in beiscsi_init_sgl_handle()
4234 if (io_task->psgl_handle) { in beiscsi_free_mgmt_task_handles()
4235 free_mgmt_sgl_handle(phba, io_task->psgl_handle); in beiscsi_free_mgmt_task_handles()
4236 io_task->psgl_handle = NULL; in beiscsi_free_mgmt_task_handles()
4282 if (io_task->psgl_handle) { in beiscsi_cleanup_task()
4283 free_io_sgl_handle(phba, io_task->psgl_handle); in beiscsi_cleanup_task()
4284 io_task->psgl_handle = NULL; in beiscsi_cleanup_task()
4396 io_task->psgl_handle = NULL; in beiscsi_alloc_pdu()
4400 io_task->psgl_handle = alloc_io_sgl_handle(phba); in beiscsi_alloc_pdu()
4401 if (!io_task->psgl_handle) { in beiscsi_alloc_pdu()
4425 io_task->psgl_handle = (struct sgl_handle *) in beiscsi_alloc_pdu()
4427 if (!io_task->psgl_handle) { in beiscsi_alloc_pdu()
4440 io_task->psgl_handle; in beiscsi_alloc_pdu()
4459 io_task->psgl_handle = in beiscsi_alloc_pdu()
4465 io_task->psgl_handle = alloc_mgmt_sgl_handle(phba); in beiscsi_alloc_pdu()
4466 if (!io_task->psgl_handle) { in beiscsi_alloc_pdu()
4493 (io_task->psgl_handle->sgl_index)); in beiscsi_alloc_pdu()
4500 free_io_sgl_handle(phba, io_task->psgl_handle); in beiscsi_alloc_pdu()
4503 free_mgmt_sgl_handle(phba, io_task->psgl_handle); in beiscsi_alloc_pdu()
4504 io_task->psgl_handle = NULL; in beiscsi_alloc_pdu()
4556 io_task->psgl_handle->sgl_index); in beiscsi_iotask_v2()
4616 io_task->psgl_handle->sgl_index); in beiscsi_iotask()
4661 io_task->psgl_handle->sgl_index); in beiscsi_mtask()
4679 io_task->psgl_handle->sgl_index); in beiscsi_mtask()