Lines Matching refs:dev
143 struct device *dev, struct device *ifdev, in pld_add_dev() argument
153 dev_node->dev = dev; in pld_add_dev()
165 struct device *dev) in pld_del_dev() argument
172 if (dev_node->dev == dev) { in pld_del_dev()
180 static struct dev_node *pld_get_dev_node(struct device *dev) in pld_get_dev_node() argument
188 if (!dev || !pld_context) { in pld_get_dev_node()
190 dev, pld_context); in pld_get_dev_node()
196 if (dev_node->dev == dev) { in pld_get_dev_node()
206 enum pld_bus_type pld_get_bus_type(struct device *dev) in pld_get_bus_type() argument
208 struct dev_node *dev_node = pld_get_dev_node(dev); in pld_get_bus_type()
222 static struct device *pld_get_if_dev(struct device *dev) in pld_get_if_dev() argument
224 struct dev_node *dev_node = pld_get_dev_node(dev); in pld_get_if_dev()
360 int pld_wlan_enable(struct device *dev, struct pld_wlan_enable_cfg *config, in pld_wlan_enable() argument
366 switch (pld_get_bus_type(dev)) { in pld_wlan_enable()
368 ret = pld_pcie_wlan_enable(dev, config, mode, QWLAN_VERSIONSTR); in pld_wlan_enable()
371 ret = pld_snoc_wlan_enable(dev, config, mode, QWLAN_VERSIONSTR); in pld_wlan_enable()
374 ret = pld_snoc_fw_sim_wlan_enable(dev, config, mode, in pld_wlan_enable()
379 ret = pld_pcie_fw_sim_wlan_enable(dev, config, mode, in pld_wlan_enable()
383 ret = pld_sdio_wlan_enable(dev, config, mode, QWLAN_VERSIONSTR); in pld_wlan_enable()
386 ifdev = pld_get_if_dev(dev); in pld_wlan_enable()
391 ret = pld_ipci_wlan_enable(dev, config, mode, QWLAN_VERSIONSTR); in pld_wlan_enable()
401 int pld_wlan_disable(struct device *dev, enum pld_driver_mode mode) in pld_wlan_disable() argument
405 switch (pld_get_bus_type(dev)) { in pld_wlan_disable()
407 ret = pld_pcie_wlan_disable(dev, mode); in pld_wlan_disable()
410 ret = pld_snoc_wlan_disable(dev, mode); in pld_wlan_disable()
413 ret = pld_snoc_fw_sim_wlan_disable(dev, mode); in pld_wlan_disable()
417 ret = pld_pcie_fw_sim_wlan_disable(dev, mode); in pld_wlan_disable()
422 ret = pld_ipci_wlan_disable(dev, mode); in pld_wlan_disable()
437 int pld_set_fw_log_mode(struct device *dev, u8 fw_log_mode) in pld_set_fw_log_mode() argument
441 switch (pld_get_bus_type(dev)) { in pld_set_fw_log_mode()
443 ret = pld_pcie_set_fw_log_mode(dev, fw_log_mode); in pld_set_fw_log_mode()
446 ret = pld_snoc_set_fw_log_mode(dev, fw_log_mode); in pld_set_fw_log_mode()
454 ret = pld_ipci_set_fw_log_mode(dev, fw_log_mode); in pld_set_fw_log_mode()
484 int pld_get_fw_files_for_target(struct device *dev, in pld_get_fw_files_for_target() argument
490 switch (pld_get_bus_type(dev)) { in pld_get_fw_files_for_target()
492 ret = pld_pcie_get_fw_files_for_target(dev, pfw_files, in pld_get_fw_files_for_target()
520 int pld_prevent_l1(struct device *dev) in pld_prevent_l1() argument
524 switch (pld_get_bus_type(dev)) { in pld_prevent_l1()
526 ret = pld_pcie_prevent_l1(dev); in pld_prevent_l1()
536 ret = pld_ipci_prevent_l1(dev); in pld_prevent_l1()
547 void pld_allow_l1(struct device *dev) in pld_allow_l1() argument
549 switch (pld_get_bus_type(dev)) { in pld_allow_l1()
551 pld_pcie_allow_l1(dev); in pld_allow_l1()
561 pld_ipci_allow_l1(dev); in pld_allow_l1()
569 int pld_get_mhi_state(struct device *dev) in pld_get_mhi_state() argument
573 switch (pld_get_bus_type(dev)) { in pld_get_mhi_state()
584 ret = pld_ipci_mhi_state(dev); in pld_get_mhi_state()
593 int pld_set_pcie_gen_speed(struct device *dev, u8 pcie_gen_speed) in pld_set_pcie_gen_speed() argument
597 switch (pld_get_bus_type(dev)) { in pld_set_pcie_gen_speed()
599 ret = pld_pcie_set_gen_speed(dev, pcie_gen_speed); in pld_set_pcie_gen_speed()
608 void pld_is_pci_link_down(struct device *dev) in pld_is_pci_link_down() argument
610 switch (pld_get_bus_type(dev)) { in pld_is_pci_link_down()
615 pld_pcie_link_down(dev); in pld_is_pci_link_down()
627 void pld_get_bus_reg_dump(struct device *dev, uint8_t *buf, uint32_t len) in pld_get_bus_reg_dump() argument
629 switch (pld_get_bus_type(dev)) { in pld_get_bus_reg_dump()
633 pld_pcie_get_reg_dump(dev, buf, len); in pld_get_bus_reg_dump()
645 void pld_schedule_recovery_work(struct device *dev, in pld_schedule_recovery_work() argument
648 switch (pld_get_bus_type(dev)) { in pld_schedule_recovery_work()
650 pld_pcie_schedule_recovery_work(dev, reason); in pld_schedule_recovery_work()
664 int pld_wlan_pm_control(struct device *dev, bool vote) in pld_wlan_pm_control() argument
668 switch (pld_get_bus_type(dev)) { in pld_wlan_pm_control()
670 ret = pld_pcie_wlan_pm_control(dev, vote); in pld_wlan_pm_control()
689 void *pld_get_virt_ramdump_mem(struct device *dev, unsigned long *size) in pld_get_virt_ramdump_mem() argument
693 switch (pld_get_bus_type(dev)) { in pld_get_virt_ramdump_mem()
695 mem = pld_pcie_get_virt_ramdump_mem(dev, size); in pld_get_virt_ramdump_mem()
704 mem = pld_sdio_get_virt_ramdump_mem(dev, size); in pld_get_virt_ramdump_mem()
714 void pld_release_virt_ramdump_mem(struct device *dev, void *address) in pld_release_virt_ramdump_mem() argument
716 switch (pld_get_bus_type(dev)) { in pld_release_virt_ramdump_mem()
735 void pld_device_crashed(struct device *dev) in pld_device_crashed() argument
737 switch (pld_get_bus_type(dev)) { in pld_device_crashed()
739 pld_pcie_device_crashed(dev); in pld_device_crashed()
749 pld_sdio_device_crashed(dev); in pld_device_crashed()
757 void pld_device_self_recovery(struct device *dev, in pld_device_self_recovery() argument
760 switch (pld_get_bus_type(dev)) { in pld_device_self_recovery()
762 pld_pcie_device_self_recovery(dev, reason); in pld_device_self_recovery()
772 pld_sdio_device_self_recovery(dev); in pld_device_self_recovery()
780 void pld_intr_notify_q6(struct device *dev) in pld_intr_notify_q6() argument
782 switch (pld_get_bus_type(dev)) { in pld_intr_notify_q6()
784 pld_pcie_intr_notify_q6(dev); in pld_intr_notify_q6()
798 void pld_request_pm_qos(struct device *dev, u32 qos_val) in pld_request_pm_qos() argument
800 switch (pld_get_bus_type(dev)) { in pld_request_pm_qos()
802 pld_pcie_request_pm_qos(dev, qos_val); in pld_request_pm_qos()
822 void pld_remove_pm_qos(struct device *dev) in pld_remove_pm_qos() argument
824 switch (pld_get_bus_type(dev)) { in pld_remove_pm_qos()
826 pld_pcie_remove_pm_qos(dev); in pld_remove_pm_qos()
844 int pld_request_bus_bandwidth(struct device *dev, int bandwidth) in pld_request_bus_bandwidth() argument
848 switch (pld_get_bus_type(dev)) { in pld_request_bus_bandwidth()
850 ret = pld_pcie_request_bus_bandwidth(dev, bandwidth); in pld_request_bus_bandwidth()
870 bool pld_is_direct_link_supported(struct device *dev) in pld_is_direct_link_supported() argument
874 switch (pld_get_bus_type(dev)) { in pld_is_direct_link_supported()
876 ret = pld_pcie_is_direct_link_supported(dev); in pld_is_direct_link_supported()
891 int pld_get_platform_cap(struct device *dev, struct pld_platform_cap *cap) in pld_get_platform_cap() argument
895 switch (pld_get_bus_type(dev)) { in pld_get_platform_cap()
897 ret = pld_pcie_get_platform_cap(dev, cap); in pld_get_platform_cap()
901 ret = pld_pcie_fw_sim_get_platform_cap(dev, cap); in pld_get_platform_cap()
918 int pld_get_sha_hash(struct device *dev, const u8 *data, in pld_get_sha_hash() argument
923 switch (pld_get_bus_type(dev)) { in pld_get_sha_hash()
925 ret = pld_pcie_get_sha_hash(dev, data, data_len, in pld_get_sha_hash()
945 void *pld_get_fw_ptr(struct device *dev) in pld_get_fw_ptr() argument
949 switch (pld_get_bus_type(dev)) { in pld_get_fw_ptr()
951 ptr = pld_pcie_get_fw_ptr(dev); in pld_get_fw_ptr()
969 int pld_auto_suspend(struct device *dev) in pld_auto_suspend() argument
973 switch (pld_get_bus_type(dev)) { in pld_auto_suspend()
975 ret = pld_pcie_auto_suspend(dev); in pld_auto_suspend()
994 int pld_auto_resume(struct device *dev) in pld_auto_resume() argument
998 switch (pld_get_bus_type(dev)) { in pld_auto_resume()
1000 ret = pld_pcie_auto_resume(dev); in pld_auto_resume()
1019 int pld_force_wake_request(struct device *dev) in pld_force_wake_request() argument
1022 enum pld_bus_type type = pld_get_bus_type(dev); in pld_force_wake_request()
1026 ret = pld_pcie_force_wake_request(dev); in pld_force_wake_request()
1036 ret = pld_ipci_force_wake_request(dev); in pld_force_wake_request()
1047 int pld_force_wake_request_sync(struct device *dev, int timeout_us) in pld_force_wake_request_sync() argument
1050 enum pld_bus_type type = pld_get_bus_type(dev); in pld_force_wake_request_sync()
1054 ret = pld_pcie_force_wake_request_sync(dev, timeout_us); in pld_force_wake_request_sync()
1073 int pld_exit_power_save(struct device *dev) in pld_exit_power_save() argument
1076 enum pld_bus_type type = pld_get_bus_type(dev); in pld_exit_power_save()
1087 ret = pld_pcie_fw_sim_exit_power_save(dev); in pld_exit_power_save()
1090 ret = pld_ipci_exit_power_save(dev); in pld_exit_power_save()
1101 int pld_is_device_awake(struct device *dev) in pld_is_device_awake() argument
1104 enum pld_bus_type type = pld_get_bus_type(dev); in pld_is_device_awake()
1108 ret = pld_pcie_is_device_awake(dev); in pld_is_device_awake()
1118 ret = pld_ipci_is_device_awake(dev); in pld_is_device_awake()
1129 int pld_is_pci_ep_awake(struct device *dev) in pld_is_pci_ep_awake() argument
1132 enum pld_bus_type type = pld_get_bus_type(dev); in pld_is_pci_ep_awake()
1145 ret = pld_ipci_is_pci_ep_awake(dev); in pld_is_pci_ep_awake()
1156 int pld_force_wake_release(struct device *dev) in pld_force_wake_release() argument
1159 enum pld_bus_type type = pld_get_bus_type(dev); in pld_force_wake_release()
1163 ret = pld_pcie_force_wake_release(dev); in pld_force_wake_release()
1173 ret = pld_ipci_force_wake_release(dev); in pld_force_wake_release()
1184 int pld_ce_request_irq(struct device *dev, unsigned int ce_id, in pld_ce_request_irq() argument
1190 switch (pld_get_bus_type(dev)) { in pld_ce_request_irq()
1192 ret = pld_snoc_ce_request_irq(dev, ce_id, in pld_ce_request_irq()
1196 ret = pld_snoc_fw_sim_ce_request_irq(dev, ce_id, in pld_ce_request_irq()
1213 int pld_ce_free_irq(struct device *dev, unsigned int ce_id, void *ctx) in pld_ce_free_irq() argument
1217 switch (pld_get_bus_type(dev)) { in pld_ce_free_irq()
1219 ret = pld_snoc_ce_free_irq(dev, ce_id, ctx); in pld_ce_free_irq()
1222 ret = pld_snoc_fw_sim_ce_free_irq(dev, ce_id, ctx); in pld_ce_free_irq()
1238 void pld_enable_irq(struct device *dev, unsigned int ce_id) in pld_enable_irq() argument
1240 switch (pld_get_bus_type(dev)) { in pld_enable_irq()
1242 pld_snoc_enable_irq(dev, ce_id); in pld_enable_irq()
1245 pld_snoc_fw_sim_enable_irq(dev, ce_id); in pld_enable_irq()
1260 void pld_disable_irq(struct device *dev, unsigned int ce_id) in pld_disable_irq() argument
1262 switch (pld_get_bus_type(dev)) { in pld_disable_irq()
1264 pld_snoc_disable_irq(dev, ce_id); in pld_disable_irq()
1267 pld_snoc_fw_sim_disable_irq(dev, ce_id); in pld_disable_irq()
1282 int pld_get_soc_info(struct device *dev, struct pld_soc_info *info) in pld_get_soc_info() argument
1287 switch (pld_get_bus_type(dev)) { in pld_get_soc_info()
1289 ret = pld_snoc_get_soc_info(dev, info); in pld_get_soc_info()
1292 ret = pld_snoc_fw_sim_get_soc_info(dev, info); in pld_get_soc_info()
1296 ret = pld_pcie_fw_sim_get_soc_info(dev, info); in pld_get_soc_info()
1299 ret = pld_pcie_get_soc_info(dev, info); in pld_get_soc_info()
1304 ret = pld_ipci_get_soc_info(dev, info); in pld_get_soc_info()
1314 int pld_get_ce_id(struct device *dev, int irq) in pld_get_ce_id() argument
1318 switch (pld_get_bus_type(dev)) { in pld_get_ce_id()
1320 ret = pld_snoc_get_ce_id(dev, irq); in pld_get_ce_id()
1323 ret = pld_snoc_fw_sim_get_ce_id(dev, irq); in pld_get_ce_id()
1326 ret = pld_pcie_get_ce_id(dev, irq); in pld_get_ce_id()
1341 int pld_get_irq(struct device *dev, int ce_id) in pld_get_irq() argument
1345 switch (pld_get_bus_type(dev)) { in pld_get_irq()
1347 ret = pld_snoc_get_irq(dev, ce_id); in pld_get_irq()
1350 ret = pld_snoc_fw_sim_get_irq(dev, ce_id); in pld_get_irq()
1353 ret = pld_ipci_get_irq(dev, ce_id); in pld_get_irq()
1357 ret = pld_pcie_fw_sim_get_irq(dev, ce_id); in pld_get_irq()
1368 void pld_lock_reg_window(struct device *dev, unsigned long *flags) in pld_lock_reg_window() argument
1370 switch (pld_get_bus_type(dev)) { in pld_lock_reg_window()
1372 pld_pcie_lock_reg_window(dev, flags); in pld_lock_reg_window()
1390 void pld_unlock_reg_window(struct device *dev, unsigned long *flags) in pld_unlock_reg_window() argument
1392 switch (pld_get_bus_type(dev)) { in pld_unlock_reg_window()
1394 pld_pcie_unlock_reg_window(dev, flags); in pld_unlock_reg_window()
1412 int pld_get_pci_slot(struct device *dev) in pld_get_pci_slot() argument
1416 switch (pld_get_bus_type(dev)) { in pld_get_pci_slot()
1418 ret = pld_pcie_get_pci_slot(dev); in pld_get_pci_slot()
1435 int pld_power_on(struct device *dev) in pld_power_on() argument
1439 switch (pld_get_bus_type(dev)) { in pld_power_on()
1451 ret = pld_snoc_power_on(dev); in pld_power_on()
1454 ret = pld_ipci_power_on(dev); in pld_power_on()
1464 int pld_power_off(struct device *dev) in pld_power_off() argument
1468 switch (pld_get_bus_type(dev)) { in pld_power_off()
1480 ret = pld_snoc_power_off(dev); in pld_power_off()
1483 ret = pld_ipci_power_off(dev); in pld_power_off()
1493 int pld_athdiag_read(struct device *dev, uint32_t offset, in pld_athdiag_read() argument
1499 switch (pld_get_bus_type(dev)) { in pld_athdiag_read()
1501 ret = pld_snoc_athdiag_read(dev, offset, memtype, in pld_athdiag_read()
1505 ret = pld_pcie_athdiag_read(dev, offset, memtype, in pld_athdiag_read()
1511 ret = pld_usb_athdiag_read(dev, offset, memtype, in pld_athdiag_read()
1515 ret = pld_ipci_athdiag_read(dev, offset, memtype, in pld_athdiag_read()
1530 int pld_athdiag_write(struct device *dev, uint32_t offset, in pld_athdiag_write() argument
1536 switch (pld_get_bus_type(dev)) { in pld_athdiag_write()
1538 ret = pld_snoc_athdiag_write(dev, offset, memtype, in pld_athdiag_write()
1542 ret = pld_pcie_athdiag_write(dev, offset, memtype, in pld_athdiag_write()
1548 ret = pld_usb_athdiag_write(dev, offset, memtype, in pld_athdiag_write()
1552 ret = pld_ipci_athdiag_write(dev, offset, memtype, in pld_athdiag_write()
1568 void *pld_smmu_get_domain(struct device *dev) in pld_smmu_get_domain() argument
1571 enum pld_bus_type type = pld_get_bus_type(dev); in pld_smmu_get_domain()
1575 ptr = pld_snoc_smmu_get_domain(dev); in pld_smmu_get_domain()
1578 ptr = pld_pcie_smmu_get_domain(dev); in pld_smmu_get_domain()
1585 ptr = pld_ipci_smmu_get_domain(dev); in pld_smmu_get_domain()
1599 void *pld_smmu_get_mapping(struct device *dev) in pld_smmu_get_mapping() argument
1602 enum pld_bus_type type = pld_get_bus_type(dev); in pld_smmu_get_mapping()
1606 ptr = pld_snoc_smmu_get_mapping(dev); in pld_smmu_get_mapping()
1615 ptr = pld_pcie_smmu_get_mapping(dev); in pld_smmu_get_mapping()
1627 struct kobject *pld_get_wifi_kobj(struct device *dev) in pld_get_wifi_kobj() argument
1631 wifi_kobj = pld_pcie_get_wifi_kobj(dev); in pld_get_wifi_kobj()
1637 int pld_smmu_map(struct device *dev, phys_addr_t paddr, in pld_smmu_map() argument
1641 enum pld_bus_type type = pld_get_bus_type(dev); in pld_smmu_map()
1645 ret = pld_snoc_smmu_map(dev, paddr, iova_addr, size); in pld_smmu_map()
1652 ret = pld_ipci_smmu_map(dev, paddr, iova_addr, size); in pld_smmu_map()
1655 ret = pld_pcie_smmu_map(dev, paddr, iova_addr, size); in pld_smmu_map()
1667 int pld_smmu_unmap(struct device *dev, in pld_smmu_unmap() argument
1671 enum pld_bus_type type = pld_get_bus_type(dev); in pld_smmu_unmap()
1675 ret = pld_snoc_smmu_unmap(dev, iova_addr, size); in pld_smmu_unmap()
1678 ret = pld_pcie_smmu_unmap(dev, iova_addr, size); in pld_smmu_unmap()
1681 ret = pld_ipci_smmu_unmap(dev, iova_addr, size); in pld_smmu_unmap()
1698 int pld_get_user_msi_assignment(struct device *dev, char *user_name, in pld_get_user_msi_assignment() argument
1703 enum pld_bus_type type = pld_get_bus_type(dev); in pld_get_user_msi_assignment()
1707 ret = pld_pcie_get_user_msi_assignment(dev, user_name, in pld_get_user_msi_assignment()
1714 ret = pld_pcie_fw_sim_get_user_msi_assignment(dev, user_name, in pld_get_user_msi_assignment()
1727 ret = pld_ipci_get_user_msi_assignment(dev, user_name, in pld_get_user_msi_assignment()
1741 int pld_srng_devm_request_irq(struct device *dev, int irq, in pld_srng_devm_request_irq() argument
1748 enum pld_bus_type type = pld_get_bus_type(dev); in pld_srng_devm_request_irq()
1752 ret = devm_request_irq(dev, irq, handler, irqflags, in pld_srng_devm_request_irq()
1757 ret = pld_pcie_fw_sim_request_irq(dev, irq, handler, in pld_srng_devm_request_irq()
1769 ret = devm_request_irq(dev, irq, handler, irqflags, in pld_srng_devm_request_irq()
1781 int pld_srng_request_irq(struct device *dev, int irq, irq_handler_t handler, in pld_srng_request_irq() argument
1787 enum pld_bus_type type = pld_get_bus_type(dev); in pld_srng_request_irq()
1795 ret = pld_pcie_fw_sim_request_irq(dev, irq, handler, in pld_srng_request_irq()
1818 int pld_srng_free_irq(struct device *dev, int irq, void *dev_data) in pld_srng_free_irq() argument
1821 enum pld_bus_type type = pld_get_bus_type(dev); in pld_srng_free_irq()
1829 ret = pld_pcie_fw_sim_free_irq(dev, irq, dev_data); in pld_srng_free_irq()
1850 void pld_srng_enable_irq(struct device *dev, int irq) in pld_srng_enable_irq() argument
1852 switch (pld_get_bus_type(dev)) { in pld_srng_enable_irq()
1858 pld_pcie_fw_sim_enable_irq(dev, irq); in pld_srng_enable_irq()
1874 void pld_srng_disable_irq(struct device *dev, int irq) in pld_srng_disable_irq() argument
1876 switch (pld_get_bus_type(dev)) { in pld_srng_disable_irq()
1882 pld_pcie_fw_sim_disable_irq(dev, irq); in pld_srng_disable_irq()
1898 void pld_srng_disable_irq_sync(struct device *dev, int irq) in pld_srng_disable_irq_sync() argument
1900 switch (pld_get_bus_type(dev)) { in pld_srng_disable_irq_sync()
1906 pld_pcie_fw_sim_disable_irq(dev, irq); in pld_srng_disable_irq_sync()
1924 switch (pld_get_bus_type(&pdev->dev)) { in pld_pci_read_config_word()
1930 ret = pld_pcie_fw_sim_read_config_word(&pdev->dev, offset, val); in pld_pci_read_config_word()
1951 switch (pld_get_bus_type(&pdev->dev)) { in pld_pci_write_config_word()
1977 switch (pld_get_bus_type(&pdev->dev)) { in pld_pci_read_config_dword()
2003 switch (pld_get_bus_type(&pdev->dev)) { in pld_pci_write_config_dword()
2025 int pld_get_msi_irq(struct device *dev, unsigned int vector) in pld_get_msi_irq() argument
2028 enum pld_bus_type type = pld_get_bus_type(dev); in pld_get_msi_irq()
2032 ret = pld_pcie_get_msi_irq(dev, vector); in pld_get_msi_irq()
2036 ret = pld_pcie_fw_sim_get_msi_irq(dev, vector); in pld_get_msi_irq()
2046 ret = pld_ipci_get_msi_irq(dev, vector); in pld_get_msi_irq()
2057 void pld_get_msi_address(struct device *dev, uint32_t *msi_addr_low, in pld_get_msi_address() argument
2060 enum pld_bus_type type = pld_get_bus_type(dev); in pld_get_msi_address()
2064 pld_pcie_get_msi_address(dev, msi_addr_low, msi_addr_high); in pld_get_msi_address()
2068 pld_pcie_fw_sim_get_msi_address(dev, msi_addr_low, in pld_get_msi_address()
2078 pld_ipci_get_msi_address(dev, msi_addr_low, msi_addr_high); in pld_get_msi_address()
2086 int pld_is_drv_connected(struct device *dev) in pld_is_drv_connected() argument
2088 enum pld_bus_type type = pld_get_bus_type(dev); in pld_is_drv_connected()
2093 ret = pld_pcie_is_drv_connected(dev); in pld_is_drv_connected()
2112 unsigned int pld_socinfo_get_serial_number(struct device *dev) in pld_socinfo_get_serial_number() argument
2115 enum pld_bus_type type = pld_get_bus_type(dev); in pld_socinfo_get_serial_number()
2119 ret = pld_snoc_socinfo_get_serial_number(dev); in pld_socinfo_get_serial_number()
2138 int pld_is_qmi_disable(struct device *dev) in pld_is_qmi_disable() argument
2141 enum pld_bus_type type = pld_get_bus_type(dev); in pld_is_qmi_disable()
2145 ret = pld_snoc_is_qmi_disable(dev); in pld_is_qmi_disable()
2167 int pld_is_fw_down(struct device *dev) in pld_is_fw_down() argument
2170 enum pld_bus_type type = pld_get_bus_type(dev); in pld_is_fw_down()
2175 ret = pld_snoc_is_fw_down(dev); in pld_is_fw_down()
2178 ret = pld_snoc_fw_sim_is_fw_down(dev); in pld_is_fw_down()
2184 ret = pld_pcie_is_fw_down(dev); in pld_is_fw_down()
2189 ifdev = pld_get_if_dev(dev); in pld_is_fw_down()
2193 ret = pld_ipci_is_fw_down(dev); in pld_is_fw_down()
2205 int pld_is_low_power_mode(struct device *dev) in pld_is_low_power_mode() argument
2208 enum pld_bus_type type = pld_get_bus_type(dev); in pld_is_low_power_mode()
2212 ret = pld_snoc_is_low_power_mode(dev); in pld_is_low_power_mode()
2225 int pld_force_assert_target(struct device *dev) in pld_force_assert_target() argument
2227 enum pld_bus_type type = pld_get_bus_type(dev); in pld_force_assert_target()
2231 return pld_snoc_force_assert_target(dev); in pld_force_assert_target()
2233 return pld_pcie_force_assert_target(dev); in pld_force_assert_target()
2241 return pld_ipci_force_assert_target(dev); in pld_force_assert_target()
2248 int pld_force_collect_target_dump(struct device *dev) in pld_force_collect_target_dump() argument
2250 enum pld_bus_type type = pld_get_bus_type(dev); in pld_force_collect_target_dump()
2254 return pld_pcie_collect_rddm(dev); in pld_force_collect_target_dump()
2269 int pld_qmi_send_get(struct device *dev) in pld_qmi_send_get() argument
2271 enum pld_bus_type type = pld_get_bus_type(dev); in pld_qmi_send_get()
2275 return pld_pcie_qmi_send_get(dev); in pld_qmi_send_get()
2287 int pld_qmi_send_put(struct device *dev) in pld_qmi_send_put() argument
2289 enum pld_bus_type type = pld_get_bus_type(dev); in pld_qmi_send_put()
2293 return pld_pcie_qmi_send_put(dev); in pld_qmi_send_put()
2305 int pld_qmi_send(struct device *dev, int type, void *cmd, in pld_qmi_send() argument
2309 enum pld_bus_type bus_type = pld_get_bus_type(dev); in pld_qmi_send()
2313 return pld_pcie_qmi_send(dev, type, cmd, cmd_len, cb_ctx, cb); in pld_qmi_send()
2319 return pld_ipci_qmi_send(dev, type, cmd, cmd_len, cb_ctx, cb); in pld_qmi_send()
2326 int pld_qmi_indication(struct device *dev, void *cb_ctx, in pld_qmi_indication() argument
2330 enum pld_bus_type bus_type = pld_get_bus_type(dev); in pld_qmi_indication()
2334 return pld_pcie_register_qmi_ind(dev, cb_ctx, cb); in pld_qmi_indication()
2346 bool pld_is_fw_dump_skipped(struct device *dev) in pld_is_fw_dump_skipped() argument
2349 enum pld_bus_type type = pld_get_bus_type(dev); in pld_is_fw_dump_skipped()
2365 int pld_is_pdr(struct device *dev) in pld_is_pdr() argument
2368 enum pld_bus_type type = pld_get_bus_type(dev); in pld_is_pdr()
2384 int pld_is_fw_rejuvenate(struct device *dev) in pld_is_fw_rejuvenate() argument
2387 enum pld_bus_type type = pld_get_bus_type(dev); in pld_is_fw_rejuvenate()
2403 bool pld_have_platform_driver_support(struct device *dev) in pld_have_platform_driver_support() argument
2407 switch (pld_get_bus_type(dev)) { in pld_have_platform_driver_support()
2432 int pld_idle_shutdown(struct device *dev, in pld_idle_shutdown() argument
2433 int (*shutdown_cb)(struct device *dev)) in pld_idle_shutdown() argument
2441 type = pld_get_bus_type(dev); in pld_idle_shutdown()
2445 errno = shutdown_cb(dev); in pld_idle_shutdown()
2448 errno = pld_snoc_idle_shutdown(dev); in pld_idle_shutdown()
2451 errno = pld_pcie_idle_shutdown(dev); in pld_idle_shutdown()
2455 errno = pld_pcie_fw_sim_idle_shutdown(dev); in pld_idle_shutdown()
2458 errno = pld_snoc_fw_sim_idle_shutdown(dev); in pld_idle_shutdown()
2461 errno = pld_ipci_idle_shutdown(dev); in pld_idle_shutdown()
2471 int pld_idle_restart(struct device *dev, in pld_idle_restart() argument
2472 int (*restart_cb)(struct device *dev)) in pld_idle_restart() argument
2480 type = pld_get_bus_type(dev); in pld_idle_restart()
2484 errno = restart_cb(dev); in pld_idle_restart()
2487 errno = pld_snoc_idle_restart(dev); in pld_idle_restart()
2490 errno = pld_pcie_idle_restart(dev); in pld_idle_restart()
2494 errno = pld_pcie_fw_sim_idle_restart(dev); in pld_idle_restart()
2497 errno = pld_snoc_fw_sim_idle_restart(dev); in pld_idle_restart()
2500 errno = pld_ipci_idle_restart(dev); in pld_idle_restart()
2510 int pld_thermal_register(struct device *dev, in pld_thermal_register() argument
2516 type = pld_get_bus_type(dev); in pld_thermal_register()
2523 errno = pld_pci_thermal_register(dev, max_state, mon_id); in pld_thermal_register()
2528 errno = pld_pcie_fw_sim_thermal_register(dev, max_state, in pld_thermal_register()
2534 errno = pld_ipci_thermal_register(dev, max_state, mon_id); in pld_thermal_register()
2544 void pld_thermal_unregister(struct device *dev, int mon_id) in pld_thermal_unregister() argument
2548 type = pld_get_bus_type(dev); in pld_thermal_unregister()
2555 pld_pci_thermal_unregister(dev, mon_id); in pld_thermal_unregister()
2560 pld_pcie_fw_sim_thermal_unregister(dev, mon_id); in pld_thermal_unregister()
2565 pld_ipci_thermal_unregister(dev, mon_id); in pld_thermal_unregister()
2573 int pld_set_wfc_mode(struct device *dev, enum pld_wfc_mode wfc_mode) in pld_set_wfc_mode() argument
2578 type = pld_get_bus_type(dev); in pld_set_wfc_mode()
2589 errno = pld_pcie_set_wfc_mode(dev, wfc_mode); in pld_set_wfc_mode()
2628 int pld_get_thermal_state(struct device *dev, unsigned long *thermal_state, in pld_get_thermal_state() argument
2634 type = pld_get_bus_type(dev); in pld_get_thermal_state()
2641 errno = pld_pci_get_thermal_state(dev, thermal_state, mon_id); in pld_get_thermal_state()
2646 errno = pld_pcie_fw_sim_get_thermal_state(dev, thermal_state, in pld_get_thermal_state()
2652 errno = pld_ipci_get_thermal_state(dev, thermal_state, mon_id); in pld_get_thermal_state()
2664 struct device *dev, struct pld_ch_avoid_ind_type *ch_avoid_ranges) in pld_get_wlan_unsafe_channel_sap() argument
2673 ret = cnss_utils_get_wlan_unsafe_channel_sap(dev, &cnss_ch_avoid); in pld_get_wlan_unsafe_channel_sap()
2694 void pld_set_tsf_sync_period(struct device *dev, u32 val) in pld_set_tsf_sync_period() argument
2696 switch (pld_get_bus_type(dev)) { in pld_set_tsf_sync_period()
2698 pld_pcie_set_tsf_sync_period(dev, val); in pld_set_tsf_sync_period()
2714 void pld_reset_tsf_sync_period(struct device *dev) in pld_reset_tsf_sync_period() argument
2716 switch (pld_get_bus_type(dev)) { in pld_reset_tsf_sync_period()
2718 pld_pcie_reset_tsf_sync_period(dev); in pld_reset_tsf_sync_period()
2735 int pld_is_ipa_offload_disabled(struct device *dev) in pld_is_ipa_offload_disabled() argument
2739 enum pld_bus_type type = pld_get_bus_type(dev); in pld_is_ipa_offload_disabled()
2764 int pld_get_audio_wlan_timestamp(struct device *dev, in pld_get_audio_wlan_timestamp() argument
2771 bus_type = pld_get_bus_type(dev); in pld_get_audio_wlan_timestamp()
2774 ret = pld_snoc_get_audio_wlan_timestamp(dev, type, ts); in pld_get_audio_wlan_timestamp()
2792 bool pld_is_one_msi(struct device *dev) in pld_is_one_msi() argument
2795 enum pld_bus_type type = pld_get_bus_type(dev); in pld_is_one_msi()
2799 ret = pld_pcie_is_one_msi(dev); in pld_is_one_msi()
2809 int pld_send_buffer_to_afcmem(struct device *dev, const uint8_t *afcdb, in pld_send_buffer_to_afcmem() argument
2812 return cnss_send_buffer_to_afcmem(dev, afcdb, len, slotid); in pld_send_buffer_to_afcmem()
2815 int pld_reset_afcmem(struct device *dev, uint8_t slotid) in pld_reset_afcmem() argument
2817 return cnss_reset_afcmem(dev, slotid); in pld_reset_afcmem()
2822 int pld_audio_smmu_map(struct device *dev, phys_addr_t paddr, dma_addr_t iova, in pld_audio_smmu_map() argument
2827 switch (pld_get_bus_type(dev)) { in pld_audio_smmu_map()
2829 ret = pld_pcie_audio_smmu_map(dev, paddr, iova, size); in pld_audio_smmu_map()
2839 void pld_audio_smmu_unmap(struct device *dev, dma_addr_t iova, size_t size) in pld_audio_smmu_unmap() argument
2841 switch (pld_get_bus_type(dev)) { in pld_audio_smmu_unmap()
2843 pld_pcie_audio_smmu_unmap(dev, iova, size); in pld_audio_smmu_unmap()