Lines Matching refs:pci_dev
932 static void cnss_pci_suspend_pwroff(struct pci_dev *pci_dev);
933 static bool cnss_should_suspend_pwroff(struct pci_dev *pci_dev);
1128 pci_read_config_word(pci_priv->pci_dev, PCI_DEVICE_ID, &device_id); in cnss_pci_check_link_status()
1193 if (pci_priv->pci_dev->device == QCA6174_DEVICE_ID || in cnss_pci_reg_read()
1230 if (pci_priv->pci_dev->device == QCA6174_DEVICE_ID || in cnss_pci_reg_write()
1254 struct device *dev = &pci_priv->pci_dev->dev; in cnss_pci_force_wake_get()
1277 struct device *dev = &pci_priv->pci_dev->dev; in cnss_pci_force_wake_put()
1368 ret = cnss_pci_is_device_down(&pci_priv->pci_dev->dev); in cnss_pci_debug_reg_read()
1408 ret = cnss_pci_is_device_down(&pci_priv->pci_dev->dev); in cnss_pci_debug_reg_write()
1439 struct pci_dev *pci_dev = pci_priv->pci_dev; in cnss_set_pci_config_space() local
1453 pci_save_state(pci_dev); in cnss_set_pci_config_space()
1454 pci_priv->saved_state = pci_store_saved_state(pci_dev); in cnss_set_pci_config_space()
1458 pci_load_saved_state(pci_dev, pci_priv->default_state); in cnss_set_pci_config_space()
1459 pci_restore_state(pci_dev); in cnss_set_pci_config_space()
1461 pci_load_and_free_saved_state(pci_dev, in cnss_set_pci_config_space()
1463 pci_restore_state(pci_dev); in cnss_set_pci_config_space()
1473 struct pci_dev *root_port; in cnss_update_supported_link_info()
1484 root_port = pcie_find_root_port(pci_priv->pci_dev); in cnss_update_supported_link_info()
1511 ret = pcie_capability_read_word(pci_priv->pci_dev, PCI_EXP_LNKSTA, in cnss_pci_get_link_status()
1627 pci_clear_master(pci_priv->pci_dev); in cnss_suspend_pci_link()
1633 pci_disable_device(pci_priv->pci_dev); in cnss_suspend_pci_link()
1635 if (pci_priv->pci_dev->device != QCA6174_DEVICE_ID) { in cnss_suspend_pci_link()
1636 ret = pci_set_power_state(pci_priv->pci_dev, PCI_D3hot); in cnss_suspend_pci_link()
1677 if (pci_priv->pci_dev->device != QCA6174_DEVICE_ID) { in cnss_resume_pci_link()
1678 ret = pci_set_power_state(pci_priv->pci_dev, PCI_D0); in cnss_resume_pci_link()
1689 ret = pci_enable_device(pci_priv->pci_dev); in cnss_resume_pci_link()
1695 pci_set_master(pci_priv->pci_dev); in cnss_resume_pci_link()
1719 struct pci_dev *pci_dev = pci_priv->pci_dev; in cnss_pci_handle_linkdown() local
1740 if (pci_dev->device == QCA6174_DEVICE_ID) in cnss_pci_handle_linkdown()
1741 disable_irq_nosync(pci_dev->irq); in cnss_pci_handle_linkdown()
1751 cnss_schedule_recovery(&pci_dev->dev, CNSS_REASON_LINK_DOWN); in cnss_pci_handle_linkdown()
1756 struct pci_dev *pci_dev = to_pci_dev(dev); in cnss_pci_link_down() local
1757 struct cnss_pci_data *pci_priv = cnss_get_pci_priv(pci_dev); in cnss_pci_link_down()
1794 struct pci_dev *pci_dev = to_pci_dev(dev); in cnss_pci_get_reg_dump() local
1795 struct cnss_pci_data *pci_priv = cnss_get_pci_priv(pci_dev); in cnss_pci_get_reg_dump()
1868 struct pci_dev *pci_dev = to_pci_dev(dev); in cnss_get_pci_slot() local
1869 struct cnss_pci_data *pci_priv = cnss_get_pci_priv(pci_dev); in cnss_get_pci_slot()
2306 ret = cnss_pci_prevent_l1(&pci_priv->pci_dev->dev); in cnss_pci_set_mhi_state()
2312 cnss_pci_allow_l1(&pci_priv->pci_dev->dev); in cnss_pci_set_mhi_state()
2352 struct pci_dev *pci_dev = pci_priv->pci_dev; in cnss_pci_config_msi_addr() local
2355 if (!pci_dev) in cnss_pci_config_msi_addr()
2358 if (!pci_dev->msix_enabled) in cnss_pci_config_msi_addr()
2380 struct pci_dev *pci_dev = pci_priv->pci_dev; in cnss_pci_config_msi_data() local
2384 if (pci_dev->msix_enabled) { in cnss_pci_config_msi_data()
2391 msi_desc = irq_get_msi_desc(pci_dev->irq); in cnss_pci_config_msi_data()
2813 struct device *dev = &pci_priv->pci_dev->dev; in cnss_pci_update_timestamp()
2879 if (cnss_pci_is_device_down(&pci_priv->pci_dev->dev)) in cnss_pci_time_sync_work_hdlr()
2951 return pci_priv->driver_ops->set_therm_cdev_state(pci_priv->pci_dev, in cnss_pci_set_therm_cdev_state()
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()
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()
3115 driver_ops->modem_status(pci_priv->pci_dev, modem_current_status); in cnss_pci_call_driver_modem_status()
3134 driver_ops->update_status(pci_priv->pci_dev, status); in cnss_pci_update_status()
3230 pci_priv->debug_reg = devm_kzalloc(&pci_priv->pci_dev->dev, in cnss_pci_dump_shadow_reg()
3325 pci_priv->driver_ops->crash_shutdown(pci_priv->pci_dev); in cnss_qca6174_crash_shutdown()
3410 cnss_schedule_recovery(&pci_priv->pci_dev->dev, in cnss_qca6290_powerup()
3944 struct pci_dev *pci_dev = pci_priv->pci_dev; in cnss_pci_suspend_driver() local
3953 ret = driver_ops->suspend(pci_dev, state); in cnss_pci_suspend_driver()
3966 struct pci_dev *pci_dev = pci_priv->pci_dev; in cnss_pci_resume_driver() local
3973 ret = driver_ops->resume(pci_dev); in cnss_pci_resume_driver()
3984 struct pci_dev *pci_dev = pci_priv->pci_dev; in cnss_pci_suspend_bus() local
3998 pci_clear_master(pci_dev); in cnss_pci_suspend_bus()
4000 pci_disable_device(pci_dev); in cnss_pci_suspend_bus()
4002 ret = pci_set_power_state(pci_dev, PCI_D3hot); in cnss_pci_suspend_bus()
4016 if (!pci_is_enabled(pci_dev)) in cnss_pci_suspend_bus()
4017 if (pci_enable_device(pci_dev)) in cnss_pci_suspend_bus()
4021 pci_set_master(pci_dev); in cnss_pci_suspend_bus()
4029 struct pci_dev *pci_dev = pci_priv->pci_dev; in cnss_pci_resume_bus() local
4037 cnss_pci_link_down(&pci_dev->dev); in cnss_pci_resume_bus()
4047 ret = pci_enable_device(pci_dev); in cnss_pci_resume_bus()
4057 pci_set_master(pci_dev); in cnss_pci_resume_bus()
4069 struct pci_dev *pci_dev = to_pci_dev(dev); in cnss_pci_suspend() local
4070 struct cnss_pci_data *pci_priv = cnss_get_pci_priv(pci_dev); in cnss_pci_suspend()
4087 bool suspend = cnss_should_suspend_pwroff(pci_dev); in cnss_pci_suspend()
4143 struct pci_dev *pci_dev = to_pci_dev(dev); in cnss_pci_resume() local
4144 struct cnss_pci_data *pci_priv = cnss_get_pci_priv(pci_dev); in cnss_pci_resume()
4180 struct pci_dev *pci_dev = to_pci_dev(dev); in cnss_pci_suspend_noirq() local
4181 struct cnss_pci_data *pci_priv = cnss_get_pci_priv(pci_dev); in cnss_pci_suspend_noirq()
4195 ret = driver_ops->suspend_noirq(pci_dev); in cnss_pci_suspend_noirq()
4197 if (pci_priv->disable_pc && !pci_dev->state_saved && in cnss_pci_suspend_noirq()
4199 pci_save_state(pci_dev); in cnss_pci_suspend_noirq()
4208 struct pci_dev *pci_dev = to_pci_dev(dev); in cnss_pci_resume_noirq() local
4209 struct cnss_pci_data *pci_priv = cnss_get_pci_priv(pci_dev); in cnss_pci_resume_noirq()
4224 ret = driver_ops->resume_noirq(pci_dev); in cnss_pci_resume_noirq()
4233 struct pci_dev *pci_dev = to_pci_dev(dev); in cnss_pci_runtime_suspend() local
4234 struct cnss_pci_data *pci_priv = cnss_get_pci_priv(pci_dev); in cnss_pci_runtime_suspend()
4268 ret = driver_ops->runtime_ops->runtime_suspend(pci_dev); in cnss_pci_runtime_suspend()
4283 struct pci_dev *pci_dev = to_pci_dev(dev); in cnss_pci_runtime_resume() local
4284 struct cnss_pci_data *pci_priv = cnss_get_pci_priv(pci_dev); in cnss_pci_runtime_resume()
4303 ret = driver_ops->runtime_ops->runtime_resume(pci_dev); in cnss_pci_runtime_resume()
4323 struct pci_dev *pci_dev = to_pci_dev(dev); in cnss_wlan_pm_control() local
4324 struct cnss_pci_data *pci_priv = cnss_get_pci_priv(pci_dev); in cnss_wlan_pm_control()
4372 dev = &pci_priv->pci_dev->dev; in cnss_pci_pm_runtime_show_usage_count()
4386 dev = &pci_priv->pci_dev->dev; in cnss_pci_pm_request_resume()
4404 dev = &pci_priv->pci_dev->dev; in cnss_pci_pm_runtime_resume()
4423 dev = &pci_priv->pci_dev->dev; in cnss_pci_pm_runtime_get()
4444 dev = &pci_priv->pci_dev->dev; in cnss_pci_pm_runtime_get_sync()
4463 pm_runtime_get_noresume(&pci_priv->pci_dev->dev); in cnss_pci_pm_runtime_get_noresume()
4474 dev = &pci_priv->pci_dev->dev; in cnss_pci_pm_runtime_put_autosuspend()
4483 return pm_runtime_put_autosuspend(&pci_priv->pci_dev->dev); in cnss_pci_pm_runtime_put_autosuspend()
4494 dev = &pci_priv->pci_dev->dev; in cnss_pci_pm_runtime_put_noidle()
4502 pm_runtime_put_noidle(&pci_priv->pci_dev->dev); in cnss_pci_pm_runtime_put_noidle()
4510 pm_runtime_mark_last_busy(&pci_priv->pci_dev->dev); in cnss_pci_pm_runtime_mark_last_busy()
4516 struct pci_dev *pci_dev = to_pci_dev(dev); in cnss_auto_suspend() local
4517 struct cnss_pci_data *pci_priv = cnss_get_pci_priv(pci_dev); in cnss_auto_suspend()
4553 struct pci_dev *pci_dev = to_pci_dev(dev); in cnss_auto_resume() local
4554 struct cnss_pci_data *pci_priv = cnss_get_pci_priv(pci_dev); in cnss_auto_resume()
4583 struct pci_dev *pci_dev = to_pci_dev(dev); in cnss_pci_force_wake_request_sync() local
4584 struct cnss_pci_data *pci_priv = cnss_get_pci_priv(pci_dev); in cnss_pci_force_wake_request_sync()
4626 struct pci_dev *pci_dev = to_pci_dev(dev); in cnss_pci_force_wake_request() local
4627 struct cnss_pci_data *pci_priv = cnss_get_pci_priv(pci_dev); in cnss_pci_force_wake_request()
4664 struct pci_dev *pci_dev = to_pci_dev(dev); in cnss_pci_is_device_awake() local
4665 struct cnss_pci_data *pci_priv = cnss_get_pci_priv(pci_dev); in cnss_pci_is_device_awake()
4692 struct pci_dev *pci_dev = to_pci_dev(dev); in cnss_pci_force_wake_release() local
4693 struct cnss_pci_data *pci_priv = cnss_get_pci_priv(pci_dev); in cnss_pci_force_wake_release()
4860 struct device *dev = &pci_priv->pci_dev->dev; in cnss_pci_alloc_fw_mem()
4896 struct device *dev = &pci_priv->pci_dev->dev; in cnss_pci_free_fw_mem()
4926 dma_alloc_coherent(&pci_priv->pci_dev->dev, in cnss_pci_alloc_qdss_mem()
4962 dma_free_coherent(&pci_priv->pci_dev->dev, in cnss_pci_free_qdss_mem()
5006 &pci_priv->pci_dev->dev); in cnss_pci_load_tme_patch()
5013 tme_lite_mem->va = dma_alloc_coherent(&pci_priv->pci_dev->dev, in cnss_pci_load_tme_patch()
5039 dma_free_coherent(&pci_priv->pci_dev->dev, tme_lite_mem->size, in cnss_pci_free_tme_lite_mem()
5091 &pci_priv->pci_dev->dev); in cnss_pci_load_tme_opt_file()
5098 tme_lite_mem->va = dma_alloc_coherent(&pci_priv->pci_dev->dev, in cnss_pci_load_tme_opt_file()
5127 dma_free_coherent(&pci_priv->pci_dev->dev, tme_opt_file_mem[i].size, in cnss_pci_free_tme_opt_file_mem()
5178 &pci_priv->pci_dev->dev); in cnss_pci_load_m3()
5184 m3_mem->va = dma_alloc_coherent(&pci_priv->pci_dev->dev, in cnss_pci_load_m3()
5210 dma_free_coherent(&pci_priv->pci_dev->dev, m3_mem->size, in cnss_pci_free_m3_mem()
5244 &pci_priv->pci_dev->dev); in cnss_pci_load_aux()
5250 aux_mem->va = dma_alloc_coherent(&pci_priv->pci_dev->dev, in cnss_pci_load_aux()
5276 dma_free_coherent(&pci_priv->pci_dev->dev, aux_mem->size, in cnss_pci_free_aux_mem()
5303 cnss_schedule_recovery(&pci_priv->pci_dev->dev, in cnss_pci_fw_boot_timeout_hdlr()
5367 struct pci_dev *root_port; in cnss_smmu_map()
5397 root_port = pcie_find_root_port(pci_priv->pci_dev); in cnss_smmu_map()
5480 info->pa = pci_resource_start(pci_priv->pci_dev, PCI_BAR_NUM); in cnss_get_soc_info()
5506 return cnss_get_user_msi_assignment(&pci_priv->pci_dev->dev, in cnss_pci_get_user_msi_assignment()
5518 struct pci_dev *pci_dev = pci_priv->pci_dev; in cnss_pci_irq_set_affinity_hint() local
5520 ret = irq_set_affinity_hint(pci_irq_vector(pci_dev, vec), in cnss_pci_irq_set_affinity_hint()
5529 struct pci_dev *pci_dev = pci_priv->pci_dev; in cnss_pci_enable_msi() local
5554 num_vectors = pci_alloc_irq_vectors(pci_dev, in cnss_pci_enable_msi()
5600 pci_free_irq_vectors(pci_priv->pci_dev); in cnss_pci_enable_msi()
5615 pci_free_irq_vectors(pci_priv->pci_dev); in cnss_pci_disable_msi()
5661 struct pci_dev *pci_dev = to_pci_dev(dev); in cnss_get_msi_irq() local
5664 irq_num = pci_irq_vector(pci_dev, vector); in cnss_get_msi_irq()
5685 struct pci_dev *pci_dev = to_pci_dev(dev); in cnss_get_msi_address() local
5689 if (!pci_dev) in cnss_get_msi_address()
5692 pci_priv = cnss_get_pci_priv(pci_dev); in cnss_get_msi_address()
5696 if (pci_dev->msix_enabled) { in cnss_get_msi_address()
5705 pci_read_config_word(pci_dev, pci_dev->msi_cap + PCI_MSI_FLAGS, in cnss_get_msi_address()
5707 pci_read_config_dword(pci_dev, pci_dev->msi_cap + PCI_MSI_ADDRESS_LO, in cnss_get_msi_address()
5711 pci_read_config_dword(pci_dev, in cnss_get_msi_address()
5712 pci_dev->msi_cap + PCI_MSI_ADDRESS_HI, in cnss_get_msi_address()
5731 ret = cnss_get_user_msi_assignment(&pci_priv->pci_dev->dev, in cnss_pci_get_wake_msi()
5743 static inline int cnss_pci_set_dma_mask(struct pci_dev *pci_dev, u64 mask) in cnss_pci_set_dma_mask() argument
5745 return dma_set_mask(&pci_dev->dev, mask); in cnss_pci_set_dma_mask()
5748 static inline int cnss_pci_set_coherent_dma_mask(struct pci_dev *pci_dev, in cnss_pci_set_coherent_dma_mask() argument
5751 return dma_set_coherent_mask(&pci_dev->dev, mask); in cnss_pci_set_coherent_dma_mask()
5754 static inline int cnss_pci_set_dma_mask(struct pci_dev *pci_dev, u64 mask) in cnss_pci_set_dma_mask() argument
5756 return pci_set_dma_mask(pci_dev, mask); in cnss_pci_set_dma_mask()
5759 static inline int cnss_pci_set_coherent_dma_mask(struct pci_dev *pci_dev, in cnss_pci_set_coherent_dma_mask() argument
5762 return pci_set_consistent_dma_mask(pci_dev, mask); in cnss_pci_set_coherent_dma_mask()
5769 struct pci_dev *pci_dev = pci_priv->pci_dev; in cnss_pci_enable_bus() local
5772 pci_read_config_word(pci_dev, PCI_DEVICE_ID, &device_id); in cnss_pci_enable_bus()
5780 ret = pci_assign_resource(pci_dev, PCI_BAR_NUM); in cnss_pci_enable_bus()
5786 ret = pci_enable_device(pci_dev); in cnss_pci_enable_bus()
5792 ret = pci_request_region(pci_dev, PCI_BAR_NUM, "cnss"); in cnss_pci_enable_bus()
5817 ret = cnss_pci_set_dma_mask(pci_dev, pci_priv->dma_bit_mask); in cnss_pci_enable_bus()
5823 ret = cnss_pci_set_coherent_dma_mask(pci_dev, pci_priv->dma_bit_mask); in cnss_pci_enable_bus()
5830 pci_priv->bar = pci_iomap(pci_dev, PCI_BAR_NUM, 0); in cnss_pci_enable_bus()
5838 pci_save_state(pci_dev); in cnss_pci_enable_bus()
5839 pci_priv->default_state = pci_store_saved_state(pci_dev); in cnss_pci_enable_bus()
5841 pci_set_master(pci_dev); in cnss_pci_enable_bus()
5846 pci_release_region(pci_dev, PCI_BAR_NUM); in cnss_pci_enable_bus()
5848 pci_disable_device(pci_dev); in cnss_pci_enable_bus()
5855 struct pci_dev *pci_dev = pci_priv->pci_dev; in cnss_pci_disable_bus() local
5857 pci_clear_master(pci_dev); in cnss_pci_disable_bus()
5858 pci_load_and_free_saved_state(pci_dev, &pci_priv->saved_state); in cnss_pci_disable_bus()
5859 pci_load_and_free_saved_state(pci_dev, &pci_priv->default_state); in cnss_pci_disable_bus()
5862 pci_iounmap(pci_dev, pci_priv->bar); in cnss_pci_disable_bus()
5866 pci_release_region(pci_dev, PCI_BAR_NUM); in cnss_pci_disable_bus()
5867 if (pci_is_enabled(pci_dev)) in cnss_pci_disable_bus()
5868 pci_disable_device(pci_dev); in cnss_pci_disable_bus()
5882 plat_priv->qdss_reg = devm_kzalloc(&pci_priv->pci_dev->dev, in cnss_pci_dump_qdss_reg()
6055 cnss_schedule_recovery(&pci_priv->pci_dev->dev, in cnss_pci_recover_link_down()
6069 cnss_schedule_recovery(&pci_priv->pci_dev->dev, in cnss_pci_recover_link_down()
6100 cnss_auto_resume(&pci_priv->pci_dev->dev); in cnss_pci_force_fw_assert_hdlr()
6108 cnss_pci_link_down(&pci_priv->pci_dev->dev); in cnss_pci_force_fw_assert_hdlr()
6146 cnss_schedule_recovery(&pci_priv->pci_dev->dev, in cnss_pci_force_fw_assert_hdlr()
6175 struct device *dev = &pci_priv->pci_dev->dev; in cnss_pci_add_dump_seg()
6198 struct device *dev = &pci_priv->pci_dev->dev; in cnss_pci_remove_dump_seg()
6222 return driver_ops->update_event(pci_priv->pci_dev, &uevent_data); in cnss_pci_call_driver_uevent()
6321 ret = pci_priv->driver_ops->collect_driver_dump(pci_priv->pci_dev, in cnss_pci_collect_host_dump_info()
6719 cnss_schedule_recovery(&pci_priv->pci_dev->dev, in cnss_dev_rddm_timeout_hdlr()
6727 cnss_schedule_recovery(&pci_priv->pci_dev->dev, in cnss_dev_rddm_timeout_hdlr()
6743 if (cnss_pci_is_device_down(&pci_priv->pci_dev->dev)) in cnss_boot_debug_timeout_hdlr()
6836 cnss_schedule_recovery(&pci_priv->pci_dev->dev, cnss_reason); in cnss_mhi_notify_status()
6847 ret = cnss_get_user_msi_assignment(&pci_priv->pci_dev->dev, in cnss_pci_get_mhi_msi()
6868 irq[i] = cnss_get_msi_irq(&pci_priv->pci_dev->dev, msi_data); in cnss_pci_get_mhi_msi()
7030 struct pci_dev *pci_dev = pci_priv->pci_dev; in cnss_pci_register_mhi() local
7050 mhi_ctrl->cntrl_dev = &pci_dev->dev; in cnss_pci_register_mhi()
7059 mhi_ctrl->reg_len = pci_resource_len(pci_priv->pci_dev, PCI_BAR_NUM); in cnss_pci_register_mhi()
7060 bar_start = pci_resource_start(pci_priv->pci_dev, PCI_BAR_NUM); in cnss_pci_register_mhi()
7224 dev = &pci_priv->pci_dev->dev; in cnss_pci_wake_handler()
7329 struct pci_dev *pci_dev = pci_priv->pci_dev; in cnss_try_suspend() local
7331 switch (pci_dev->device) { in cnss_try_suspend()
7338 cnss_pci_suspend_pwroff(pci_dev); in cnss_try_suspend()
7342 pci_dev->device); in cnss_try_suspend()
7419 static bool cnss_should_suspend_pwroff(struct pci_dev *pci_dev) in cnss_should_suspend_pwroff() argument
7423 switch (pci_dev->device) { in cnss_should_suspend_pwroff()
7435 static bool cnss_should_suspend_pwroff(struct pci_dev *pci_dev) in cnss_should_suspend_pwroff() argument
7514 static void cnss_pci_suspend_pwroff(struct pci_dev *pci_dev) in cnss_pci_suspend_pwroff() argument
7516 struct cnss_pci_data *pci_priv = cnss_get_pci_priv(pci_dev); in cnss_pci_suspend_pwroff()
7517 int rc_num = pci_dev->bus->domain_nr; in cnss_pci_suspend_pwroff()
7520 bool suspend_pwroff = cnss_should_suspend_pwroff(pci_dev); in cnss_pci_suspend_pwroff()
7532 pci_dev->device); in cnss_pci_suspend_pwroff()
7537 static int cnss_pci_probe(struct pci_dev *pci_dev, in cnss_pci_probe() argument
7542 struct device *dev = &pci_dev->dev; in cnss_pci_probe()
7543 int rc_num = pci_dev->bus->domain_nr; in cnss_pci_probe()
7547 id->vendor, pci_dev->device, rc_num); in cnss_pci_probe()
7562 pci_priv->pci_dev = pci_dev; in cnss_pci_probe()
7564 pci_priv->device_id = pci_dev->device; in cnss_pci_probe()
7565 cnss_set_pci_priv(pci_dev, pci_priv); in cnss_pci_probe()
7566 plat_priv->device_id = pci_dev->device; in cnss_pci_probe()
7625 switch (pci_dev->device) { in cnss_pci_probe()
7627 pci_read_config_word(pci_dev, QCA6174_REV_ID_OFFSET, in cnss_pci_probe()
7654 pci_dev->device); in cnss_pci_probe()
7664 cnss_pci_suspend_pwroff(pci_dev); in cnss_pci_probe()
7691 static void cnss_pci_remove(struct pci_dev *pci_dev) in cnss_pci_remove() argument
7693 struct cnss_pci_data *pci_priv = cnss_get_pci_priv(pci_dev); in cnss_pci_remove()
7695 cnss_bus_dev_to_plat_priv(&pci_dev->dev); in cnss_pci_remove()
7706 switch (pci_dev->device) { in cnss_pci_remove()