Lines Matching refs:psgl_handle
259 inv_tbl.icd = abrt_io_task->psgl_handle->sgl_index; in beiscsi_eh_abort()
342 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()
2139 psgl = (struct iscsi_sge *)io_task->psgl_handle->pfrag; in hwi_write_sgl_v2()
2228 psgl = (struct iscsi_sge *)io_task->psgl_handle->pfrag; in hwi_write_sgl()
2331 psgl = (struct iscsi_sge *)io_task->psgl_handle->pfrag; in hwi_write_buffer()
3901 struct sgl_handle *psgl_handle; in beiscsi_init_sgl_handle() local
3940 psgl_handle = mem_descr_sglh->mem_array[idx].virtual_address; in beiscsi_init_sgl_handle()
3945 phba->io_sgl_hndl_base[arr_index] = psgl_handle; in beiscsi_init_sgl_handle()
3951 psgl_handle; in beiscsi_init_sgl_handle()
3955 psgl_handle++; in beiscsi_init_sgl_handle()
3987 psgl_handle = phba->io_sgl_hndl_base[arr_index]; in beiscsi_init_sgl_handle()
3989 psgl_handle = phba->eh_sgl_hndl_base[arr_index - in beiscsi_init_sgl_handle()
3991 psgl_handle->pfrag = pfrag; in beiscsi_init_sgl_handle()
3995 psgl_handle->sgl_index = ulp_icd_start + arr_index++; in beiscsi_init_sgl_handle()
4252 if (io_task->psgl_handle) { in beiscsi_free_mgmt_task_handles()
4253 free_mgmt_sgl_handle(phba, io_task->psgl_handle); in beiscsi_free_mgmt_task_handles()
4254 io_task->psgl_handle = NULL; in beiscsi_free_mgmt_task_handles()
4300 if (io_task->psgl_handle) { in beiscsi_cleanup_task()
4301 free_io_sgl_handle(phba, io_task->psgl_handle); in beiscsi_cleanup_task()
4302 io_task->psgl_handle = NULL; in beiscsi_cleanup_task()
4414 io_task->psgl_handle = NULL; in beiscsi_alloc_pdu()
4418 io_task->psgl_handle = alloc_io_sgl_handle(phba); in beiscsi_alloc_pdu()
4419 if (!io_task->psgl_handle) { in beiscsi_alloc_pdu()
4443 io_task->psgl_handle = (struct sgl_handle *) in beiscsi_alloc_pdu()
4445 if (!io_task->psgl_handle) { in beiscsi_alloc_pdu()
4458 io_task->psgl_handle; in beiscsi_alloc_pdu()
4477 io_task->psgl_handle = in beiscsi_alloc_pdu()
4483 io_task->psgl_handle = alloc_mgmt_sgl_handle(phba); in beiscsi_alloc_pdu()
4484 if (!io_task->psgl_handle) { in beiscsi_alloc_pdu()
4511 (io_task->psgl_handle->sgl_index)); in beiscsi_alloc_pdu()
4518 free_io_sgl_handle(phba, io_task->psgl_handle); in beiscsi_alloc_pdu()
4521 free_mgmt_sgl_handle(phba, io_task->psgl_handle); in beiscsi_alloc_pdu()
4522 io_task->psgl_handle = NULL; in beiscsi_alloc_pdu()
4574 io_task->psgl_handle->sgl_index); in beiscsi_iotask_v2()
4634 io_task->psgl_handle->sgl_index); in beiscsi_iotask()
4679 io_task->psgl_handle->sgl_index); in beiscsi_mtask()
4697 io_task->psgl_handle->sgl_index); in beiscsi_mtask()