Lines Matching refs:svc_rdy_ext
3747 struct ath12k_wmi_svc_rdy_ext_parse *svc_rdy_ext = data; in ath12k_wmi_hw_mode_caps_parse() local
3754 if (svc_rdy_ext->n_hw_mode_caps >= svc_rdy_ext->arg.num_hw_modes) in ath12k_wmi_hw_mode_caps_parse()
3759 svc_rdy_ext->n_hw_mode_caps++; in ath12k_wmi_hw_mode_caps_parse()
3762 svc_rdy_ext->tot_phy_id += fls(phy_map); in ath12k_wmi_hw_mode_caps_parse()
3770 struct ath12k_wmi_svc_rdy_ext_parse *svc_rdy_ext = data; in ath12k_wmi_hw_mode_caps() local
3776 svc_rdy_ext->n_hw_mode_caps = 0; in ath12k_wmi_hw_mode_caps()
3777 svc_rdy_ext->hw_mode_caps = ptr; in ath12k_wmi_hw_mode_caps()
3781 svc_rdy_ext); in ath12k_wmi_hw_mode_caps()
3787 for (i = 0 ; i < svc_rdy_ext->n_hw_mode_caps; i++) { in ath12k_wmi_hw_mode_caps()
3788 hw_mode_caps = &svc_rdy_ext->hw_mode_caps[i]; in ath12k_wmi_hw_mode_caps()
3797 svc_rdy_ext->pref_hw_mode_caps = *hw_mode_caps; in ath12k_wmi_hw_mode_caps()
3814 struct ath12k_wmi_svc_rdy_ext_parse *svc_rdy_ext = data; in ath12k_wmi_mac_phy_caps_parse() local
3819 if (svc_rdy_ext->n_mac_phy_caps >= svc_rdy_ext->tot_phy_id) in ath12k_wmi_mac_phy_caps_parse()
3823 if (!svc_rdy_ext->n_mac_phy_caps) { in ath12k_wmi_mac_phy_caps_parse()
3824 svc_rdy_ext->mac_phy_caps = kzalloc((svc_rdy_ext->tot_phy_id) * len, in ath12k_wmi_mac_phy_caps_parse()
3826 if (!svc_rdy_ext->mac_phy_caps) in ath12k_wmi_mac_phy_caps_parse()
3830 memcpy(svc_rdy_ext->mac_phy_caps + svc_rdy_ext->n_mac_phy_caps, ptr, len); in ath12k_wmi_mac_phy_caps_parse()
3831 svc_rdy_ext->n_mac_phy_caps++; in ath12k_wmi_mac_phy_caps_parse()
3839 struct ath12k_wmi_svc_rdy_ext_parse *svc_rdy_ext = data; in ath12k_wmi_ext_hal_reg_caps_parse() local
3844 if (svc_rdy_ext->n_ext_hal_reg_caps >= svc_rdy_ext->arg.num_phy) in ath12k_wmi_ext_hal_reg_caps_parse()
3847 svc_rdy_ext->n_ext_hal_reg_caps++; in ath12k_wmi_ext_hal_reg_caps_parse()
3855 struct ath12k_wmi_svc_rdy_ext_parse *svc_rdy_ext = data; in ath12k_wmi_ext_hal_reg_caps() local
3860 svc_rdy_ext->n_ext_hal_reg_caps = 0; in ath12k_wmi_ext_hal_reg_caps()
3861 svc_rdy_ext->ext_hal_reg_caps = ptr; in ath12k_wmi_ext_hal_reg_caps()
3864 svc_rdy_ext); in ath12k_wmi_ext_hal_reg_caps()
3870 for (i = 0; i < svc_rdy_ext->arg.num_phy; i++) { in ath12k_wmi_ext_hal_reg_caps()
3872 svc_rdy_ext->soc_hal_reg_caps, in ath12k_wmi_ext_hal_reg_caps()
3873 svc_rdy_ext->ext_hal_reg_caps, i, in ath12k_wmi_ext_hal_reg_caps()
3895 struct ath12k_wmi_svc_rdy_ext_parse *svc_rdy_ext = data; in ath12k_wmi_ext_soc_hal_reg_caps_parse() local
3896 u8 hw_mode_id = le32_to_cpu(svc_rdy_ext->pref_hw_mode_caps.hw_mode_id); in ath12k_wmi_ext_soc_hal_reg_caps_parse()
3901 svc_rdy_ext->soc_hal_reg_caps = ptr; in ath12k_wmi_ext_soc_hal_reg_caps_parse()
3902 svc_rdy_ext->arg.num_phy = le32_to_cpu(svc_rdy_ext->soc_hal_reg_caps->num_phy); in ath12k_wmi_ext_soc_hal_reg_caps_parse()
3905 phy_id_map = le32_to_cpu(svc_rdy_ext->pref_hw_mode_caps.phy_id_map); in ath12k_wmi_ext_soc_hal_reg_caps_parse()
3910 svc_rdy_ext, in ath12k_wmi_ext_soc_hal_reg_caps_parse()
4037 struct ath12k_wmi_svc_rdy_ext_parse *svc_rdy_ext = data; in ath12k_wmi_svc_rdy_ext_parse() local
4043 &svc_rdy_ext->arg); in ath12k_wmi_svc_rdy_ext_parse()
4051 svc_rdy_ext->hw_caps = ptr; in ath12k_wmi_svc_rdy_ext_parse()
4052 svc_rdy_ext->arg.num_hw_modes = in ath12k_wmi_svc_rdy_ext_parse()
4053 le32_to_cpu(svc_rdy_ext->hw_caps->num_hw_modes); in ath12k_wmi_svc_rdy_ext_parse()
4058 svc_rdy_ext); in ath12k_wmi_svc_rdy_ext_parse()
4064 if (!svc_rdy_ext->hw_mode_done) { in ath12k_wmi_svc_rdy_ext_parse()
4065 ret = ath12k_wmi_hw_mode_caps(ab, len, ptr, svc_rdy_ext); in ath12k_wmi_svc_rdy_ext_parse()
4069 svc_rdy_ext->hw_mode_done = true; in ath12k_wmi_svc_rdy_ext_parse()
4070 } else if (!svc_rdy_ext->mac_phy_done) { in ath12k_wmi_svc_rdy_ext_parse()
4071 svc_rdy_ext->n_mac_phy_caps = 0; in ath12k_wmi_svc_rdy_ext_parse()
4074 svc_rdy_ext); in ath12k_wmi_svc_rdy_ext_parse()
4080 svc_rdy_ext->mac_phy_done = true; in ath12k_wmi_svc_rdy_ext_parse()
4081 } else if (!svc_rdy_ext->ext_hal_reg_done) { in ath12k_wmi_svc_rdy_ext_parse()
4082 ret = ath12k_wmi_ext_hal_reg_caps(ab, len, ptr, svc_rdy_ext); in ath12k_wmi_svc_rdy_ext_parse()
4086 svc_rdy_ext->ext_hal_reg_done = true; in ath12k_wmi_svc_rdy_ext_parse()
4087 } else if (!svc_rdy_ext->mac_phy_chainmask_combo_done) { in ath12k_wmi_svc_rdy_ext_parse()
4088 svc_rdy_ext->mac_phy_chainmask_combo_done = true; in ath12k_wmi_svc_rdy_ext_parse()
4089 } else if (!svc_rdy_ext->mac_phy_chainmask_cap_done) { in ath12k_wmi_svc_rdy_ext_parse()
4090 svc_rdy_ext->mac_phy_chainmask_cap_done = true; in ath12k_wmi_svc_rdy_ext_parse()
4091 } else if (!svc_rdy_ext->oem_dma_ring_cap_done) { in ath12k_wmi_svc_rdy_ext_parse()
4092 svc_rdy_ext->oem_dma_ring_cap_done = true; in ath12k_wmi_svc_rdy_ext_parse()
4093 } else if (!svc_rdy_ext->dma_ring_cap_done) { in ath12k_wmi_svc_rdy_ext_parse()
4095 &svc_rdy_ext->dma_caps_parse); in ath12k_wmi_svc_rdy_ext_parse()
4099 svc_rdy_ext->dma_ring_cap_done = true; in ath12k_wmi_svc_rdy_ext_parse()
4112 struct ath12k_wmi_svc_rdy_ext_parse svc_rdy_ext = { }; in ath12k_service_ready_ext_event() local
4117 &svc_rdy_ext); in ath12k_service_ready_ext_event()
4126 kfree(svc_rdy_ext.mac_phy_caps); in ath12k_service_ready_ext_event()