Lines Matching refs:phwi_ctrlr
936 struct hwi_controller *phwi_ctrlr; in be_isr() local
954 phwi_ctrlr = phba->phwi_ctrlr; in be_isr()
955 phwi_context = phwi_ctrlr->phwi_ctxt; in be_isr()
1004 struct hwi_controller *phwi_ctrlr; in beiscsi_init_irqs() local
1008 phwi_ctrlr = phba->phwi_ctrlr; in beiscsi_init_irqs()
1009 phwi_context = phwi_ctrlr->phwi_ctxt; in beiscsi_init_irqs()
1209 struct hwi_controller *phwi_ctrlr; in alloc_wrb_handle() local
1213 phwi_ctrlr = phba->phwi_ctrlr; in alloc_wrb_handle()
1214 pwrb_context = &phwi_ctrlr->wrb_context[cri_index]; in alloc_wrb_handle()
1434 struct hwi_controller *phwi_ctrlr; in hwi_complete_drvr_msgs() local
1439 phwi_ctrlr = phba->phwi_ctrlr; in hwi_complete_drvr_msgs()
1453 pwrb_context = &phwi_ctrlr->wrb_context[cri_index]; in hwi_complete_drvr_msgs()
1542 struct hwi_controller *phwi_ctrlr; in hwi_complete_cmd() local
1550 phwi_ctrlr = phba->phwi_ctrlr; in hwi_complete_cmd()
1556 pwrb_context = &phwi_ctrlr->wrb_context[cri_index]; in hwi_complete_cmd()
1786 struct hwi_controller *phwi_ctrlr; in hwi_post_async_buffers() local
1797 phwi_ctrlr = phba->phwi_ctrlr; in hwi_post_async_buffers()
1798 pasync_ctx = HWI_GET_ASYNC_PDU_CTX(phwi_ctrlr, ulp_num); in hwi_post_async_buffers()
1806 ring_id = phwi_ctrlr->default_pdu_hdr[ulp_num].id; in hwi_post_async_buffers()
1807 doorbell_offset = phwi_ctrlr->default_pdu_hdr[ulp_num]. in hwi_post_async_buffers()
1814 ring_id = phwi_ctrlr->default_pdu_data[ulp_num].id; in hwi_post_async_buffers()
1815 doorbell_offset = phwi_ctrlr->default_pdu_data[ulp_num]. in hwi_post_async_buffers()
1872 struct hwi_controller *phwi_ctrlr; in hwi_flush_default_pdu_buffer() local
1879 phwi_ctrlr = phba->phwi_ctrlr; in hwi_flush_default_pdu_buffer()
1880 pasync_ctx = HWI_GET_ASYNC_PDU_CTX(phwi_ctrlr, in hwi_flush_default_pdu_buffer()
1881 BEISCSI_GET_ULP_FROM_CRI(phwi_ctrlr, in hwi_flush_default_pdu_buffer()
1893 BEISCSI_GET_ULP_FROM_CRI(phwi_ctrlr, in hwi_flush_default_pdu_buffer()
1943 struct hwi_controller *phwi_ctrlr; in hwi_gather_async_pdu() local
1948 phwi_ctrlr = phba->phwi_ctrlr; in hwi_gather_async_pdu()
1949 pasync_ctx = HWI_GET_ASYNC_PDU_CTX(phwi_ctrlr, in hwi_gather_async_pdu()
1950 BEISCSI_GET_ULP_FROM_CRI(phwi_ctrlr, in hwi_gather_async_pdu()
2009 struct hwi_controller *phwi_ctrlr; in hwi_process_default_pdu_ring() local
2016 phwi_ctrlr = phba->phwi_ctrlr; in hwi_process_default_pdu_ring()
2017 pasync_ctx = HWI_GET_ASYNC_PDU_CTX(phwi_ctrlr, in hwi_process_default_pdu_ring()
2018 BEISCSI_GET_ULP_FROM_CRI(phwi_ctrlr, in hwi_process_default_pdu_ring()
2031 phwi_ctrlr, cri_index)); in hwi_process_default_pdu_ring()
2270 struct hwi_controller *phwi_ctrlr; in beiscsi_process_all_cqs() local
2277 phwi_ctrlr = phba->phwi_ctrlr; in beiscsi_process_all_cqs()
2278 phwi_context = phwi_ctrlr->phwi_ctxt; in beiscsi_process_all_cqs()
2697 struct hwi_controller *phwi_ctrlr; in beiscsi_alloc_mem() local
2702 phba->phwi_ctrlr = kzalloc(phba->params.hwi_ws_sz, GFP_KERNEL); in beiscsi_alloc_mem()
2703 if (!phba->phwi_ctrlr) in beiscsi_alloc_mem()
2707 phwi_ctrlr = phba->phwi_ctrlr; in beiscsi_alloc_mem()
2708 phwi_ctrlr->wrb_context = kzalloc(sizeof(struct hwi_wrb_context) * in beiscsi_alloc_mem()
2711 if (!phwi_ctrlr->wrb_context) in beiscsi_alloc_mem()
2717 kfree(phwi_ctrlr->wrb_context); in beiscsi_alloc_mem()
2718 kfree(phba->phwi_ctrlr); in beiscsi_alloc_mem()
2726 kfree(phwi_ctrlr->wrb_context); in beiscsi_alloc_mem()
2727 kfree(phba->phwi_ctrlr); in beiscsi_alloc_mem()
2803 kfree(phba->phwi_ctrlr->wrb_context); in beiscsi_alloc_mem()
2804 kfree(phba->phwi_ctrlr); in beiscsi_alloc_mem()
2844 struct hwi_controller *phwi_ctrlr; in beiscsi_init_wrb_handle() local
2855 phwi_ctrlr = phba->phwi_ctrlr; in beiscsi_init_wrb_handle()
2858 phwi_ctxt = phwi_ctrlr->phwi_ctxt; in beiscsi_init_wrb_handle()
2869 pwrb_context = &phwi_ctrlr->wrb_context[index]; in beiscsi_init_wrb_handle()
2912 pwrb_context = &phwi_ctrlr->wrb_context[index]; in beiscsi_init_wrb_handle()
2933 pwrb_context = &phwi_ctrlr->wrb_context[j]; in beiscsi_init_wrb_handle()
2943 struct hwi_controller *phwi_ctrlr; in hwi_init_async_pdu_ctx() local
2957 phwi_ctrlr = phba->phwi_ctrlr; in hwi_init_async_pdu_ctx()
2958 phwi_ctrlr->phwi_ctxt->pasync_ctx[ulp_num] = in hwi_init_async_pdu_ctx()
2962 pasync_ctx = phwi_ctrlr->phwi_ctxt->pasync_ctx[ulp_num]; in hwi_init_async_pdu_ctx()
3373 struct hwi_controller *phwi_ctrlr, in beiscsi_create_def_hdr() argument
3426 struct hwi_controller *phwi_ctrlr, in beiscsi_create_def_data() argument
3582 struct hwi_controller *phwi_ctrlr) in beiscsi_create_wrb_rings() argument
3667 &phwi_ctrlr->wrb_context[i], in beiscsi_create_wrb_rings()
3675 pwrb_context = &phwi_ctrlr->wrb_context[i]; in beiscsi_create_wrb_rings()
3685 struct hwi_controller *phwi_ctrlr; in free_wrb_handles() local
3688 phwi_ctrlr = phba->phwi_ctrlr; in free_wrb_handles()
3690 pwrb_context = &phwi_ctrlr->wrb_context[index]; in free_wrb_handles()
3718 struct hwi_controller *phwi_ctrlr; in hwi_cleanup() local
3723 phwi_ctrlr = phba->phwi_ctrlr; in hwi_cleanup()
3724 phwi_context = phwi_ctrlr->phwi_ctxt; in hwi_cleanup()
3747 pasync_ctx = phwi_ctrlr->phwi_ctxt->pasync_ctx[ulp_num]; in hwi_cleanup()
3859 struct hwi_controller *phwi_ctrlr; in hwi_init_port() local
3865 phwi_ctrlr = phba->phwi_ctrlr; in hwi_init_port()
3866 phwi_context = phwi_ctrlr->phwi_ctxt; in hwi_init_port()
3905 phwi_ctrlr, in hwi_init_port()
3916 phwi_ctrlr, in hwi_init_port()
3941 status = beiscsi_create_wrb_rings(phba, phwi_context, phwi_ctrlr); in hwi_init_port()
3956 phwi_ctrlr, ulp_num); in hwi_init_port()
3960 (phwi_ctrlr, cri)) in hwi_init_port()
3962 phwi_ctrlr->wrb_context[cri].cid] = in hwi_init_port()
3981 struct hwi_controller *phwi_ctrlr; in hwi_init_controller() local
3983 phwi_ctrlr = phba->phwi_ctrlr; in hwi_init_controller()
3985 phwi_ctrlr->phwi_ctxt = (struct hwi_context_memory *)phba-> in hwi_init_controller()
3989 phwi_ctrlr->phwi_ctxt); in hwi_init_controller()
4037 kfree(phba->phwi_ctrlr->wrb_context); in beiscsi_free_mem()
4038 kfree(phba->phwi_ctrlr); in beiscsi_free_mem()
4243 ulp_num = phba->phwi_ctrlr->wrb_context[i].ulp_num; in hba_setup_cid_tbls()
4247 phba->phwi_ctrlr->wrb_context[i].cid; in hba_setup_cid_tbls()
4280 struct hwi_controller *phwi_ctrlr; in hwi_enable_intr() local
4287 phwi_ctrlr = phba->phwi_ctrlr; in hwi_enable_intr()
4288 phwi_context = phwi_ctrlr->phwi_ctxt; in hwi_enable_intr()
4513 struct hwi_controller *phwi_ctrlr; in hwi_purge_eq() local
4520 phwi_ctrlr = phba->phwi_ctrlr; in hwi_purge_eq()
4521 phwi_context = phwi_ctrlr->phwi_ctxt; in hwi_purge_eq()
4595 struct hwi_controller *phwi_ctrlr; in beiscsi_free_mgmt_task_handles() local
4599 phwi_ctrlr = phba->phwi_ctrlr; in beiscsi_free_mgmt_task_handles()
4600 pwrb_context = &phwi_ctrlr->wrb_context[cri_index]; in beiscsi_free_mgmt_task_handles()
4642 struct hwi_controller *phwi_ctrlr; in beiscsi_cleanup_task() local
4646 phwi_ctrlr = phba->phwi_ctrlr; in beiscsi_cleanup_task()
4647 pwrb_context = &phwi_ctrlr->wrb_context[cri_index]; in beiscsi_cleanup_task()
4747 struct hwi_controller *phwi_ctrlr; in beiscsi_alloc_pdu() local
4883 phwi_ctrlr = phba->phwi_ctrlr; in beiscsi_alloc_pdu()
4886 pwrb_context = &phwi_ctrlr->wrb_context[cri_index]; in beiscsi_alloc_pdu()
5272 struct hwi_controller *phwi_ctrlr; in beiscsi_quiesce() local
5277 phwi_ctrlr = phba->phwi_ctrlr; in beiscsi_quiesce()
5278 phwi_context = phwi_ctrlr->phwi_ctxt; in beiscsi_quiesce()
5377 struct hwi_controller *phwi_ctrlr; in be_eqd_update() local
5384 phwi_ctrlr = phba->phwi_ctrlr; in be_eqd_update()
5385 phwi_context = phwi_ctrlr->phwi_ctxt; in be_eqd_update()
5535 struct hwi_controller *phwi_ctrlr; in beiscsi_eeh_resume() local
5578 phwi_ctrlr = phba->phwi_ctrlr; in beiscsi_eeh_resume()
5579 phwi_context = phwi_ctrlr->phwi_ctxt; in beiscsi_eeh_resume()
5614 struct hwi_controller *phwi_ctrlr; in beiscsi_dev_probe() local
5751 phwi_ctrlr = phba->phwi_ctrlr; in beiscsi_dev_probe()
5752 phwi_context = phwi_ctrlr->phwi_ctxt; in beiscsi_dev_probe()