Lines Matching refs:driver_ops
2407 cnss_get_plat_priv_by_driver_ops(struct cnss_wlan_driver *driver_ops) in cnss_get_plat_priv_by_driver_ops() argument
2414 if (!driver_ops) { in cnss_get_plat_priv_by_driver_ops()
2423 if (driver_ops->name && plat_env->pld_bus_ops_name) { in cnss_get_plat_priv_by_driver_ops()
2431 if (memcmp(driver_ops->name, in cnss_get_plat_priv_by_driver_ops()
2438 cnss_pr_vdbg("Invalid cnss driver name from ko %s\n", driver_ops->name); in cnss_get_plat_priv_by_driver_ops()
2458 if (driver_ops == pci_priv->driver_ops) in cnss_get_plat_priv_by_driver_ops()
2475 if (!pci_priv->driver_ops) in cnss_get_plat_priv_by_driver_ops()
2538 cnss_get_plat_priv_by_driver_ops(struct cnss_wlan_driver *driver_ops) in cnss_get_plat_priv_by_driver_ops() argument
2946 if (!pci_priv->driver_ops || !pci_priv->driver_ops->set_therm_cdev_state) { in cnss_pci_set_therm_cdev_state()
2951 return pci_priv->driver_ops->set_therm_cdev_state(pci_priv->pci_dev, in cnss_pci_set_therm_cdev_state()
2995 if (!pci_priv->driver_ops) { in cnss_pci_call_driver_probe()
3003 ret = pci_priv->driver_ops->reinit(pci_priv->pci_dev, in cnss_pci_call_driver_probe()
3012 ret = pci_priv->driver_ops->probe(pci_priv->pci_dev, in cnss_pci_call_driver_probe()
3026 ret = pci_priv->driver_ops->idle_restart(pci_priv->pci_dev, in cnss_pci_call_driver_probe()
3071 if (!pci_priv->driver_ops) { in cnss_pci_call_driver_remove()
3081 pci_priv->driver_ops->shutdown(pci_priv->pci_dev); in cnss_pci_call_driver_remove()
3083 pci_priv->driver_ops->remove(pci_priv->pci_dev); in cnss_pci_call_driver_remove()
3087 ret = pci_priv->driver_ops->idle_shutdown(pci_priv->pci_dev); in cnss_pci_call_driver_remove()
3106 struct cnss_wlan_driver *driver_ops; in cnss_pci_call_driver_modem_status() local
3111 driver_ops = pci_priv->driver_ops; in cnss_pci_call_driver_modem_status()
3112 if (!driver_ops || !driver_ops->modem_status) in cnss_pci_call_driver_modem_status()
3115 driver_ops->modem_status(pci_priv->pci_dev, modem_current_status); in cnss_pci_call_driver_modem_status()
3123 struct cnss_wlan_driver *driver_ops; in cnss_pci_update_status() local
3128 driver_ops = pci_priv->driver_ops; in cnss_pci_update_status()
3129 if (!driver_ops || !driver_ops->update_status) in cnss_pci_update_status()
3134 driver_ops->update_status(pci_priv->pci_dev, status); in cnss_pci_update_status()
3324 if (pci_priv->driver_ops && pci_priv->driver_ops->crash_shutdown) in cnss_qca6174_crash_shutdown()
3325 pci_priv->driver_ops->crash_shutdown(pci_priv->pci_dev); in cnss_qca6174_crash_shutdown()
3742 pci_priv->driver_ops); in cnss_wlan_reg_driver_work()
3745 int cnss_wlan_register_driver(struct cnss_wlan_driver *driver_ops) in cnss_wlan_register_driver() argument
3750 const struct pci_device_id *id_table = driver_ops->id_table; in cnss_wlan_register_driver()
3758 plat_priv = cnss_get_plat_priv_by_driver_ops(driver_ops); in cnss_wlan_register_driver()
3770 driver_ops->chip_version != 2) { in cnss_wlan_register_driver()
3776 plat_priv->driver_ops = driver_ops; in cnss_wlan_register_driver()
3803 id_table = driver_ops->id_table; in cnss_wlan_register_driver()
3814 if (driver_ops->chip_version != CNSS_CHIP_VER_ANY && in cnss_wlan_register_driver()
3815 driver_ops->chip_version != plat_priv->device_version.major_version) { in cnss_wlan_register_driver()
3817 driver_ops->chip_version, in cnss_wlan_register_driver()
3827 pci_priv->driver_ops = driver_ops; in cnss_wlan_register_driver()
3845 driver_ops); in cnss_wlan_register_driver()
3851 void cnss_wlan_unregister_driver(struct cnss_wlan_driver *driver_ops) in cnss_wlan_unregister_driver() argument
3857 plat_priv = cnss_get_plat_priv_by_driver_ops(driver_ops); in cnss_wlan_unregister_driver()
3913 pci_priv->driver_ops = data; in cnss_pci_register_driver_hdlr()
3918 pci_priv->driver_ops = NULL; in cnss_pci_register_driver_hdlr()
3936 pci_priv->driver_ops = NULL; in cnss_pci_unregister_driver_hdlr()
3945 struct cnss_wlan_driver *driver_ops = pci_priv->driver_ops; in cnss_pci_suspend_driver() local
3952 driver_ops && driver_ops->suspend) { in cnss_pci_suspend_driver()
3953 ret = driver_ops->suspend(pci_dev, state); in cnss_pci_suspend_driver()
3967 struct cnss_wlan_driver *driver_ops = pci_priv->driver_ops; in cnss_pci_resume_driver() local
3972 driver_ops && driver_ops->resume) { in cnss_pci_resume_driver()
3973 ret = driver_ops->resume(pci_dev); in cnss_pci_resume_driver()
4182 struct cnss_wlan_driver *driver_ops; in cnss_pci_suspend_noirq() local
4191 driver_ops = pci_priv->driver_ops; in cnss_pci_suspend_noirq()
4194 driver_ops && driver_ops->suspend_noirq) in cnss_pci_suspend_noirq()
4195 ret = driver_ops->suspend_noirq(pci_dev); in cnss_pci_suspend_noirq()
4210 struct cnss_wlan_driver *driver_ops; in cnss_pci_resume_noirq() local
4220 driver_ops = pci_priv->driver_ops; in cnss_pci_resume_noirq()
4222 driver_ops && driver_ops->resume_noirq && in cnss_pci_resume_noirq()
4224 ret = driver_ops->resume_noirq(pci_dev); in cnss_pci_resume_noirq()
4236 struct cnss_wlan_driver *driver_ops; in cnss_pci_runtime_suspend() local
4265 driver_ops = pci_priv->driver_ops; in cnss_pci_runtime_suspend()
4266 if (driver_ops && driver_ops->runtime_ops && in cnss_pci_runtime_suspend()
4267 driver_ops->runtime_ops->runtime_suspend) in cnss_pci_runtime_suspend()
4268 ret = driver_ops->runtime_ops->runtime_suspend(pci_dev); in cnss_pci_runtime_suspend()
4285 struct cnss_wlan_driver *driver_ops; in cnss_pci_runtime_resume() local
4300 driver_ops = pci_priv->driver_ops; in cnss_pci_runtime_resume()
4301 if (driver_ops && driver_ops->runtime_ops && in cnss_pci_runtime_resume()
4302 driver_ops->runtime_ops->runtime_resume) in cnss_pci_runtime_resume()
4303 ret = driver_ops->runtime_ops->runtime_resume(pci_dev); in cnss_pci_runtime_resume()
6209 struct cnss_wlan_driver *driver_ops; in cnss_pci_call_driver_uevent() local
6211 driver_ops = pci_priv->driver_ops; in cnss_pci_call_driver_uevent()
6212 if (!driver_ops || !driver_ops->update_event) { in cnss_pci_call_driver_uevent()
6222 return driver_ops->update_event(pci_priv->pci_dev, &uevent_data); in cnss_pci_call_driver_uevent()
6319 if (pci_priv->driver_ops && in cnss_pci_collect_host_dump_info()
6320 pci_priv->driver_ops->collect_driver_dump) { in cnss_pci_collect_host_dump_info()
6321 ret = pci_priv->driver_ops->collect_driver_dump(pci_priv->pci_dev, in cnss_pci_collect_host_dump_info()