Lines Matching refs:psgl_handle
252 inv_tbl.icd = abrt_io_task->psgl_handle->sgl_index; in beiscsi_eh_abort()
335 inv_tbl->tbl[nents].icd = io_task->psgl_handle->sgl_index; in beiscsi_eh_device_reset()
892 struct sgl_handle *psgl_handle; in alloc_io_sgl_handle() local
902 psgl_handle = phba->io_sgl_hndl_base[phba-> in alloc_io_sgl_handle()
912 psgl_handle = NULL; in alloc_io_sgl_handle()
914 return psgl_handle; in alloc_io_sgl_handle()
918 free_io_sgl_handle(struct beiscsi_hba *phba, struct sgl_handle *psgl_handle) in free_io_sgl_handle() argument
939 phba->io_sgl_hndl_base[phba->io_sgl_free_index] = psgl_handle; in free_io_sgl_handle()
1039 struct sgl_handle *psgl_handle; in alloc_mgmt_sgl_handle() local
1044 psgl_handle = phba->eh_sgl_hndl_base[phba->eh_sgl_alloc_index]; in alloc_mgmt_sgl_handle()
1059 psgl_handle = NULL; in alloc_mgmt_sgl_handle()
1061 return psgl_handle; in alloc_mgmt_sgl_handle()
1065 free_mgmt_sgl_handle(struct beiscsi_hba *phba, struct sgl_handle *psgl_handle) in free_mgmt_sgl_handle() argument
1087 phba->eh_sgl_hndl_base[phba->eh_sgl_free_index] = psgl_handle; in free_mgmt_sgl_handle()
2118 psgl = (struct iscsi_sge *)io_task->psgl_handle->pfrag; in hwi_write_sgl_v2()
2207 psgl = (struct iscsi_sge *)io_task->psgl_handle->pfrag; in hwi_write_sgl()
2310 psgl = (struct iscsi_sge *)io_task->psgl_handle->pfrag; in hwi_write_buffer()
3874 struct sgl_handle *psgl_handle; in beiscsi_init_sgl_handle() local
3913 psgl_handle = mem_descr_sglh->mem_array[idx].virtual_address; in beiscsi_init_sgl_handle()
3918 phba->io_sgl_hndl_base[arr_index] = psgl_handle; in beiscsi_init_sgl_handle()
3924 psgl_handle; in beiscsi_init_sgl_handle()
3928 psgl_handle++; in beiscsi_init_sgl_handle()
3960 psgl_handle = phba->io_sgl_hndl_base[arr_index]; in beiscsi_init_sgl_handle()
3962 psgl_handle = phba->eh_sgl_hndl_base[arr_index - in beiscsi_init_sgl_handle()
3964 psgl_handle->pfrag = pfrag; in beiscsi_init_sgl_handle()
3968 psgl_handle->sgl_index = ulp_icd_start + arr_index++; in beiscsi_init_sgl_handle()
4209 if (io_task->psgl_handle) { in beiscsi_free_mgmt_task_handles()
4210 free_mgmt_sgl_handle(phba, io_task->psgl_handle); in beiscsi_free_mgmt_task_handles()
4211 io_task->psgl_handle = NULL; in beiscsi_free_mgmt_task_handles()
4257 if (io_task->psgl_handle) { in beiscsi_cleanup_task()
4258 free_io_sgl_handle(phba, io_task->psgl_handle); in beiscsi_cleanup_task()
4259 io_task->psgl_handle = NULL; in beiscsi_cleanup_task()
4371 io_task->psgl_handle = NULL; in beiscsi_alloc_pdu()
4375 io_task->psgl_handle = alloc_io_sgl_handle(phba); in beiscsi_alloc_pdu()
4376 if (!io_task->psgl_handle) { in beiscsi_alloc_pdu()
4400 io_task->psgl_handle = (struct sgl_handle *) in beiscsi_alloc_pdu()
4402 if (!io_task->psgl_handle) { in beiscsi_alloc_pdu()
4414 io_task->psgl_handle; in beiscsi_alloc_pdu()
4432 io_task->psgl_handle = in beiscsi_alloc_pdu()
4438 io_task->psgl_handle = alloc_mgmt_sgl_handle(phba); in beiscsi_alloc_pdu()
4439 if (!io_task->psgl_handle) { in beiscsi_alloc_pdu()
4465 (io_task->psgl_handle->sgl_index)); in beiscsi_alloc_pdu()
4472 free_io_sgl_handle(phba, io_task->psgl_handle); in beiscsi_alloc_pdu()
4475 free_mgmt_sgl_handle(phba, io_task->psgl_handle); in beiscsi_alloc_pdu()
4476 io_task->psgl_handle = NULL; in beiscsi_alloc_pdu()
4528 io_task->psgl_handle->sgl_index); in beiscsi_iotask_v2()
4588 io_task->psgl_handle->sgl_index); in beiscsi_iotask()
4633 io_task->psgl_handle->sgl_index); in beiscsi_mtask()
4651 io_task->psgl_handle->sgl_index); in beiscsi_mtask()