Lines Matching refs:phwi_ctrlr
924 struct hwi_controller *phwi_ctrlr; in be_isr() local
942 phwi_ctrlr = phba->phwi_ctrlr; in be_isr()
943 phwi_context = phwi_ctrlr->phwi_ctxt; in be_isr()
992 struct hwi_controller *phwi_ctrlr; in beiscsi_init_irqs() local
996 phwi_ctrlr = phba->phwi_ctrlr; in beiscsi_init_irqs()
997 phwi_context = phwi_ctrlr->phwi_ctxt; in beiscsi_init_irqs()
1195 struct hwi_controller *phwi_ctrlr; in alloc_wrb_handle() local
1199 phwi_ctrlr = phba->phwi_ctrlr; in alloc_wrb_handle()
1200 pwrb_context = &phwi_ctrlr->wrb_context[cri_index]; in alloc_wrb_handle()
1418 struct hwi_controller *phwi_ctrlr; in hwi_complete_drvr_msgs() local
1423 phwi_ctrlr = phba->phwi_ctrlr; in hwi_complete_drvr_msgs()
1437 pwrb_context = &phwi_ctrlr->wrb_context[cri_index]; in hwi_complete_drvr_msgs()
1526 struct hwi_controller *phwi_ctrlr; in hwi_complete_cmd() local
1534 phwi_ctrlr = phba->phwi_ctrlr; in hwi_complete_cmd()
1540 pwrb_context = &phwi_ctrlr->wrb_context[cri_index]; in hwi_complete_cmd()
1770 struct hwi_controller *phwi_ctrlr; in hwi_post_async_buffers() local
1781 phwi_ctrlr = phba->phwi_ctrlr; in hwi_post_async_buffers()
1782 pasync_ctx = HWI_GET_ASYNC_PDU_CTX(phwi_ctrlr, ulp_num); in hwi_post_async_buffers()
1790 ring_id = phwi_ctrlr->default_pdu_hdr[ulp_num].id; in hwi_post_async_buffers()
1791 doorbell_offset = phwi_ctrlr->default_pdu_hdr[ulp_num]. in hwi_post_async_buffers()
1798 ring_id = phwi_ctrlr->default_pdu_data[ulp_num].id; in hwi_post_async_buffers()
1799 doorbell_offset = phwi_ctrlr->default_pdu_data[ulp_num]. in hwi_post_async_buffers()
1856 struct hwi_controller *phwi_ctrlr; in hwi_flush_default_pdu_buffer() local
1863 phwi_ctrlr = phba->phwi_ctrlr; in hwi_flush_default_pdu_buffer()
1864 pasync_ctx = HWI_GET_ASYNC_PDU_CTX(phwi_ctrlr, in hwi_flush_default_pdu_buffer()
1865 BEISCSI_GET_ULP_FROM_CRI(phwi_ctrlr, in hwi_flush_default_pdu_buffer()
1877 BEISCSI_GET_ULP_FROM_CRI(phwi_ctrlr, in hwi_flush_default_pdu_buffer()
1927 struct hwi_controller *phwi_ctrlr; in hwi_gather_async_pdu() local
1932 phwi_ctrlr = phba->phwi_ctrlr; in hwi_gather_async_pdu()
1933 pasync_ctx = HWI_GET_ASYNC_PDU_CTX(phwi_ctrlr, in hwi_gather_async_pdu()
1934 BEISCSI_GET_ULP_FROM_CRI(phwi_ctrlr, in hwi_gather_async_pdu()
1993 struct hwi_controller *phwi_ctrlr; in hwi_process_default_pdu_ring() local
2000 phwi_ctrlr = phba->phwi_ctrlr; in hwi_process_default_pdu_ring()
2001 pasync_ctx = HWI_GET_ASYNC_PDU_CTX(phwi_ctrlr, in hwi_process_default_pdu_ring()
2002 BEISCSI_GET_ULP_FROM_CRI(phwi_ctrlr, in hwi_process_default_pdu_ring()
2015 phwi_ctrlr, cri_index)); in hwi_process_default_pdu_ring()
2249 struct hwi_controller *phwi_ctrlr; in beiscsi_process_all_cqs() local
2256 phwi_ctrlr = phba->phwi_ctrlr; in beiscsi_process_all_cqs()
2257 phwi_context = phwi_ctrlr->phwi_ctxt; in beiscsi_process_all_cqs()
2676 struct hwi_controller *phwi_ctrlr; in beiscsi_alloc_mem() local
2681 phba->phwi_ctrlr = kzalloc(phba->params.hwi_ws_sz, GFP_KERNEL); in beiscsi_alloc_mem()
2682 if (!phba->phwi_ctrlr) in beiscsi_alloc_mem()
2686 phwi_ctrlr = phba->phwi_ctrlr; in beiscsi_alloc_mem()
2687 phwi_ctrlr->wrb_context = kzalloc(sizeof(struct hwi_wrb_context) * in beiscsi_alloc_mem()
2690 if (!phwi_ctrlr->wrb_context) in beiscsi_alloc_mem()
2696 kfree(phwi_ctrlr->wrb_context); in beiscsi_alloc_mem()
2697 kfree(phba->phwi_ctrlr); in beiscsi_alloc_mem()
2705 kfree(phwi_ctrlr->wrb_context); in beiscsi_alloc_mem()
2706 kfree(phba->phwi_ctrlr); in beiscsi_alloc_mem()
2782 kfree(phba->phwi_ctrlr->wrb_context); in beiscsi_alloc_mem()
2783 kfree(phba->phwi_ctrlr); in beiscsi_alloc_mem()
2823 struct hwi_controller *phwi_ctrlr; in beiscsi_init_wrb_handle() local
2834 phwi_ctrlr = phba->phwi_ctrlr; in beiscsi_init_wrb_handle()
2837 phwi_ctxt = phwi_ctrlr->phwi_ctxt; in beiscsi_init_wrb_handle()
2848 pwrb_context = &phwi_ctrlr->wrb_context[index]; in beiscsi_init_wrb_handle()
2891 pwrb_context = &phwi_ctrlr->wrb_context[index]; in beiscsi_init_wrb_handle()
2912 pwrb_context = &phwi_ctrlr->wrb_context[j]; in beiscsi_init_wrb_handle()
2922 struct hwi_controller *phwi_ctrlr; in hwi_init_async_pdu_ctx() local
2936 phwi_ctrlr = phba->phwi_ctrlr; in hwi_init_async_pdu_ctx()
2937 phwi_ctrlr->phwi_ctxt->pasync_ctx[ulp_num] = in hwi_init_async_pdu_ctx()
2941 pasync_ctx = phwi_ctrlr->phwi_ctxt->pasync_ctx[ulp_num]; in hwi_init_async_pdu_ctx()
3352 struct hwi_controller *phwi_ctrlr, in beiscsi_create_def_hdr() argument
3405 struct hwi_controller *phwi_ctrlr, in beiscsi_create_def_data() argument
3561 struct hwi_controller *phwi_ctrlr) in beiscsi_create_wrb_rings() argument
3646 &phwi_ctrlr->wrb_context[i], in beiscsi_create_wrb_rings()
3654 pwrb_context = &phwi_ctrlr->wrb_context[i]; in beiscsi_create_wrb_rings()
3664 struct hwi_controller *phwi_ctrlr; in free_wrb_handles() local
3667 phwi_ctrlr = phba->phwi_ctrlr; in free_wrb_handles()
3669 pwrb_context = &phwi_ctrlr->wrb_context[index]; in free_wrb_handles()
3695 struct hwi_controller *phwi_ctrlr; in hwi_cleanup() local
3700 phwi_ctrlr = phba->phwi_ctrlr; in hwi_cleanup()
3701 phwi_context = phwi_ctrlr->phwi_ctxt; in hwi_cleanup()
3724 pasync_ctx = phwi_ctrlr->phwi_ctxt->pasync_ctx[ulp_num]; in hwi_cleanup()
3832 struct hwi_controller *phwi_ctrlr; in hwi_init_port() local
3838 phwi_ctrlr = phba->phwi_ctrlr; in hwi_init_port()
3839 phwi_context = phwi_ctrlr->phwi_ctxt; in hwi_init_port()
3878 phwi_ctrlr, in hwi_init_port()
3889 phwi_ctrlr, in hwi_init_port()
3914 status = beiscsi_create_wrb_rings(phba, phwi_context, phwi_ctrlr); in hwi_init_port()
3929 phwi_ctrlr, ulp_num); in hwi_init_port()
3933 (phwi_ctrlr, cri)) in hwi_init_port()
3935 phwi_ctrlr->wrb_context[cri].cid] = in hwi_init_port()
3954 struct hwi_controller *phwi_ctrlr; in hwi_init_controller() local
3956 phwi_ctrlr = phba->phwi_ctrlr; in hwi_init_controller()
3958 phwi_ctrlr->phwi_ctxt = (struct hwi_context_memory *)phba-> in hwi_init_controller()
3962 phwi_ctrlr->phwi_ctxt); in hwi_init_controller()
4010 kfree(phba->phwi_ctrlr->wrb_context); in beiscsi_free_mem()
4011 kfree(phba->phwi_ctrlr); in beiscsi_free_mem()
4216 ulp_num = phba->phwi_ctrlr->wrb_context[i].ulp_num; in hba_setup_cid_tbls()
4220 phba->phwi_ctrlr->wrb_context[i].cid; in hba_setup_cid_tbls()
4253 struct hwi_controller *phwi_ctrlr; in hwi_enable_intr() local
4260 phwi_ctrlr = phba->phwi_ctrlr; in hwi_enable_intr()
4261 phwi_context = phwi_ctrlr->phwi_ctxt; in hwi_enable_intr()
4477 struct hwi_controller *phwi_ctrlr; in hwi_purge_eq() local
4484 phwi_ctrlr = phba->phwi_ctrlr; in hwi_purge_eq()
4485 phwi_context = phwi_ctrlr->phwi_ctxt; in hwi_purge_eq()
4559 struct hwi_controller *phwi_ctrlr; in beiscsi_free_mgmt_task_handles() local
4563 phwi_ctrlr = phba->phwi_ctrlr; in beiscsi_free_mgmt_task_handles()
4564 pwrb_context = &phwi_ctrlr->wrb_context[cri_index]; in beiscsi_free_mgmt_task_handles()
4604 struct hwi_controller *phwi_ctrlr; in beiscsi_cleanup_task() local
4608 phwi_ctrlr = phba->phwi_ctrlr; in beiscsi_cleanup_task()
4609 pwrb_context = &phwi_ctrlr->wrb_context[cri_index]; in beiscsi_cleanup_task()
4705 struct hwi_controller *phwi_ctrlr; in beiscsi_alloc_pdu() local
4838 phwi_ctrlr = phba->phwi_ctrlr; in beiscsi_alloc_pdu()
4841 pwrb_context = &phwi_ctrlr->wrb_context[cri_index]; in beiscsi_alloc_pdu()
5204 struct hwi_controller *phwi_ctrlr; in beiscsi_quiesce() local
5209 phwi_ctrlr = phba->phwi_ctrlr; in beiscsi_quiesce()
5210 phwi_context = phwi_ctrlr->phwi_ctxt; in beiscsi_quiesce()
5308 struct hwi_controller *phwi_ctrlr; in be_eqd_update() local
5315 phwi_ctrlr = phba->phwi_ctrlr; in be_eqd_update()
5316 phwi_context = phwi_ctrlr->phwi_ctxt; in be_eqd_update()
5460 struct hwi_controller *phwi_ctrlr; in beiscsi_eeh_resume() local
5503 phwi_ctrlr = phba->phwi_ctrlr; in beiscsi_eeh_resume()
5504 phwi_context = phwi_ctrlr->phwi_ctxt; in beiscsi_eeh_resume()
5539 struct hwi_controller *phwi_ctrlr; in beiscsi_dev_probe() local
5676 phwi_ctrlr = phba->phwi_ctrlr; in beiscsi_dev_probe()
5677 phwi_context = phwi_ctrlr->phwi_ctxt; in beiscsi_dev_probe()