Lines Matching refs:plat_dev

159 static void cnss_set_plat_priv(struct platform_device *plat_dev,  in cnss_set_plat_priv()  argument
173 *plat_dev) in cnss_get_plat_priv()
177 if (!plat_dev) in cnss_get_plat_priv()
181 if (plat_env[i] && plat_env[i]->plat_dev == plat_dev) in cnss_get_plat_priv()
188 *plat_dev) in cnss_get_first_plat_priv()
192 if (!plat_dev) { in cnss_get_first_plat_priv()
271 return of_property_read_string(plat_priv->plat_dev->dev.of_node, in cnss_get_pld_bus_ops_name()
281 static void cnss_set_plat_priv(struct platform_device *plat_dev, in cnss_set_plat_priv() argument
287 struct cnss_plat_data *cnss_get_plat_priv(struct platform_device *plat_dev) in cnss_get_plat_priv() argument
342 return of_property_read_u32(plat_priv->plat_dev->dev.of_node, in cnss_get_rc_num()
554 if (of_property_read_bool(plat_priv->plat_dev->dev.of_node, in cnss_get_platform_name()
585 pm_stay_awake(&plat_priv->plat_dev->dev); in cnss_pm_stay_awake()
600 pm_relax(&plat_priv->plat_dev->dev); in cnss_pm_relax()
1715 dev = &plat_priv->plat_dev->dev; in cnss_register_esoc()
1766 dev = &plat_priv->plat_dev->dev; in cnss_unregister_esoc()
1854 struct device *dev = &plat_priv->plat_dev->dev; in cnss_init_dev_sol_gpio()
1928 struct device *dev = &plat_priv->plat_dev->dev; in cnss_init_host_sol_gpio()
2948 subsys_info->subsys_desc.dev = &plat_priv->plat_dev->dev; in cnss_register_subsys()
3105 return &plat_priv->plat_dev->dev; in cnss_create_ramdump_device()
3649 dev = &plat_priv->plat_dev->dev; in cnss_register_ramdump_v1()
3706 dev = &plat_priv->plat_dev->dev; in cnss_unregister_ramdump_v1()
3739 struct device *dev = &plat_priv->plat_dev->dev; in cnss_register_ramdump_v2()
3861 struct device *dev = &plat_priv->plat_dev->dev; in cnss_register_ramdump()
4038 &plat_priv->plat_dev->dev); in cnss_request_firmware_direct()
4041 &plat_priv->plat_dev->dev); in cnss_request_firmware_direct()
4059 struct device *dev = &plat_priv->plat_dev->dev; in cnss_register_bus_scale()
4069 ret = of_property_read_u32(plat_priv->plat_dev->dev.of_node, in cnss_register_bus_scale()
4085 ret = of_property_read_u32_array(plat_priv->plat_dev->dev.of_node, in cnss_register_bus_scale()
4110 of_icc_get(&plat_priv->plat_dev->dev, in cnss_register_bus_scale()
4630 struct device *dev = &plat_priv->plat_dev->dev; in cnss_create_sysfs_link()
4693 ret = devm_device_add_group(&plat_priv->plat_dev->dev, in cnss_create_sysfs()
4730 WARN_ON(devres_release(&plat_priv->plat_dev->dev, in cnss_remove_sysfs()
4738 devm_device_remove_group(&plat_priv->plat_dev->dev, &cnss_attr_group); in cnss_remove_sysfs()
4931 ret = device_init_wakeup(&plat_priv->plat_dev->dev, true); in cnss_misc_init()
4952 wakeup_source_register(&plat_priv->plat_dev->dev, in cnss_misc_init()
4966 if (of_property_read_bool(plat_priv->plat_dev->dev.of_node, in cnss_misc_init()
4997 device_init_wakeup(&plat_priv->plat_dev->dev, false); in cnss_misc_deinit()
5019 of_property_read_bool(plat_priv->plat_dev->dev.of_node, in cnss_init_control_params()
5036 struct device *dev = &plat_priv->plat_dev->dev; in cnss_get_pm_domain_info()
5046 struct device *dev = &plat_priv->plat_dev->dev; in cnss_get_wlaon_pwr_ctrl_info()
5057 return (of_property_read_bool(plat_priv->plat_dev->dev.of_node, in cnss_use_fw_path_with_prefix()
5059 of_property_read_bool(plat_priv->plat_dev->dev.of_node, in cnss_use_fw_path_with_prefix()
5061 of_property_read_bool(plat_priv->plat_dev->dev.of_node, in cnss_use_fw_path_with_prefix()
5109 return of_property_read_bool(plat_priv->plat_dev->dev.of_node, in cnss_use_nv_mac()
5136 for_each_available_child_of_node(plat_priv->plat_dev->dev.of_node, in cnss_get_dev_cfg_node()
5157 plat_priv->plat_dev->dev.of_node = child; in cnss_get_dev_cfg_node()
5164 plat_priv->plat_dev->dev.of_node = child; in cnss_get_dev_cfg_node()
5181 plat_priv->plat_dev->dev.of_node, "qcom,converged-dt"); in cnss_dt_type()
5188 plat_priv->plat_dev->dev.of_node, "qcom,multi-wlan-exchg"); in cnss_dt_type()
5473 static int cnss_probe(struct platform_device *plat_dev) in cnss_probe() argument
5480 if (cnss_get_plat_priv(plat_dev)) { in cnss_probe()
5490 of_id = of_match_device(cnss_of_match_table, &plat_dev->dev); in cnss_probe()
5499 plat_priv = devm_kzalloc(&plat_dev->dev, sizeof(*plat_priv), in cnss_probe()
5506 plat_priv->plat_dev = plat_dev; in cnss_probe()
5538 cnss_set_plat_priv(plat_dev, plat_priv); in cnss_probe()
5540 platform_set_drvdata(plat_dev, plat_priv); in cnss_probe()
5626 platform_set_drvdata(plat_dev, NULL); in cnss_probe()
5634 static int cnss_remove(struct platform_device *plat_dev) in cnss_remove() argument
5636 struct cnss_plat_data *plat_priv = platform_get_drvdata(plat_dev); in cnss_remove()
5655 platform_set_drvdata(plat_dev, NULL); in cnss_remove()