Lines Matching refs:phwi_ctrlr
748 struct hwi_controller *phwi_ctrlr; in be_isr() local
765 phwi_ctrlr = phba->phwi_ctrlr; in be_isr()
766 phwi_context = phwi_ctrlr->phwi_ctxt; in be_isr()
813 phwi_context = phba->phwi_ctrlr->phwi_ctxt; in beiscsi_free_irqs()
824 struct hwi_controller *phwi_ctrlr; in beiscsi_init_irqs() local
828 phwi_ctrlr = phba->phwi_ctrlr; in beiscsi_init_irqs()
829 phwi_context = phwi_ctrlr->phwi_ctxt; in beiscsi_init_irqs()
1005 struct hwi_controller *phwi_ctrlr; in alloc_wrb_handle() local
1008 phwi_ctrlr = phba->phwi_ctrlr; in alloc_wrb_handle()
1009 pwrb_context = &phwi_ctrlr->wrb_context[cri_index]; in alloc_wrb_handle()
1238 struct hwi_controller *phwi_ctrlr; in hwi_complete_drvr_msgs() local
1243 phwi_ctrlr = phba->phwi_ctrlr; in hwi_complete_drvr_msgs()
1257 pwrb_context = &phwi_ctrlr->wrb_context[cri_index]; in hwi_complete_drvr_msgs()
1348 struct hwi_controller *phwi_ctrlr; in hwi_complete_cmd() local
1354 phwi_ctrlr = phba->phwi_ctrlr; in hwi_complete_cmd()
1360 pwrb_context = &phwi_ctrlr->wrb_context[cri_index]; in hwi_complete_cmd()
1729 struct hwi_controller *phwi_ctrlr; in beiscsi_hdq_post_handles() local
1735 phwi_ctrlr = phba->phwi_ctrlr; in beiscsi_hdq_post_handles()
1736 pasync_ctx = HWI_GET_ASYNC_PDU_CTX(phwi_ctrlr, ulp_num); in beiscsi_hdq_post_handles()
1740 ring_id = phwi_ctrlr->default_pdu_hdr[ulp_num].id; in beiscsi_hdq_post_handles()
1741 doorbell_offset = phwi_ctrlr->default_pdu_hdr[ulp_num]. in beiscsi_hdq_post_handles()
1746 ring_id = phwi_ctrlr->default_pdu_data[ulp_num].id; in beiscsi_hdq_post_handles()
1747 doorbell_offset = phwi_ctrlr->default_pdu_data[ulp_num]. in beiscsi_hdq_post_handles()
1787 struct hwi_controller *phwi_ctrlr; in beiscsi_hdq_process_compl() local
1791 phwi_ctrlr = phba->phwi_ctrlr; in beiscsi_hdq_process_compl()
1793 ulp_num = BEISCSI_GET_ULP_FROM_CRI(phwi_ctrlr, cid_cri); in beiscsi_hdq_process_compl()
1794 pasync_ctx = HWI_GET_ASYNC_PDU_CTX(phwi_ctrlr, ulp_num); in beiscsi_hdq_process_compl()
2468 struct hwi_controller *phwi_ctrlr; in beiscsi_alloc_mem() local
2473 phba->phwi_ctrlr = kzalloc(phba->params.hwi_ws_sz, GFP_KERNEL); in beiscsi_alloc_mem()
2474 if (!phba->phwi_ctrlr) in beiscsi_alloc_mem()
2478 phwi_ctrlr = phba->phwi_ctrlr; in beiscsi_alloc_mem()
2479 phwi_ctrlr->wrb_context = kcalloc(phba->params.cxns_per_ctrl, in beiscsi_alloc_mem()
2482 if (!phwi_ctrlr->wrb_context) { in beiscsi_alloc_mem()
2483 kfree(phba->phwi_ctrlr); in beiscsi_alloc_mem()
2490 kfree(phwi_ctrlr->wrb_context); in beiscsi_alloc_mem()
2491 kfree(phba->phwi_ctrlr); in beiscsi_alloc_mem()
2500 kfree(phwi_ctrlr->wrb_context); in beiscsi_alloc_mem()
2501 kfree(phba->phwi_ctrlr); in beiscsi_alloc_mem()
2576 kfree(phba->phwi_ctrlr->wrb_context); in beiscsi_alloc_mem()
2577 kfree(phba->phwi_ctrlr); in beiscsi_alloc_mem()
2617 struct hwi_controller *phwi_ctrlr; in beiscsi_init_wrb_handle() local
2628 phwi_ctrlr = phba->phwi_ctrlr; in beiscsi_init_wrb_handle()
2631 phwi_ctxt = phwi_ctrlr->phwi_ctxt; in beiscsi_init_wrb_handle()
2642 pwrb_context = &phwi_ctrlr->wrb_context[index]; in beiscsi_init_wrb_handle()
2688 pwrb_context = &phwi_ctrlr->wrb_context[index]; in beiscsi_init_wrb_handle()
2709 pwrb_context = &phwi_ctrlr->wrb_context[j]; in beiscsi_init_wrb_handle()
2719 struct hwi_controller *phwi_ctrlr; in hwi_init_async_pdu_ctx() local
2733 phwi_ctrlr = phba->phwi_ctrlr; in hwi_init_async_pdu_ctx()
2734 phwi_ctrlr->phwi_ctxt->pasync_ctx[ulp_num] = in hwi_init_async_pdu_ctx()
2738 pasync_ctx = phwi_ctrlr->phwi_ctxt->pasync_ctx[ulp_num]; in hwi_init_async_pdu_ctx()
3141 struct hwi_controller *phwi_ctrlr, in beiscsi_create_def_hdr() argument
3193 struct hwi_controller *phwi_ctrlr, in beiscsi_create_def_data() argument
3348 struct hwi_controller *phwi_ctrlr) in beiscsi_create_wrb_rings() argument
3429 &phwi_ctrlr->wrb_context[i], in beiscsi_create_wrb_rings()
3437 pwrb_context = &phwi_ctrlr->wrb_context[i]; in beiscsi_create_wrb_rings()
3447 struct hwi_controller *phwi_ctrlr; in free_wrb_handles() local
3450 phwi_ctrlr = phba->phwi_ctrlr; in free_wrb_handles()
3452 pwrb_context = &phwi_ctrlr->wrb_context[index]; in free_wrb_handles()
3596 struct hwi_controller *phwi_ctrlr; in hwi_purge_eq() local
3606 phwi_ctrlr = phba->phwi_ctrlr; in hwi_purge_eq()
3607 phwi_context = phwi_ctrlr->phwi_ctxt; in hwi_purge_eq()
3634 struct hwi_controller *phwi_ctrlr; in hwi_cleanup_port() local
3649 phwi_ctrlr = phba->phwi_ctrlr; in hwi_cleanup_port()
3650 phwi_context = phwi_ctrlr->phwi_ctxt; in hwi_cleanup_port()
3705 struct hwi_controller *phwi_ctrlr; in hwi_init_port() local
3712 phwi_ctrlr = phba->phwi_ctrlr; in hwi_init_port()
3713 phwi_context = phwi_ctrlr->phwi_ctxt; in hwi_init_port()
3748 phwi_ctrlr, in hwi_init_port()
3759 phwi_ctrlr, in hwi_init_port()
3792 status = beiscsi_create_wrb_rings(phba, phwi_context, phwi_ctrlr); in hwi_init_port()
3807 phwi_ctrlr, ulp_num); in hwi_init_port()
3811 (phwi_ctrlr, cri)) in hwi_init_port()
3813 phwi_ctrlr->wrb_context[cri].cid] = in hwi_init_port()
3832 struct hwi_controller *phwi_ctrlr; in hwi_init_controller() local
3834 phwi_ctrlr = phba->phwi_ctrlr; in hwi_init_controller()
3836 phwi_ctrlr->phwi_ctxt = (struct hwi_context_memory *)phba-> in hwi_init_controller()
3840 phwi_ctrlr->phwi_ctxt); in hwi_init_controller()
3886 kfree(phba->phwi_ctrlr->wrb_context); in beiscsi_free_mem()
3887 kfree(phba->phwi_ctrlr); in beiscsi_free_mem()
4054 ulp_num = phba->phwi_ctrlr->wrb_context[i].ulp_num; in hba_setup_cid_tbls()
4058 phba->phwi_ctrlr->wrb_context[i].cid; in hba_setup_cid_tbls()
4091 struct hwi_controller *phwi_ctrlr; in hwi_enable_intr() local
4098 phwi_ctrlr = phba->phwi_ctrlr; in hwi_enable_intr()
4099 phwi_context = phwi_ctrlr->phwi_ctxt; in hwi_enable_intr()
4214 struct hwi_controller *phwi_ctrlr; in beiscsi_free_mgmt_task_handles() local
4218 phwi_ctrlr = phba->phwi_ctrlr; in beiscsi_free_mgmt_task_handles()
4219 pwrb_context = &phwi_ctrlr->wrb_context[cri_index]; in beiscsi_free_mgmt_task_handles()
4255 struct hwi_controller *phwi_ctrlr; in beiscsi_cleanup_task() local
4259 phwi_ctrlr = phba->phwi_ctrlr; in beiscsi_cleanup_task()
4260 pwrb_context = &phwi_ctrlr->wrb_context[cri_index]; in beiscsi_cleanup_task()
4374 struct hwi_controller *phwi_ctrlr; in beiscsi_alloc_pdu() local
4497 phwi_ctrlr = phba->phwi_ctrlr; in beiscsi_alloc_pdu()
4500 pwrb_context = &phwi_ctrlr->wrb_context[cri_index]; in beiscsi_alloc_pdu()
5188 struct hwi_controller *phwi_ctrlr; in beiscsi_eqd_update_work() local
5200 phwi_ctrlr = phba->phwi_ctrlr; in beiscsi_eqd_update_work()
5201 phwi_context = phwi_ctrlr->phwi_ctxt; in beiscsi_eqd_update_work()
5290 struct hwi_controller *phwi_ctrlr; in beiscsi_enable_port() local
5328 phwi_ctrlr = phba->phwi_ctrlr; in beiscsi_enable_port()
5329 phwi_context = phwi_ctrlr->phwi_ctxt; in beiscsi_enable_port()
5388 struct hwi_controller *phwi_ctrlr; in beiscsi_disable_port() local
5395 phwi_ctrlr = phba->phwi_ctrlr; in beiscsi_disable_port()
5396 phwi_context = phwi_ctrlr->phwi_ctxt; in beiscsi_disable_port()
5526 struct hwi_controller *phwi_ctrlr; in beiscsi_dev_probe() local
5656 phwi_ctrlr = phba->phwi_ctrlr; in beiscsi_dev_probe()
5657 phwi_context = phwi_ctrlr->phwi_ctxt; in beiscsi_dev_probe()