Lines Matching refs:cnss_plat_data

101 static struct cnss_plat_data *plat_env[CNSS_MAX_DEV_NUM];
104 static struct cnss_plat_data *plat_env;
160 struct cnss_plat_data *plat_priv) in cnss_set_plat_priv()
172 struct cnss_plat_data *cnss_get_plat_priv(struct platform_device in cnss_get_plat_priv()
187 struct cnss_plat_data *cnss_get_first_plat_priv(struct platform_device in cnss_get_first_plat_priv()
201 static void cnss_clear_plat_priv(struct cnss_plat_data *plat_priv) in cnss_clear_plat_priv()
208 static int cnss_set_device_name(struct cnss_plat_data *plat_priv) in cnss_set_device_name()
228 struct cnss_plat_data *cnss_get_plat_env(int index) in cnss_get_plat_env()
233 struct cnss_plat_data *cnss_get_plat_priv_by_rc_num(int rc_num) in cnss_get_plat_priv_by_rc_num()
245 cnss_get_qrtr_node_id(struct cnss_plat_data *plat_priv) in cnss_get_qrtr_node_id()
251 void cnss_get_qrtr_info(struct cnss_plat_data *plat_priv) in cnss_get_qrtr_info()
269 cnss_get_pld_bus_ops_name(struct cnss_plat_data *plat_priv) in cnss_get_pld_bus_ops_name()
282 struct cnss_plat_data *plat_priv) in cnss_set_plat_priv()
287 struct cnss_plat_data *cnss_get_plat_priv(struct platform_device *plat_dev) in cnss_get_plat_priv()
292 static void cnss_clear_plat_priv(struct cnss_plat_data *plat_priv) in cnss_clear_plat_priv()
297 static int cnss_set_device_name(struct cnss_plat_data *plat_priv) in cnss_set_device_name()
309 struct cnss_plat_data *cnss_get_plat_priv_by_rc_num(int rc_num) in cnss_get_plat_priv_by_rc_num()
314 void cnss_get_qrtr_info(struct cnss_plat_data *plat_priv) in cnss_get_qrtr_info()
319 cnss_get_pld_bus_ops_name(struct cnss_plat_data *plat_priv) in cnss_get_pld_bus_ops_name()
325 void cnss_get_sleep_clk_supported(struct cnss_plat_data *plat_priv) in cnss_get_sleep_clk_supported()
333 void cnss_get_bwscal_info(struct cnss_plat_data *plat_priv) in cnss_get_bwscal_info()
340 cnss_get_rc_num(struct cnss_plat_data *plat_priv) in cnss_get_rc_num()
360 struct cnss_plat_data *plat_priv; in cnss_get_mem_seg_count()
387 struct cnss_plat_data *plat_priv; in cnss_get_wifi_kobj()
409 struct cnss_plat_data *plat_priv; in cnss_get_mem_segment_info()
443 static int cnss_get_audio_iommu_domain(struct cnss_plat_data *plat_priv) in cnss_get_audio_iommu_domain()
475 struct cnss_plat_data *plat_priv = cnss_bus_dev_to_plat_priv(dev); in cnss_get_audio_shared_iommu_group_cap()
518 int cnss_set_feature_list(struct cnss_plat_data *plat_priv, in cnss_set_feature_list()
528 int cnss_clear_feature_list(struct cnss_plat_data *plat_priv, in cnss_clear_feature_list()
538 int cnss_get_feature_list(struct cnss_plat_data *plat_priv, in cnss_get_feature_list()
548 size_t cnss_get_platform_name(struct cnss_plat_data *plat_priv, in cnss_get_platform_name()
577 void cnss_pm_stay_awake(struct cnss_plat_data *plat_priv) in cnss_pm_stay_awake()
588 void cnss_pm_relax(struct cnss_plat_data *plat_priv) in cnss_pm_relax()
628 struct cnss_plat_data *plat_priv = cnss_bus_dev_to_plat_priv(dev); in cnss_get_platform_cap()
652 struct cnss_plat_data *plat_priv = cnss_bus_dev_to_plat_priv(dev); in cnss_get_fw_cap()
688 struct cnss_plat_data *plat_priv = cnss_bus_dev_to_plat_priv(dev); in cnss_audio_is_direct_link_supported()
706 struct cnss_plat_data *plat_priv = cnss_bus_dev_to_plat_priv(dev); in cnss_request_pm_qos()
717 struct cnss_plat_data *plat_priv = cnss_bus_dev_to_plat_priv(dev); in cnss_remove_pm_qos()
732 struct cnss_plat_data *plat_priv; in cnss_wlan_enable()
777 struct cnss_plat_data *plat_priv; in cnss_wlan_disable()
818 struct cnss_plat_data *plat_priv = cnss_bus_dev_to_plat_priv(dev); in cnss_audio_smmu_map()
845 struct cnss_plat_data *plat_priv = cnss_bus_dev_to_plat_priv(dev); in cnss_audio_smmu_unmap()
866 struct cnss_plat_data *plat_priv = cnss_bus_dev_to_plat_priv(dev); in cnss_get_fw_lpass_shared_mem()
888 struct cnss_plat_data *plat_priv = cnss_bus_dev_to_plat_priv(dev); in cnss_athdiag_read()
917 struct cnss_plat_data *plat_priv = cnss_bus_dev_to_plat_priv(dev); in cnss_athdiag_write()
945 struct cnss_plat_data *plat_priv; in cnss_set_fw_log_mode()
965 struct cnss_plat_data *plat_priv = cnss_bus_dev_to_plat_priv(dev); in cnss_set_pcie_gen_speed()
985 static bool cnss_is_aux_support_enabled(struct cnss_plat_data *plat_priv) in cnss_is_aux_support_enabled()
1002 static int cnss_fw_mem_ready_hdlr(struct cnss_plat_data *plat_priv) in cnss_fw_mem_ready_hdlr()
1061 static int cnss_request_antenna_sharing(struct cnss_plat_data *plat_priv) in cnss_request_antenna_sharing()
1087 static void cnss_release_antenna_sharing(struct cnss_plat_data *plat_priv) in cnss_release_antenna_sharing()
1093 static int cnss_setup_dms_mac(struct cnss_plat_data *plat_priv) in cnss_setup_dms_mac()
1140 static int cnss_cal_db_mem_update(struct cnss_plat_data *plat_priv, in cnss_cal_db_mem_update()
1203 static int cnss_cal_mem_upload_to_file(struct cnss_plat_data *plat_priv) in cnss_cal_mem_upload_to_file()
1213 static int cnss_cal_file_download_to_mem(struct cnss_plat_data *plat_priv, in cnss_cal_file_download_to_mem()
1225 static int cnss_fw_ready_hdlr(struct cnss_plat_data *plat_priv) in cnss_fw_ready_hdlr()
1337 int cnss_driver_event_post(struct cnss_plat_data *plat_priv, in cnss_driver_event_post()
1416 unsigned int cnss_get_timeout(struct cnss_plat_data *plat_priv, in cnss_get_timeout()
1454 struct cnss_plat_data *plat_priv = cnss_bus_dev_to_plat_priv(dev); in cnss_get_boot_timeout()
1468 struct cnss_plat_data *plat_priv = cnss_bus_dev_to_plat_priv(dev); in cnss_power_up()
1508 struct cnss_plat_data *plat_priv = cnss_bus_dev_to_plat_priv(dev); in cnss_power_down()
1525 struct cnss_plat_data *plat_priv = cnss_bus_dev_to_plat_priv(dev); in cnss_idle_restart()
1613 struct cnss_plat_data *plat_priv = cnss_bus_dev_to_plat_priv(dev); in cnss_idle_shutdown()
1639 static int cnss_get_resources(struct cnss_plat_data *plat_priv) in cnss_get_resources()
1671 static void cnss_put_resources(struct cnss_plat_data *plat_priv) in cnss_put_resources()
1682 struct cnss_plat_data *plat_priv = in cnss_modem_notifier_nb()
1683 container_of(nb, struct cnss_plat_data, modem_nb); in cnss_modem_notifier_nb()
1707 static int cnss_register_esoc(struct cnss_plat_data *plat_priv) in cnss_register_esoc()
1761 static void cnss_unregister_esoc(struct cnss_plat_data *plat_priv) in cnss_unregister_esoc()
1777 static inline int cnss_register_esoc(struct cnss_plat_data *plat_priv) in cnss_register_esoc()
1782 static inline void cnss_unregister_esoc(struct cnss_plat_data *plat_priv) {} in cnss_unregister_esoc()
1785 int cnss_enable_dev_sol_irq(struct cnss_plat_data *plat_priv) in cnss_enable_dev_sol_irq()
1801 int cnss_disable_dev_sol_irq(struct cnss_plat_data *plat_priv) in cnss_disable_dev_sol_irq()
1817 int cnss_get_dev_sol_value(struct cnss_plat_data *plat_priv) in cnss_get_dev_sol_value()
1829 struct cnss_plat_data *plat_priv = data; in cnss_dev_sol_handler()
1852 static int cnss_init_dev_sol_gpio(struct cnss_plat_data *plat_priv) in cnss_init_dev_sol_gpio()
1891 static void cnss_deinit_dev_sol_gpio(struct cnss_plat_data *plat_priv) in cnss_deinit_dev_sol_gpio()
1902 int cnss_set_host_sol_value(struct cnss_plat_data *plat_priv, int value) in cnss_set_host_sol_value()
1916 int cnss_get_host_sol_value(struct cnss_plat_data *plat_priv) in cnss_get_host_sol_value()
1926 static int cnss_init_host_sol_gpio(struct cnss_plat_data *plat_priv) in cnss_init_host_sol_gpio()
1955 static void cnss_deinit_host_sol_gpio(struct cnss_plat_data *plat_priv) in cnss_deinit_host_sol_gpio()
1965 static int cnss_init_sol_gpio(struct cnss_plat_data *plat_priv) in cnss_init_sol_gpio()
1985 static void cnss_deinit_sol_gpio(struct cnss_plat_data *plat_priv) in cnss_deinit_sol_gpio()
1994 struct cnss_plat_data *plat_priv; in cnss_subsys_powerup()
2022 struct cnss_plat_data *plat_priv; in cnss_subsys_shutdown()
2045 struct cnss_plat_data *plat_priv = cnss_bus_dev_to_plat_priv(dev); in cnss_device_crashed()
2062 struct cnss_plat_data *plat_priv = dev_get_drvdata(subsys_desc->dev); in cnss_subsys_crash_shutdown()
2075 struct cnss_plat_data *plat_priv = dev_get_drvdata(subsys_desc->dev); in cnss_subsys_ramdump()
2092 void cnss_recovery_handler(struct cnss_plat_data *plat_priv) in cnss_recovery_handler()
2128 struct cnss_plat_data *plat_priv = in cnss_recovery_work_handler()
2129 container_of(work, struct cnss_plat_data, recovery_work); in cnss_recovery_work_handler()
2136 struct cnss_plat_data *plat_priv = cnss_bus_dev_to_plat_priv(dev); in cnss_device_crashed()
2149 struct cnss_plat_data *plat_priv = cnss_bus_dev_to_plat_priv(dev); in cnss_get_virt_ramdump_mem()
2178 static int cnss_do_recovery(struct cnss_plat_data *plat_priv, in cnss_do_recovery()
2262 static int cnss_driver_recovery_hdlr(struct cnss_plat_data *plat_priv, in cnss_driver_recovery_hdlr()
2335 struct cnss_plat_data *plat_priv = cnss_bus_dev_to_plat_priv(dev); in cnss_schedule_recovery()
2364 struct cnss_plat_data *plat_priv = cnss_bus_dev_to_plat_priv(dev); in cnss_force_fw_assert()
2399 struct cnss_plat_data *plat_priv = cnss_bus_dev_to_plat_priv(dev); in cnss_force_collect_rddm()
2454 struct cnss_plat_data *plat_priv = cnss_bus_dev_to_plat_priv(dev); in cnss_qmi_send_get()
2465 struct cnss_plat_data *plat_priv = cnss_bus_dev_to_plat_priv(dev); in cnss_qmi_send_put()
2478 struct cnss_plat_data *plat_priv = cnss_bus_dev_to_plat_priv(dev); in cnss_qmi_send()
2504 struct cnss_plat_data *plat_priv = cnss_bus_dev_to_plat_priv(dev); in cnss_register_driver_async_data_cb()
2519 static int cnss_cold_boot_cal_start_hdlr(struct cnss_plat_data *plat_priv) in cnss_cold_boot_cal_start_hdlr()
2610 static int cnss_cold_boot_cal_done_hdlr(struct cnss_plat_data *plat_priv, in cnss_cold_boot_cal_done_hdlr()
2665 static int cnss_power_up_hdlr(struct cnss_plat_data *plat_priv) in cnss_power_up_hdlr()
2676 static int cnss_power_down_hdlr(struct cnss_plat_data *plat_priv) in cnss_power_down_hdlr()
2683 static int cnss_qdss_trace_req_mem_hdlr(struct cnss_plat_data *plat_priv) in cnss_qdss_trace_req_mem_hdlr()
2724 static int cnss_fw_mem_file_save_hdlr(struct cnss_plat_data *plat_priv, in cnss_fw_mem_file_save_hdlr()
2782 static int cnss_qdss_trace_free_hdlr(struct cnss_plat_data *plat_priv) in cnss_qdss_trace_free_hdlr()
2789 static int cnss_qdss_trace_req_data_hdlr(struct cnss_plat_data *plat_priv, in cnss_qdss_trace_req_data_hdlr()
2807 struct cnss_plat_data *plat_priv = in cnss_driver_event_work()
2808 container_of(work, struct cnss_plat_data, event_work); in cnss_driver_event_work()
2935 int cnss_register_subsys(struct cnss_plat_data *plat_priv) in cnss_register_subsys()
2977 void cnss_unregister_subsys(struct cnss_plat_data *plat_priv) in cnss_unregister_subsys()
2986 static void *cnss_create_ramdump_device(struct cnss_plat_data *plat_priv) in cnss_create_ramdump_device()
2994 static void cnss_destroy_ramdump_device(struct cnss_plat_data *plat_priv, in cnss_destroy_ramdump_device()
3000 int cnss_do_ramdump(struct cnss_plat_data *plat_priv) in cnss_do_ramdump()
3012 int cnss_do_elf_ramdump(struct cnss_plat_data *plat_priv) in cnss_do_elf_ramdump()
3066 struct cnss_plat_data *plat_priv = in cnss_panic_handler()
3067 container_of(nb, struct cnss_plat_data, panic_nb); in cnss_panic_handler()
3074 int cnss_register_subsys(struct cnss_plat_data *plat_priv) in cnss_register_subsys()
3092 void cnss_unregister_subsys(struct cnss_plat_data *plat_priv) in cnss_unregister_subsys()
3103 static void *cnss_create_ramdump_device(struct cnss_plat_data *plat_priv) in cnss_create_ramdump_device()
3108 static void cnss_destroy_ramdump_device(struct cnss_plat_data *plat_priv, in cnss_destroy_ramdump_device()
3115 int cnss_do_ramdump(struct cnss_plat_data *plat_priv) in cnss_do_ramdump()
3134 int cnss_do_ramdump(struct cnss_plat_data *plat_priv) in cnss_do_ramdump()
3326 int cnss_do_elf_ramdump(struct cnss_plat_data *plat_priv) in cnss_do_elf_ramdump()
3408 int cnss_do_host_ramdump(struct cnss_plat_data *plat_priv, in cnss_do_host_ramdump()
3623 static int cnss_init_dump_entry(struct cnss_plat_data *plat_priv) in cnss_init_dump_entry()
3642 static int cnss_register_ramdump_v1(struct cnss_plat_data *plat_priv) in cnss_register_ramdump_v1()
3701 static void cnss_unregister_ramdump_v1(struct cnss_plat_data *plat_priv) in cnss_unregister_ramdump_v1()
3733 static int cnss_register_ramdump_v2(struct cnss_plat_data *plat_priv) in cnss_register_ramdump_v2()
3797 static void cnss_unregister_ramdump_v2(struct cnss_plat_data *plat_priv) in cnss_unregister_ramdump_v2()
3811 int cnss_register_ramdump(struct cnss_plat_data *plat_priv) in cnss_register_ramdump()
3836 void cnss_unregister_ramdump(struct cnss_plat_data *plat_priv) in cnss_unregister_ramdump()
3857 int cnss_register_ramdump(struct cnss_plat_data *plat_priv) in cnss_register_ramdump()
3886 void cnss_unregister_ramdump(struct cnss_plat_data *plat_priv) in cnss_unregister_ramdump()
3917 int cnss_minidump_add_region(struct cnss_plat_data *plat_priv, in cnss_minidump_add_region()
3957 int cnss_minidump_remove_region(struct cnss_plat_data *plat_priv, in cnss_minidump_remove_region()
3998 int cnss_minidump_add_region(struct cnss_plat_data *plat_priv, in cnss_minidump_add_region()
4024 int cnss_minidump_remove_region(struct cnss_plat_data *plat_priv, in cnss_minidump_remove_region()
4032 int cnss_request_firmware_direct(struct cnss_plat_data *plat_priv, in cnss_request_firmware_direct()
4054 static int cnss_register_bus_scale(struct cnss_plat_data *plat_priv) in cnss_register_bus_scale()
4158 static void cnss_unregister_bus_scale(struct cnss_plat_data *plat_priv) in cnss_unregister_bus_scale()
4171 static int cnss_register_bus_scale(struct cnss_plat_data *plat_priv) in cnss_register_bus_scale()
4176 static void cnss_unregister_bus_scale(struct cnss_plat_data *plat_priv) {} in cnss_unregister_bus_scale()
4181 struct cnss_plat_data *plat_priv = cb_ctx; in cnss_daemon_connection_update_cb()
4202 struct cnss_plat_data *plat_priv = dev_get_drvdata(dev); in enable_hds_store()
4228 struct cnss_plat_data *plat_priv = dev_get_drvdata(dev); in recovery_show()
4284 struct cnss_plat_data *plat_priv = dev_get_drvdata(dev); in time_sync_period_show()
4296 uint32_t cnss_get_min_time_sync_period_by_vote(struct cnss_plat_data *plat_priv) in cnss_get_min_time_sync_period_by_vote()
4314 struct cnss_plat_data *plat_priv = dev_get_drvdata(dev); in time_sync_period_store()
4354 struct cnss_plat_data *plat_priv = cnss_bus_dev_to_plat_priv(dev); in cnss_update_time_sync_period()
4389 struct cnss_plat_data *plat_priv = cnss_bus_dev_to_plat_priv(dev); in cnss_reset_time_sync_period()
4417 struct cnss_plat_data *plat_priv = dev_get_drvdata(dev); in recovery_store()
4444 struct cnss_plat_data *plat_priv = dev_get_drvdata(dev); in shutdown_store()
4464 struct cnss_plat_data *plat_priv = dev_get_drvdata(dev); in fs_ready_store()
4496 struct cnss_plat_data *plat_priv = dev_get_drvdata(dev); in qdss_trace_start_store()
4507 struct cnss_plat_data *plat_priv = dev_get_drvdata(dev); in qdss_trace_stop_store()
4522 struct cnss_plat_data *plat_priv = dev_get_drvdata(dev); in qdss_conf_download_store()
4533 struct cnss_plat_data *plat_priv = dev_get_drvdata(dev); in tme_opt_file_download_store()
4571 struct cnss_plat_data *plat_priv = dev_get_drvdata(dev); in hw_trace_override_store()
4586 struct cnss_plat_data *plat_priv = dev_get_drvdata(dev); in charger_mode_store()
4628 static int cnss_create_sysfs_link(struct cnss_plat_data *plat_priv) in cnss_create_sysfs_link()
4669 static void cnss_remove_sysfs_link(struct cnss_plat_data *plat_priv) in cnss_remove_sysfs_link()
4689 static int cnss_create_sysfs(struct cnss_plat_data *plat_priv) in cnss_create_sysfs()
4727 static void cnss_remove_sysfs(struct cnss_plat_data *plat_priv) in cnss_remove_sysfs()
4735 static void cnss_remove_sysfs(struct cnss_plat_data *plat_priv) in cnss_remove_sysfs()
4742 static int cnss_event_work_init(struct cnss_plat_data *plat_priv) in cnss_event_work_init()
4758 static void cnss_event_work_deinit(struct cnss_plat_data *plat_priv) in cnss_event_work_deinit()
4767 struct cnss_plat_data *plat_priv = in cnss_reboot_notifier()
4768 container_of(nb, struct cnss_plat_data, reboot_nb); in cnss_reboot_notifier()
4782 int cnss_wlan_hw_disable_check(struct cnss_plat_data *plat_priv) in cnss_wlan_hw_disable_check()
4816 int cnss_wlan_hw_disable_check(struct cnss_plat_data *plat_priv) in cnss_wlan_hw_disable_check()
4883 int cnss_wlan_hw_disable_check(struct cnss_plat_data *plat_priv) in cnss_wlan_hw_disable_check()
4890 static void cnss_sram_dump_init(struct cnss_plat_data *plat_priv) in cnss_sram_dump_init()
4894 static void cnss_sram_dump_init(struct cnss_plat_data *plat_priv) in cnss_sram_dump_init()
4920 static int cnss_misc_init(struct cnss_plat_data *plat_priv) in cnss_misc_init()
4976 static void cnss_sram_dump_deinit(struct cnss_plat_data *plat_priv) in cnss_sram_dump_deinit()
4980 static void cnss_sram_dump_deinit(struct cnss_plat_data *plat_priv) in cnss_sram_dump_deinit()
4988 static void cnss_misc_deinit(struct cnss_plat_data *plat_priv) in cnss_misc_deinit()
5006 static void cnss_init_time_sync_period_default(struct cnss_plat_data *plat_priv) in cnss_init_time_sync_period_default()
5014 static void cnss_init_control_params(struct cnss_plat_data *plat_priv) in cnss_init_control_params()
5034 static void cnss_get_pm_domain_info(struct cnss_plat_data *plat_priv) in cnss_get_pm_domain_info()
5044 static void cnss_get_wlaon_pwr_ctrl_info(struct cnss_plat_data *plat_priv) in cnss_get_wlaon_pwr_ctrl_info()
5055 static bool cnss_use_fw_path_with_prefix(struct cnss_plat_data *plat_priv) in cnss_use_fw_path_with_prefix()
5107 cnss_use_nv_mac(struct cnss_plat_data *plat_priv) in cnss_use_nv_mac()
5113 static int cnss_get_dev_cfg_node(struct cnss_plat_data *plat_priv) in cnss_get_dev_cfg_node()
5178 cnss_dt_type(struct cnss_plat_data *plat_priv) in cnss_dt_type()
5195 static int cnss_wlan_device_init(struct cnss_plat_data *plat_priv) in cnss_wlan_device_init()
5229 struct cnss_plat_data *plat_priv; in cnss_wlan_hw_enable()
5266 struct cnss_plat_data *plat_priv = cnss_bus_dev_to_plat_priv(dev); in cnss_set_wfc_mode()
5320 struct cnss_plat_data *plat_priv = cnss_get_plat_priv(NULL); in cnss_tcdev_set_cur_state()
5361 struct cnss_plat_data *priv = cnss_get_plat_priv(NULL); in cnss_thermal_cdev_register()
5423 struct cnss_plat_data *priv = cnss_get_plat_priv(NULL); in cnss_thermal_cdev_unregister()
5448 struct cnss_plat_data *priv = cnss_get_plat_priv(NULL); in cnss_get_curr_therm_cdev_state()
5476 struct cnss_plat_data *plat_priv; in cnss_probe()
5636 struct cnss_plat_data *plat_priv = platform_get_drvdata(plat_dev); in cnss_remove()