Lines Matching refs:psgl_handle
255 inv_tbl.icd = abrt_io_task->psgl_handle->sgl_index; in beiscsi_eh_abort()
338 inv_tbl->tbl[nents].icd = io_task->psgl_handle->sgl_index; in beiscsi_eh_device_reset()
895 struct sgl_handle *psgl_handle; in alloc_io_sgl_handle() local
905 psgl_handle = phba->io_sgl_hndl_base[phba-> in alloc_io_sgl_handle()
915 psgl_handle = NULL; in alloc_io_sgl_handle()
917 return psgl_handle; in alloc_io_sgl_handle()
921 free_io_sgl_handle(struct beiscsi_hba *phba, struct sgl_handle *psgl_handle) in free_io_sgl_handle() argument
942 phba->io_sgl_hndl_base[phba->io_sgl_free_index] = psgl_handle; in free_io_sgl_handle()
1042 struct sgl_handle *psgl_handle; in alloc_mgmt_sgl_handle() local
1047 psgl_handle = phba->eh_sgl_hndl_base[phba->eh_sgl_alloc_index]; in alloc_mgmt_sgl_handle()
1062 psgl_handle = NULL; in alloc_mgmt_sgl_handle()
1064 return psgl_handle; in alloc_mgmt_sgl_handle()
1068 free_mgmt_sgl_handle(struct beiscsi_hba *phba, struct sgl_handle *psgl_handle) in free_mgmt_sgl_handle() argument
1090 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()
3877 struct sgl_handle *psgl_handle; in beiscsi_init_sgl_handle() local
3916 psgl_handle = mem_descr_sglh->mem_array[idx].virtual_address; in beiscsi_init_sgl_handle()
3921 phba->io_sgl_hndl_base[arr_index] = psgl_handle; in beiscsi_init_sgl_handle()
3927 psgl_handle; in beiscsi_init_sgl_handle()
3931 psgl_handle++; in beiscsi_init_sgl_handle()
3963 psgl_handle = phba->io_sgl_hndl_base[arr_index]; in beiscsi_init_sgl_handle()
3965 psgl_handle = phba->eh_sgl_hndl_base[arr_index - in beiscsi_init_sgl_handle()
3967 psgl_handle->pfrag = pfrag; in beiscsi_init_sgl_handle()
3971 psgl_handle->sgl_index = ulp_icd_start + arr_index++; in beiscsi_init_sgl_handle()
4212 if (io_task->psgl_handle) { in beiscsi_free_mgmt_task_handles()
4213 free_mgmt_sgl_handle(phba, io_task->psgl_handle); in beiscsi_free_mgmt_task_handles()
4214 io_task->psgl_handle = NULL; in beiscsi_free_mgmt_task_handles()
4260 if (io_task->psgl_handle) { in beiscsi_cleanup_task()
4261 free_io_sgl_handle(phba, io_task->psgl_handle); in beiscsi_cleanup_task()
4262 io_task->psgl_handle = NULL; in beiscsi_cleanup_task()
4374 io_task->psgl_handle = NULL; in beiscsi_alloc_pdu()
4378 io_task->psgl_handle = alloc_io_sgl_handle(phba); in beiscsi_alloc_pdu()
4379 if (!io_task->psgl_handle) { in beiscsi_alloc_pdu()
4403 io_task->psgl_handle = (struct sgl_handle *) in beiscsi_alloc_pdu()
4405 if (!io_task->psgl_handle) { in beiscsi_alloc_pdu()
4417 io_task->psgl_handle; in beiscsi_alloc_pdu()
4435 io_task->psgl_handle = in beiscsi_alloc_pdu()
4441 io_task->psgl_handle = alloc_mgmt_sgl_handle(phba); in beiscsi_alloc_pdu()
4442 if (!io_task->psgl_handle) { in beiscsi_alloc_pdu()
4468 (io_task->psgl_handle->sgl_index)); in beiscsi_alloc_pdu()
4475 free_io_sgl_handle(phba, io_task->psgl_handle); in beiscsi_alloc_pdu()
4478 free_mgmt_sgl_handle(phba, io_task->psgl_handle); in beiscsi_alloc_pdu()
4479 io_task->psgl_handle = NULL; in beiscsi_alloc_pdu()
4531 io_task->psgl_handle->sgl_index); in beiscsi_iotask_v2()
4591 io_task->psgl_handle->sgl_index); in beiscsi_iotask()
4636 io_task->psgl_handle->sgl_index); in beiscsi_mtask()
4654 io_task->psgl_handle->sgl_index); in beiscsi_mtask()