Lines Matching defs:dev

62 	struct pci_dev *dev;  member
82 static void pci_dev_d3_sleep(struct pci_dev *dev) in pci_dev_d3_sleep()
95 bool pci_reset_supported(struct pci_dev *dev) in pci_reset_supported()
284 static int pci_dev_str_match_path(struct pci_dev *dev, const char *path, in pci_dev_str_match_path()
378 static int pci_dev_str_match(struct pci_dev *dev, const char *p, in pci_dev_str_match()
460 u8 pci_find_next_capability(struct pci_dev *dev, u8 pos, int cap) in pci_find_next_capability()
506 u8 pci_find_capability(struct pci_dev *dev, int cap) in pci_find_capability()
556 u16 pci_find_next_ext_capability(struct pci_dev *dev, u16 start, int cap) in pci_find_next_ext_capability()
611 u16 pci_find_ext_capability(struct pci_dev *dev, int cap) in pci_find_ext_capability()
626 u64 pci_get_dsn(struct pci_dev *dev) in pci_get_dsn()
651 static u8 __pci_find_next_ht_cap(struct pci_dev *dev, u8 pos, int ht_cap) in __pci_find_next_ht_cap()
692 u8 pci_find_next_ht_capability(struct pci_dev *dev, u8 pos, int ht_cap) in pci_find_next_ht_capability()
709 u8 pci_find_ht_capability(struct pci_dev *dev, int ht_cap) in pci_find_ht_capability()
731 u16 pci_find_vsec_capability(struct pci_dev *dev, u16 vendor, int cap) in pci_find_vsec_capability()
763 u16 pci_find_dvsec_capability(struct pci_dev *dev, u16 vendor, u16 dvsec) in pci_find_dvsec_capability()
795 struct resource *pci_find_parent_resource(const struct pci_dev *dev, in pci_find_parent_resource()
838 struct resource *pci_find_resource(struct pci_dev *dev, struct resource *res) in pci_find_resource()
861 int pci_wait_for_pending(struct pci_dev *dev, int pos, u16 mask) in pci_wait_for_pending()
897 static void pci_disable_acs_redir(struct pci_dev *dev) in pci_disable_acs_redir()
953 static void pci_std_enable_acs(struct pci_dev *dev) in pci_std_enable_acs()
989 static void pci_enable_acs(struct pci_dev *dev) in pci_enable_acs()
1017 static void pci_restore_bars(struct pci_dev *dev) in pci_restore_bars()
1025 static inline bool platform_pci_power_manageable(struct pci_dev *dev) in platform_pci_power_manageable()
1033 static inline int platform_pci_set_power_state(struct pci_dev *dev, in platform_pci_set_power_state()
1042 static inline pci_power_t platform_pci_get_power_state(struct pci_dev *dev) in platform_pci_get_power_state()
1050 static inline void platform_pci_refresh_power_state(struct pci_dev *dev) in platform_pci_refresh_power_state()
1056 static inline pci_power_t platform_pci_choose_state(struct pci_dev *dev) in platform_pci_choose_state()
1064 static inline int platform_pci_set_wakeup(struct pci_dev *dev, bool enable) in platform_pci_set_wakeup()
1072 static inline bool platform_pci_need_resume(struct pci_dev *dev) in platform_pci_need_resume()
1080 static inline bool platform_pci_bridge_d3(struct pci_dev *dev) in platform_pci_bridge_d3()
1100 void pci_update_current_state(struct pci_dev *dev, pci_power_t state) in pci_update_current_state()
1125 void pci_refresh_power_state(struct pci_dev *dev) in pci_refresh_power_state()
1136 int pci_platform_power_transition(struct pci_dev *dev, pci_power_t state) in pci_platform_power_transition()
1166 static int pci_dev_wait(struct pci_dev *dev, char *reset_type, int timeout) in pci_dev_wait()
1242 int pci_power_up(struct pci_dev *dev) in pci_power_up()
1309 static int pci_set_full_power_state(struct pci_dev *dev, bool locked) in pci_set_full_power_state()
1355 static int __pci_dev_set_current_state(struct pci_dev *dev, void *data) in __pci_dev_set_current_state()
1400 static int pci_set_low_power_state(struct pci_dev *dev, pci_power_t state, bool locked) in pci_set_low_power_state()
1459 static int __pci_set_power_state(struct pci_dev *dev, pci_power_t state, bool locked) in __pci_set_power_state()
1532 int pci_set_power_state(struct pci_dev *dev, pci_power_t state) in pci_set_power_state()
1538 int pci_set_power_state_locked(struct pci_dev *dev, pci_power_t state) in pci_set_power_state_locked()
1560 struct pci_cap_saved_state *pci_find_saved_cap(struct pci_dev *dev, char cap) in pci_find_saved_cap()
1565 struct pci_cap_saved_state *pci_find_saved_ext_cap(struct pci_dev *dev, u16 cap) in pci_find_saved_ext_cap()
1570 static int pci_save_pcie_state(struct pci_dev *dev) in pci_save_pcie_state()
1597 void pci_bridge_reconfigure_ltr(struct pci_dev *dev) in pci_bridge_reconfigure_ltr()
1615 static void pci_restore_pcie_state(struct pci_dev *dev) in pci_restore_pcie_state()
1642 static int pci_save_pcix_state(struct pci_dev *dev) in pci_save_pcix_state()
1663 static void pci_restore_pcix_state(struct pci_dev *dev) in pci_restore_pcix_state()
1678 static void pci_save_ltr_state(struct pci_dev *dev) in pci_save_ltr_state()
1702 static void pci_restore_ltr_state(struct pci_dev *dev) in pci_restore_ltr_state()
1723 int pci_save_state(struct pci_dev *dev) in pci_save_state()
1839 void pci_restore_state(struct pci_dev *dev) in pci_restore_state()
1887 struct pci_saved_state *pci_store_saved_state(struct pci_dev *dev) in pci_store_saved_state()
1926 int pci_load_saved_state(struct pci_dev *dev, in pci_load_saved_state()
1963 int pci_load_and_free_saved_state(struct pci_dev *dev, in pci_load_and_free_saved_state()
1973 int __weak pcibios_enable_device(struct pci_dev *dev, int bars) in pcibios_enable_device()
1978 static int do_pci_enable_device(struct pci_dev *dev, int bars) in do_pci_enable_device()
2019 int pci_reenable_device(struct pci_dev *dev) in pci_reenable_device()
2027 static void pci_enable_bridge(struct pci_dev *dev) in pci_enable_bridge()
2049 static int pci_enable_device_flags(struct pci_dev *dev, unsigned long flags) in pci_enable_device_flags()
2092 int pci_enable_device_io(struct pci_dev *dev) in pci_enable_device_io()
2106 int pci_enable_device_mem(struct pci_dev *dev) in pci_enable_device_mem()
2123 int pci_enable_device(struct pci_dev *dev) in pci_enable_device()
2146 struct pci_dev *dev = to_pci_dev(gendev); in pcim_release() local
2238 int __weak pcibios_device_add(struct pci_dev *dev) in pcibios_device_add()
2252 void __weak pcibios_release_device(struct pci_dev *dev) {} in pcibios_release_device()
2262 void __weak pcibios_disable_device(struct pci_dev *dev) {} in pcibios_disable_device()
2275 static void do_pci_disable_device(struct pci_dev *dev) in do_pci_disable_device()
2295 void pci_disable_enabled_device(struct pci_dev *dev) in pci_disable_enabled_device()
2311 void pci_disable_device(struct pci_dev *dev) in pci_disable_device()
2339 int __weak pcibios_set_pcie_reset_state(struct pci_dev *dev, in pcibios_set_pcie_reset_state()
2352 int pci_set_pcie_reset_state(struct pci_dev *dev, enum pcie_reset_state state) in pci_set_pcie_reset_state()
2359 void pcie_clear_device_status(struct pci_dev *dev) in pcie_clear_device_status()
2372 void pcie_clear_root_pme_status(struct pci_dev *dev) in pcie_clear_root_pme_status()
2385 bool pci_check_pme_status(struct pci_dev *dev) in pci_check_pme_status()
2420 static int pci_pme_wakeup(struct pci_dev *dev, void *pme_poll_reset) in pci_pme_wakeup()
2448 bool pci_pme_capable(struct pci_dev *dev, pci_power_t state) in pci_pme_capable()
2467 struct device *dev = &pdev->dev; in pci_pme_list_scan() local
2509 static void __pci_pme_active(struct pci_dev *dev, bool enable) in __pci_pme_active()
2529 void pci_pme_restore(struct pci_dev *dev) in pci_pme_restore()
2555 void pci_pme_active(struct pci_dev *dev, bool enable) in pci_pme_active()
2632 static int __pci_enable_wake(struct pci_dev *dev, pci_power_t state, bool enable) in __pci_enable_wake()
2716 int pci_wake_from_d3(struct pci_dev *dev, bool enable) in pci_wake_from_d3()
2733 static pci_power_t pci_target_state(struct pci_dev *dev, bool wakeup) in pci_target_state()
2793 int pci_prepare_to_sleep(struct pci_dev *dev) in pci_prepare_to_sleep()
2820 int pci_back_from_sleep(struct pci_dev *dev) in pci_back_from_sleep()
2839 int pci_finish_runtime_suspend(struct pci_dev *dev) in pci_finish_runtime_suspend()
2866 bool pci_dev_run_wake(struct pci_dev *dev) in pci_dev_run_wake()
2908 struct device *dev = &pci_dev->dev; in pci_dev_need_resume() local
2939 struct device *dev = &pci_dev->dev; in pci_dev_adjust_pme() local
2960 struct device *dev = &pci_dev->dev; in pci_dev_complete_resume() local
2980 pci_power_t pci_choose_state(struct pci_dev *dev, pm_message_t state) in pci_choose_state()
2991 struct device *dev = &pdev->dev; in pci_config_pm_runtime_get() local
3013 struct device *dev = &pdev->dev; in pci_config_pm_runtime_put() local
3124 static int pci_dev_check_d3cold(struct pci_dev *dev, void *data) in pci_dev_check_d3cold()
3151 void pci_bridge_d3_update(struct pci_dev *dev) in pci_bridge_d3_update()
3204 void pci_d3cold_enable(struct pci_dev *dev) in pci_d3cold_enable()
3221 void pci_d3cold_disable(struct pci_dev *dev) in pci_d3cold_disable()
3234 void pci_pm_init(struct pci_dev *dev) in pci_pm_init()
3306 static unsigned long pci_ea_flags(struct pci_dev *dev, u8 prop) in pci_ea_flags()
3329 static struct resource *pci_ea_get_resource(struct pci_dev *dev, u8 bei, in pci_ea_get_resource()
3347 static int pci_ea_read(struct pci_dev *dev, int offset) in pci_ea_read()
3469 void pci_ea_init(struct pci_dev *dev) in pci_ea_init()
3511 static int _pci_add_cap_save_buffer(struct pci_dev *dev, u16 cap, in _pci_add_cap_save_buffer()
3537 int pci_add_cap_save_buffer(struct pci_dev *dev, char cap, unsigned int size) in pci_add_cap_save_buffer()
3542 int pci_add_ext_cap_save_buffer(struct pci_dev *dev, u16 cap, unsigned int size) in pci_add_ext_cap_save_buffer()
3551 void pci_allocate_cap_save_buffers(struct pci_dev *dev) in pci_allocate_cap_save_buffers()
3572 void pci_free_cap_save_buffers(struct pci_dev *dev) in pci_free_cap_save_buffers()
3588 void pci_configure_ari(struct pci_dev *dev) in pci_configure_ari()
3749 void pci_acs_init(struct pci_dev *dev) in pci_acs_init()
3884 int pci_enable_atomic_ops_to_root(struct pci_dev *dev, u32 cap_mask) in pci_enable_atomic_ops_to_root()
3965 u8 pci_swizzle_interrupt_pin(const struct pci_dev *dev, u8 pin) in pci_swizzle_interrupt_pin()
3977 int pci_get_interrupt_pin(struct pci_dev *dev, struct pci_dev **bridge) in pci_get_interrupt_pin()
4001 u8 pci_common_swizzle(struct pci_dev *dev, u8 *pinp) in pci_common_swizzle()
4342 static void devm_pci_unmap_iospace(struct device *dev, void *ptr) in devm_pci_unmap_iospace()
4358 int devm_pci_remap_iospace(struct device *dev, const struct resource *res, in devm_pci_remap_iospace()
4389 void __iomem *devm_pci_remap_cfgspace(struct device *dev, in devm_pci_remap_cfgspace()
4429 void __iomem *devm_pci_remap_cfg_resource(struct device *dev, in devm_pci_remap_cfg_resource()
4469 static void __pci_set_master(struct pci_dev *dev, bool enable) in __pci_set_master()
4506 void __weak pcibios_set_master(struct pci_dev *dev) in pcibios_set_master()
4532 void pci_set_master(struct pci_dev *dev) in pci_set_master()
4543 void pci_clear_master(struct pci_dev *dev) in pci_clear_master()
4559 int pci_set_cacheline_size(struct pci_dev *dev) in pci_set_cacheline_size()
4595 int pci_set_mwi(struct pci_dev *dev) in pci_set_mwi()
4626 int pcim_set_mwi(struct pci_dev *dev) in pcim_set_mwi()
4648 int pci_try_set_mwi(struct pci_dev *dev) in pci_try_set_mwi()
4664 void pci_clear_mwi(struct pci_dev *dev) in pci_clear_mwi()
4684 void pci_disable_parity(struct pci_dev *dev) in pci_disable_parity()
4727 static bool pci_check_and_set_intx_mask(struct pci_dev *dev, bool mask) in pci_check_and_set_intx_mask()
4779 bool pci_check_and_mask_intx(struct pci_dev *dev) in pci_check_and_mask_intx()
4793 bool pci_check_and_unmask_intx(struct pci_dev *dev) in pci_check_and_unmask_intx()
4805 int pci_wait_for_pending_transaction(struct pci_dev *dev) in pci_wait_for_pending_transaction()
4822 int pcie_flr(struct pci_dev *dev) in pcie_flr()
4850 int pcie_reset_flr(struct pci_dev *dev, bool probe) in pcie_reset_flr()
4865 static int pci_af_flr(struct pci_dev *dev, bool probe) in pci_af_flr()
4924 static int pci_pm_reset(struct pci_dev *dev, bool probe) in pci_pm_reset()
5132 int pci_bridge_wait_for_secondary_bus(struct pci_dev *dev, char *reset_type) in pci_bridge_wait_for_secondary_bus()
5232 void pci_reset_secondary_bus(struct pci_dev *dev) in pci_reset_secondary_bus()
5250 void __weak pcibios_reset_secondary_bus(struct pci_dev *dev) in pcibios_reset_secondary_bus()
5262 int pci_bridge_secondary_bus_reset(struct pci_dev *dev) in pci_bridge_secondary_bus_reset()
5270 static int pci_parent_bus_reset(struct pci_dev *dev, bool probe) in pci_parent_bus_reset()
5303 static int pci_dev_reset_slot_function(struct pci_dev *dev, bool probe) in pci_dev_reset_slot_function()
5312 static int pci_reset_bus_function(struct pci_dev *dev, bool probe) in pci_reset_bus_function()
5322 void pci_dev_lock(struct pci_dev *dev) in pci_dev_lock()
5331 int pci_dev_trylock(struct pci_dev *dev) in pci_dev_trylock()
5343 void pci_dev_unlock(struct pci_dev *dev) in pci_dev_unlock()
5350 static void pci_dev_save_and_disable(struct pci_dev *dev) in pci_dev_save_and_disable()
5381 static void pci_dev_restore(struct pci_dev *dev) in pci_dev_restore()
5408 static ssize_t reset_method_show(struct device *dev, in reset_method_show()
5442 static ssize_t reset_method_store(struct device *dev, in reset_method_store()
5550 int __pci_reset_function_locked(struct pci_dev *dev) in __pci_reset_function_locked()
5592 void pci_init_reset_methods(struct pci_dev *dev) in pci_init_reset_methods()
5628 int pci_reset_function(struct pci_dev *dev) in pci_reset_function()
5664 int pci_reset_function_locked(struct pci_dev *dev) in pci_reset_function_locked()
5687 int pci_try_reset_function(struct pci_dev *dev) in pci_try_reset_function()
5709 struct pci_dev *dev; in pci_bus_resettable() local
5727 struct pci_dev *dev; in pci_bus_lock() local
5741 struct pci_dev *dev; in pci_bus_unlock() local
5755 struct pci_dev *dev; in pci_bus_trylock() local
5783 struct pci_dev *dev; in pci_slot_resettable() local
5803 struct pci_dev *dev; in pci_slot_lock() local
5818 struct pci_dev *dev; in pci_slot_unlock() local
5832 struct pci_dev *dev; in pci_slot_trylock() local
5866 struct pci_dev *dev; in pci_bus_save_and_disable_locked() local
5882 struct pci_dev *dev; in pci_bus_restore_locked() local
5899 struct pci_dev *dev; in pci_slot_save_and_disable_locked() local
5917 struct pci_dev *dev; in pci_slot_restore_locked() local
6111 int pcix_get_max_mmrbc(struct pci_dev *dev) in pcix_get_max_mmrbc()
6134 int pcix_get_mmrbc(struct pci_dev *dev) in pcix_get_mmrbc()
6159 int pcix_set_mmrbc(struct pci_dev *dev, int mmrbc) in pcix_set_mmrbc()
6203 int pcie_get_readrq(struct pci_dev *dev) in pcie_get_readrq()
6221 int pcie_set_readrq(struct pci_dev *dev, int rq) in pcie_set_readrq()
6266 int pcie_get_mps(struct pci_dev *dev) in pcie_get_mps()
6284 int pcie_set_mps(struct pci_dev *dev, int mps) in pcie_set_mps()
6318 u32 pcie_bandwidth_available(struct pci_dev *dev, struct pci_dev **limiting_dev, in pcie_bandwidth_available()
6368 enum pci_bus_speed pcie_get_speed_cap(struct pci_dev *dev) in pcie_get_speed_cap()
6404 enum pcie_link_width pcie_get_width_cap(struct pci_dev *dev) in pcie_get_width_cap()
6426 u32 pcie_bandwidth_capable(struct pci_dev *dev, enum pci_bus_speed *speed, in pcie_bandwidth_capable()
6448 void __pcie_print_link_status(struct pci_dev *dev, bool verbose) in __pcie_print_link_status()
6477 void pcie_print_link_status(struct pci_dev *dev) in pcie_print_link_status()
6490 int pci_select_bars(struct pci_dev *dev, unsigned long flags) in pci_select_bars()
6508 static int pci_set_vga_state_arch(struct pci_dev *dev, bool decode, in pci_set_vga_state_arch()
6525 int pci_set_vga_state(struct pci_dev *dev, bool decode, in pci_set_vga_state()
6608 void pci_add_dma_alias(struct pci_dev *dev, u8 devfn_from, in pci_add_dma_alias()
6656 void pci_ignore_hotplug(struct pci_dev *dev) in pci_ignore_hotplug()
6677 struct pci_dev __weak *pci_real_dma_dev(struct pci_dev *dev) in pci_real_dma_dev()
6691 void __weak pci_resource_to_user(const struct pci_dev *dev, int bar, in pci_resource_to_user()
6710 static resource_size_t pci_specified_resource_alignment(struct pci_dev *dev, in pci_specified_resource_alignment()
6764 static void pci_request_resource_alignment(struct pci_dev *dev, int bar, in pci_request_resource_alignment()
6833 void pci_reassigndev_resource_alignment(struct pci_dev *dev) in pci_reassigndev_resource_alignment()