Lines Matching defs:dev
60 struct pci_dev *dev; member
65 static void pci_dev_d3_sleep(struct pci_dev *dev) in pci_dev_d3_sleep()
76 bool pci_reset_supported(struct pci_dev *dev) in pci_reset_supported()
268 static int pci_dev_str_match_path(struct pci_dev *dev, const char *path, in pci_dev_str_match_path()
362 static int pci_dev_str_match(struct pci_dev *dev, const char *p, in pci_dev_str_match()
444 u8 pci_find_next_capability(struct pci_dev *dev, u8 pos, int cap) in pci_find_next_capability()
490 u8 pci_find_capability(struct pci_dev *dev, int cap) in pci_find_capability()
540 u16 pci_find_next_ext_capability(struct pci_dev *dev, u16 start, int cap) in pci_find_next_ext_capability()
595 u16 pci_find_ext_capability(struct pci_dev *dev, int cap) in pci_find_ext_capability()
610 u64 pci_get_dsn(struct pci_dev *dev) in pci_get_dsn()
635 static u8 __pci_find_next_ht_cap(struct pci_dev *dev, u8 pos, int ht_cap) in __pci_find_next_ht_cap()
676 u8 pci_find_next_ht_capability(struct pci_dev *dev, u8 pos, int ht_cap) in pci_find_next_ht_capability()
693 u8 pci_find_ht_capability(struct pci_dev *dev, int ht_cap) in pci_find_ht_capability()
715 u16 pci_find_vsec_capability(struct pci_dev *dev, u16 vendor, int cap) in pci_find_vsec_capability()
744 u16 pci_find_dvsec_capability(struct pci_dev *dev, u16 vendor, u16 dvsec) in pci_find_dvsec_capability()
776 struct resource *pci_find_parent_resource(const struct pci_dev *dev, in pci_find_parent_resource()
820 struct resource *pci_find_resource(struct pci_dev *dev, struct resource *res) in pci_find_resource()
843 int pci_wait_for_pending(struct pci_dev *dev, int pos, u16 mask) in pci_wait_for_pending()
879 static void pci_disable_acs_redir(struct pci_dev *dev) in pci_disable_acs_redir()
935 static void pci_std_enable_acs(struct pci_dev *dev) in pci_std_enable_acs()
971 static void pci_enable_acs(struct pci_dev *dev) in pci_enable_acs()
999 static void pci_restore_bars(struct pci_dev *dev) in pci_restore_bars()
1007 static inline bool platform_pci_power_manageable(struct pci_dev *dev) in platform_pci_power_manageable()
1015 static inline int platform_pci_set_power_state(struct pci_dev *dev, in platform_pci_set_power_state()
1024 static inline pci_power_t platform_pci_get_power_state(struct pci_dev *dev) in platform_pci_get_power_state()
1032 static inline void platform_pci_refresh_power_state(struct pci_dev *dev) in platform_pci_refresh_power_state()
1038 static inline pci_power_t platform_pci_choose_state(struct pci_dev *dev) in platform_pci_choose_state()
1046 static inline int platform_pci_set_wakeup(struct pci_dev *dev, bool enable) in platform_pci_set_wakeup()
1054 static inline bool platform_pci_need_resume(struct pci_dev *dev) in platform_pci_need_resume()
1062 static inline bool platform_pci_bridge_d3(struct pci_dev *dev) in platform_pci_bridge_d3()
1083 static int pci_raw_set_power_state(struct pci_dev *dev, pci_power_t state) in pci_raw_set_power_state()
1202 void pci_update_current_state(struct pci_dev *dev, pci_power_t state) in pci_update_current_state()
1224 void pci_refresh_power_state(struct pci_dev *dev) in pci_refresh_power_state()
1235 int pci_platform_power_transition(struct pci_dev *dev, pci_power_t state) in pci_platform_power_transition()
1265 static int pci_dev_wait(struct pci_dev *dev, char *reset_type, int timeout) in pci_dev_wait()
1310 int pci_power_up(struct pci_dev *dev) in pci_power_up()
1336 static int __pci_dev_set_current_state(struct pci_dev *dev, void *data) in __pci_dev_set_current_state()
1372 int pci_set_power_state(struct pci_dev *dev, pci_power_t state) in pci_set_power_state()
1437 struct pci_cap_saved_state *pci_find_saved_cap(struct pci_dev *dev, char cap) in pci_find_saved_cap()
1442 struct pci_cap_saved_state *pci_find_saved_ext_cap(struct pci_dev *dev, u16 cap) in pci_find_saved_ext_cap()
1447 static int pci_save_pcie_state(struct pci_dev *dev) in pci_save_pcie_state()
1474 void pci_bridge_reconfigure_ltr(struct pci_dev *dev) in pci_bridge_reconfigure_ltr()
1492 static void pci_restore_pcie_state(struct pci_dev *dev) in pci_restore_pcie_state()
1519 static int pci_save_pcix_state(struct pci_dev *dev) in pci_save_pcix_state()
1540 static void pci_restore_pcix_state(struct pci_dev *dev) in pci_restore_pcix_state()
1555 static void pci_save_ltr_state(struct pci_dev *dev) in pci_save_ltr_state()
1579 static void pci_restore_ltr_state(struct pci_dev *dev) in pci_restore_ltr_state()
1600 int pci_save_state(struct pci_dev *dev) in pci_save_state()
1716 void pci_restore_state(struct pci_dev *dev) in pci_restore_state()
1764 struct pci_saved_state *pci_store_saved_state(struct pci_dev *dev) in pci_store_saved_state()
1803 int pci_load_saved_state(struct pci_dev *dev, in pci_load_saved_state()
1840 int pci_load_and_free_saved_state(struct pci_dev *dev, in pci_load_and_free_saved_state()
1850 int __weak pcibios_enable_device(struct pci_dev *dev, int bars) in pcibios_enable_device()
1855 static int do_pci_enable_device(struct pci_dev *dev, int bars) in do_pci_enable_device()
1896 int pci_reenable_device(struct pci_dev *dev) in pci_reenable_device()
1904 static void pci_enable_bridge(struct pci_dev *dev) in pci_enable_bridge()
1926 static int pci_enable_device_flags(struct pci_dev *dev, unsigned long flags) in pci_enable_device_flags()
1969 int pci_enable_device_io(struct pci_dev *dev) in pci_enable_device_io()
1983 int pci_enable_device_mem(struct pci_dev *dev) in pci_enable_device_mem()
2000 int pci_enable_device(struct pci_dev *dev) in pci_enable_device()
2023 struct pci_dev *dev = to_pci_dev(gendev); in pcim_release() local
2120 int __weak pcibios_device_add(struct pci_dev *dev) in pcibios_device_add()
2134 void __weak pcibios_release_device(struct pci_dev *dev) {} in pcibios_release_device()
2144 void __weak pcibios_disable_device(struct pci_dev *dev) {} in pcibios_disable_device()
2157 static void do_pci_disable_device(struct pci_dev *dev) in do_pci_disable_device()
2177 void pci_disable_enabled_device(struct pci_dev *dev) in pci_disable_enabled_device()
2193 void pci_disable_device(struct pci_dev *dev) in pci_disable_device()
2221 int __weak pcibios_set_pcie_reset_state(struct pci_dev *dev, in pcibios_set_pcie_reset_state()
2234 int pci_set_pcie_reset_state(struct pci_dev *dev, enum pcie_reset_state state) in pci_set_pcie_reset_state()
2241 void pcie_clear_device_status(struct pci_dev *dev) in pcie_clear_device_status()
2254 void pcie_clear_root_pme_status(struct pci_dev *dev) in pcie_clear_root_pme_status()
2267 bool pci_check_pme_status(struct pci_dev *dev) in pci_check_pme_status()
2302 static int pci_pme_wakeup(struct pci_dev *dev, void *pme_poll_reset) in pci_pme_wakeup()
2330 bool pci_pme_capable(struct pci_dev *dev, pci_power_t state) in pci_pme_capable()
2375 static void __pci_pme_active(struct pci_dev *dev, bool enable) in __pci_pme_active()
2395 void pci_pme_restore(struct pci_dev *dev) in pci_pme_restore()
2421 void pci_pme_active(struct pci_dev *dev, bool enable) in pci_pme_active()
2498 static int __pci_enable_wake(struct pci_dev *dev, pci_power_t state, bool enable) in __pci_enable_wake()
2582 int pci_wake_from_d3(struct pci_dev *dev, bool enable) in pci_wake_from_d3()
2599 static pci_power_t pci_target_state(struct pci_dev *dev, bool wakeup) in pci_target_state()
2659 int pci_prepare_to_sleep(struct pci_dev *dev) in pci_prepare_to_sleep()
2698 int pci_back_from_sleep(struct pci_dev *dev) in pci_back_from_sleep()
2717 int pci_finish_runtime_suspend(struct pci_dev *dev) in pci_finish_runtime_suspend()
2759 bool pci_dev_run_wake(struct pci_dev *dev) in pci_dev_run_wake()
2801 struct device *dev = &pci_dev->dev; in pci_dev_need_resume() local
2832 struct device *dev = &pci_dev->dev; in pci_dev_adjust_pme() local
2853 struct device *dev = &pci_dev->dev; in pci_dev_complete_resume() local
2873 pci_power_t pci_choose_state(struct pci_dev *dev, pm_message_t state) in pci_choose_state()
2884 struct device *dev = &pdev->dev; in pci_config_pm_runtime_get() local
2906 struct device *dev = &pdev->dev; in pci_config_pm_runtime_put() local
2993 static int pci_dev_check_d3cold(struct pci_dev *dev, void *data) in pci_dev_check_d3cold()
3020 void pci_bridge_d3_update(struct pci_dev *dev) in pci_bridge_d3_update()
3073 void pci_d3cold_enable(struct pci_dev *dev) in pci_d3cold_enable()
3090 void pci_d3cold_disable(struct pci_dev *dev) in pci_d3cold_disable()
3103 void pci_pm_init(struct pci_dev *dev) in pci_pm_init()
3175 static unsigned long pci_ea_flags(struct pci_dev *dev, u8 prop) in pci_ea_flags()
3198 static struct resource *pci_ea_get_resource(struct pci_dev *dev, u8 bei, in pci_ea_get_resource()
3216 static int pci_ea_read(struct pci_dev *dev, int offset) in pci_ea_read()
3338 void pci_ea_init(struct pci_dev *dev) in pci_ea_init()
3380 static int _pci_add_cap_save_buffer(struct pci_dev *dev, u16 cap, in _pci_add_cap_save_buffer()
3406 int pci_add_cap_save_buffer(struct pci_dev *dev, char cap, unsigned int size) in pci_add_cap_save_buffer()
3411 int pci_add_ext_cap_save_buffer(struct pci_dev *dev, u16 cap, unsigned int size) in pci_add_ext_cap_save_buffer()
3420 void pci_allocate_cap_save_buffers(struct pci_dev *dev) in pci_allocate_cap_save_buffers()
3441 void pci_free_cap_save_buffers(struct pci_dev *dev) in pci_free_cap_save_buffers()
3457 void pci_configure_ari(struct pci_dev *dev) in pci_configure_ari()
3618 void pci_acs_init(struct pci_dev *dev) in pci_acs_init()
3753 int pci_enable_atomic_ops_to_root(struct pci_dev *dev, u32 cap_mask) in pci_enable_atomic_ops_to_root()
3834 u8 pci_swizzle_interrupt_pin(const struct pci_dev *dev, u8 pin) in pci_swizzle_interrupt_pin()
3846 int pci_get_interrupt_pin(struct pci_dev *dev, struct pci_dev **bridge) in pci_get_interrupt_pin()
3870 u8 pci_common_swizzle(struct pci_dev *dev, u8 *pinp) in pci_common_swizzle()
4215 static void devm_pci_unmap_iospace(struct device *dev, void *ptr) in devm_pci_unmap_iospace()
4231 int devm_pci_remap_iospace(struct device *dev, const struct resource *res, in devm_pci_remap_iospace()
4262 void __iomem *devm_pci_remap_cfgspace(struct device *dev, in devm_pci_remap_cfgspace()
4302 void __iomem *devm_pci_remap_cfg_resource(struct device *dev, in devm_pci_remap_cfg_resource()
4342 static void __pci_set_master(struct pci_dev *dev, bool enable) in __pci_set_master()
4379 void __weak pcibios_set_master(struct pci_dev *dev) in pcibios_set_master()
4405 void pci_set_master(struct pci_dev *dev) in pci_set_master()
4416 void pci_clear_master(struct pci_dev *dev) in pci_clear_master()
4432 int pci_set_cacheline_size(struct pci_dev *dev) in pci_set_cacheline_size()
4468 int pci_set_mwi(struct pci_dev *dev) in pci_set_mwi()
4499 int pcim_set_mwi(struct pci_dev *dev) in pcim_set_mwi()
4521 int pci_try_set_mwi(struct pci_dev *dev) in pci_try_set_mwi()
4537 void pci_clear_mwi(struct pci_dev *dev) in pci_clear_mwi()
4557 void pci_disable_parity(struct pci_dev *dev) in pci_disable_parity()
4600 static bool pci_check_and_set_intx_mask(struct pci_dev *dev, bool mask) in pci_check_and_set_intx_mask()
4652 bool pci_check_and_mask_intx(struct pci_dev *dev) in pci_check_and_mask_intx()
4666 bool pci_check_and_unmask_intx(struct pci_dev *dev) in pci_check_and_unmask_intx()
4678 int pci_wait_for_pending_transaction(struct pci_dev *dev) in pci_wait_for_pending_transaction()
4695 int pcie_flr(struct pci_dev *dev) in pcie_flr()
4723 int pcie_reset_flr(struct pci_dev *dev, bool probe) in pcie_reset_flr()
4738 static int pci_af_flr(struct pci_dev *dev, bool probe) in pci_af_flr()
4797 static int pci_pm_reset(struct pci_dev *dev, bool probe) in pci_pm_reset()
4924 void pci_bridge_wait_for_secondary_bus(struct pci_dev *dev) in pci_bridge_wait_for_secondary_bus()
5010 void pci_reset_secondary_bus(struct pci_dev *dev) in pci_reset_secondary_bus()
5037 void __weak pcibios_reset_secondary_bus(struct pci_dev *dev) in pcibios_reset_secondary_bus()
5049 int pci_bridge_secondary_bus_reset(struct pci_dev *dev) in pci_bridge_secondary_bus_reset()
5057 static int pci_parent_bus_reset(struct pci_dev *dev, bool probe) in pci_parent_bus_reset()
5090 static int pci_dev_reset_slot_function(struct pci_dev *dev, bool probe) in pci_dev_reset_slot_function()
5099 static int pci_reset_bus_function(struct pci_dev *dev, bool probe) in pci_reset_bus_function()
5109 void pci_dev_lock(struct pci_dev *dev) in pci_dev_lock()
5118 int pci_dev_trylock(struct pci_dev *dev) in pci_dev_trylock()
5130 void pci_dev_unlock(struct pci_dev *dev) in pci_dev_unlock()
5137 static void pci_dev_save_and_disable(struct pci_dev *dev) in pci_dev_save_and_disable()
5168 static void pci_dev_restore(struct pci_dev *dev) in pci_dev_restore()
5195 static ssize_t reset_method_show(struct device *dev, in reset_method_show()
5229 static ssize_t reset_method_store(struct device *dev, in reset_method_store()
5337 int __pci_reset_function_locked(struct pci_dev *dev) in __pci_reset_function_locked()
5379 void pci_init_reset_methods(struct pci_dev *dev) in pci_init_reset_methods()
5415 int pci_reset_function(struct pci_dev *dev) in pci_reset_function()
5451 int pci_reset_function_locked(struct pci_dev *dev) in pci_reset_function_locked()
5474 int pci_try_reset_function(struct pci_dev *dev) in pci_try_reset_function()
5496 struct pci_dev *dev; in pci_bus_resetable() local
5514 struct pci_dev *dev; in pci_bus_lock() local
5526 struct pci_dev *dev; in pci_bus_unlock() local
5538 struct pci_dev *dev; in pci_bus_trylock() local
5564 struct pci_dev *dev; in pci_slot_resetable() local
5584 struct pci_dev *dev; in pci_slot_lock() local
5598 struct pci_dev *dev; in pci_slot_unlock() local
5612 struct pci_dev *dev; in pci_slot_trylock() local
5646 struct pci_dev *dev; in pci_bus_save_and_disable_locked() local
5662 struct pci_dev *dev; in pci_bus_restore_locked() local
5677 struct pci_dev *dev; in pci_slot_save_and_disable_locked() local
5695 struct pci_dev *dev; in pci_slot_restore_locked() local
5887 int pcix_get_max_mmrbc(struct pci_dev *dev) in pcix_get_max_mmrbc()
5910 int pcix_get_mmrbc(struct pci_dev *dev) in pcix_get_mmrbc()
5935 int pcix_set_mmrbc(struct pci_dev *dev, int mmrbc) in pcix_set_mmrbc()
5979 int pcie_get_readrq(struct pci_dev *dev) in pcie_get_readrq()
5997 int pcie_set_readrq(struct pci_dev *dev, int rq) in pcie_set_readrq()
6032 int pcie_get_mps(struct pci_dev *dev) in pcie_get_mps()
6050 int pcie_set_mps(struct pci_dev *dev, int mps) in pcie_set_mps()
6084 u32 pcie_bandwidth_available(struct pci_dev *dev, struct pci_dev **limiting_dev, in pcie_bandwidth_available()
6135 enum pci_bus_speed pcie_get_speed_cap(struct pci_dev *dev) in pcie_get_speed_cap()
6171 enum pcie_link_width pcie_get_width_cap(struct pci_dev *dev) in pcie_get_width_cap()
6193 u32 pcie_bandwidth_capable(struct pci_dev *dev, enum pci_bus_speed *speed, in pcie_bandwidth_capable()
6215 void __pcie_print_link_status(struct pci_dev *dev, bool verbose) in __pcie_print_link_status()
6244 void pcie_print_link_status(struct pci_dev *dev) in pcie_print_link_status()
6257 int pci_select_bars(struct pci_dev *dev, unsigned long flags) in pci_select_bars()
6275 static int pci_set_vga_state_arch(struct pci_dev *dev, bool decode, in pci_set_vga_state_arch()
6292 int pci_set_vga_state(struct pci_dev *dev, bool decode, in pci_set_vga_state()
6375 void pci_add_dma_alias(struct pci_dev *dev, u8 devfn_from, in pci_add_dma_alias()
6421 void pci_ignore_hotplug(struct pci_dev *dev) in pci_ignore_hotplug()
6442 struct pci_dev __weak *pci_real_dma_dev(struct pci_dev *dev) in pci_real_dma_dev()
6456 void __weak pci_resource_to_user(const struct pci_dev *dev, int bar, in pci_resource_to_user()
6475 static resource_size_t pci_specified_resource_alignment(struct pci_dev *dev, in pci_specified_resource_alignment()
6529 static void pci_request_resource_alignment(struct pci_dev *dev, int bar, in pci_request_resource_alignment()
6598 void pci_reassigndev_resource_alignment(struct pci_dev *dev) in pci_reassigndev_resource_alignment()