/linux-4.4.14/arch/x86/include/asm/ |
H A D | probe_roms.h | 3 struct pci_dev; 5 extern void __iomem *pci_map_biosrom(struct pci_dev *pdev); 7 extern size_t pci_biosrom_size(struct pci_dev *pdev);
|
H A D | sta2x11.h | 10 struct sta2x11_instance *sta2x11_get_instance(struct pci_dev *pdev);
|
H A D | amd_nb.h | 50 struct pci_dev *misc; 51 struct pci_dev *link; 84 static inline u16 amd_pci_dev_to_node_id(struct pci_dev *pdev) amd_pci_dev_to_node_id() 86 struct pci_dev *misc; amd_pci_dev_to_node_id()
|
H A D | pci.h | 70 void pcibios_set_master(struct pci_dev *dev); 72 int pcibios_set_irq_routing(struct pci_dev *dev, int pin, int irq); 76 extern int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma, 92 int native_setup_msi_irqs(struct pci_dev *dev, int nvec, int type); early_quirks() 94 void native_restore_msi_irqs(struct pci_dev *dev); early_quirks()
|
/linux-4.4.14/include/linux/ |
H A D | pci-ats.h | 8 int pci_enable_pri(struct pci_dev *pdev, u32 reqs); 9 void pci_disable_pri(struct pci_dev *pdev); 10 int pci_reset_pri(struct pci_dev *pdev); 14 static inline int pci_enable_pri(struct pci_dev *pdev, u32 reqs) pci_enable_pri() 19 static inline void pci_disable_pri(struct pci_dev *pdev) pci_disable_pri() 23 static inline int pci_reset_pri(struct pci_dev *pdev) pci_reset_pri() 32 int pci_enable_pasid(struct pci_dev *pdev, int features); 33 void pci_disable_pasid(struct pci_dev *pdev); 34 int pci_pasid_features(struct pci_dev *pdev); 35 int pci_max_pasids(struct pci_dev *pdev); 39 static inline int pci_enable_pasid(struct pci_dev *pdev, int features) pci_enable_pasid() 44 static inline void pci_disable_pasid(struct pci_dev *pdev) pci_disable_pasid() 48 static inline int pci_pasid_features(struct pci_dev *pdev) pci_pasid_features() 53 static inline int pci_max_pasids(struct pci_dev *pdev) pci_max_pasids()
|
H A D | pci-aspm.h | 26 void pcie_aspm_init_link_state(struct pci_dev *pdev); 27 void pcie_aspm_exit_link_state(struct pci_dev *pdev); 28 void pcie_aspm_pm_state_change(struct pci_dev *pdev); 29 void pcie_aspm_powersave_config_link(struct pci_dev *pdev); 30 void pci_disable_link_state(struct pci_dev *pdev, int state); 31 void pci_disable_link_state_locked(struct pci_dev *pdev, int state); 34 static inline void pcie_aspm_init_link_state(struct pci_dev *pdev) pcie_aspm_init_link_state() 37 static inline void pcie_aspm_exit_link_state(struct pci_dev *pdev) pcie_aspm_exit_link_state() 40 static inline void pcie_aspm_pm_state_change(struct pci_dev *pdev) pcie_aspm_pm_state_change() 43 static inline void pcie_aspm_powersave_config_link(struct pci_dev *pdev) pcie_aspm_powersave_config_link() 46 static inline void pci_disable_link_state(struct pci_dev *pdev, int state) pci_disable_link_state() 55 void pcie_aspm_create_sysfs_dev_files(struct pci_dev *pdev); 56 void pcie_aspm_remove_sysfs_dev_files(struct pci_dev *pdev); 58 static inline void pcie_aspm_create_sysfs_dev_files(struct pci_dev *pdev) pcie_aspm_create_sysfs_dev_files() 61 static inline void pcie_aspm_remove_sysfs_dev_files(struct pci_dev *pdev) pcie_aspm_remove_sysfs_dev_files()
|
H A D | aer.h | 16 struct pci_dev; 42 int pci_enable_pcie_error_reporting(struct pci_dev *dev); 43 int pci_disable_pcie_error_reporting(struct pci_dev *dev); 44 int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev); 45 int pci_cleanup_aer_error_status_regs(struct pci_dev *dev); 47 static inline int pci_enable_pcie_error_reporting(struct pci_dev *dev) pci_enable_pcie_error_reporting() 51 static inline int pci_disable_pcie_error_reporting(struct pci_dev *dev) pci_disable_pcie_error_reporting() 55 static inline int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev) pci_cleanup_aer_uncorrect_error_status() 59 static inline int pci_cleanup_aer_error_status_regs(struct pci_dev *dev) pci_cleanup_aer_error_status_regs() 65 void cper_print_aer(struct pci_dev *dev, int cper_severity,
|
H A D | pci.h | 58 unsigned char number; /* PCI_SLOT(pci_dev->devfn) */ 256 * The pci_dev structure is used to describe PCI devices. 258 struct pci_dev { struct 379 struct pci_dev *physfn; /* the PF this VF is associated with */ 390 static inline struct pci_dev *pci_physfn(struct pci_dev *dev) pci_physfn() 399 struct pci_dev *pci_alloc_dev(struct pci_bus *bus); 401 #define to_pci_dev(n) container_of(n, struct pci_dev, dev) 404 static inline int pci_channel_offline(struct pci_dev *pdev) pci_channel_offline() 417 resource_size_t (*align_resource)(struct pci_dev *dev, 462 struct pci_dev *self; /* bridge device as seen by parent */ 515 static inline bool pci_is_bridge(struct pci_dev *dev) pci_is_bridge() 521 static inline struct pci_dev *pci_upstream_bridge(struct pci_dev *dev) pci_upstream_bridge() 530 struct device *pci_get_host_bridge_device(struct pci_dev *dev); 534 static inline bool pci_dev_msi_enabled(struct pci_dev *pci_dev) pci_dev_msi_enabled() argument 536 return pci_dev->msi_enabled || pci_dev->msix_enabled; pci_dev_msi_enabled() 539 static inline bool pci_dev_msi_enabled(struct pci_dev *pci_dev) { return false; } pci_dev_msi_enabled() argument 645 pci_ers_result_t (*error_detected)(struct pci_dev *dev, 649 pci_ers_result_t (*mmio_enabled)(struct pci_dev *dev); 652 pci_ers_result_t (*link_reset)(struct pci_dev *dev); 655 pci_ers_result_t (*slot_reset)(struct pci_dev *dev); 658 void (*reset_notify)(struct pci_dev *dev, bool prepare); 661 void (*resume)(struct pci_dev *dev); 670 int (*probe) (struct pci_dev *dev, const struct pci_device_id *id); /* New device inserted */ 671 void (*remove) (struct pci_dev *dev); /* Device removed (NULL if not a hot-plug capable driver) */ 672 int (*suspend) (struct pci_dev *dev, pm_message_t state); /* Device suspended */ 673 int (*suspend_late) (struct pci_dev *dev, pm_message_t state); 674 int (*resume_early) (struct pci_dev *dev); 675 int (*resume) (struct pci_dev *dev); /* Device woken up */ 676 void (*shutdown) (struct pci_dev *dev); 677 int (*sriov_configure) (struct pci_dev *dev, int num_vfs); /* PF pdev */ 777 int __must_check pcibios_enable_device(struct pci_dev *, int mask); 785 void pcibios_update_irq(struct pci_dev *, int irq); 813 struct pci_bus *pci_add_new_bus(struct pci_bus *parent, struct pci_dev *dev, 821 void pci_dev_assign_slot(struct pci_dev *dev); 823 static inline void pci_dev_assign_slot(struct pci_dev *dev) { } pci_dev_assign_slot() 826 struct pci_dev *pci_scan_single_device(struct pci_bus *bus, int devfn); pci_dev_assign_slot() 827 void pci_device_add(struct pci_dev *dev, struct pci_bus *bus); pci_dev_assign_slot() 829 void pci_bus_add_device(struct pci_dev *dev); pci_dev_assign_slot() 831 struct resource *pci_find_parent_resource(const struct pci_dev *dev, pci_dev_assign_slot() 833 struct pci_dev *pci_find_pcie_root_port(struct pci_dev *dev); pci_dev_assign_slot() 834 u8 pci_swizzle_interrupt_pin(const struct pci_dev *dev, u8 pin); pci_dev_assign_slot() 835 int pci_get_interrupt_pin(struct pci_dev *dev, struct pci_dev **bridge); pci_dev_assign_slot() 836 u8 pci_common_swizzle(struct pci_dev *dev, u8 *pinp); pci_dev_assign_slot() 837 struct pci_dev *pci_dev_get(struct pci_dev *dev); pci_dev_assign_slot() 838 void pci_dev_put(struct pci_dev *dev); pci_dev_assign_slot() 840 void pci_stop_and_remove_bus_device(struct pci_dev *dev); pci_dev_assign_slot() 841 void pci_stop_and_remove_bus_device_locked(struct pci_dev *dev); pci_dev_assign_slot() 858 enum pci_lost_interrupt_reason pci_lost_interrupt(struct pci_dev *dev); 859 int pci_find_capability(struct pci_dev *dev, int cap); 860 int pci_find_next_capability(struct pci_dev *dev, u8 pos, int cap); 861 int pci_find_ext_capability(struct pci_dev *dev, int cap); 862 int pci_find_next_ext_capability(struct pci_dev *dev, int pos, int cap); 863 int pci_find_ht_capability(struct pci_dev *dev, int ht_cap); 864 int pci_find_next_ht_capability(struct pci_dev *dev, int pos, int ht_cap); 867 struct pci_dev *pci_get_device(unsigned int vendor, unsigned int device, 868 struct pci_dev *from); 869 struct pci_dev *pci_get_subsys(unsigned int vendor, unsigned int device, 871 struct pci_dev *from); 872 struct pci_dev *pci_get_slot(struct pci_bus *bus, unsigned int devfn); 873 struct pci_dev *pci_get_domain_bus_and_slot(int domain, unsigned int bus, 875 static inline struct pci_dev *pci_get_bus_and_slot(unsigned int bus, pci_get_bus_and_slot() 880 struct pci_dev *pci_get_class(unsigned int class, struct pci_dev *from); 907 static inline int pci_read_config_byte(const struct pci_dev *dev, int where, u8 *val) pci_read_config_byte() 911 static inline int pci_read_config_word(const struct pci_dev *dev, int where, u16 *val) pci_read_config_word() 915 static inline int pci_read_config_dword(const struct pci_dev *dev, int where, pci_read_config_dword() 920 static inline int pci_write_config_byte(const struct pci_dev *dev, int where, u8 val) pci_write_config_byte() 924 static inline int pci_write_config_word(const struct pci_dev *dev, int where, u16 val) pci_write_config_word() 928 static inline int pci_write_config_dword(const struct pci_dev *dev, int where, pci_write_config_dword() 934 int pcie_capability_read_word(struct pci_dev *dev, int pos, u16 *val); 935 int pcie_capability_read_dword(struct pci_dev *dev, int pos, u32 *val); 936 int pcie_capability_write_word(struct pci_dev *dev, int pos, u16 val); 937 int pcie_capability_write_dword(struct pci_dev *dev, int pos, u32 val); 938 int pcie_capability_clear_and_set_word(struct pci_dev *dev, int pos, 940 int pcie_capability_clear_and_set_dword(struct pci_dev *dev, int pos, 943 static inline int pcie_capability_set_word(struct pci_dev *dev, int pos, pcie_capability_set_word() 949 static inline int pcie_capability_set_dword(struct pci_dev *dev, int pos, pcie_capability_set_dword() 955 static inline int pcie_capability_clear_word(struct pci_dev *dev, int pos, pcie_capability_clear_word() 961 static inline int pcie_capability_clear_dword(struct pci_dev *dev, int pos, pcie_capability_clear_dword() 968 int pci_user_read_config_byte(struct pci_dev *dev, int where, u8 *val); 969 int pci_user_read_config_word(struct pci_dev *dev, int where, u16 *val); 970 int pci_user_read_config_dword(struct pci_dev *dev, int where, u32 *val); 971 int pci_user_write_config_byte(struct pci_dev *dev, int where, u8 val); 972 int pci_user_write_config_word(struct pci_dev *dev, int where, u16 val); 973 int pci_user_write_config_dword(struct pci_dev *dev, int where, u32 val); 975 int __must_check pci_enable_device(struct pci_dev *dev); 976 int __must_check pci_enable_device_io(struct pci_dev *dev); 977 int __must_check pci_enable_device_mem(struct pci_dev *dev); 978 int __must_check pci_reenable_device(struct pci_dev *); 979 int __must_check pcim_enable_device(struct pci_dev *pdev); 980 void pcim_pin_device(struct pci_dev *pdev); 982 static inline int pci_is_enabled(struct pci_dev *pdev) pci_is_enabled() 987 static inline int pci_is_managed(struct pci_dev *pdev) pci_is_managed() 992 void pci_disable_device(struct pci_dev *dev); 995 void pci_set_master(struct pci_dev *dev); 996 void pci_clear_master(struct pci_dev *dev); 998 int pci_set_pcie_reset_state(struct pci_dev *dev, enum pcie_reset_state state); 999 int pci_set_cacheline_size(struct pci_dev *dev); 1001 int __must_check pci_set_mwi(struct pci_dev *dev); 1002 int pci_try_set_mwi(struct pci_dev *dev); 1003 void pci_clear_mwi(struct pci_dev *dev); 1004 void pci_intx(struct pci_dev *dev, int enable); 1005 bool pci_intx_mask_supported(struct pci_dev *dev); 1006 bool pci_check_and_mask_intx(struct pci_dev *dev); 1007 bool pci_check_and_unmask_intx(struct pci_dev *dev); 1008 int pci_set_dma_max_seg_size(struct pci_dev *dev, unsigned int size); 1009 int pci_set_dma_seg_boundary(struct pci_dev *dev, unsigned long mask); 1010 int pci_wait_for_pending(struct pci_dev *dev, int pos, u16 mask); 1011 int pci_wait_for_pending_transaction(struct pci_dev *dev); 1012 int pcix_get_max_mmrbc(struct pci_dev *dev); 1013 int pcix_get_mmrbc(struct pci_dev *dev); 1014 int pcix_set_mmrbc(struct pci_dev *dev, int mmrbc); 1015 int pcie_get_readrq(struct pci_dev *dev); 1016 int pcie_set_readrq(struct pci_dev *dev, int rq); 1017 int pcie_get_mps(struct pci_dev *dev); 1018 int pcie_set_mps(struct pci_dev *dev, int mps); 1019 int pcie_get_minimum_link(struct pci_dev *dev, enum pci_bus_speed *speed, 1021 int __pci_reset_function(struct pci_dev *dev); 1022 int __pci_reset_function_locked(struct pci_dev *dev); 1023 int pci_reset_function(struct pci_dev *dev); 1024 int pci_try_reset_function(struct pci_dev *dev); 1031 void pci_reset_secondary_bus(struct pci_dev *dev); 1032 void pcibios_reset_secondary_bus(struct pci_dev *dev); 1033 void pci_reset_bridge_secondary_bus(struct pci_dev *dev); 1034 void pci_update_resource(struct pci_dev *dev, int resno); 1035 int __must_check pci_assign_resource(struct pci_dev *dev, int i); 1036 int __must_check pci_reassign_resource(struct pci_dev *dev, int i, resource_size_t add_size, resource_size_t align); 1037 int pci_select_bars(struct pci_dev *dev, unsigned long flags); 1038 bool pci_device_is_present(struct pci_dev *pdev); 1039 void pci_ignore_hotplug(struct pci_dev *dev); 1042 int pci_enable_rom(struct pci_dev *pdev); 1043 void pci_disable_rom(struct pci_dev *pdev); 1044 void __iomem __must_check *pci_map_rom(struct pci_dev *pdev, size_t *size); 1045 void pci_unmap_rom(struct pci_dev *pdev, void __iomem *rom); 1046 size_t pci_get_rom_size(struct pci_dev *pdev, void __iomem *rom, size_t size); 1047 void __iomem __must_check *pci_platform_rom(struct pci_dev *pdev, size_t *size); 1050 int pci_save_state(struct pci_dev *dev); 1051 void pci_restore_state(struct pci_dev *dev); 1052 struct pci_saved_state *pci_store_saved_state(struct pci_dev *dev); 1053 int pci_load_saved_state(struct pci_dev *dev, 1055 int pci_load_and_free_saved_state(struct pci_dev *dev, 1057 struct pci_cap_saved_state *pci_find_saved_cap(struct pci_dev *dev, char cap); 1058 struct pci_cap_saved_state *pci_find_saved_ext_cap(struct pci_dev *dev, 1060 int pci_add_cap_save_buffer(struct pci_dev *dev, char cap, unsigned int size); 1061 int pci_add_ext_cap_save_buffer(struct pci_dev *dev, 1063 int __pci_complete_power_transition(struct pci_dev *dev, pci_power_t state); 1064 int pci_set_power_state(struct pci_dev *dev, pci_power_t state); 1065 pci_power_t pci_choose_state(struct pci_dev *dev, pm_message_t state); 1066 bool pci_pme_capable(struct pci_dev *dev, pci_power_t state); 1067 void pci_pme_active(struct pci_dev *dev, bool enable); 1068 int __pci_enable_wake(struct pci_dev *dev, pci_power_t state, 1070 int pci_wake_from_d3(struct pci_dev *dev, bool enable); 1071 int pci_prepare_to_sleep(struct pci_dev *dev); 1072 int pci_back_from_sleep(struct pci_dev *dev); 1073 bool pci_dev_run_wake(struct pci_dev *dev); 1074 bool pci_check_pme_status(struct pci_dev *dev); 1077 static inline int pci_enable_wake(struct pci_dev *dev, pci_power_t state, pci_enable_wake() 1084 int pci_save_vc_state(struct pci_dev *dev); 1085 void pci_restore_vc_state(struct pci_dev *dev); 1086 void pci_allocate_vc_save_buffers(struct pci_dev *dev); 1089 void set_pcie_port_type(struct pci_dev *pdev); 1090 void set_pcie_hotplug_bridge(struct pci_dev *pdev); 1094 unsigned int pci_rescan_bus_bridge_resize(struct pci_dev *bridge); 1100 ssize_t pci_read_vpd(struct pci_dev *dev, loff_t pos, size_t count, void *buf); 1101 ssize_t pci_write_vpd(struct pci_dev *dev, loff_t pos, size_t count, const void *buf); 1104 resource_size_t pcibios_retrieve_fw_addr(struct pci_dev *dev, int idx); 1107 int pci_claim_resource(struct pci_dev *, int); 1108 int pci_claim_bridge_resource(struct pci_dev *bridge, int i); 1110 void pci_assign_unassigned_bridge_resources(struct pci_dev *bridge); 1113 void pdev_enable_device(struct pci_dev *); 1114 int pci_enable_resources(struct pci_dev *, int mask); 1115 void pci_fixup_irqs(u8 (*)(struct pci_dev *, u8 *), 1116 int (*)(const struct pci_dev *, u8, u8)); 1118 int __must_check pci_request_regions(struct pci_dev *, const char *); 1119 int __must_check pci_request_regions_exclusive(struct pci_dev *, const char *); 1120 void pci_release_regions(struct pci_dev *); 1121 int __must_check pci_request_region(struct pci_dev *, int, const char *); 1122 int __must_check pci_request_region_exclusive(struct pci_dev *, int, const char *); 1123 void pci_release_region(struct pci_dev *, int); 1124 int pci_request_selected_regions(struct pci_dev *, int, const char *); 1125 int pci_request_selected_regions_exclusive(struct pci_dev *, int, const char *); 1126 void pci_release_selected_regions(struct pci_dev *, int); 1157 static inline pci_bus_addr_t pci_bus_address(struct pci_dev *pdev, int bar) pci_bus_address() 1200 struct pci_driver *pci_dev_driver(const struct pci_dev *dev); 1207 struct pci_dev *dev); 1208 int pci_scan_bridge(struct pci_bus *bus, struct pci_dev *dev, int max, 1211 void pci_walk_bus(struct pci_bus *top, int (*cb)(struct pci_dev *, void *), 1213 int pci_cfg_space_size(struct pci_dev *dev); 1218 resource_size_t pcibios_iov_resource_alignment(struct pci_dev *dev, int resno); 1223 int pci_set_vga_state(struct pci_dev *pdev, bool decode, 1244 void pci_msi_setup_pci_dev(struct pci_dev *dev); 1247 int pci_msi_vec_count(struct pci_dev *dev); 1248 void pci_msi_shutdown(struct pci_dev *dev); 1249 void pci_disable_msi(struct pci_dev *dev); 1250 int pci_msix_vec_count(struct pci_dev *dev); 1251 int pci_enable_msix(struct pci_dev *dev, struct msix_entry *entries, int nvec); 1252 void pci_msix_shutdown(struct pci_dev *dev); 1253 void pci_disable_msix(struct pci_dev *dev); 1254 void pci_restore_msi_state(struct pci_dev *dev); 1256 int pci_enable_msi_range(struct pci_dev *dev, int minvec, int maxvec); pci_enable_msi_exact() 1257 static inline int pci_enable_msi_exact(struct pci_dev *dev, int nvec) pci_enable_msi_exact() 1264 int pci_enable_msix_range(struct pci_dev *dev, struct msix_entry *entries, 1266 static inline int pci_enable_msix_exact(struct pci_dev *dev, pci_enable_msix_exact() 1275 static inline int pci_msi_vec_count(struct pci_dev *dev) { return -ENOSYS; } pci_msi_shutdown() 1276 static inline void pci_msi_shutdown(struct pci_dev *dev) { } pci_disable_msi() 1277 static inline void pci_disable_msi(struct pci_dev *dev) { } pci_msix_vec_count() 1278 static inline int pci_msix_vec_count(struct pci_dev *dev) { return -ENOSYS; } pci_enable_msix() 1279 static inline int pci_enable_msix(struct pci_dev *dev, pci_enable_msix() 1282 static inline void pci_msix_shutdown(struct pci_dev *dev) { } pci_disable_msix() 1283 static inline void pci_disable_msix(struct pci_dev *dev) { } pci_restore_msi_state() 1284 static inline void pci_restore_msi_state(struct pci_dev *dev) { } pci_msi_enabled() 1286 static inline int pci_enable_msi_range(struct pci_dev *dev, int minvec, pci_enable_msi_range() 1289 static inline int pci_enable_msi_exact(struct pci_dev *dev, int nvec) pci_enable_msi_exact() 1291 static inline int pci_enable_msix_range(struct pci_dev *dev, pci_enable_msix_range() 1294 static inline int pci_enable_msix_exact(struct pci_dev *dev, pci_enable_msix_exact() 1322 void pcie_set_ecrc_checking(struct pci_dev *dev); pci_aer_available() 1325 static inline void pcie_set_ecrc_checking(struct pci_dev *dev) { } pcie_ecrc_get_policy() 1333 int ht_create_irq(struct pci_dev *dev, int idx); pcie_ecrc_get_policy() 1339 void pci_ats_init(struct pci_dev *dev); pcie_ecrc_get_policy() 1340 int pci_enable_ats(struct pci_dev *dev, int ps); pcie_ecrc_get_policy() 1341 void pci_disable_ats(struct pci_dev *dev); pcie_ecrc_get_policy() 1342 int pci_ats_queue_depth(struct pci_dev *dev); pcie_ecrc_get_policy() 1344 static inline void pci_ats_init(struct pci_dev *d) { } pci_enable_ats() 1345 static inline int pci_enable_ats(struct pci_dev *d, int ps) { return -ENODEV; } pci_disable_ats() 1346 static inline void pci_disable_ats(struct pci_dev *d) { } pci_ats_queue_depth() 1347 static inline int pci_ats_queue_depth(struct pci_dev *d) { return -ENODEV; } pci_ats_queue_depth() 1350 void pci_cfg_access_lock(struct pci_dev *dev); pci_ats_queue_depth() 1351 bool pci_cfg_access_trylock(struct pci_dev *dev); pci_ats_queue_depth() 1352 void pci_cfg_access_unlock(struct pci_dev *dev); pci_ats_queue_depth() 1388 typedef int (*arch_set_vga_state_t)(struct pci_dev *pdev, bool decode, 1400 static inline int pci_##o##_config_##s(struct pci_dev *dev, \ 1410 static inline struct pci_dev *pci_get_device(unsigned int vendor, pci_get_device() 1412 struct pci_dev *from) pci_get_device() 1415 static inline struct pci_dev *pci_get_subsys(unsigned int vendor, pci_get_subsys() 1419 struct pci_dev *from) pci_get_subsys() 1422 static inline struct pci_dev *pci_get_class(unsigned int class, pci_get_class() 1423 struct pci_dev *from) pci_get_class() 1430 static inline void pci_set_master(struct pci_dev *dev) { } pci_enable_device() 1431 static inline int pci_enable_device(struct pci_dev *dev) { return -EIO; } pci_disable_device() 1432 static inline void pci_disable_device(struct pci_dev *dev) { } pci_set_dma_mask() 1433 static inline int pci_set_dma_mask(struct pci_dev *dev, u64 mask) pci_set_dma_mask() 1435 static inline int pci_set_consistent_dma_mask(struct pci_dev *dev, u64 mask) pci_set_consistent_dma_mask() 1437 static inline int pci_set_dma_max_seg_size(struct pci_dev *dev, pci_set_dma_max_seg_size() 1440 static inline int pci_set_dma_seg_boundary(struct pci_dev *dev, pci_set_dma_seg_boundary() 1443 static inline int pci_assign_resource(struct pci_dev *dev, int i) pci_assign_resource() 1451 static inline int pci_find_capability(struct pci_dev *dev, int cap) pci_find_capability() 1453 static inline int pci_find_next_capability(struct pci_dev *dev, u8 post, pci_find_next_capability() 1456 static inline int pci_find_ext_capability(struct pci_dev *dev, int cap) pci_find_ext_capability() 1460 static inline int pci_save_state(struct pci_dev *dev) { return 0; } pci_restore_state() 1461 static inline void pci_restore_state(struct pci_dev *dev) { } pci_set_power_state() 1462 static inline int pci_set_power_state(struct pci_dev *dev, pci_power_t state) pci_set_power_state() 1464 static inline int pci_wake_from_d3(struct pci_dev *dev, bool enable) pci_wake_from_d3() 1466 static inline pci_power_t pci_choose_state(struct pci_dev *dev, pci_choose_state() 1469 static inline int pci_enable_wake(struct pci_dev *dev, pci_power_t state, pci_enable_wake() 1473 static inline int pci_request_regions(struct pci_dev *dev, const char *res_name) pci_request_regions() 1475 static inline void pci_release_regions(struct pci_dev *dev) { } pci_release_regions() 1477 static inline void pci_block_cfg_access(struct pci_dev *dev) { } pci_block_cfg_access_in_atomic() 1478 static inline int pci_block_cfg_access_in_atomic(struct pci_dev *dev) pci_block_cfg_access_in_atomic() 1480 static inline void pci_unblock_cfg_access(struct pci_dev *dev) { } pci_unblock_cfg_access() 1484 static inline struct pci_dev *pci_get_slot(struct pci_bus *bus, pci_get_slot() 1487 static inline struct pci_dev *pci_get_bus_and_slot(unsigned int bus, pci_get_bus_and_slot() 1492 static inline struct pci_dev *pci_dev_get(struct pci_dev *dev) { return NULL; } pci_get_new_domain_nr() 1517 /* Similar to the helpers above, these manipulate per-pci_dev pci_get_new_domain_nr() 1521 static inline void *pci_get_drvdata(struct pci_dev *pdev) pci_get_drvdata() 1526 static inline void pci_set_drvdata(struct pci_dev *pdev, void *data) pci_set_drvdata() 1531 /* If you want to know what to call your pci_dev, ask this function. 1534 static inline const char *pci_name(const struct pci_dev *pdev) pci_name() 1544 static inline void pci_resource_to_user(const struct pci_dev *dev, int bar, pci_resource_to_user() 1566 void (*hook)(struct pci_dev *dev); 1654 void pci_fixup_device(enum pci_fixup_pass pass, struct pci_dev *dev); 1655 int pci_dev_specific_acs_enabled(struct pci_dev *dev, u16 acs_flags); 1656 void pci_dev_specific_enable_acs(struct pci_dev *dev); 1659 struct pci_dev *dev) { } pci_dev_specific_acs_enabled() 1660 static inline int pci_dev_specific_acs_enabled(struct pci_dev *dev, pci_dev_specific_acs_enabled() 1665 static inline void pci_dev_specific_enable_acs(struct pci_dev *dev) { } pci_dev_specific_enable_acs() 1668 void __iomem *pcim_iomap(struct pci_dev *pdev, int bar, unsigned long maxlen); pci_dev_specific_enable_acs() 1669 void pcim_iounmap(struct pci_dev *pdev, void __iomem *addr); pci_dev_specific_enable_acs() 1670 void __iomem * const *pcim_iomap_table(struct pci_dev *pdev); pci_dev_specific_enable_acs() 1671 int pcim_iomap_regions(struct pci_dev *pdev, int mask, const char *name); pci_dev_specific_enable_acs() 1672 int pcim_iomap_regions_request_all(struct pci_dev *pdev, int mask, pci_dev_specific_enable_acs() 1674 void pcim_iounmap_regions(struct pci_dev *pdev, int mask); pci_dev_specific_enable_acs() 1694 void pcibios_disable_device(struct pci_dev *dev); pci_dev_specific_enable_acs() 1695 void pcibios_set_master(struct pci_dev *dev); pci_dev_specific_enable_acs() 1696 int pcibios_set_pcie_reset_state(struct pci_dev *dev, pci_dev_specific_enable_acs() 1698 int pcibios_add_device(struct pci_dev *dev); pci_dev_specific_enable_acs() 1699 void pcibios_release_device(struct pci_dev *dev); pci_dev_specific_enable_acs() 1701 int pcibios_alloc_irq(struct pci_dev *dev); pci_dev_specific_enable_acs() 1702 void pcibios_free_irq(struct pci_dev *dev); pci_dev_specific_enable_acs() 1718 void __iomem *pci_ioremap_bar(struct pci_dev *pdev, int bar); pci_mmcfg_late_init() 1719 void __iomem *pci_ioremap_wc_bar(struct pci_dev *pdev, int bar); pci_mmcfg_late_init() 1722 int pci_iov_virtfn_bus(struct pci_dev *dev, int id); pci_mmcfg_late_init() 1723 int pci_iov_virtfn_devfn(struct pci_dev *dev, int id); pci_mmcfg_late_init() 1725 int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn); pci_mmcfg_late_init() 1726 void pci_disable_sriov(struct pci_dev *dev); pci_mmcfg_late_init() 1727 int pci_num_vf(struct pci_dev *dev); pci_mmcfg_late_init() 1728 int pci_vfs_assigned(struct pci_dev *dev); pci_mmcfg_late_init() 1729 int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs); pci_mmcfg_late_init() 1730 int pci_sriov_get_totalvfs(struct pci_dev *dev); pci_mmcfg_late_init() 1731 resource_size_t pci_iov_resource_size(struct pci_dev *dev, int resno); pci_mmcfg_late_init() 1733 static inline int pci_iov_virtfn_bus(struct pci_dev *dev, int id) pci_iov_virtfn_bus() 1737 static inline int pci_iov_virtfn_devfn(struct pci_dev *dev, int id) pci_iov_virtfn_devfn() 1741 static inline int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn) pci_enable_sriov() 1743 static inline void pci_disable_sriov(struct pci_dev *dev) { } pci_num_vf() 1744 static inline int pci_num_vf(struct pci_dev *dev) { return 0; } pci_vfs_assigned() 1745 static inline int pci_vfs_assigned(struct pci_dev *dev) pci_vfs_assigned() 1747 static inline int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs) pci_sriov_set_totalvfs() 1749 static inline int pci_sriov_get_totalvfs(struct pci_dev *dev) pci_sriov_get_totalvfs() 1751 static inline resource_size_t pci_iov_resource_size(struct pci_dev *dev, int resno) pci_iov_resource_size() 1771 static inline int pci_pcie_cap(struct pci_dev *dev) pci_pcie_cap() 1782 static inline bool pci_is_pcie(struct pci_dev *dev) pci_is_pcie() 1791 static inline u16 pcie_caps_reg(const struct pci_dev *dev) pcie_caps_reg() 1800 static inline int pci_pcie_type(const struct pci_dev *dev) pci_pcie_type() 1806 bool pci_acs_enabled(struct pci_dev *pdev, u16 acs_flags); 1807 bool pci_acs_path_enabled(struct pci_dev *start, 1808 struct pci_dev *end, u16 acs_flags); 1902 void pci_set_of_node(struct pci_dev *dev); 1903 void pci_release_of_node(struct pci_dev *dev); 1912 pci_device_to_OF_node(const struct pci_dev *pdev) pci_device_to_OF_node() 1923 static inline void pci_set_of_node(struct pci_dev *dev) { } pci_release_of_node() 1924 static inline void pci_release_of_node(struct pci_dev *dev) { } pci_set_bus_of_node() 1928 pci_device_to_OF_node(const struct pci_dev *pdev) { return NULL; } pci_device_to_OF_node() 1934 static inline struct eeh_dev *pci_dev_to_eeh_dev(struct pci_dev *pdev) pci_dev_to_eeh_dev() 1940 int pci_for_each_dma_alias(struct pci_dev *pdev, 1941 int (*fn)(struct pci_dev *pdev, 1945 static inline void pci_set_dev_assigned(struct pci_dev *pdev) pci_set_dev_assigned() 1949 static inline void pci_clear_dev_assigned(struct pci_dev *pdev) pci_clear_dev_assigned() 1953 static inline bool pci_is_dev_assigned(struct pci_dev *pdev) pci_is_dev_assigned()
|
H A D | htirq.h | 4 struct pci_dev; 12 typedef void (ht_irq_update_t)(struct pci_dev *dev, int irq, 16 struct pci_dev *dev; 31 int arch_setup_ht_irq(int idx, int pos, struct pci_dev *dev, 36 int __ht_create_irq(struct pci_dev *dev, int idx, ht_irq_update_t *update);
|
H A D | of_pci.h | 7 struct pci_dev; 12 int of_irq_parse_pci(const struct pci_dev *pdev, struct of_phandle_args *out_irq); 16 int of_irq_parse_and_map_pci(const struct pci_dev *dev, u8 slot, u8 pin); 21 static inline int of_irq_parse_pci(const struct pci_dev *pdev, struct of_phandle_args *out_irq) of_irq_parse_pci() 38 of_irq_parse_and_map_pci(const struct pci_dev *dev, u8 slot, u8 pin) of_irq_parse_and_map_pci()
|
H A D | vga_switcheroo.h | 36 struct pci_dev; 98 enum vga_switcheroo_client_id (*get_client_id)(struct pci_dev *pdev); 118 void (*set_gpu_state)(struct pci_dev *dev, enum vga_switcheroo_state); 119 void (*reprobe)(struct pci_dev *dev); 120 bool (*can_switch)(struct pci_dev *dev); 124 void vga_switcheroo_unregister_client(struct pci_dev *dev); 125 int vga_switcheroo_register_client(struct pci_dev *dev, 128 int vga_switcheroo_register_audio_client(struct pci_dev *pdev, 132 void vga_switcheroo_client_fb_set(struct pci_dev *dev, 140 enum vga_switcheroo_state vga_switcheroo_get_client_state(struct pci_dev *dev); 142 void vga_switcheroo_set_dynamic_switch(struct pci_dev *pdev, enum vga_switcheroo_state dynamic); 149 static inline void vga_switcheroo_unregister_client(struct pci_dev *dev) {} vga_switcheroo_register_client() 150 static inline int vga_switcheroo_register_client(struct pci_dev *dev, vga_switcheroo_register_client() 152 static inline void vga_switcheroo_client_fb_set(struct pci_dev *dev, struct fb_info *info) {} vga_switcheroo_register_handler() 154 static inline int vga_switcheroo_register_audio_client(struct pci_dev *pdev, vga_switcheroo_register_audio_client() 159 static inline enum vga_switcheroo_state vga_switcheroo_get_client_state(struct pci_dev *dev) { return VGA_SWITCHEROO_ON; } vga_switcheroo_get_client_state() 161 static inline void vga_switcheroo_set_dynamic_switch(struct pci_dev *pdev, enum vga_switcheroo_state dynamic) {} vga_switcheroo_set_dynamic_switch()
|
H A D | vgaarb.h | 45 /* Passing that instead of a pci_dev to use the system "default" 51 struct pci_dev; 69 extern void vga_set_legacy_decoding(struct pci_dev *pdev, 72 static inline void vga_set_legacy_decoding(struct pci_dev *pdev, vga_set_legacy_decoding() 105 extern int vga_get(struct pci_dev *pdev, unsigned int rsrc, int interruptible); 107 static inline int vga_get(struct pci_dev *pdev, unsigned int rsrc, int interruptible) { return 0; } vga_get() 116 static inline int vga_get_interruptible(struct pci_dev *pdev, vga_get_interruptible() 128 static inline int vga_get_uninterruptible(struct pci_dev *pdev, vga_get_uninterruptible() 146 extern int vga_tryget(struct pci_dev *pdev, unsigned int rsrc); 148 static inline int vga_tryget(struct pci_dev *pdev, unsigned int rsrc) { return 0; } vga_tryget() 165 extern void vga_put(struct pci_dev *pdev, unsigned int rsrc); vga_tryget() 191 extern struct pci_dev *vga_default_device(void); vga_tryget() 192 extern void vga_set_default_device(struct pci_dev *pdev); vga_tryget() 194 static inline struct pci_dev *vga_default_device(void) { return NULL; }; vga_set_default_device() 195 static inline void vga_set_default_device(struct pci_dev *pdev) { }; vga_set_default_device() 207 static inline int vga_conflicts(struct pci_dev *p1, struct pci_dev *p2) vga_conflicts() 242 int vga_client_register(struct pci_dev *pdev, void *cookie, 246 static inline int vga_client_register(struct pci_dev *pdev, void *cookie, vga_client_register()
|
H A D | msi.h | 17 struct pci_dev; 106 struct pci_dev *msi_desc_to_pci_dev(struct msi_desc *desc); 149 int arch_setup_msi_irq(struct pci_dev *dev, struct msi_desc *desc); 151 int arch_setup_msi_irqs(struct pci_dev *dev, int nvec, int type); 152 void arch_teardown_msi_irqs(struct pci_dev *dev); 153 void arch_restore_msi_irqs(struct pci_dev *dev); 155 void default_teardown_msi_irqs(struct pci_dev *dev); 156 void default_restore_msi_irqs(struct pci_dev *dev); 164 int (*setup_irq)(struct msi_controller *chip, struct pci_dev *dev, 166 int (*setup_irqs)(struct msi_controller *chip, struct pci_dev *dev, 289 int pci_msi_domain_alloc_irqs(struct irq_domain *domain, struct pci_dev *dev, 291 void pci_msi_domain_free_irqs(struct irq_domain *domain, struct pci_dev *dev); 295 irq_hw_number_t pci_msi_domain_calc_hwirq(struct pci_dev *dev, 299 u32 pci_msi_domain_get_msi_rid(struct irq_domain *domain, struct pci_dev *pdev); 300 struct irq_domain *pci_msi_get_device_domain(struct pci_dev *pdev); 302 static inline struct irq_domain *pci_msi_get_device_domain(struct pci_dev *pdev) pci_msi_get_device_domain()
|
H A D | i7300_idle.h | 43 static inline int i7300_idle_platform_probe(struct pci_dev **fbd_dev, i7300_idle_platform_probe() 44 struct pci_dev **ioat_dev, i7300_idle_platform_probe() 48 struct pci_dev *memdev, *dmadev; i7300_idle_platform_probe()
|
H A D | amd-iommu.h | 28 struct pci_dev; 49 extern void amd_iommu_enable_device_erratum(struct pci_dev *pdev, u32 erratum); 60 extern int amd_iommu_init_device(struct pci_dev *pdev, int pasids); 67 extern void amd_iommu_free_device(struct pci_dev *pdev); 77 extern int amd_iommu_bind_pasid(struct pci_dev *pdev, int pasid, 89 extern void amd_iommu_unbind_pasid(struct pci_dev *pdev, int pasid); 114 typedef int (*amd_iommu_invalid_ppr_cb)(struct pci_dev *pdev, 119 extern int amd_iommu_set_invalid_ppr_cb(struct pci_dev *pdev, 152 extern int amd_iommu_device_info(struct pci_dev *pdev, 167 typedef void (*amd_iommu_invalidate_ctx)(struct pci_dev *pdev, int pasid); 169 extern int amd_iommu_set_invalidate_ctx_cb(struct pci_dev *pdev,
|
H A D | pci-acpi.h | 20 struct pci_dev *pci_dev); pci_acpi_remove_pm_notifier() 27 static inline acpi_handle acpi_find_root_bridge_handle(struct pci_dev *pdev) acpi_find_root_bridge_handle()
|
H A D | 8250_pci.h | 34 pciserial_init_ports(struct pci_dev *dev, const struct pciserial_board *board);
|
/linux-4.4.14/drivers/xen/xen-pciback/ |
H A D | conf_space_quirks.h | 17 struct pci_dev *pdev; 20 int xen_pcibk_config_quirks_add_field(struct pci_dev *dev, struct config_field 23 int xen_pcibk_config_quirks_remove_field(struct pci_dev *dev, int reg); 25 int xen_pcibk_config_quirks_init(struct pci_dev *dev); 29 int xen_pcibk_config_quirk_release(struct pci_dev *dev); 31 int xen_pcibk_field_is_dup(struct pci_dev *dev, unsigned int reg);
|
H A D | conf_space.h | 14 typedef void *(*conf_field_init) (struct pci_dev *dev, int offset); 15 typedef void (*conf_field_reset) (struct pci_dev *dev, int offset, void *data); 16 typedef void (*conf_field_free) (struct pci_dev *dev, int offset, void *data); 18 typedef int (*conf_dword_write) (struct pci_dev *dev, int offset, u32 value, 20 typedef int (*conf_word_write) (struct pci_dev *dev, int offset, u16 value, 22 typedef int (*conf_byte_write) (struct pci_dev *dev, int offset, u8 value, 24 typedef int (*conf_dword_read) (struct pci_dev *dev, int offset, u32 *value, 26 typedef int (*conf_word_read) (struct pci_dev *dev, int offset, u16 *value, 28 typedef int (*conf_byte_read) (struct pci_dev *dev, int offset, u8 *value, 74 int xen_pcibk_config_add_field_offset(struct pci_dev *dev, 78 static inline int xen_pcibk_config_add_field(struct pci_dev *dev, xen_pcibk_config_add_field() 84 static inline int xen_pcibk_config_add_fields(struct pci_dev *dev, xen_pcibk_config_add_fields() 96 static inline int xen_pcibk_config_add_fields_offset(struct pci_dev *dev, xen_pcibk_config_add_fields_offset() 110 int xen_pcibk_read_config_byte(struct pci_dev *dev, int offset, u8 *value, 112 int xen_pcibk_read_config_word(struct pci_dev *dev, int offset, u16 *value, 114 int xen_pcibk_read_config_dword(struct pci_dev *dev, int offset, u32 *value, 116 int xen_pcibk_write_config_byte(struct pci_dev *dev, int offset, u8 value, 118 int xen_pcibk_write_config_word(struct pci_dev *dev, int offset, u16 value, 120 int xen_pcibk_write_config_dword(struct pci_dev *dev, int offset, u32 value, 125 int xen_pcibk_config_header_add_fields(struct pci_dev *dev); 126 int xen_pcibk_config_capability_add_fields(struct pci_dev *dev);
|
H A D | pciback.h | 22 struct pci_dev *dev; 63 struct pci_dev *pcistub_get_pci_dev_by_slot(struct xen_pcibk_device *pdev, 66 struct pci_dev *pcistub_get_pci_dev(struct xen_pcibk_device *pdev, 67 struct pci_dev *dev); 68 void pcistub_put_pci_dev(struct pci_dev *dev); 71 void xen_pcibk_reset_device(struct pci_dev *pdev); 75 int xen_pcibk_config_init_dev(struct pci_dev *dev); 76 void xen_pcibk_config_free_dyn_fields(struct pci_dev *dev); 77 void xen_pcibk_config_reset_dev(struct pci_dev *dev); 78 void xen_pcibk_config_free_dev(struct pci_dev *dev); 79 int xen_pcibk_config_read(struct pci_dev *dev, int offset, int size, 81 int xen_pcibk_config_write(struct pci_dev *dev, int offset, int size, 99 int (*find)(struct pci_dev *pcidev, struct xen_pcibk_device *pdev, 103 void (*release)(struct xen_pcibk_device *pdev, struct pci_dev *dev, 105 int (*add)(struct xen_pcibk_device *pdev, struct pci_dev *dev, 107 struct pci_dev *(*get)(struct xen_pcibk_device *pdev, 117 struct pci_dev *dev, xen_pcibk_add_pci_dev() 127 struct pci_dev *dev, bool lock) xen_pcibk_release_pci_dev() 133 static inline struct pci_dev * xen_pcibk_get_pci_dev() 148 static inline int xen_pcibk_get_pcifront_dev(struct pci_dev *pcidev, xen_pcibk_get_pcifront_dev() 194 void xen_pcibk_irq_handler(struct pci_dev *dev, int reset);
|
H A D | conf_space_quirks.c | 16 match_one_device(const struct pci_device_id *id, const struct pci_dev *dev) match_one_device() 29 static struct xen_pcibk_config_quirk *xen_pcibk_find_quirk(struct pci_dev *dev) xen_pcibk_find_quirk() 48 int xen_pcibk_field_is_dup(struct pci_dev *dev, unsigned int reg) xen_pcibk_field_is_dup() 63 int xen_pcibk_config_quirks_add_field(struct pci_dev *dev, struct config_field xen_pcibk_config_quirks_add_field() 92 int xen_pcibk_config_quirks_init(struct pci_dev *dev) xen_pcibk_config_quirks_init() 123 int xen_pcibk_config_quirk_release(struct pci_dev *dev) xen_pcibk_config_quirk_release()
|
H A D | conf_space_header.c | 32 static void *command_init(struct pci_dev *dev, int offset) command_init() 49 static int command_read(struct pci_dev *dev, int offset, u16 *value, void *data) command_read() 60 static int command_write(struct pci_dev *dev, int offset, u16 value, void *data) command_write() 135 static int rom_write(struct pci_dev *dev, int offset, u32 value, void *data) rom_write() 169 static int bar_write(struct pci_dev *dev, int offset, u32 value, void *data) bar_write() 197 static int bar_read(struct pci_dev *dev, int offset, u32 * value, void *data) bar_read() 212 static inline void read_dev_bar(struct pci_dev *dev, read_dev_bar() 238 static void *bar_init(struct pci_dev *dev, int offset) bar_init() 251 static void *rom_init(struct pci_dev *dev, int offset) rom_init() 264 static void bar_reset(struct pci_dev *dev, int offset, void *data) bar_reset() 271 static void bar_release(struct pci_dev *dev, int offset, void *data) bar_release() 276 static int xen_pcibk_read_vendor(struct pci_dev *dev, int offset, xen_pcibk_read_vendor() 284 static int xen_pcibk_read_device(struct pci_dev *dev, int offset, xen_pcibk_read_device() 292 static int interrupt_read(struct pci_dev *dev, int offset, u8 * value, interrupt_read() 300 static int bist_write(struct pci_dev *dev, int offset, u8 value, void *data) bist_write() 407 int xen_pcibk_config_header_add_fields(struct pci_dev *dev) xen_pcibk_config_header_add_fields()
|
H A D | vpci.c | 29 static struct pci_dev *__xen_pcibk_get_pci_dev(struct xen_pcibk_device *pdev, __xen_pcibk_get_pci_dev() 35 struct pci_dev *dev = NULL; __xen_pcibk_get_pci_dev() 58 static inline int match_slot(struct pci_dev *l, struct pci_dev *r) match_slot() 68 struct pci_dev *dev, int devid, __xen_pcibk_add_pci_dev() 148 struct pci_dev *dev, bool lock) __xen_pcibk_release_pci_dev() 152 struct pci_dev *found_dev = NULL; __xen_pcibk_release_pci_dev() 216 struct pci_dev *dev = e->dev; __xen_pcibk_release_devices() 229 static int __xen_pcibk_get_pcifront_dev(struct pci_dev *pcidev, __xen_pcibk_get_pcifront_dev() 235 struct pci_dev *dev = NULL; __xen_pcibk_get_pcifront_dev()
|
H A D | passthrough.c | 19 static struct pci_dev *__xen_pcibk_get_pci_dev(struct xen_pcibk_device *pdev, __xen_pcibk_get_pci_dev() 26 struct pci_dev *dev = NULL; __xen_pcibk_get_pci_dev() 45 struct pci_dev *dev, __xen_pcibk_add_pci_dev() 72 struct pci_dev *dev, bool lock) __xen_pcibk_release_pci_dev() 76 struct pci_dev *found_dev = NULL; __xen_pcibk_release_pci_dev() 122 struct pci_dev *dev; __xen_pcibk_publish_pci_roots() 164 struct pci_dev *dev = dev_entry->dev; __xen_pcibk_release_devices() 176 static int __xen_pcibk_get_pcifront_dev(struct pci_dev *pcidev, __xen_pcibk_get_pcifront_dev()
|
H A D | conf_space_capability.c | 38 int xen_pcibk_config_capability_add_fields(struct pci_dev *dev) xen_pcibk_config_capability_add_fields() 67 static int vpd_address_write(struct pci_dev *dev, int offset, u16 value, vpd_address_write() 93 static int pm_caps_read(struct pci_dev *dev, int offset, u16 *value, pm_caps_read() 113 static int pm_ctrl_write(struct pci_dev *dev, int offset, u16 new_value, pm_ctrl_write() 148 static void *pm_ctrl_init(struct pci_dev *dev, int offset) pm_ctrl_init()
|
/linux-4.4.14/arch/ia64/include/asm/sn/ |
H A D | pcidev.h | 14 * In ia64, pci_dev->sysdata must be a *pci_controller. To provide access to 39 * Given a struct pci_dev, return the sn pcibus_bussoft struct. Note 40 * that this is not equivalent to SN_PCIBUS_BUSSOFT(pci_dev->bus) due 44 #define SN_PCIDEV_BUSSOFT(pci_dev) \ 45 (SN_PCIDEV_INFO(pci_dev)->pdi_host_pcidev_info->pdi_pcibus_info) 47 #define SN_PCIDEV_BUSPROVIDER(pci_dev) \ 48 (SN_PCIDEV_INFO(pci_dev)->pdi_provider) 57 u64 pdi_slot_host_handle; /* Bus and devfn Host pci_dev */ 60 struct pcidev_info *pdi_host_pcidev_info; /* Kernel Host pci_dev */ 61 struct pci_dev *pdi_linux_pcidev; /* Kernel pci_dev */ 65 struct pci_dev *host_pci_dev; /* host bus link */ 69 extern void sn_irq_fixup(struct pci_dev *pci_dev, 71 extern void sn_irq_unfixup(struct pci_dev *pci_dev); 72 extern struct pcidev_info * sn_pcidev_info_get(struct pci_dev *); 76 extern void sn_bus_store_sysdata(struct pci_dev *dev); 79 extern void sn_io_slot_fixup(struct pci_dev *); 80 extern void sn_acpi_slot_fixup(struct pci_dev *); 81 extern void sn_pci_fixup_slot(struct pci_dev *dev, struct pcidev_info *, 83 extern void sn_pci_unfixup_slot(struct pci_dev *dev);
|
H A D | pcibus_provider_defs.h | 48 dma_addr_t (*dma_map)(struct pci_dev *, unsigned long, size_t, int flags); 49 dma_addr_t (*dma_map_consistent)(struct pci_dev *, unsigned long, size_t, int flags); 50 void (*dma_unmap)(struct pci_dev *, dma_addr_t, int);
|
/linux-4.4.14/drivers/usb/host/ |
H A D | pci-quirks.h | 5 void uhci_reset_hc(struct pci_dev *pdev, unsigned long base); 6 int uhci_check_and_reset_hc(struct pci_dev *pdev, unsigned long base); 8 int usb_hcd_amd_remote_wakeup_quirk(struct pci_dev *pdev); 14 void usb_enable_intel_xhci_ports(struct pci_dev *xhci_pdev); 15 void usb_disable_xhci_ports(struct pci_dev *xhci_pdev); 18 struct pci_dev; usb_amd_quirk_pll_disable() 22 static inline void usb_disable_xhci_ports(struct pci_dev *xhci_pdev) {} sb800_prefetch()
|
/linux-4.4.14/arch/x86/video/ |
H A D | fbdev.c | 17 struct pci_dev *pci_dev = NULL; fb_is_primary_device() local 18 struct pci_dev *default_device = vga_default_device(); fb_is_primary_device() 22 pci_dev = to_pci_dev(device); fb_is_primary_device() 24 if (!pci_dev) fb_is_primary_device() 28 if (pci_dev == default_device) fb_is_primary_device() 34 res = &pci_dev->resource[PCI_ROM_RESOURCE]; fb_is_primary_device()
|
/linux-4.4.14/drivers/pci/ |
H A D | pci.h | 11 bool pcie_cap_has_lnkctl(const struct pci_dev *dev); 15 int pci_create_sysfs_dev_files(struct pci_dev *pdev); 16 void pci_remove_sysfs_dev_files(struct pci_dev *pdev); 18 static inline void pci_create_firmware_label_files(struct pci_dev *pdev) pci_create_firmware_label_files() 20 static inline void pci_remove_firmware_label_files(struct pci_dev *pdev) pci_remove_firmware_label_files() 23 void pci_create_firmware_label_files(struct pci_dev *pdev); 24 void pci_remove_firmware_label_files(struct pci_dev *pdev); 26 void pci_cleanup_rom(struct pci_dev *dev); 32 int pci_mmap_fits(struct pci_dev *pdev, int resno, struct vm_area_struct *vmai, 35 int pci_probe_reset_function(struct pci_dev *dev); 63 bool (*is_manageable)(struct pci_dev *dev); 64 int (*set_state)(struct pci_dev *dev, pci_power_t state); 65 pci_power_t (*choose_state)(struct pci_dev *dev); 66 int (*sleep_wake)(struct pci_dev *dev, bool enable); 67 int (*run_wake)(struct pci_dev *dev, bool enable); 68 bool (*need_resume)(struct pci_dev *dev); 72 void pci_update_current_state(struct pci_dev *dev, pci_power_t state); 73 void pci_power_up(struct pci_dev *dev); 74 void pci_disable_enabled_device(struct pci_dev *dev); 75 int pci_finish_runtime_suspend(struct pci_dev *dev); 76 int __pci_pme_wakeup(struct pci_dev *dev, void *ign); 77 bool pci_dev_keep_suspended(struct pci_dev *dev); 78 void pci_dev_complete_resume(struct pci_dev *pci_dev); 79 void pci_config_pm_runtime_get(struct pci_dev *dev); 80 void pci_config_pm_runtime_put(struct pci_dev *dev); 81 void pci_pm_init(struct pci_dev *dev); 82 void pci_ea_init(struct pci_dev *dev); 83 void pci_allocate_cap_save_buffers(struct pci_dev *dev); 84 void pci_free_cap_save_buffers(struct pci_dev *dev); 86 static inline void pci_wakeup_event(struct pci_dev *dev) pci_wakeup_event() 92 static inline bool pci_has_subordinate(struct pci_dev *pci_dev) pci_has_subordinate() argument 94 return !!(pci_dev->subordinate); pci_has_subordinate() 98 ssize_t (*read)(struct pci_dev *dev, loff_t pos, size_t count, void *buf); 99 ssize_t (*write)(struct pci_dev *dev, loff_t pos, size_t count, const void *buf); 100 void (*release)(struct pci_dev *dev); 109 int pci_vpd_pci22_init(struct pci_dev *dev); pci_vpd_release() 110 static inline void pci_vpd_release(struct pci_dev *dev) pci_vpd_release() 118 int pci_proc_attach_device(struct pci_dev *dev); 119 int pci_proc_detach_device(struct pci_dev *dev); 122 static inline int pci_proc_attach_device(struct pci_dev *dev) { return 0; } pci_proc_detach_device() 123 static inline int pci_proc_detach_device(struct pci_dev *dev) { return 0; } pci_proc_detach_bus() 128 int pci_hp_add_bridge(struct pci_dev *dev); pci_proc_detach_bus() 147 void pci_msi_init_pci_dev(struct pci_dev *dev); pci_remove_legacy_files() 150 static inline void pci_msi_init_pci_dev(struct pci_dev *dev) { } pci_msi_init_pci_dev() 153 static inline void pci_msi_set_enable(struct pci_dev *dev, int enable) pci_msi_set_enable() 164 static inline void pci_msix_clear_and_set_ctrl(struct pci_dev *dev, u16 clear, u16 set) pci_msix_clear_and_set_ctrl() 176 static inline int pci_no_d1d2(struct pci_dev *dev) pci_no_d1d2() 200 pci_match_one_device(const struct pci_device_id *id, const struct pci_dev *dev) pci_match_one_device() 232 int pci_setup_device(struct pci_dev *dev); 233 int __pci_read_base(struct pci_dev *dev, enum pci_bar_type type, 235 int pci_resource_bar(struct pci_dev *dev, int resno, enum pci_bar_type *type); 236 void pci_configure_ari(struct pci_dev *dev); 242 bool pci_bus_clip_resource(struct pci_dev *dev, int idx); 244 void pci_reassigndev_resource_alignment(struct pci_dev *dev); 245 void pci_disable_bridge_window(struct pci_dev *dev); 262 struct pci_dev *dev; /* lowest numbered PF */ 263 struct pci_dev *self; /* this PF */ 269 void pci_restore_ats_state(struct pci_dev *dev); 271 static inline void pci_restore_ats_state(struct pci_dev *dev) pci_restore_ats_state() 277 int pci_iov_init(struct pci_dev *dev); 278 void pci_iov_release(struct pci_dev *dev); 279 int pci_iov_resource_bar(struct pci_dev *dev, int resno); 280 resource_size_t pci_sriov_resource_alignment(struct pci_dev *dev, int resno); 281 void pci_restore_iov_state(struct pci_dev *dev); 285 static inline int pci_iov_init(struct pci_dev *dev) pci_iov_init() 289 static inline void pci_iov_release(struct pci_dev *dev) pci_iov_release() 293 static inline int pci_iov_resource_bar(struct pci_dev *dev, int resno) pci_iov_resource_bar() 297 static inline void pci_restore_iov_state(struct pci_dev *dev) pci_restore_iov_state() 309 static inline resource_size_t pci_resource_alignment(struct pci_dev *dev, pci_resource_alignment() 323 void pci_enable_acs(struct pci_dev *dev); 328 int (*reset)(struct pci_dev *dev, int probe); 332 int pci_dev_specific_reset(struct pci_dev *dev, int probe); 334 static inline int pci_dev_specific_reset(struct pci_dev *dev, int probe) pci_dev_specific_reset()
|
H A D | pci-driver.c | 117 struct pci_dev *pdev = kzalloc(sizeof(*pdev), GFP_KERNEL); store_new_id() 223 struct pci_dev *dev) pci_match_id() 253 struct pci_dev *dev) pci_match_device() 284 struct pci_dev *dev; 291 struct pci_dev *pci_dev = ddi->dev; local_pci_probe() local 293 struct device *dev = &pci_dev->dev; local_pci_probe() 306 pci_dev->driver = pci_drv; local_pci_probe() 307 rc = pci_drv->probe(pci_dev, ddi->id); local_pci_probe() 311 pci_dev->driver = NULL; local_pci_probe() 323 static int pci_call_probe(struct pci_driver *drv, struct pci_dev *dev, pci_call_probe() 368 * @pci_dev: PCI device being probed 371 * side-effect: pci_dev->driver is set to drv when drv claims pci_dev. 373 static int __pci_device_probe(struct pci_driver *drv, struct pci_dev *pci_dev) __pci_device_probe() argument 378 if (!pci_dev->driver && drv->probe) { __pci_device_probe() 381 id = pci_match_device(drv, pci_dev); __pci_device_probe() 383 error = pci_call_probe(drv, pci_dev, id); __pci_device_probe() 390 int __weak pcibios_alloc_irq(struct pci_dev *dev) pcibios_alloc_irq() 395 void __weak pcibios_free_irq(struct pci_dev *dev) pcibios_free_irq() 402 struct pci_dev *pci_dev = to_pci_dev(dev); pci_device_probe() local 405 error = pcibios_alloc_irq(pci_dev); pci_device_probe() 409 pci_dev_get(pci_dev); pci_device_probe() 410 error = __pci_device_probe(drv, pci_dev); pci_device_probe() 412 pcibios_free_irq(pci_dev); pci_device_probe() 413 pci_dev_put(pci_dev); pci_device_probe() 421 struct pci_dev *pci_dev = to_pci_dev(dev); pci_device_remove() local 422 struct pci_driver *drv = pci_dev->driver; pci_device_remove() 427 drv->remove(pci_dev); pci_device_remove() 430 pcibios_free_irq(pci_dev); pci_device_remove() 431 pci_dev->driver = NULL; pci_device_remove() 441 if (pci_dev->current_state == PCI_D0) pci_device_remove() 442 pci_dev->current_state = PCI_UNKNOWN; pci_device_remove() 445 * We would love to complain here if pci_dev->is_enabled is set, that pci_device_remove() 453 pci_dev_put(pci_dev); pci_device_remove() 459 struct pci_dev *pci_dev = to_pci_dev(dev); pci_device_shutdown() local 460 struct pci_driver *drv = pci_dev->driver; pci_device_shutdown() 465 drv->shutdown(pci_dev); pci_device_shutdown() 466 pci_msi_shutdown(pci_dev); pci_device_shutdown() 467 pci_msix_shutdown(pci_dev); pci_device_shutdown() 477 if (kexec_in_progress && (pci_dev->current_state <= PCI_D3hot)) pci_device_shutdown() 478 pci_clear_master(pci_dev); pci_device_shutdown() 488 * @pci_dev: PCI device to handle 490 static int pci_restore_standard_config(struct pci_dev *pci_dev) pci_restore_standard_config() argument 492 pci_update_current_state(pci_dev, PCI_UNKNOWN); pci_restore_standard_config() 494 if (pci_dev->current_state != PCI_D0) { pci_restore_standard_config() 495 int error = pci_set_power_state(pci_dev, PCI_D0); pci_restore_standard_config() 500 pci_restore_state(pci_dev); pci_restore_standard_config() 508 static void pci_pm_default_resume_early(struct pci_dev *pci_dev) pci_pm_default_resume_early() argument 510 pci_power_up(pci_dev); pci_pm_default_resume_early() 511 pci_restore_state(pci_dev); pci_pm_default_resume_early() 512 pci_fixup_device(pci_fixup_resume_early, pci_dev); pci_pm_default_resume_early() 519 static void pci_pm_set_unknown_state(struct pci_dev *pci_dev) pci_pm_set_unknown_state() argument 525 if (pci_dev->current_state == PCI_D0) pci_pm_set_unknown_state() 526 pci_dev->current_state = PCI_UNKNOWN; pci_pm_set_unknown_state() 533 static int pci_pm_reenable_device(struct pci_dev *pci_dev) pci_pm_reenable_device() argument 538 retval = pci_reenable_device(pci_dev); pci_pm_reenable_device() 543 if (pci_dev->is_busmaster) pci_pm_reenable_device() 544 pci_set_master(pci_dev); pci_pm_reenable_device() 551 struct pci_dev *pci_dev = to_pci_dev(dev); pci_legacy_suspend() local 552 struct pci_driver *drv = pci_dev->driver; pci_legacy_suspend() 555 pci_power_t prev = pci_dev->current_state; pci_legacy_suspend() 558 error = drv->suspend(pci_dev, state); pci_legacy_suspend() 563 if (!pci_dev->state_saved && pci_dev->current_state != PCI_D0 pci_legacy_suspend() 564 && pci_dev->current_state != PCI_UNKNOWN) { pci_legacy_suspend() 565 WARN_ONCE(pci_dev->current_state != prev, pci_legacy_suspend() 571 pci_fixup_device(pci_fixup_suspend, pci_dev); pci_legacy_suspend() 578 struct pci_dev *pci_dev = to_pci_dev(dev); pci_legacy_suspend_late() local 579 struct pci_driver *drv = pci_dev->driver; pci_legacy_suspend_late() 582 pci_power_t prev = pci_dev->current_state; pci_legacy_suspend_late() 585 error = drv->suspend_late(pci_dev, state); pci_legacy_suspend_late() 590 if (!pci_dev->state_saved && pci_dev->current_state != PCI_D0 pci_legacy_suspend_late() 591 && pci_dev->current_state != PCI_UNKNOWN) { pci_legacy_suspend_late() 592 WARN_ONCE(pci_dev->current_state != prev, pci_legacy_suspend_late() 599 if (!pci_dev->state_saved) pci_legacy_suspend_late() 600 pci_save_state(pci_dev); pci_legacy_suspend_late() 602 pci_pm_set_unknown_state(pci_dev); pci_legacy_suspend_late() 605 pci_fixup_device(pci_fixup_suspend_late, pci_dev); pci_legacy_suspend_late() 612 struct pci_dev *pci_dev = to_pci_dev(dev); pci_legacy_resume_early() local 613 struct pci_driver *drv = pci_dev->driver; pci_legacy_resume_early() 616 drv->resume_early(pci_dev) : 0; pci_legacy_resume_early() 621 struct pci_dev *pci_dev = to_pci_dev(dev); pci_legacy_resume() local 622 struct pci_driver *drv = pci_dev->driver; pci_legacy_resume() 624 pci_fixup_device(pci_fixup_resume, pci_dev); pci_legacy_resume() 627 drv->resume(pci_dev) : pci_pm_reenable_device(pci_dev); pci_legacy_resume() 632 static void pci_pm_default_resume(struct pci_dev *pci_dev) pci_pm_default_resume() argument 634 pci_fixup_device(pci_fixup_resume, pci_dev); pci_pm_default_resume() 636 if (!pci_has_subordinate(pci_dev)) pci_pm_default_resume() 637 pci_enable_wake(pci_dev, PCI_D0, false); pci_pm_default_resume() 640 static void pci_pm_default_suspend(struct pci_dev *pci_dev) pci_pm_default_suspend() argument 643 if (!pci_has_subordinate(pci_dev)) pci_pm_default_suspend() 644 pci_disable_enabled_device(pci_dev); pci_pm_default_suspend() 647 static bool pci_has_legacy_pm_support(struct pci_dev *pci_dev) pci_has_legacy_pm_support() argument 649 struct pci_driver *drv = pci_dev->driver; pci_has_legacy_pm_support() 659 drv->name, pci_dev->vendor, pci_dev->device); pci_has_legacy_pm_support() 702 struct pci_dev *pci_dev = to_pci_dev(dev); pci_pm_suspend() local 705 if (pci_has_legacy_pm_support(pci_dev)) pci_pm_suspend() 709 pci_pm_default_suspend(pci_dev); pci_pm_suspend() 723 pci_dev->state_saved = false; pci_pm_suspend() 725 pci_power_t prev = pci_dev->current_state; pci_pm_suspend() 733 if (!pci_dev->state_saved && pci_dev->current_state != PCI_D0 pci_pm_suspend() 734 && pci_dev->current_state != PCI_UNKNOWN) { pci_pm_suspend() 735 WARN_ONCE(pci_dev->current_state != prev, pci_pm_suspend() 742 pci_fixup_device(pci_fixup_suspend, pci_dev); pci_pm_suspend() 749 struct pci_dev *pci_dev = to_pci_dev(dev); pci_pm_suspend_noirq() local 752 if (pci_has_legacy_pm_support(pci_dev)) pci_pm_suspend_noirq() 756 pci_save_state(pci_dev); pci_pm_suspend_noirq() 761 pci_power_t prev = pci_dev->current_state; pci_pm_suspend_noirq() 769 if (!pci_dev->state_saved && pci_dev->current_state != PCI_D0 pci_pm_suspend_noirq() 770 && pci_dev->current_state != PCI_UNKNOWN) { pci_pm_suspend_noirq() 771 WARN_ONCE(pci_dev->current_state != prev, pci_pm_suspend_noirq() 778 if (!pci_dev->state_saved) { pci_pm_suspend_noirq() 779 pci_save_state(pci_dev); pci_pm_suspend_noirq() 780 if (!pci_has_subordinate(pci_dev)) pci_pm_suspend_noirq() 781 pci_prepare_to_sleep(pci_dev); pci_pm_suspend_noirq() 784 pci_pm_set_unknown_state(pci_dev); pci_pm_suspend_noirq() 795 if (pci_dev->class == PCI_CLASS_SERIAL_USB_EHCI) pci_pm_suspend_noirq() 796 pci_write_config_word(pci_dev, PCI_COMMAND, 0); pci_pm_suspend_noirq() 799 pci_fixup_device(pci_fixup_suspend_late, pci_dev); pci_pm_suspend_noirq() 806 struct pci_dev *pci_dev = to_pci_dev(dev); pci_pm_resume_noirq() local 810 pci_pm_default_resume_early(pci_dev); pci_pm_resume_noirq() 812 if (pci_has_legacy_pm_support(pci_dev)) pci_pm_resume_noirq() 823 struct pci_dev *pci_dev = to_pci_dev(dev); pci_pm_resume() local 831 if (pci_dev->state_saved) pci_pm_resume() 832 pci_restore_standard_config(pci_dev); pci_pm_resume() 834 if (pci_has_legacy_pm_support(pci_dev)) pci_pm_resume() 837 pci_pm_default_resume(pci_dev); pci_pm_resume() 843 pci_pm_reenable_device(pci_dev); pci_pm_resume() 869 struct pci_dev *pci_dev = to_pci_dev(dev); pci_pm_freeze() local 872 if (pci_has_legacy_pm_support(pci_dev)) pci_pm_freeze() 876 pci_pm_default_suspend(pci_dev); pci_pm_freeze() 888 pci_dev->state_saved = false; pci_pm_freeze() 906 struct pci_dev *pci_dev = to_pci_dev(dev); pci_pm_freeze_noirq() local 909 if (pci_has_legacy_pm_support(pci_dev)) pci_pm_freeze_noirq() 921 if (!pci_dev->state_saved) pci_pm_freeze_noirq() 922 pci_save_state(pci_dev); pci_pm_freeze_noirq() 924 pci_pm_set_unknown_state(pci_dev); pci_pm_freeze_noirq() 934 struct pci_dev *pci_dev = to_pci_dev(dev); pci_pm_thaw_noirq() local 944 if (pci_has_legacy_pm_support(pci_dev)) pci_pm_thaw_noirq() 947 pci_update_current_state(pci_dev, PCI_D0); pci_pm_thaw_noirq() 957 struct pci_dev *pci_dev = to_pci_dev(dev); pci_pm_thaw() local 967 if (pci_has_legacy_pm_support(pci_dev)) pci_pm_thaw() 974 pci_pm_reenable_device(pci_dev); pci_pm_thaw() 977 pci_dev->state_saved = false; pci_pm_thaw() 984 struct pci_dev *pci_dev = to_pci_dev(dev); pci_pm_poweroff() local 987 if (pci_has_legacy_pm_support(pci_dev)) pci_pm_poweroff() 991 pci_pm_default_suspend(pci_dev); pci_pm_poweroff() 998 pci_dev->state_saved = false; pci_pm_poweroff() 1009 pci_fixup_device(pci_fixup_suspend, pci_dev); pci_pm_poweroff() 1019 struct pci_dev *pci_dev = to_pci_dev(dev); pci_pm_poweroff_noirq() local 1026 pci_fixup_device(pci_fixup_suspend_late, pci_dev); pci_pm_poweroff_noirq() 1039 if (!pci_dev->state_saved && !pci_has_subordinate(pci_dev)) pci_pm_poweroff_noirq() 1040 pci_prepare_to_sleep(pci_dev); pci_pm_poweroff_noirq() 1046 if (pci_dev->class == PCI_CLASS_SERIAL_USB_EHCI) pci_pm_poweroff_noirq() 1047 pci_write_config_word(pci_dev, PCI_COMMAND, 0); pci_pm_poweroff_noirq() 1049 pci_fixup_device(pci_fixup_suspend_late, pci_dev); pci_pm_poweroff_noirq() 1059 struct pci_dev *pci_dev = to_pci_dev(dev); pci_pm_restore_noirq() local 1069 pci_pm_default_resume_early(pci_dev); pci_pm_restore_noirq() 1071 if (pci_has_legacy_pm_support(pci_dev)) pci_pm_restore_noirq() 1082 struct pci_dev *pci_dev = to_pci_dev(dev); pci_pm_restore() local 1096 if (pci_dev->state_saved) pci_pm_restore() 1097 pci_restore_standard_config(pci_dev); pci_pm_restore() 1099 if (pci_has_legacy_pm_support(pci_dev)) pci_pm_restore() 1102 pci_pm_default_resume(pci_dev); pci_pm_restore() 1108 pci_pm_reenable_device(pci_dev); pci_pm_restore() 1131 struct pci_dev *pci_dev = to_pci_dev(dev); pci_pm_runtime_suspend() local 1133 pci_power_t prev = pci_dev->current_state; pci_pm_runtime_suspend() 1137 * If pci_dev->driver is not set (unbound), the device should pci_pm_runtime_suspend() 1140 if (!pci_dev->driver) pci_pm_runtime_suspend() 1146 pci_dev->state_saved = false; pci_pm_runtime_suspend() 1147 pci_dev->no_d3cold = false; pci_pm_runtime_suspend() 1164 if (!pci_dev->d3cold_allowed) pci_pm_runtime_suspend() 1165 pci_dev->no_d3cold = true; pci_pm_runtime_suspend() 1167 pci_fixup_device(pci_fixup_suspend, pci_dev); pci_pm_runtime_suspend() 1169 if (!pci_dev->state_saved && pci_dev->current_state != PCI_D0 pci_pm_runtime_suspend() 1170 && pci_dev->current_state != PCI_UNKNOWN) { pci_pm_runtime_suspend() 1171 WARN_ONCE(pci_dev->current_state != prev, pci_pm_runtime_suspend() 1177 if (!pci_dev->state_saved) { pci_pm_runtime_suspend() 1178 pci_save_state(pci_dev); pci_pm_runtime_suspend() 1179 pci_finish_runtime_suspend(pci_dev); pci_pm_runtime_suspend() 1188 struct pci_dev *pci_dev = to_pci_dev(dev); pci_pm_runtime_resume() local 1192 * If pci_dev->driver is not set (unbound), the device should pci_pm_runtime_resume() 1195 if (!pci_dev->driver) pci_pm_runtime_resume() 1201 pci_restore_standard_config(pci_dev); pci_pm_runtime_resume() 1202 pci_fixup_device(pci_fixup_resume_early, pci_dev); pci_pm_runtime_resume() 1203 __pci_enable_wake(pci_dev, PCI_D0, true, false); pci_pm_runtime_resume() 1204 pci_fixup_device(pci_fixup_resume, pci_dev); pci_pm_runtime_resume() 1208 pci_dev->runtime_d3cold = false; pci_pm_runtime_resume() 1215 struct pci_dev *pci_dev = to_pci_dev(dev); pci_pm_runtime_idle() local 1220 * If pci_dev->driver is not set (unbound), the device should pci_pm_runtime_idle() 1223 if (!pci_dev->driver) pci_pm_runtime_idle() 1323 struct pci_driver *pci_dev_driver(const struct pci_dev *dev) pci_dev_driver() 1348 struct pci_dev *pci_dev = to_pci_dev(dev); pci_bus_match() local 1352 if (!pci_dev->match_driver) pci_bus_match() 1356 found_id = pci_match_device(pci_drv, pci_dev); pci_bus_match() 1375 struct pci_dev *pci_dev_get(struct pci_dev *dev) pci_dev_get() 1390 void pci_dev_put(struct pci_dev *dev) pci_dev_put() 1399 struct pci_dev *pdev; pci_uevent()
|
H A D | setup-irq.c | 19 void __weak pcibios_update_irq(struct pci_dev *dev, int irq) pcibios_update_irq() 25 static void pdev_fixup_irq(struct pci_dev *dev, pdev_fixup_irq() 26 u8 (*swizzle)(struct pci_dev *, u8 *), pdev_fixup_irq() 27 int (*map_irq)(const struct pci_dev *, u8, u8)) pdev_fixup_irq() 60 void pci_fixup_irqs(u8 (*swizzle)(struct pci_dev *, u8 *), pci_fixup_irqs() 61 int (*map_irq)(const struct pci_dev *, u8, u8)) pci_fixup_irqs() 63 struct pci_dev *dev = NULL; pci_fixup_irqs()
|
H A D | remove.c | 6 static void pci_free_resources(struct pci_dev *dev) pci_free_resources() 18 static void pci_stop_dev(struct pci_dev *dev) pci_stop_dev() 33 static void pci_destroy_dev(struct pci_dev *dev) pci_destroy_dev() 62 static void pci_stop_bus_device(struct pci_dev *dev) pci_stop_bus_device() 65 struct pci_dev *child, *tmp; pci_stop_bus_device() 82 static void pci_remove_bus_device(struct pci_dev *dev) pci_remove_bus_device() 85 struct pci_dev *child, *tmp; pci_remove_bus_device() 111 void pci_stop_and_remove_bus_device(struct pci_dev *dev) pci_stop_and_remove_bus_device() 118 void pci_stop_and_remove_bus_device_locked(struct pci_dev *dev) pci_stop_and_remove_bus_device_locked() 128 struct pci_dev *child, *tmp; pci_stop_root_bus() 146 struct pci_dev *child, *tmp; pci_remove_root_bus()
|
H A D | pci-acpi.c | 251 * @dev - the pci_dev for which we want parameters 254 int pci_get_hp_params(struct pci_dev *dev, struct hotplug_params *hpp) pci_get_hp_params() 316 struct pci_dev *pci_dev; pci_acpi_wake_dev() local 319 pci_dev = to_pci_dev(context->dev); pci_acpi_wake_dev() 321 if (pci_dev->pme_poll) pci_acpi_wake_dev() 322 pci_dev->pme_poll = false; pci_acpi_wake_dev() 324 if (pci_dev->current_state == PCI_D3cold) { pci_acpi_wake_dev() 325 pci_wakeup_event(pci_dev); pci_acpi_wake_dev() 326 pm_runtime_resume(&pci_dev->dev); pci_acpi_wake_dev() 331 if (pci_dev->pme_support) pci_acpi_wake_dev() 332 pci_check_pme_status(pci_dev); pci_acpi_wake_dev() 334 pci_wakeup_event(pci_dev); pci_acpi_wake_dev() 335 pm_runtime_resume(&pci_dev->dev); pci_acpi_wake_dev() 337 pci_pme_wakeup_bus(pci_dev->subordinate); pci_acpi_wake_dev() 352 * @pci_dev: PCI device to check for the PME status if an event is signaled. 355 struct pci_dev *pci_dev) pci_acpi_add_pm_notifier() 357 return acpi_add_pm_notifier(dev, &pci_dev->dev, pci_acpi_wake_dev); pci_acpi_add_pm_notifier() 383 static pci_power_t acpi_pci_choose_state(struct pci_dev *pdev) acpi_pci_choose_state() 410 static bool acpi_pci_power_manageable(struct pci_dev *dev) acpi_pci_power_manageable() 416 static int acpi_pci_set_power_state(struct pci_dev *dev, pci_power_t state) acpi_pci_set_power_state() 453 static bool acpi_pci_can_wakeup(struct pci_dev *dev) acpi_pci_can_wakeup() 472 static int acpi_pci_sleep_wake(struct pci_dev *dev, bool enable) acpi_pci_sleep_wake() 484 struct pci_dev *bridge = bus->self; acpi_pci_propagate_run_wake() 498 static int acpi_pci_run_wake(struct pci_dev *dev, bool enable) acpi_pci_run_wake() 516 static bool acpi_pci_need_resume(struct pci_dev *dev) acpi_pci_need_resume() 583 struct pci_dev *pci_dev = to_pci_dev(dev); acpi_pci_find_companion() local 587 check_children = pci_is_bridge(pci_dev); acpi_pci_find_companion() 589 addr = (PCI_SLOT(pci_dev->devfn) << 16) | PCI_FUNC(pci_dev->devfn); acpi_pci_find_companion() 614 static void pci_acpi_optimize_delay(struct pci_dev *pdev, pci_acpi_optimize_delay() 647 struct pci_dev *pci_dev = to_pci_dev(dev); pci_acpi_setup() local 653 pci_acpi_optimize_delay(pci_dev, adev->handle); pci_acpi_setup() 655 pci_acpi_add_pm_notifier(adev, pci_dev); pci_acpi_setup() 660 acpi_pci_sleep_wake(pci_dev, false); pci_acpi_setup() 354 pci_acpi_add_pm_notifier(struct acpi_device *dev, struct pci_dev *pci_dev) pci_acpi_add_pm_notifier() argument
|
H A D | ats.c | 20 void pci_ats_init(struct pci_dev *dev) pci_ats_init() 38 int pci_enable_ats(struct pci_dev *dev, int ps) pci_enable_ats() 41 struct pci_dev *pdev; pci_enable_ats() 78 void pci_disable_ats(struct pci_dev *dev) pci_disable_ats() 80 struct pci_dev *pdev; pci_disable_ats() 102 void pci_restore_ats_state(struct pci_dev *dev) pci_restore_ats_state() 128 int pci_ats_queue_depth(struct pci_dev *dev) pci_ats_queue_depth() 150 int pci_enable_pri(struct pci_dev *pdev, u32 reqs) pci_enable_pri() 183 void pci_disable_pri(struct pci_dev *pdev) pci_disable_pri() 205 int pci_reset_pri(struct pci_dev *pdev) pci_reset_pri() 237 int pci_enable_pasid(struct pci_dev *pdev, int features) pci_enable_pasid() 271 void pci_disable_pasid(struct pci_dev *pdev) pci_disable_pasid() 294 int pci_pasid_features(struct pci_dev *pdev) pci_pasid_features() 320 int pci_max_pasids(struct pci_dev *pdev) pci_max_pasids()
|
H A D | pci-label.c | 41 static size_t find_smbios_instance_string(struct pci_dev *pdev, char *buf, find_smbios_instance_string() 78 struct pci_dev *pdev; smbios_instance_string_exist() 90 struct pci_dev *pdev; smbioslabel_show() 100 struct pci_dev *pdev; smbiosinstance_show() 128 static int pci_create_smbiosname_file(struct pci_dev *pdev) pci_create_smbiosname_file() 133 static void pci_remove_smbiosname_file(struct pci_dev *pdev) pci_remove_smbiosname_file() 138 static inline int pci_create_smbiosname_file(struct pci_dev *pdev) pci_create_smbiosname_file() 143 static inline void pci_remove_smbiosname_file(struct pci_dev *pdev) pci_remove_smbiosname_file() 265 static int pci_create_acpi_index_label_files(struct pci_dev *pdev) pci_create_acpi_index_label_files() 270 static int pci_remove_acpi_index_label_files(struct pci_dev *pdev) pci_remove_acpi_index_label_files() 276 static inline int pci_create_acpi_index_label_files(struct pci_dev *pdev) pci_create_acpi_index_label_files() 281 static inline int pci_remove_acpi_index_label_files(struct pci_dev *pdev) pci_remove_acpi_index_label_files() 292 void pci_create_firmware_label_files(struct pci_dev *pdev) pci_create_firmware_label_files() 300 void pci_remove_firmware_label_files(struct pci_dev *pdev) pci_remove_firmware_label_files()
|
H A D | pci.c | 54 struct pci_dev *dev; 59 static void pci_dev_d3_sleep(struct pci_dev *dev) pci_dev_d3_sleep() 128 void __iomem *pci_ioremap_bar(struct pci_dev *pdev, int bar) pci_ioremap_bar() 143 void __iomem *pci_ioremap_wc_bar(struct pci_dev *pdev, int bar) pci_ioremap_wc_bar() 191 int pci_find_next_capability(struct pci_dev *dev, u8 pos, int cap) pci_find_next_capability() 237 int pci_find_capability(struct pci_dev *dev, int cap) pci_find_capability() 256 * pci_dev structure set up yet. 288 int pci_find_next_ext_capability(struct pci_dev *dev, int start, int cap) pci_find_next_ext_capability() 343 int pci_find_ext_capability(struct pci_dev *dev, int cap) pci_find_ext_capability() 349 static int __pci_find_next_ht_cap(struct pci_dev *dev, int pos, int ht_cap) __pci_find_next_ht_cap() 389 int pci_find_next_ht_capability(struct pci_dev *dev, int pos, int ht_cap) pci_find_next_ht_capability() 406 int pci_find_ht_capability(struct pci_dev *dev, int ht_cap) pci_find_ht_capability() 426 struct resource *pci_find_parent_resource(const struct pci_dev *dev, pci_find_parent_resource() 468 struct pci_dev *pci_find_pcie_root_port(struct pci_dev *dev) pci_find_pcie_root_port() 470 struct pci_dev *bridge, *highest_pcie_bridge = NULL; pci_find_pcie_root_port() 493 int pci_wait_for_pending(struct pci_dev *dev, int pos, u16 mask) pci_wait_for_pending() 518 static void pci_restore_bars(struct pci_dev *dev) pci_restore_bars() 541 static inline bool platform_pci_power_manageable(struct pci_dev *dev) platform_pci_power_manageable() 546 static inline int platform_pci_set_power_state(struct pci_dev *dev, platform_pci_set_power_state() 552 static inline pci_power_t platform_pci_choose_state(struct pci_dev *dev) platform_pci_choose_state() 558 static inline int platform_pci_sleep_wake(struct pci_dev *dev, bool enable) platform_pci_sleep_wake() 564 static inline int platform_pci_run_wake(struct pci_dev *dev, bool enable) platform_pci_run_wake() 570 static inline bool platform_pci_need_resume(struct pci_dev *dev) platform_pci_need_resume() 588 static int pci_raw_set_power_state(struct pci_dev *dev, pci_power_t state) pci_raw_set_power_state() 688 void pci_update_current_state(struct pci_dev *dev, pci_power_t state) pci_update_current_state() 714 void pci_power_up(struct pci_dev *dev) pci_power_up() 728 static int pci_platform_power_transition(struct pci_dev *dev, pci_power_t state) pci_platform_power_transition() 747 * @pci_dev: Device to handle. 750 static int pci_wakeup(struct pci_dev *pci_dev, void *ign) pci_wakeup() argument 752 pci_wakeup_event(pci_dev); pci_wakeup() 753 pm_request_resume(&pci_dev->dev); pci_wakeup() 772 static void __pci_start_power_transition(struct pci_dev *dev, pci_power_t state) __pci_start_power_transition() 801 static int __pci_dev_set_current_state(struct pci_dev *dev, void *data) __pci_dev_set_current_state() 827 int __pci_complete_power_transition(struct pci_dev *dev, pci_power_t state) __pci_complete_power_transition() 856 int pci_set_power_state(struct pci_dev *dev, pci_power_t state) pci_set_power_state() 908 pci_power_t pci_choose_state(struct pci_dev *dev, pm_message_t state) pci_choose_state() 939 static struct pci_cap_saved_state *_pci_find_saved_cap(struct pci_dev *pci_dev, _pci_find_saved_cap() argument 944 hlist_for_each_entry(tmp, &pci_dev->saved_cap_space, next) { _pci_find_saved_cap() 951 struct pci_cap_saved_state *pci_find_saved_cap(struct pci_dev *dev, char cap) pci_find_saved_cap() 956 struct pci_cap_saved_state *pci_find_saved_ext_cap(struct pci_dev *dev, u16 cap) pci_find_saved_ext_cap() 961 static int pci_save_pcie_state(struct pci_dev *dev) pci_save_pcie_state() 988 static void pci_restore_pcie_state(struct pci_dev *dev) pci_restore_pcie_state() 1009 static int pci_save_pcix_state(struct pci_dev *dev) pci_save_pcix_state() 1030 static void pci_restore_pcix_state(struct pci_dev *dev) pci_restore_pcix_state() 1050 int pci_save_state(struct pci_dev *dev) pci_save_state() 1070 static void pci_restore_config_dword(struct pci_dev *pdev, int offset, pci_restore_config_dword() 1094 static void pci_restore_config_space_range(struct pci_dev *pdev, pci_restore_config_space_range() 1105 static void pci_restore_config_space(struct pci_dev *pdev) pci_restore_config_space() 1121 void pci_restore_state(struct pci_dev *dev) pci_restore_state() 1158 struct pci_saved_state *pci_store_saved_state(struct pci_dev *dev) pci_store_saved_state() 1193 * pci_load_saved_state - Reload the provided save state into struct pci_dev. 1197 int pci_load_saved_state(struct pci_dev *dev, pci_load_saved_state() 1234 int pci_load_and_free_saved_state(struct pci_dev *dev, pci_load_and_free_saved_state() 1244 int __weak pcibios_enable_device(struct pci_dev *dev, int bars) pcibios_enable_device() 1249 static int do_pci_enable_device(struct pci_dev *dev, int bars) do_pci_enable_device() 1252 struct pci_dev *bridge; do_pci_enable_device() 1290 int pci_reenable_device(struct pci_dev *dev) pci_reenable_device() 1298 static void pci_enable_bridge(struct pci_dev *dev) pci_enable_bridge() 1300 struct pci_dev *bridge; pci_enable_bridge() 1320 static int pci_enable_device_flags(struct pci_dev *dev, unsigned long flags) pci_enable_device_flags() 1322 struct pci_dev *bridge; pci_enable_device_flags() 1367 int pci_enable_device_io(struct pci_dev *dev) pci_enable_device_io() 1381 int pci_enable_device_mem(struct pci_dev *dev) pci_enable_device_mem() 1398 int pci_enable_device(struct pci_dev *dev) pci_enable_device() 1406 * on/off and BAR regions. pci_dev itself records msi/msix status, so 1420 struct pci_dev *dev = container_of(gendev, struct pci_dev, dev); pcim_release() 1440 static struct pci_devres *get_pci_dr(struct pci_dev *pdev) get_pci_dr() 1454 static struct pci_devres *find_pci_dr(struct pci_dev *pdev) find_pci_dr() 1467 int pcim_enable_device(struct pci_dev *pdev) pcim_enable_device() 1495 void pcim_pin_device(struct pci_dev *pdev) pcim_pin_device() 1514 int __weak pcibios_add_device(struct pci_dev *dev) pcibios_add_device() 1527 void __weak pcibios_release_device(struct pci_dev *dev) {} pcibios_release_device() 1537 void __weak pcibios_disable_device (struct pci_dev *dev) {} pcibios_disable_device() 1550 static void do_pci_disable_device(struct pci_dev *dev) do_pci_disable_device() 1570 void pci_disable_enabled_device(struct pci_dev *dev) pci_disable_enabled_device() 1586 void pci_disable_device(struct pci_dev *dev) pci_disable_device() 1615 int __weak pcibios_set_pcie_reset_state(struct pci_dev *dev, pcibios_set_pcie_reset_state() 1629 int pci_set_pcie_reset_state(struct pci_dev *dev, enum pcie_reset_state state) pci_set_pcie_reset_state() 1643 bool pci_check_pme_status(struct pci_dev *dev) pci_check_pme_status() 1678 static int pci_pme_wakeup(struct pci_dev *dev, void *pme_poll_reset) pci_pme_wakeup() 1706 bool pci_pme_capable(struct pci_dev *dev, pci_power_t state) pci_pme_capable() 1722 struct pci_dev *bridge; pci_pme_list_scan() 1744 static void __pci_pme_active(struct pci_dev *dev, bool enable) __pci_pme_active() 1768 void pci_pme_active(struct pci_dev *dev, bool enable) pci_pme_active() 1845 int __pci_enable_wake(struct pci_dev *dev, pci_power_t state, __pci_enable_wake() 1903 int pci_wake_from_d3(struct pci_dev *dev, bool enable) pci_wake_from_d3() 1919 static pci_power_t pci_target_state(struct pci_dev *dev) pci_target_state() 1967 int pci_prepare_to_sleep(struct pci_dev *dev) pci_prepare_to_sleep() 1992 int pci_back_from_sleep(struct pci_dev *dev) pci_back_from_sleep() 2006 int pci_finish_runtime_suspend(struct pci_dev *dev) pci_finish_runtime_suspend() 2036 bool pci_dev_run_wake(struct pci_dev *dev) pci_dev_run_wake() 2047 struct pci_dev *bridge = bus->self; pci_dev_run_wake() 2065 * @pci_dev: Device to check. 2075 bool pci_dev_keep_suspended(struct pci_dev *pci_dev) pci_dev_keep_suspended() argument 2077 struct device *dev = &pci_dev->dev; pci_dev_keep_suspended() 2080 || pci_target_state(pci_dev) != pci_dev->current_state pci_dev_keep_suspended() 2081 || platform_pci_need_resume(pci_dev)) pci_dev_keep_suspended() 2096 if (pm_runtime_suspended(dev) && pci_dev->current_state < PCI_D3cold && pci_dev_keep_suspended() 2098 __pci_pme_active(pci_dev, false); pci_dev_keep_suspended() 2106 * @pci_dev: Device to handle. 2112 void pci_dev_complete_resume(struct pci_dev *pci_dev) pci_dev_complete_resume() argument 2114 struct device *dev = &pci_dev->dev; pci_dev_complete_resume() 2116 if (!pci_dev_run_wake(pci_dev)) pci_dev_complete_resume() 2121 if (pm_runtime_suspended(dev) && pci_dev->current_state < PCI_D3cold) pci_dev_complete_resume() 2122 __pci_pme_active(pci_dev, true); pci_dev_complete_resume() 2127 void pci_config_pm_runtime_get(struct pci_dev *pdev) pci_config_pm_runtime_get() 2149 void pci_config_pm_runtime_put(struct pci_dev *pdev) pci_config_pm_runtime_put() 2163 void pci_pm_init(struct pci_dev *dev) pci_pm_init() 2230 static unsigned long pci_ea_flags(struct pci_dev *dev, u8 prop) pci_ea_flags() 2253 static struct resource *pci_ea_get_resource(struct pci_dev *dev, u8 bei, pci_ea_get_resource() 2271 static int pci_ea_read(struct pci_dev *dev, int offset) pci_ea_read() 2394 void pci_ea_init(struct pci_dev *dev) pci_ea_init() 2422 static void pci_add_saved_cap(struct pci_dev *pci_dev, pci_add_saved_cap() argument 2425 hlist_add_head(&new_cap->next, &pci_dev->saved_cap_space); pci_add_saved_cap() 2436 static int _pci_add_cap_save_buffer(struct pci_dev *dev, u16 cap, _pci_add_cap_save_buffer() 2462 int pci_add_cap_save_buffer(struct pci_dev *dev, char cap, unsigned int size) pci_add_cap_save_buffer() 2467 int pci_add_ext_cap_save_buffer(struct pci_dev *dev, u16 cap, unsigned int size) pci_add_ext_cap_save_buffer() 2476 void pci_allocate_cap_save_buffers(struct pci_dev *dev) pci_allocate_cap_save_buffers() 2494 void pci_free_cap_save_buffers(struct pci_dev *dev) pci_free_cap_save_buffers() 2510 void pci_configure_ari(struct pci_dev *dev) pci_configure_ari() 2513 struct pci_dev *bridge; pci_configure_ari() 2551 static int pci_std_enable_acs(struct pci_dev *dev) pci_std_enable_acs() 2585 void pci_enable_acs(struct pci_dev *dev) pci_enable_acs() 2596 static bool pci_acs_flags_enabled(struct pci_dev *pdev, u16 acs_flags) pci_acs_flags_enabled() 2633 bool pci_acs_enabled(struct pci_dev *pdev, u16 acs_flags) pci_acs_enabled() 2706 bool pci_acs_path_enabled(struct pci_dev *start, pci_acs_path_enabled() 2707 struct pci_dev *end, u16 acs_flags) pci_acs_path_enabled() 2709 struct pci_dev *pdev, *parent = start; pci_acs_path_enabled() 2737 u8 pci_swizzle_interrupt_pin(const struct pci_dev *dev, u8 pin) pci_swizzle_interrupt_pin() 2749 int pci_get_interrupt_pin(struct pci_dev *dev, struct pci_dev **bridge) pci_get_interrupt_pin() 2773 u8 pci_common_swizzle(struct pci_dev *dev, u8 *pinp) pci_common_swizzle() 2795 void pci_release_region(struct pci_dev *pdev, int bar) pci_release_region() 2833 static int __pci_request_region(struct pci_dev *pdev, int bar, __pci_request_region() 2878 int pci_request_region(struct pci_dev *pdev, int bar, const char *res_name) pci_request_region() 2902 int pci_request_region_exclusive(struct pci_dev *pdev, int bar, pci_request_region_exclusive() 2917 void pci_release_selected_regions(struct pci_dev *pdev, int bars) pci_release_selected_regions() 2927 static int __pci_request_selected_regions(struct pci_dev *pdev, int bars, __pci_request_selected_regions() 2953 int pci_request_selected_regions(struct pci_dev *pdev, int bars, pci_request_selected_regions() 2960 int pci_request_selected_regions_exclusive(struct pci_dev *pdev, int bars, pci_request_selected_regions_exclusive() 2977 void pci_release_regions(struct pci_dev *pdev) pci_release_regions() 2996 int pci_request_regions(struct pci_dev *pdev, const char *res_name) pci_request_regions() 3018 int pci_request_regions_exclusive(struct pci_dev *pdev, const char *res_name) pci_request_regions_exclusive() 3056 static void __pci_set_master(struct pci_dev *dev, bool enable) __pci_set_master() 3093 void __weak pcibios_set_master(struct pci_dev *dev) pcibios_set_master() 3119 void pci_set_master(struct pci_dev *dev) pci_set_master() 3130 void pci_clear_master(struct pci_dev *dev) pci_clear_master() 3146 int pci_set_cacheline_size(struct pci_dev *dev) pci_set_cacheline_size() 3182 int pci_set_mwi(struct pci_dev *dev) pci_set_mwi() 3214 int pci_try_set_mwi(struct pci_dev *dev) pci_try_set_mwi() 3230 void pci_clear_mwi(struct pci_dev *dev) pci_clear_mwi() 3251 void pci_intx(struct pci_dev *pdev, int enable) pci_intx() 3283 bool pci_intx_mask_supported(struct pci_dev *dev) pci_intx_mask_supported() 3316 static bool pci_check_and_set_intx_mask(struct pci_dev *dev, bool mask) pci_check_and_set_intx_mask() 3369 bool pci_check_and_mask_intx(struct pci_dev *dev) pci_check_and_mask_intx() 3383 bool pci_check_and_unmask_intx(struct pci_dev *dev) pci_check_and_unmask_intx() 3389 int pci_set_dma_max_seg_size(struct pci_dev *dev, unsigned int size) pci_set_dma_max_seg_size() 3395 int pci_set_dma_seg_boundary(struct pci_dev *dev, unsigned long mask) pci_set_dma_seg_boundary() 3407 int pci_wait_for_pending_transaction(struct pci_dev *dev) pci_wait_for_pending_transaction() 3417 static int pcie_flr(struct pci_dev *dev, int probe) pcie_flr() 3436 static int pci_af_flr(struct pci_dev *dev, int probe) pci_af_flr() 3481 static int pci_pm_reset(struct pci_dev *dev, int probe) pci_pm_reset() 3511 void pci_reset_secondary_bus(struct pci_dev *dev) pci_reset_secondary_bus() 3537 void __weak pcibios_reset_secondary_bus(struct pci_dev *dev) pcibios_reset_secondary_bus() 3549 void pci_reset_bridge_secondary_bus(struct pci_dev *dev) pci_reset_bridge_secondary_bus() 3555 static int pci_parent_bus_reset(struct pci_dev *dev, int probe) pci_parent_bus_reset() 3557 struct pci_dev *pdev; pci_parent_bus_reset() 3590 static int pci_dev_reset_slot_function(struct pci_dev *dev, int probe) pci_dev_reset_slot_function() 3592 struct pci_dev *pdev; pci_dev_reset_slot_function() 3605 static int __pci_dev_reset(struct pci_dev *dev, int probe) __pci_dev_reset() 3636 static void pci_dev_lock(struct pci_dev *dev) pci_dev_lock() 3644 static int pci_dev_trylock(struct pci_dev *dev) pci_dev_trylock() 3655 static void pci_dev_unlock(struct pci_dev *dev) pci_dev_unlock() 3670 static void pci_reset_notify(struct pci_dev *dev, bool prepare) pci_reset_notify() 3678 static void pci_dev_save_and_disable(struct pci_dev *dev) pci_dev_save_and_disable() 3700 static void pci_dev_restore(struct pci_dev *dev) pci_dev_restore() 3706 static int pci_dev_reset(struct pci_dev *dev, int probe) pci_dev_reset() 3738 int __pci_reset_function(struct pci_dev *dev) __pci_reset_function() 3763 int __pci_reset_function_locked(struct pci_dev *dev) __pci_reset_function_locked() 3780 int pci_probe_reset_function(struct pci_dev *dev) pci_probe_reset_function() 3801 int pci_reset_function(struct pci_dev *dev) pci_reset_function() 3825 int pci_try_reset_function(struct pci_dev *dev) pci_try_reset_function() 3850 struct pci_dev *dev; pci_bus_resetable() 3864 struct pci_dev *dev; pci_bus_lock() 3876 struct pci_dev *dev; pci_bus_unlock() 3888 struct pci_dev *dev; pci_bus_trylock() 3914 struct pci_dev *dev; pci_slot_resetable() 3930 struct pci_dev *dev; pci_slot_lock() 3944 struct pci_dev *dev; pci_slot_unlock() 3958 struct pci_dev *dev; pci_slot_trylock() 3989 struct pci_dev *dev; pci_bus_save_and_disable() 4004 struct pci_dev *dev; pci_bus_restore() 4016 struct pci_dev *dev; pci_slot_save_and_disable() 4033 struct pci_dev *dev; pci_slot_restore() 4232 int pcix_get_max_mmrbc(struct pci_dev *dev) pcix_get_max_mmrbc() 4255 int pcix_get_mmrbc(struct pci_dev *dev) pcix_get_mmrbc() 4280 int pcix_set_mmrbc(struct pci_dev *dev, int mmrbc) pcix_set_mmrbc() 4325 int pcie_get_readrq(struct pci_dev *dev) pcie_get_readrq() 4343 int pcie_set_readrq(struct pci_dev *dev, int rq) pcie_set_readrq() 4376 int pcie_get_mps(struct pci_dev *dev) pcie_get_mps() 4394 int pcie_set_mps(struct pci_dev *dev, int mps) pcie_set_mps() 4420 int pcie_get_minimum_link(struct pci_dev *dev, enum pci_bus_speed *speed, pcie_get_minimum_link() 4461 int pci_select_bars(struct pci_dev *dev, unsigned long flags) pci_select_bars() 4479 int pci_resource_bar(struct pci_dev *dev, int resno, enum pci_bar_type *type) pci_resource_bar() 4509 static int pci_set_vga_state_arch(struct pci_dev *dev, bool decode, pci_set_vga_state_arch() 4526 int pci_set_vga_state(struct pci_dev *dev, bool decode, pci_set_vga_state() 4530 struct pci_dev *bridge; pci_set_vga_state() 4571 bool pci_device_is_present(struct pci_dev *pdev) pci_device_is_present() 4579 void pci_ignore_hotplug(struct pci_dev *dev) pci_ignore_hotplug() 4581 struct pci_dev *bridge = dev->bus->self; pci_ignore_hotplug() 4601 static resource_size_t pci_specified_resource_alignment(struct pci_dev *dev) pci_specified_resource_alignment() 4657 void pci_reassigndev_resource_alignment(struct pci_dev *dev) pci_reassigndev_resource_alignment()
|
H A D | msi.c | 36 struct irq_domain * __weak arch_get_pci_msi_domain(struct pci_dev *dev) arch_get_pci_msi_domain() 41 static struct irq_domain *pci_msi_get_domain(struct pci_dev *dev) pci_msi_get_domain() 52 static int pci_msi_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) pci_msi_setup_msi_irqs() 63 static void pci_msi_teardown_msi_irqs(struct pci_dev *dev) pci_msi_teardown_msi_irqs() 80 int __weak arch_setup_msi_irq(struct pci_dev *dev, struct msi_desc *desc) arch_setup_msi_irq() 107 int __weak arch_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) arch_setup_msi_irqs() 137 void default_teardown_msi_irqs(struct pci_dev *dev) default_teardown_msi_irqs() 148 void __weak arch_teardown_msi_irqs(struct pci_dev *dev) arch_teardown_msi_irqs() 153 static void default_restore_msi_irq(struct pci_dev *dev, int irq) default_restore_msi_irq() 171 void __weak arch_restore_msi_irqs(struct pci_dev *dev) arch_restore_msi_irqs() 270 void default_restore_msi_irqs(struct pci_dev *dev) default_restore_msi_irqs() 280 struct pci_dev *dev = msi_desc_to_pci_dev(entry); __pci_read_msi_msg() 311 struct pci_dev *dev = msi_desc_to_pci_dev(entry); __pci_write_msi_msg() 355 static void free_msi_irqs(struct pci_dev *dev) free_msi_irqs() 397 static void pci_intx_for_msi(struct pci_dev *dev, int enable) pci_intx_for_msi() 403 static void __pci_restore_msi_state(struct pci_dev *dev) __pci_restore_msi_state() 425 static void __pci_restore_msix_state(struct pci_dev *dev) __pci_restore_msix_state() 445 void pci_restore_msi_state(struct pci_dev *dev) pci_restore_msi_state() 471 static int populate_msi_sysfs(struct pci_dev *pdev) populate_msi_sysfs() 548 static struct msi_desc *msi_setup_entry(struct pci_dev *dev, int nvec) msi_setup_entry() 581 static int msi_verify_entries(struct pci_dev *dev) msi_verify_entries() 597 * @dev: pointer to the pci_dev data structure of MSI device function 606 static int msi_capability_init(struct pci_dev *dev, int nvec) msi_capability_init() 656 static void __iomem *msix_map_region(struct pci_dev *dev, unsigned nr_entries) msix_map_region() 676 static int msix_setup_entries(struct pci_dev *dev, void __iomem *base, msix_setup_entries() 706 static void msix_program_entries(struct pci_dev *dev, msix_program_entries() 725 * @dev: pointer to the pci_dev data structure of MSI-X device function 733 static int msix_capability_init(struct pci_dev *dev, msix_capability_init() 809 * @dev: pointer to the pci_dev data structure of MSI device function 816 static int pci_msi_supported(struct pci_dev *dev, int nvec) pci_msi_supported() 859 int pci_msi_vec_count(struct pci_dev *dev) pci_msi_vec_count() 874 void pci_msi_shutdown(struct pci_dev *dev) pci_msi_shutdown() 899 void pci_disable_msi(struct pci_dev *dev) pci_disable_msi() 911 * @dev: pointer to the pci_dev data structure of MSI-X device function 917 int pci_msix_vec_count(struct pci_dev *dev) pci_msix_vec_count() 931 * @dev: pointer to the pci_dev data structure of MSI-X device function 944 int pci_enable_msix(struct pci_dev *dev, struct msix_entry *entries, int nvec) pci_enable_msix() 981 void pci_msix_shutdown(struct pci_dev *dev) pci_msix_shutdown() 1000 void pci_disable_msix(struct pci_dev *dev) pci_disable_msix() 1027 void pci_msi_init_pci_dev(struct pci_dev *dev) pci_msi_init_pci_dev() 1043 int pci_enable_msi_range(struct pci_dev *dev, int minvec, int maxvec) pci_enable_msi_range() 1088 * @dev: pointer to the pci_dev data structure of MSI-X device function 1101 int pci_enable_msix_range(struct pci_dev *dev, struct msix_entry *entries, pci_enable_msix_range() 1125 struct pci_dev *msi_desc_to_pci_dev(struct msi_desc *desc) msi_desc_to_pci_dev() 1132 struct pci_dev *dev = msi_desc_to_pci_dev(desc); msi_desc_to_pci_sysdata() 1163 irq_hw_number_t pci_msi_domain_calc_hwirq(struct pci_dev *dev, pci_msi_domain_calc_hwirq() 1299 int pci_msi_domain_alloc_irqs(struct irq_domain *domain, struct pci_dev *dev, pci_msi_domain_alloc_irqs() 1310 void pci_msi_domain_free_irqs(struct irq_domain *domain, struct pci_dev *dev) pci_msi_domain_free_irqs() 1342 static int get_msi_id_cb(struct pci_dev *pdev, u16 alias, void *data) get_msi_id_cb() 1359 u32 pci_msi_domain_get_msi_rid(struct irq_domain *domain, struct pci_dev *pdev) pci_msi_domain_get_msi_rid() 1382 struct irq_domain *pci_msi_get_device_domain(struct pci_dev *pdev) pci_msi_get_device_domain()
|
H A D | iov.c | 22 int pci_iov_virtfn_bus(struct pci_dev *dev, int vf_id) pci_iov_virtfn_bus() 30 int pci_iov_virtfn_devfn(struct pci_dev *dev, int vf_id) pci_iov_virtfn_devfn() 44 static inline void pci_iov_set_numvfs(struct pci_dev *dev, int nr_virtfn) pci_iov_set_numvfs() 60 static int compute_max_vf_buses(struct pci_dev *dev) compute_max_vf_buses() 108 resource_size_t pci_iov_resource_size(struct pci_dev *dev, int resno) pci_iov_resource_size() 116 static int virtfn_add(struct pci_dev *dev, int id, int reset) virtfn_add() 122 struct pci_dev *virtfn; virtfn_add() 191 static void virtfn_remove(struct pci_dev *dev, int id, int reset) virtfn_remove() 194 struct pci_dev *virtfn; virtfn_remove() 228 int __weak pcibios_sriov_enable(struct pci_dev *pdev, u16 num_vfs) pcibios_sriov_enable() 233 int __weak pcibios_sriov_disable(struct pci_dev *pdev) pcibios_sriov_disable() 238 static int sriov_enable(struct pci_dev *dev, int nr_virtfn) sriov_enable() 245 struct pci_dev *pdev; sriov_enable() 353 static void sriov_disable(struct pci_dev *dev) sriov_disable() 379 static int sriov_init(struct pci_dev *dev, int pos) sriov_init() 388 struct pci_dev *pdev; sriov_init() 494 static void sriov_release(struct pci_dev *dev) sriov_release() 507 static void sriov_restore_state(struct pci_dev *dev) sriov_restore_state() 533 int pci_iov_init(struct pci_dev *dev) pci_iov_init() 551 void pci_iov_release(struct pci_dev *dev) pci_iov_release() 564 int pci_iov_resource_bar(struct pci_dev *dev, int resno) pci_iov_resource_bar() 575 resource_size_t __weak pcibios_iov_resource_alignment(struct pci_dev *dev, pcibios_iov_resource_alignment() 591 resource_size_t pci_sriov_resource_alignment(struct pci_dev *dev, int resno) pci_sriov_resource_alignment() 600 void pci_restore_iov_state(struct pci_dev *dev) pci_restore_iov_state() 616 struct pci_dev *dev; pci_iov_bus_range() 635 int pci_enable_sriov(struct pci_dev *dev, int nr_virtfn) pci_enable_sriov() 650 void pci_disable_sriov(struct pci_dev *dev) pci_disable_sriov() 667 int pci_num_vf(struct pci_dev *dev) pci_num_vf() 683 int pci_vfs_assigned(struct pci_dev *dev) pci_vfs_assigned() 685 struct pci_dev *vfdev; pci_vfs_assigned() 730 int pci_sriov_set_totalvfs(struct pci_dev *dev, u16 numvfs) pci_sriov_set_totalvfs() 755 int pci_sriov_get_totalvfs(struct pci_dev *dev) pci_sriov_get_totalvfs()
|
H A D | hotplug-pci.c | 7 int pci_hp_add_bridge(struct pci_dev *dev) pci_hp_add_bridge()
|
H A D | irq.c | 13 static void pci_note_irq_problem(struct pci_dev *pdev, const char *reason) pci_note_irq_problem() 15 struct pci_dev *parent = to_pci_dev(pdev->dev.parent); pci_note_irq_problem() 37 enum pci_lost_interrupt_reason pci_lost_interrupt(struct pci_dev *pdev) pci_lost_interrupt()
|
H A D | proc.c | 22 struct pci_dev *dev = PDE_DATA(file_inode(file)); proc_bus_pci_lseek() 29 struct pci_dev *dev = PDE_DATA(file_inode(file)); proc_bus_pci_read() 114 struct pci_dev *dev = PDE_DATA(ino); proc_bus_pci_write() 192 struct pci_dev *dev = PDE_DATA(file_inode(file)); proc_bus_pci_ioctl() 232 struct pci_dev *dev = PDE_DATA(file_inode(file)); proc_bus_pci_mmap() 301 struct pci_dev *dev = NULL; pci_seq_start() 313 struct pci_dev *dev = v; pci_seq_next() 323 struct pci_dev *dev = v; pci_seq_stop() 330 const struct pci_dev *dev = v; show_device() 376 int pci_proc_attach_device(struct pci_dev *dev) pci_proc_attach_device() 408 int pci_proc_detach_device(struct pci_dev *dev) pci_proc_detach_device() 436 struct pci_dev *dev = NULL; pci_proc_init()
|
H A D | access.c | 21 * by pci_dev->ops. 185 ssize_t pci_read_vpd(struct pci_dev *dev, loff_t pos, size_t count, void *buf) pci_read_vpd() 201 ssize_t pci_write_vpd(struct pci_dev *dev, loff_t pos, size_t count, const void *buf) pci_write_vpd() 219 static noinline void pci_wait_cfg(struct pci_dev *dev) pci_wait_cfg() 236 (struct pci_dev *dev, int pos, type *val) \ 256 (struct pci_dev *dev, int pos, type val) \ 298 static int pci_vpd_pci22_wait(struct pci_dev *dev) pci_vpd_pci22_wait() 331 static ssize_t pci_vpd_pci22_read(struct pci_dev *dev, loff_t pos, size_t count, pci_vpd_pci22_read() 383 static ssize_t pci_vpd_pci22_write(struct pci_dev *dev, loff_t pos, size_t count, pci_vpd_pci22_write() 431 static void pci_vpd_pci22_release(struct pci_dev *dev) pci_vpd_pci22_release() 442 static ssize_t pci_vpd_f0_read(struct pci_dev *dev, loff_t pos, size_t count, pci_vpd_f0_read() 445 struct pci_dev *tdev = pci_get_slot(dev->bus, pci_vpd_f0_read() 457 static ssize_t pci_vpd_f0_write(struct pci_dev *dev, loff_t pos, size_t count, pci_vpd_f0_write() 460 struct pci_dev *tdev = pci_get_slot(dev->bus, pci_vpd_f0_write() 478 int pci_vpd_pci22_init(struct pci_dev *dev) pci_vpd_pci22_init() 511 void pci_cfg_access_lock(struct pci_dev *dev) pci_cfg_access_lock() 531 bool pci_cfg_access_trylock(struct pci_dev *dev) pci_cfg_access_trylock() 553 void pci_cfg_access_unlock(struct pci_dev *dev) pci_cfg_access_unlock() 569 static inline int pcie_cap_version(const struct pci_dev *dev) pcie_cap_version() 574 static bool pcie_downstream_port(const struct pci_dev *dev) pcie_downstream_port() 582 bool pcie_cap_has_lnkctl(const struct pci_dev *dev) pcie_cap_has_lnkctl() 595 static inline bool pcie_cap_has_sltctl(const struct pci_dev *dev) pcie_cap_has_sltctl() 601 static inline bool pcie_cap_has_rtctl(const struct pci_dev *dev) pcie_cap_has_rtctl() 609 static bool pcie_capability_reg_implemented(struct pci_dev *dev, int pos) pcie_capability_reg_implemented() 649 int pcie_capability_read_word(struct pci_dev *dev, int pos, u16 *val) pcie_capability_read_word() 684 int pcie_capability_read_dword(struct pci_dev *dev, int pos, u32 *val) pcie_capability_read_dword() 712 int pcie_capability_write_word(struct pci_dev *dev, int pos, u16 val) pcie_capability_write_word() 724 int pcie_capability_write_dword(struct pci_dev *dev, int pos, u32 val) pcie_capability_write_dword() 736 int pcie_capability_clear_and_set_word(struct pci_dev *dev, int pos, pcie_capability_clear_and_set_word() 753 int pcie_capability_clear_and_set_dword(struct pci_dev *dev, int pos, pcie_capability_clear_and_set_dword()
|
H A D | pci-sysfs.c | 42 struct pci_dev *pdev; \ 60 struct pci_dev *pdev = to_pci_dev(dev); broken_parity_status_show() 68 struct pci_dev *pdev = to_pci_dev(dev); broken_parity_status_store() 133 struct pci_dev *pci_dev = to_pci_dev(dev); resource_show() local 139 if (pci_dev->subordinate) resource_show() 145 struct resource *res = &pci_dev->resource[i]; resource_show() 146 pci_resource_to_user(pci_dev, i, res, &start, &end); resource_show() 159 struct pci_dev *pci_dev = to_pci_dev(dev); modalias_show() local 162 pci_dev->vendor, pci_dev->device, modalias_show() 163 pci_dev->subsystem_vendor, pci_dev->subsystem_device, modalias_show() 164 (u8)(pci_dev->class >> 16), (u8)(pci_dev->class >> 8), modalias_show() 165 (u8)(pci_dev->class)); modalias_show() 172 struct pci_dev *pdev = to_pci_dev(dev); enable_store() 197 struct pci_dev *pdev; enable_show() 209 struct pci_dev *pdev = to_pci_dev(dev); numa_node_store() 244 struct pci_dev *pdev = to_pci_dev(dev); dma_mask_bits_show() 261 struct pci_dev *pdev = to_pci_dev(dev); msi_bus_show() 272 struct pci_dev *pdev = to_pci_dev(dev); msi_bus_store() 343 struct pci_dev *pdev = to_pci_dev(dev); dev_rescan_store() 402 struct pci_dev *pdev = to_pci_dev(dev); d3cold_allowed_store() 417 struct pci_dev *pdev = to_pci_dev(dev); d3cold_allowed_show() 427 struct pci_dev *pdev = to_pci_dev(dev); devspec_show() 442 struct pci_dev *pdev = to_pci_dev(dev); sriov_totalvfs_show() 452 struct pci_dev *pdev = to_pci_dev(dev); sriov_numvfs_show() 468 struct pci_dev *pdev = to_pci_dev(dev); sriov_numvfs_store() 524 struct pci_dev *pdev = to_pci_dev(dev); driver_override_store() 554 struct pci_dev *pdev = to_pci_dev(dev); driver_override_show() 617 struct pci_dev *pdev = to_pci_dev(dev); boot_vga_show() 618 struct pci_dev *vga_dev = vga_default_device(); boot_vga_show() 633 struct pci_dev *dev = to_pci_dev(container_of(kobj, struct device, pci_read_config() 710 struct pci_dev *dev = to_pci_dev(container_of(kobj, struct device, pci_write_config() 772 struct pci_dev *dev = read_vpd_attr() 787 struct pci_dev *dev = write_vpd_attr() 973 int pci_mmap_fits(struct pci_dev *pdev, int resno, struct vm_area_struct *vma, pci_mmap_fits() 1003 struct pci_dev *pdev = to_pci_dev(container_of(kobj, pci_mmap_resource() 1057 struct pci_dev *pdev = to_pci_dev(container_of(kobj, pci_resource_io() 1121 static void pci_remove_resource_files(struct pci_dev *pdev) pci_remove_resource_files() 1142 static int pci_create_attr(struct pci_dev *pdev, int num, int write_combine) pci_create_attr() 1184 static int pci_create_resource_files(struct pci_dev *pdev) pci_create_resource_files() 1209 int __weak pci_create_resource_files(struct pci_dev *dev) { return 0; } pci_remove_resource_files() 1210 void __weak pci_remove_resource_files(struct pci_dev *dev) { return; } pci_remove_resource_files() 1228 struct pci_dev *pdev = to_pci_dev(container_of(kobj, struct device, kobj)); pci_write_rom() 1254 struct pci_dev *pdev = to_pci_dev(container_of(kobj, struct device, kobj)); pci_read_rom() 1301 struct pci_dev *pdev = to_pci_dev(dev); reset_store() 1320 static int pci_create_capabilities_sysfs(struct pci_dev *dev) pci_create_capabilities_sysfs() 1366 int __must_check pci_create_sysfs_dev_files(struct pci_dev *pdev) pci_create_sysfs_dev_files() 1438 static void pci_remove_capabilities_sysfs(struct pci_dev *dev) pci_remove_capabilities_sysfs() 1458 void pci_remove_sysfs_dev_files(struct pci_dev *pdev) pci_remove_sysfs_dev_files() 1490 struct pci_dev *pdev = NULL; pci_sysfs_init() 1515 struct pci_dev *pdev = to_pci_dev(dev); pci_dev_attrs_are_visible() 1534 struct pci_dev *pdev = to_pci_dev(dev); pci_dev_hp_attrs_are_visible()
|
H A D | quirks.c | 37 static void quirk_mmio_always_on(struct pci_dev *dev) quirk_mmio_always_on() 48 static void quirk_mellanox_tavor(struct pci_dev *dev) quirk_mellanox_tavor() 57 static void quirk_passive_release(struct pci_dev *dev) quirk_passive_release() 59 struct pci_dev *d = NULL; quirk_passive_release() 83 static void quirk_isa_dma_hangs(struct pci_dev *dev) quirk_isa_dma_hangs() 106 static void quirk_tigerpoint_bm_sts(struct pci_dev *dev) quirk_tigerpoint_bm_sts() 125 static void quirk_nopcipci(struct pci_dev *dev) quirk_nopcipci() 135 static void quirk_nopciamd(struct pci_dev *dev) quirk_nopciamd() 150 static void quirk_triton(struct pci_dev *dev) quirk_triton() 172 static void quirk_vialatency(struct pci_dev *dev) quirk_vialatency() 174 struct pci_dev *p; quirk_vialatency() 228 static void quirk_viaetbf(struct pci_dev *dev) quirk_viaetbf() 237 static void quirk_vsfx(struct pci_dev *dev) quirk_vsfx() 252 static void quirk_alimagik(struct pci_dev *dev) quirk_alimagik() 266 static void quirk_natoma(struct pci_dev *dev) quirk_natoma() 284 static void quirk_citrine(struct pci_dev *dev) quirk_citrine() 291 static void quirk_extend_bar_to_page(struct pci_dev *dev) quirk_extend_bar_to_page() 313 static void quirk_s3_64M(struct pci_dev *dev) quirk_s3_64M() 326 static void quirk_io(struct pci_dev *dev, int pos, unsigned size, quirk_io() 362 static void quirk_cs5536_vsa(struct pci_dev *dev) quirk_cs5536_vsa() 376 static void quirk_io_region(struct pci_dev *dev, int port, quirk_io_region() 405 static void quirk_ati_exploding_mce(struct pci_dev *dev) quirk_ati_exploding_mce() 424 static void quirk_amd_nl_class(struct pci_dev *pdev) quirk_amd_nl_class() 447 static void quirk_ali7101_acpi(struct pci_dev *dev) quirk_ali7101_acpi() 454 static void piix4_io_quirk(struct pci_dev *dev, const char *name, unsigned int port, unsigned int enable) piix4_io_quirk() 481 static void piix4_mem_quirk(struct pci_dev *dev, const char *name, unsigned int port, unsigned int enable) piix4_mem_quirk() 513 static void quirk_piix4_acpi(struct pci_dev *dev) quirk_piix4_acpi() 560 static void quirk_ich4_lpc_acpi(struct pci_dev *dev) quirk_ich4_lpc_acpi() 593 static void ich6_lpc_acpi_gpio(struct pci_dev *dev) ich6_lpc_acpi_gpio() 608 static void ich6_lpc_generic_decode(struct pci_dev *dev, unsigned reg, const char *name, int dynsize) ich6_lpc_generic_decode() 636 static void quirk_ich6_lpc(struct pci_dev *dev) quirk_ich6_lpc() 648 static void ich7_lpc_generic_decode(struct pci_dev *dev, unsigned reg, const char *name) ich7_lpc_generic_decode() 672 static void quirk_ich7_lpc(struct pci_dev *dev) quirk_ich7_lpc() 701 static void quirk_vt82c586_acpi(struct pci_dev *dev) quirk_vt82c586_acpi() 715 static void quirk_vt82c686_acpi(struct pci_dev *dev) quirk_vt82c686_acpi() 731 static void quirk_vt8235_acpi(struct pci_dev *dev) quirk_vt8235_acpi() 742 static void quirk_xio2000a(struct pci_dev *dev) quirk_xio2000a() 744 struct pci_dev *pdev; quirk_xio2000a() 768 static void quirk_via_ioapic(struct pci_dev *dev) quirk_via_ioapic() 792 static void quirk_via_vt8237_bypass_apic_deassert(struct pci_dev *dev) quirk_via_vt8237_bypass_apic_deassert() 815 static void quirk_amd_ioapic(struct pci_dev *dev) quirk_amd_ioapic() 829 static void quirk_amd_8131_mmrbc(struct pci_dev *dev) quirk_amd_8131_mmrbc() 843 * it seems like setting the pci_dev's 'irq' to the 847 static void quirk_via_acpi(struct pci_dev *d) quirk_via_acpi() 868 static void quirk_via_bridge(struct pci_dev *dev) quirk_via_bridge() 916 static void quirk_via_vlink(struct pci_dev *dev) quirk_via_vlink() 954 static void quirk_vt82c598_id(struct pci_dev *dev) quirk_vt82c598_id() 967 static void quirk_cardbus_legacy(struct pci_dev *dev) quirk_cardbus_legacy() 983 static void quirk_amd_ordering(struct pci_dev *dev) quirk_amd_ordering() 1006 static void quirk_dunord(struct pci_dev *dev) quirk_dunord() 1022 static void quirk_transparent_bridge(struct pci_dev *dev) quirk_transparent_bridge() 1035 static void quirk_mediagx_master(struct pci_dev *dev) quirk_mediagx_master() 1055 static void quirk_disable_pxb(struct pci_dev *pdev) quirk_disable_pxb() 1071 static void quirk_amd_ide_mode(struct pci_dev *pdev) quirk_amd_ide_mode() 1100 static void quirk_svwks_csb5ide(struct pci_dev *pdev) quirk_svwks_csb5ide() 1116 static void quirk_ide_samemode(struct pci_dev *pdev) quirk_ide_samemode() 1135 static void quirk_no_ata_d3(struct pci_dev *pdev) quirk_no_ata_d3() 1155 static void quirk_eisa_bridge(struct pci_dev *dev) quirk_eisa_bridge() 1189 static void asus_hides_smbus_hostbridge(struct pci_dev *dev) asus_hides_smbus_hostbridge() 1322 static void asus_hides_smbus_lpc(struct pci_dev *dev) asus_hides_smbus_lpc() 1357 static void asus_hides_smbus_lpc_ich6_suspend(struct pci_dev *dev) asus_hides_smbus_lpc_ich6_suspend() 1372 static void asus_hides_smbus_lpc_ich6_resume_early(struct pci_dev *dev) asus_hides_smbus_lpc_ich6_resume_early() 1383 static void asus_hides_smbus_lpc_ich6_resume(struct pci_dev *dev) asus_hides_smbus_lpc_ich6_resume() 1392 static void asus_hides_smbus_lpc_ich6(struct pci_dev *dev) asus_hides_smbus_lpc_ich6() 1406 static void quirk_sis_96x_smbus(struct pci_dev *dev) quirk_sis_96x_smbus() 1434 static void quirk_sis_503(struct pci_dev *dev) quirk_sis_503() 1465 static void asus_hides_ac97_lpc(struct pci_dev *dev) asus_hides_ac97_lpc() 1499 static void quirk_jmicron_ata(struct pci_dev *pdev) quirk_jmicron_ata() 1573 static void quirk_jmicron_async_suspend(struct pci_dev *dev) quirk_jmicron_async_suspend() 1586 static void quirk_alder_ioapic(struct pci_dev *pdev) quirk_alder_ioapic() 1607 static void quirk_pcie_mch(struct pci_dev *pdev) quirk_pcie_mch() 1620 static void quirk_pcie_pxh(struct pci_dev *dev) quirk_pcie_pxh() 1635 static void quirk_intel_pcie_pm(struct pci_dev *dev) quirk_intel_pcie_pm() 1670 static void quirk_reroute_to_boot_interrupts_intel(struct pci_dev *dev) quirk_reroute_to_boot_interrupts_intel() 1708 static void quirk_disable_intel_boot_interrupt(struct pci_dev *dev) quirk_disable_intel_boot_interrupt() 1733 static void quirk_disable_broadcom_boot_interrupt(struct pci_dev *dev) quirk_disable_broadcom_boot_interrupt() 1771 static void quirk_disable_amd_813x_boot_interrupt(struct pci_dev *dev) quirk_disable_amd_813x_boot_interrupt() 1795 static void quirk_disable_amd_8111_boot_interrupt(struct pci_dev *dev) quirk_disable_amd_8111_boot_interrupt() 1821 static void quirk_tc86c001_ide(struct pci_dev *dev) quirk_tc86c001_ide() 1842 static void quirk_plx_pci9050(struct pci_dev *dev) quirk_plx_pci9050() 1874 static void quirk_netmos(struct pci_dev *dev) quirk_netmos() 1915 static void quirk_f0_vpd_link(struct pci_dev *dev) quirk_f0_vpd_link() 1917 struct pci_dev *f0; quirk_f0_vpd_link() 1935 static void quirk_e100_interrupt(struct pci_dev *dev) quirk_e100_interrupt() 2005 static void quirk_disable_aspm_l0s(struct pci_dev *dev) quirk_disable_aspm_l0s() 2025 static void fixup_rev1_53c810(struct pci_dev *dev) fixup_rev1_53c810() 2043 static void quirk_p64h2_1k_io(struct pci_dev *dev) quirk_p64h2_1k_io() 2060 static void quirk_nvidia_ck804_pcie_aer_ext_cap(struct pci_dev *dev) quirk_nvidia_ck804_pcie_aer_ext_cap() 2075 static void quirk_via_cx700_pci_parking_caching(struct pci_dev *dev) quirk_via_cx700_pci_parking_caching() 2088 struct pci_dev *p = pci_get_device(PCI_VENDOR_ID_VIA, quirk_via_cx700_pci_parking_caching() 2136 static void quirk_brcm_570x_limit_vpd(struct pci_dev *dev) quirk_brcm_570x_limit_vpd() 2172 static void quirk_brcm_5719_limit_mrrs(struct pci_dev *dev) quirk_brcm_5719_limit_mrrs() 2196 static void quirk_unhide_mch_dev6(struct pci_dev *dev) quirk_unhide_mch_dev6() 2220 static void quirk_tile_plx_gen1(struct pci_dev *dev) quirk_tile_plx_gen1() 2237 static void quirk_disable_all_msi(struct pci_dev *dev) quirk_disable_all_msi() 2252 static void quirk_disable_msi(struct pci_dev *dev) quirk_disable_msi() 2269 static void quirk_amd_780_apc_msi(struct pci_dev *host_bridge) quirk_amd_780_apc_msi() 2271 struct pci_dev *apc_bridge; quirk_amd_780_apc_msi() 2285 static int msi_ht_cap_enabled(struct pci_dev *dev) msi_ht_cap_enabled() 2308 static void quirk_msi_ht_cap(struct pci_dev *dev) quirk_msi_ht_cap() 2321 static void quirk_nvidia_ck804_msi_ht_cap(struct pci_dev *dev) quirk_nvidia_ck804_msi_ht_cap() 2323 struct pci_dev *pdev; quirk_nvidia_ck804_msi_ht_cap() 2344 static void ht_enable_msi_mapping(struct pci_dev *dev) ht_enable_msi_mapping() 2374 static void nvenet_msi_disable(struct pci_dev *dev) nvenet_msi_disable() 2399 static void nvbridge_check_legacy_irq_routing(struct pci_dev *dev) nvbridge_check_legacy_irq_routing() 2423 static int ht_check_msi_mapping(struct pci_dev *dev) ht_check_msi_mapping() 2451 static int host_bridge_with_leaf(struct pci_dev *host_bridge) host_bridge_with_leaf() 2453 struct pci_dev *dev; host_bridge_with_leaf() 2485 static int is_end_of_ht_chain(struct pci_dev *dev) is_end_of_ht_chain() 2509 static void nv_ht_enable_msi_mapping(struct pci_dev *dev) nv_ht_enable_msi_mapping() 2511 struct pci_dev *host_bridge; nv_ht_enable_msi_mapping() 2548 static void ht_disable_msi_mapping(struct pci_dev *dev) ht_disable_msi_mapping() 2568 static void __nv_msi_ht_cap_quirk(struct pci_dev *dev, int all) __nv_msi_ht_cap_quirk() 2570 struct pci_dev *host_bridge; __nv_msi_ht_cap_quirk() 2618 static void nv_msi_ht_cap_quirk_all(struct pci_dev *dev) nv_msi_ht_cap_quirk_all() 2623 static void nv_msi_ht_cap_quirk_leaf(struct pci_dev *dev) nv_msi_ht_cap_quirk_leaf() 2634 static void quirk_msi_intx_disable_bug(struct pci_dev *dev) quirk_msi_intx_disable_bug() 2638 static void quirk_msi_intx_disable_ati_bug(struct pci_dev *dev) quirk_msi_intx_disable_ati_bug() 2640 struct pci_dev *p; quirk_msi_intx_disable_ati_bug() 2655 static void quirk_msi_intx_disable_qca_bug(struct pci_dev *dev) quirk_msi_intx_disable_qca_bug() 2730 static void quirk_hotplug_bridge(struct pci_dev *dev) quirk_hotplug_bridge() 2765 static void ricoh_mmc_fixup_rl5c476(struct pci_dev *dev) ricoh_mmc_fixup_rl5c476() 2794 static void ricoh_mmc_fixup_r5c832(struct pci_dev *dev) ricoh_mmc_fixup_r5c832() 2862 static void vtd_mask_spec_errors(struct pci_dev *dev) vtd_mask_spec_errors() 2873 static void fixup_ti816x_class(struct pci_dev *dev) fixup_ti816x_class() 2888 static void fixup_mpss_256(struct pci_dev *dev) fixup_mpss_256() 2906 static void quirk_intel_mc_errata(struct pci_dev *dev) quirk_intel_mc_errata() 2972 static void quirk_intel_ntb(struct pci_dev *dev) quirk_intel_ntb() 2992 static ktime_t fixup_debug_start(struct pci_dev *dev, fixup_debug_start() 2993 void (*fn)(struct pci_dev *dev)) fixup_debug_start() 3007 static void fixup_debug_report(struct pci_dev *dev, ktime_t calltime, fixup_debug_report() 3008 void (*fn)(struct pci_dev *dev)) fixup_debug_report() 3035 static void disable_igfx_irq(struct pci_dev *dev) disable_igfx_irq() 3060 static void quirk_remove_d3_delay(struct pci_dev *dev) quirk_remove_d3_delay() 3093 static void quirk_broken_intx_masking(struct pci_dev *dev) quirk_broken_intx_masking() 3112 static void quirk_no_bus_reset(struct pci_dev *dev) quirk_no_bus_reset() 3126 static void quirk_no_pm_reset(struct pci_dev *dev) quirk_no_pm_reset() 3163 static void quirk_apple_poweroff_thunderbolt(struct pci_dev *dev) quirk_apple_poweroff_thunderbolt() 3206 static void quirk_apple_wait_for_thunderbolt(struct pci_dev *dev) quirk_apple_wait_for_thunderbolt() 3208 struct pci_dev *sibling = NULL; quirk_apple_wait_for_thunderbolt() 3209 struct pci_dev *nhi = NULL; quirk_apple_wait_for_thunderbolt() 3244 static void pci_do_fixups(struct pci_dev *dev, struct pci_fixup *f, pci_do_fixups() 3281 void pci_fixup_device(enum pci_fixup_pass pass, struct pci_dev *dev) pci_fixup_device() 3339 struct pci_dev *dev = NULL; pci_apply_final_quirks() 3385 static int reset_intel_82599_sfp_virtfn(struct pci_dev *dev, int probe) reset_intel_82599_sfp_virtfn() 3413 static int reset_ivb_igd(struct pci_dev *dev, int probe) reset_ivb_igd() 3458 static int reset_chelsio_generic_dev(struct pci_dev *dev, int probe) reset_chelsio_generic_dev() 3553 int pci_dev_specific_reset(struct pci_dev *dev, int probe) pci_dev_specific_reset() 3568 static void quirk_dma_func0_alias(struct pci_dev *dev) quirk_dma_func0_alias() 3584 static void quirk_dma_func1_alias(struct pci_dev *dev) quirk_dma_func1_alias() 3646 static void quirk_fixed_dma_alias(struct pci_dev *dev) quirk_fixed_dma_alias() 3671 static void quirk_use_pcie_bridge_dma_alias(struct pci_dev *pdev) quirk_use_pcie_bridge_dma_alias() 3693 static void quirk_tw686x_class(struct pci_dev *pdev) quirk_tw686x_class() 3734 static void quirk_disable_root_port_attributes(struct pci_dev *pdev) quirk_disable_root_port_attributes() 3736 struct pci_dev *root_port = pci_find_pcie_root_port(pdev); quirk_disable_root_port_attributes() 3754 static void quirk_chelsio_T5_disable_root_port_attributes(struct pci_dev *pdev) quirk_chelsio_T5_disable_root_port_attributes() 3793 static int pci_quirk_amd_sb_acs(struct pci_dev *dev, u16 acs_flags) pci_quirk_amd_sb_acs() 3851 static bool pci_quirk_intel_pch_acs_match(struct pci_dev *dev) pci_quirk_intel_pch_acs_match() 3868 static int pci_quirk_intel_pch_acs(struct pci_dev *dev, u16 acs_flags) pci_quirk_intel_pch_acs() 3879 static int pci_quirk_mf_endpoint_acs(struct pci_dev *dev, u16 acs_flags) pci_quirk_mf_endpoint_acs() 3899 int (*acs_enabled)(struct pci_dev *dev, u16 acs_flags); 3972 int pci_dev_specific_acs_enabled(struct pci_dev *dev, u16 acs_flags) pci_dev_specific_acs_enabled() 4016 static int pci_quirk_enable_intel_lpc_acs(struct pci_dev *dev) pci_quirk_enable_intel_lpc_acs() 4063 static void pci_quirk_enable_intel_rp_mpc_acs(struct pci_dev *dev) pci_quirk_enable_intel_rp_mpc_acs() 4081 static int pci_quirk_enable_intel_pch_acs(struct pci_dev *dev) pci_quirk_enable_intel_pch_acs() 4103 int (*enable_acs)(struct pci_dev *dev); 4109 void pci_dev_specific_enable_acs(struct pci_dev *dev) pci_dev_specific_enable_acs() 4133 static void quirk_intel_qat_vf_cap(struct pci_dev *pdev) quirk_intel_qat_vf_cap()
|
H A D | search.c | 28 int pci_for_each_dma_alias(struct pci_dev *pdev, pci_for_each_dma_alias() 29 int (*fn)(struct pci_dev *pdev, pci_for_each_dma_alias() 51 struct pci_dev *tmp; pci_for_each_dma_alias() 185 struct pci_dev *pci_get_slot(struct pci_bus *bus, unsigned int devfn) pci_get_slot() 187 struct pci_dev *dev; pci_get_slot() 220 struct pci_dev *pci_get_domain_bus_and_slot(int domain, unsigned int bus, pci_get_domain_bus_and_slot() 223 struct pci_dev *dev = NULL; pci_get_domain_bus_and_slot() 236 struct pci_dev *pdev = to_pci_dev(dev); match_pci_dev_by_id() 260 static struct pci_dev *pci_get_dev_by_id(const struct pci_device_id *id, pci_get_dev_by_id() 261 struct pci_dev *from) pci_get_dev_by_id() 265 struct pci_dev *pdev = NULL; pci_get_dev_by_id() 294 struct pci_dev *pci_get_subsys(unsigned int vendor, unsigned int device, pci_get_subsys() 296 struct pci_dev *from) pci_get_subsys() 323 struct pci_dev *pci_get_device(unsigned int vendor, unsigned int device, pci_get_device() 324 struct pci_dev *from) pci_get_device() 344 struct pci_dev *pci_get_class(unsigned int class, struct pci_dev *from) pci_get_class() 372 struct pci_dev *found = NULL; pci_dev_present()
|
H A D | probe.c | 130 static inline unsigned long decode_bar(struct pci_dev *dev, u32 bar) decode_bar() 174 int __pci_read_base(struct pci_dev *dev, enum pci_bar_type type, __pci_read_base() 318 static void pci_read_bases(struct pci_dev *dev, unsigned int howmany, int rom) pci_read_bases() 342 struct pci_dev *dev = child->self; pci_read_bridge_io() 382 struct pci_dev *dev = child->self; pci_read_bridge_mmio() 404 struct pci_dev *dev = child->self; pci_read_bridge_mmio_pref() 457 struct pci_dev *dev = child->self; pci_read_bridge_bases() 613 struct pci_dev *bridge = bus->self; pci_set_bus_speed() 704 struct pci_dev *bridge, int busnr) pci_alloc_child_bus() 768 struct pci_bus *pci_add_new_bus(struct pci_bus *parent, struct pci_dev *dev, pci_add_new_bus() 783 static void pci_enable_crs(struct pci_dev *pdev) pci_enable_crs() 804 int pci_scan_bridge(struct pci_bus *bus, struct pci_dev *dev, int max, int pass) pci_scan_bridge() 1001 static void pci_read_irq(struct pci_dev *dev) pci_read_irq() 1012 void set_pcie_port_type(struct pci_dev *pdev) set_pcie_port_type() 1017 struct pci_dev *parent; set_pcie_port_type() 1050 void set_pcie_hotplug_bridge(struct pci_dev *pdev) set_pcie_hotplug_bridge() 1075 static bool pci_ext_cfg_is_aliased(struct pci_dev *dev) pci_ext_cfg_is_aliased() 1107 static int pci_cfg_space_size_ext(struct pci_dev *dev) pci_cfg_space_size_ext() 1123 int pci_cfg_space_size(struct pci_dev *dev) pci_cfg_space_size() 1151 void pci_msi_setup_pci_dev(struct pci_dev *dev) pci_msi_setup_pci_dev() 1177 int pci_setup_device(struct pci_dev *dev) pci_setup_device() 1330 static void pci_configure_mps(struct pci_dev *dev) pci_configure_mps() 1332 struct pci_dev *bridge = pci_upstream_bridge(dev); pci_configure_mps() 1376 static void program_hpp_type0(struct pci_dev *dev, struct hpp_type0 *hpp) program_hpp_type0() 1412 static void program_hpp_type1(struct pci_dev *dev, struct hpp_type1 *hpp) program_hpp_type1() 1418 static void program_hpp_type2(struct pci_dev *dev, struct hpp_type2 *hpp) program_hpp_type2() 1484 static void pci_configure_device(struct pci_dev *dev) pci_configure_device() 1501 static void pci_release_capabilities(struct pci_dev *dev) pci_release_capabilities() 1517 struct pci_dev *pci_dev; pci_release_dev() local 1519 pci_dev = to_pci_dev(dev); pci_release_dev() 1520 pci_release_capabilities(pci_dev); pci_release_dev() 1521 pci_release_of_node(pci_dev); pci_release_dev() 1522 pcibios_release_device(pci_dev); pci_release_dev() 1523 pci_bus_put(pci_dev->bus); pci_release_dev() 1524 kfree(pci_dev->driver_override); pci_release_dev() 1525 kfree(pci_dev); pci_release_dev() 1528 struct pci_dev *pci_alloc_dev(struct pci_bus *bus) pci_alloc_dev() 1530 struct pci_dev *dev; pci_alloc_dev() 1532 dev = kzalloc(sizeof(struct pci_dev), GFP_KERNEL); pci_alloc_dev() 1588 static struct pci_dev *pci_scan_device(struct pci_bus *bus, int devfn) pci_scan_device() 1590 struct pci_dev *dev; pci_scan_device() 1615 static void pci_init_capabilities(struct pci_dev *dev) pci_init_capabilities() 1652 static struct irq_domain *pci_dev_msi_domain(struct pci_dev *dev) pci_dev_msi_domain() 1675 static void pci_set_msi_domain(struct pci_dev *dev) pci_set_msi_domain() 1693 * @dev: ptr to pci_dev struct of the PCI device 1698 static void pci_dma_configure(struct pci_dev *dev) pci_dma_configure() 1719 void pci_device_add(struct pci_dev *dev, struct pci_bus *bus) pci_device_add() 1769 struct pci_dev *pci_scan_single_device(struct pci_bus *bus, int devfn) pci_scan_single_device() 1771 struct pci_dev *dev; pci_scan_single_device() 1789 static unsigned next_fn(struct pci_bus *bus, struct pci_dev *dev, unsigned fn) next_fn() 1819 struct pci_dev *parent = bus->self; only_one_child() 1845 struct pci_dev *dev; pci_scan_slot() 1873 static int pcie_find_smpss(struct pci_dev *dev, void *data) pcie_find_smpss() 1905 static void pcie_write_mps(struct pci_dev *dev, int mps) pcie_write_mps() 1934 static void pcie_write_mrrs(struct pci_dev *dev) pcie_write_mrrs() 1969 static int pcie_bus_configure_set(struct pci_dev *dev, void *data) pcie_bus_configure_set() 2029 struct pci_dev *dev; pci_scan_child_bus() 2332 unsigned int pci_rescan_bus_bridge_resize(struct pci_dev *bridge) pci_rescan_bus_bridge_resize() 2388 const struct pci_dev *a = to_pci_dev(d_a); pci_sort_bf_cmp() 2389 const struct pci_dev *b = to_pci_dev(d_b); pci_sort_bf_cmp()
|
/linux-4.4.14/drivers/net/wireless/rt2x00/ |
H A D | rt2x00pci.c | 52 struct pci_dev *pci_dev = to_pci_dev(rt2x00dev->dev); rt2x00pci_alloc_reg() local 54 rt2x00dev->csr.base = pci_ioremap_bar(pci_dev, 0); rt2x00pci_alloc_reg() 76 int rt2x00pci_probe(struct pci_dev *pci_dev, const struct rt2x00_ops *ops) rt2x00pci_probe() argument 83 retval = pci_enable_device(pci_dev); rt2x00pci_probe() 89 retval = pci_request_regions(pci_dev, pci_name(pci_dev)); rt2x00pci_probe() 95 pci_set_master(pci_dev); rt2x00pci_probe() 97 if (pci_set_mwi(pci_dev)) rt2x00pci_probe() 100 if (dma_set_mask(&pci_dev->dev, DMA_BIT_MASK(32))) { rt2x00pci_probe() 113 pci_set_drvdata(pci_dev, hw); rt2x00pci_probe() 116 rt2x00dev->dev = &pci_dev->dev; rt2x00pci_probe() 119 rt2x00dev->irq = pci_dev->irq; rt2x00pci_probe() 122 if (pci_is_pcie(pci_dev)) rt2x00pci_probe() 136 pci_read_config_word(pci_dev, PCI_DEVICE_ID, &chip); rt2x00pci_probe() 152 pci_release_regions(pci_dev); rt2x00pci_probe() 155 pci_disable_device(pci_dev); rt2x00pci_probe() 161 void rt2x00pci_remove(struct pci_dev *pci_dev) rt2x00pci_remove() argument 163 struct ieee80211_hw *hw = pci_get_drvdata(pci_dev); rt2x00pci_remove() 176 pci_disable_device(pci_dev); rt2x00pci_remove() 177 pci_release_regions(pci_dev); rt2x00pci_remove() 182 int rt2x00pci_suspend(struct pci_dev *pci_dev, pm_message_t state) rt2x00pci_suspend() argument 184 struct ieee80211_hw *hw = pci_get_drvdata(pci_dev); rt2x00pci_suspend() 192 pci_save_state(pci_dev); rt2x00pci_suspend() 193 pci_disable_device(pci_dev); rt2x00pci_suspend() 194 return pci_set_power_state(pci_dev, pci_choose_state(pci_dev, state)); rt2x00pci_suspend() 198 int rt2x00pci_resume(struct pci_dev *pci_dev) rt2x00pci_resume() argument 200 struct ieee80211_hw *hw = pci_get_drvdata(pci_dev); rt2x00pci_resume() 203 if (pci_set_power_state(pci_dev, PCI_D0) || rt2x00pci_resume() 204 pci_enable_device(pci_dev)) { rt2x00pci_resume() 209 pci_restore_state(pci_dev); rt2x00pci_resume()
|
H A D | rt2x00pci.h | 39 int rt2x00pci_probe(struct pci_dev *pci_dev, const struct rt2x00_ops *ops); 40 void rt2x00pci_remove(struct pci_dev *pci_dev); 42 int rt2x00pci_suspend(struct pci_dev *pci_dev, pm_message_t state); 43 int rt2x00pci_resume(struct pci_dev *pci_dev);
|
/linux-4.4.14/arch/x86/include/asm/xen/ |
H A D | pci.h | 18 int xen_find_device_domain_owner(struct pci_dev *dev); 19 int xen_register_device_domain_owner(struct pci_dev *dev, uint16_t domain); 20 int xen_unregister_device_domain_owner(struct pci_dev *dev); 26 static inline int xen_find_device_domain_owner(struct pci_dev *dev) xen_find_device_domain_owner() 30 static inline int xen_register_device_domain_owner(struct pci_dev *dev, xen_register_device_domain_owner() 35 static inline int xen_unregister_device_domain_owner(struct pci_dev *dev) xen_unregister_device_domain_owner() 47 int (*enable_msi)(struct pci_dev *dev, int vectors[]); 48 void (*disable_msi)(struct pci_dev *dev); 49 int (*enable_msix)(struct pci_dev *dev, int vectors[], int nvec); 50 void (*disable_msix)(struct pci_dev *dev); 55 static inline int xen_pci_frontend_enable_msi(struct pci_dev *dev, xen_pci_frontend_enable_msi() 62 static inline void xen_pci_frontend_disable_msi(struct pci_dev *dev) xen_pci_frontend_disable_msi() 67 static inline int xen_pci_frontend_enable_msix(struct pci_dev *dev, xen_pci_frontend_enable_msix() 74 static inline void xen_pci_frontend_disable_msix(struct pci_dev *dev) xen_pci_frontend_disable_msix()
|
/linux-4.4.14/drivers/gpu/drm/nouveau/include/nvkm/core/ |
H A D | pci.h | 7 struct pci_dev *pdev; 11 int nvkm_device_pci_new(struct pci_dev *, const char *cfg, const char *dbg,
|
/linux-4.4.14/arch/powerpc/include/asm/ |
H A D | pnv-pci.h | 16 int pnv_phb_to_cxl_mode(struct pci_dev *dev, uint64_t mode); 17 int pnv_cxl_ioda_msi_setup(struct pci_dev *dev, unsigned int hwirq, 19 int pnv_cxl_alloc_hwirqs(struct pci_dev *dev, int num); 20 void pnv_cxl_release_hwirqs(struct pci_dev *dev, int hwirq, int num); 21 int pnv_cxl_get_irq_count(struct pci_dev *dev); 22 struct device_node *pnv_pci_get_phb_node(struct pci_dev *dev); 26 struct pci_dev *dev, int num); 28 struct pci_dev *dev);
|
H A D | ppc-pci.h | 26 extern struct pci_dev *isa_bridge_pcidev; /* may be NULL if no ISA bus */ 53 void eeh_addr_cache_insert_dev(struct pci_dev *dev); 54 void eeh_addr_cache_rmv_dev(struct pci_dev *dev); 67 void eeh_sysfs_add_device(struct pci_dev *pdev); 68 void eeh_sysfs_remove_device(struct pci_dev *pdev); 70 static inline const char *eeh_pci_name(struct pci_dev *pdev) eeh_pci_name() 75 static inline const char *eeh_driver_name(struct pci_dev *pdev) eeh_driver_name()
|
H A D | pci.h | 33 struct pci_dev; 50 static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) pci_get_legacy_ide_irq() 83 int pci_mmap_page_range(struct pci_dev *pdev, struct vm_area_struct *vma, 126 extern struct pci_dev *of_create_pci_dev(struct device_node *node, 129 extern void of_scan_pci_bridge(struct pci_dev *dev); 141 extern void pci_resource_to_user(const struct pci_dev *dev, int bar,
|
H A D | pci-bridge.h | 21 void (*dma_dev_setup)(struct pci_dev *dev); 28 bool (*enable_device_hook)(struct pci_dev *); 30 void (*disable_device)(struct pci_dev *); 32 void (*release_device)(struct pci_dev *); 36 void (*reset_secondary_bus)(struct pci_dev *dev); 39 int (*setup_msi_irqs)(struct pci_dev *dev, 41 void (*teardown_msi_irqs)(struct pci_dev *dev); 44 int (*dma_set_mask)(struct pci_dev *dev, u64 dma_mask); 45 u64 (*dma_get_required_mask)(struct pci_dev *dev); 233 extern struct pci_dn *pci_get_pdn(struct pci_dev *pdev); 234 extern struct pci_dn *add_dev_pci_data(struct pci_dev *pdev); 235 extern void remove_dev_pci_data(struct pci_dev *pdev);
|
H A D | swiotlb.h | 23 extern void pci_dma_dev_setup_swiotlb(struct pci_dev *pdev); dma_mark_clean()
|
/linux-4.4.14/drivers/staging/xgifb/ |
H A D | vb_init.h | 3 unsigned char XGIInitNew(struct pci_dev *pdev);
|
/linux-4.4.14/drivers/pci/pcie/aer/ |
H A D | aerdrv_acpi.c | 24 struct pci_dev *pci) hest_match_pci() 33 struct pci_dev *dev) hest_match_type() 49 struct pci_dev *pci_dev; member in struct:aer_hest_parse_info 78 if (!info->pci_dev) { aer_hest_parse() 85 if (hest_match_type(hest_hdr, info->pci_dev)) aer_hest_parse() 88 if (hest_match_pci(p, info->pci_dev)) aer_hest_parse() 94 static void aer_set_firmware_first(struct pci_dev *pci_dev) aer_set_firmware_first() argument 98 .pci_dev = pci_dev, aer_set_firmware_first() 105 pci_dev->__aer_firmware_first = 0; aer_set_firmware_first() 107 pci_dev->__aer_firmware_first = info.firmware_first; aer_set_firmware_first() 108 pci_dev->__aer_firmware_first_valid = 1; aer_set_firmware_first() 111 int pcie_aer_get_firmware_first(struct pci_dev *dev) pcie_aer_get_firmware_first() 130 .pci_dev = NULL, /* Check all PCIe devices */ aer_acpi_firmware_first()
|
H A D | aerdrv.h | 36 struct pci_dev *dev[AER_MAX_MULTI_ERR_DEVICES]; 110 void aer_print_error(struct pci_dev *dev, struct aer_err_info *info); 111 void aer_print_port_info(struct pci_dev *dev, struct aer_err_info *info); 115 int pcie_aer_get_firmware_first(struct pci_dev *pci_dev); 117 static inline int pcie_aer_get_firmware_first(struct pci_dev *pci_dev) pcie_aer_get_firmware_first() argument 119 if (pci_dev->__aer_firmware_first_valid) pcie_aer_get_firmware_first() 120 return pci_dev->__aer_firmware_first; pcie_aer_get_firmware_first() 125 static inline void pcie_aer_force_firmware_first(struct pci_dev *pci_dev, pcie_aer_force_firmware_first() argument 128 pci_dev->__aer_firmware_first = !!enable; pcie_aer_force_firmware_first() 129 pci_dev->__aer_firmware_first_valid = 1; pcie_aer_force_firmware_first()
|
H A D | aerdrv_core.c | 38 int pci_enable_pcie_error_reporting(struct pci_dev *dev) pci_enable_pcie_error_reporting() 50 int pci_disable_pcie_error_reporting(struct pci_dev *dev) pci_disable_pcie_error_reporting() 60 int pci_cleanup_aer_uncorrect_error_status(struct pci_dev *dev) pci_cleanup_aer_uncorrect_error_status() 77 int pci_cleanup_aer_error_status_regs(struct pci_dev *dev) pci_cleanup_aer_error_status_regs() 108 * @dev: pointer to pci_dev to be added 110 static int add_error_device(struct aer_err_info *e_info, struct pci_dev *dev) add_error_device() 122 * @dev: pointer to pci_dev to be checked 125 static bool is_error_source(struct pci_dev *dev, struct aer_err_info *e_info) is_error_source() 179 static int find_device_iter(struct pci_dev *dev, void *data) find_device_iter() 200 * @parent: pointer to Root Port pci_dev data structure 210 static bool find_source_device(struct pci_dev *parent, find_source_device() 213 struct pci_dev *dev = parent; find_source_device() 235 static int report_error_detected(struct pci_dev *dev, void *data) report_error_detected() 286 static int report_mmio_enabled(struct pci_dev *dev, void *data) report_mmio_enabled() 307 static int report_slot_reset(struct pci_dev *dev, void *data) report_slot_reset() 328 static int report_resume(struct pci_dev *dev, void *data) report_resume() 358 static pci_ers_result_t broadcast_error_message(struct pci_dev *dev, broadcast_error_message() 361 int (*cb)(struct pci_dev *, void *)) broadcast_error_message() 399 * @dev: pointer to pci_dev data structure 404 static pci_ers_result_t default_reset_link(struct pci_dev *dev) default_reset_link() 428 static struct pcie_port_service_driver *find_aer_service(struct pci_dev *dev) find_aer_service() 437 static pci_ers_result_t reset_link(struct pci_dev *dev) reset_link() 439 struct pci_dev *udev; reset_link() 477 * @dev: pointer to a pci_dev data structure of agent detecting an error 484 static void do_recovery(struct pci_dev *dev, int severity) do_recovery() 542 * @dev: pointer to pci_dev data structure of error source device 548 struct pci_dev *dev, handle_error_source() 615 struct pci_dev *pdev; aer_recover_work_func() 621 pr_err("AER recover: Can not find pci_dev for %04x:%02x:%02x:%x\n", aer_recover_work_func() 642 static int get_device_error_info(struct pci_dev *dev, struct aer_err_info *info) get_device_error_info()
|
H A D | aerdrv.c | 46 static pci_ers_result_t aer_error_detected(struct pci_dev *dev, 48 static void aer_error_resume(struct pci_dev *dev); 49 static pci_ers_result_t aer_root_reset(struct pci_dev *dev); 81 static int set_device_error_reporting(struct pci_dev *dev, void *data) set_device_error_reporting() 103 * @dev: pointer to root port's pci_dev data structure 106 static void set_downstream_devices_error_reporting(struct pci_dev *dev, set_downstream_devices_error_reporting() 124 struct pci_dev *pdev = rpc->rpd->port; aer_enable_rootport() 166 struct pci_dev *pdev = rpc->rpd->port; aer_disable_rootport() 337 * @dev: pointer to Root Port's pci_dev data structure 341 static pci_ers_result_t aer_root_reset(struct pci_dev *dev) aer_root_reset() 370 * @dev: pointer to Root Port's pci_dev data structure 375 static pci_ers_result_t aer_error_detected(struct pci_dev *dev, aer_error_detected() 384 * @dev: pointer to Root Port's pci_dev data structure 388 static void aer_error_resume(struct pci_dev *dev) aer_error_resume()
|
/linux-4.4.14/drivers/xen/ |
H A D | pci.c | 39 struct pci_dev *pci_dev = to_pci_dev(dev); xen_add_device() local 41 struct pci_dev *physfn = pci_dev->physfn; xen_add_device() 49 .add.seg = pci_domain_nr(pci_dev->bus), xen_add_device() 50 .add.bus = pci_dev->bus->number, xen_add_device() 51 .add.devfn = pci_dev->devfn xen_add_device() 60 if (pci_dev->is_virtfn) { xen_add_device() 66 if (pci_ari_enabled(pci_dev->bus) && PCI_SLOT(pci_dev->devfn)) xen_add_device() 70 handle = ACPI_HANDLE(&pci_dev->dev); xen_add_device() 72 if (!handle && pci_dev->is_virtfn) xen_add_device() 81 for (pbus = pci_dev->bus; pbus; pbus = pbus->parent) { xen_add_device() 111 if (pci_domain_nr(pci_dev->bus)) xen_add_device() 114 else if (pci_dev->is_virtfn) { xen_add_device() 116 .bus = pci_dev->bus->number, xen_add_device() 117 .devfn = pci_dev->devfn, xen_add_device() 127 else if (pci_ari_enabled(pci_dev->bus) && PCI_SLOT(pci_dev->devfn)) { xen_add_device() 129 .bus = pci_dev->bus->number, xen_add_device() 130 .devfn = pci_dev->devfn, xen_add_device() 138 .bus = pci_dev->bus->number, xen_add_device() 139 .devfn = pci_dev->devfn, xen_add_device() 152 struct pci_dev *pci_dev = to_pci_dev(dev); xen_remove_device() local 156 .seg = pci_domain_nr(pci_dev->bus), xen_remove_device() 157 .bus = pci_dev->bus->number, xen_remove_device() 158 .devfn = pci_dev->devfn xen_remove_device() 163 } else if (pci_domain_nr(pci_dev->bus)) xen_remove_device() 167 .bus = pci_dev->bus->number, xen_remove_device() 168 .devfn = pci_dev->devfn xen_remove_device()
|
/linux-4.4.14/include/linux/mmc/ |
H A D | sdhci-pci-data.h | 4 struct pci_dev; 7 struct pci_dev *pdev; 15 extern struct sdhci_pci_data *(*sdhci_pci_get_data)(struct pci_dev *pdev,
|
/linux-4.4.14/include/asm-generic/ |
H A D | pci_iomap.h | 14 struct pci_dev; 17 extern void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max); 18 extern void __iomem *pci_iomap_wc(struct pci_dev *dev, int bar, unsigned long max); 19 extern void __iomem *pci_iomap_range(struct pci_dev *dev, int bar, 22 extern void __iomem *pci_iomap_wc_range(struct pci_dev *dev, int bar, 29 extern void __iomem *__pci_ioport_map(struct pci_dev *dev, unsigned long port, 36 static inline void __iomem *pci_iomap(struct pci_dev *dev, int bar, unsigned long max) pci_iomap() 41 static inline void __iomem *pci_iomap_wc(struct pci_dev *dev, int bar, unsigned long max) pci_iomap_wc() 45 static inline void __iomem *pci_iomap_range(struct pci_dev *dev, int bar, pci_iomap_range() 51 static inline void __iomem *pci_iomap_wc_range(struct pci_dev *dev, int bar, pci_iomap_wc_range()
|
H A D | pci-dma-compat.h | 10 pci_alloc_consistent(struct pci_dev *hwdev, size_t size, pci_alloc_consistent() 17 pci_zalloc_consistent(struct pci_dev *hwdev, size_t size, pci_zalloc_consistent() 25 pci_free_consistent(struct pci_dev *hwdev, size_t size, pci_free_consistent() 32 pci_map_single(struct pci_dev *hwdev, void *ptr, size_t size, int direction) pci_map_single() 38 pci_unmap_single(struct pci_dev *hwdev, dma_addr_t dma_addr, pci_unmap_single() 45 pci_map_page(struct pci_dev *hwdev, struct page *page, pci_map_page() 52 pci_unmap_page(struct pci_dev *hwdev, dma_addr_t dma_address, pci_unmap_page() 59 pci_map_sg(struct pci_dev *hwdev, struct scatterlist *sg, pci_map_sg() 66 pci_unmap_sg(struct pci_dev *hwdev, struct scatterlist *sg, pci_unmap_sg() 73 pci_dma_sync_single_for_cpu(struct pci_dev *hwdev, dma_addr_t dma_handle, pci_dma_sync_single_for_cpu() 80 pci_dma_sync_single_for_device(struct pci_dev *hwdev, dma_addr_t dma_handle, pci_dma_sync_single_for_device() 87 pci_dma_sync_sg_for_cpu(struct pci_dev *hwdev, struct scatterlist *sg, pci_dma_sync_sg_for_cpu() 94 pci_dma_sync_sg_for_device(struct pci_dev *hwdev, struct scatterlist *sg, pci_dma_sync_sg_for_device() 101 pci_dma_mapping_error(struct pci_dev *pdev, dma_addr_t dma_addr) pci_dma_mapping_error() 107 static inline int pci_set_dma_mask(struct pci_dev *dev, u64 mask) pci_set_dma_mask() 112 static inline int pci_set_consistent_dma_mask(struct pci_dev *dev, u64 mask) pci_set_consistent_dma_mask()
|
H A D | pci.h | 10 static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) pci_get_legacy_ide_irq()
|
H A D | iomap.h | 75 struct pci_dev; 76 extern void pci_iounmap(struct pci_dev *dev, void __iomem *); 78 struct pci_dev; pci_iounmap() 79 static inline void pci_iounmap(struct pci_dev *dev, void __iomem *addr) pci_iounmap()
|
/linux-4.4.14/drivers/misc/genwqe/ |
H A D | card_base.c | 186 struct pci_dev *pci_dev = cd->pci_dev; genwqe_bus_reset() local 194 pci_iounmap(pci_dev, mmio); genwqe_bus_reset() 196 bars = pci_select_bars(pci_dev, IORESOURCE_MEM); genwqe_bus_reset() 197 pci_release_selected_regions(pci_dev, bars); genwqe_bus_reset() 204 dev_dbg(&pci_dev->dev, "[%s] pci_reset function ...\n", __func__); genwqe_bus_reset() 205 rc = pci_reset_function(pci_dev); genwqe_bus_reset() 207 dev_err(&pci_dev->dev, genwqe_bus_reset() 211 dev_dbg(&pci_dev->dev, "[%s] done with rc=%d\n", __func__, rc); genwqe_bus_reset() 221 rc = pci_request_selected_regions(pci_dev, bars, genwqe_driver_name); genwqe_bus_reset() 223 dev_err(&pci_dev->dev, genwqe_bus_reset() 228 cd->mmio = pci_iomap(pci_dev, 0, 0); genwqe_bus_reset() 230 dev_err(&pci_dev->dev, genwqe_bus_reset() 256 struct pci_dev *pci_dev = cd->pci_dev; genwqe_tweak_hardware() local 261 dev_warn(&pci_dev->dev, genwqe_tweak_hardware() 345 struct pci_dev *pci_dev = cd->pci_dev; genwqe_setup_vf_jtimer() local 351 totalvfs = pci_sriov_get_totalvfs(pci_dev); genwqe_setup_vf_jtimer() 416 struct pci_dev *pci_dev = cd->pci_dev; genwqe_read_ids() local 420 dev_err(&pci_dev->dev, genwqe_read_ids() 428 dev_err(&pci_dev->dev, genwqe_read_ids() 436 dev_err(&pci_dev->dev, genwqe_read_ids() 450 if (pci_dev->is_virtfn) genwqe_read_ids() 463 struct pci_dev *pci_dev = cd->pci_dev; genwqe_start() local 493 dev_warn(&pci_dev->dev, genwqe_start() 506 dev_err(&pci_dev->dev, genwqe_start() 525 dev_err(&pci_dev->dev, genwqe_start() 540 dev_err(&pci_dev->dev, genwqe_start() 573 pci_disable_sriov(cd->pci_dev); /* access pci config space */ genwqe_stop() 593 struct pci_dev *pci_dev = cd->pci_dev; genwqe_recover_card() local 608 dev_err(&pci_dev->dev, genwqe_recover_card() 615 dev_err(&pci_dev->dev, genwqe_recover_card() 643 struct pci_dev *pci_dev = cd->pci_dev; genwqe_fir_checking() local 648 dev_err(&pci_dev->dev, "* exit looping after %d times\n", genwqe_fir_checking() 655 dev_err(&pci_dev->dev, "* 0x%08x 0x%016llx\n", genwqe_fir_checking() 679 dev_err(&pci_dev->dev, "* 0x%08x 0x%016llx\n", fir_addr, fir); genwqe_fir_checking() 687 dev_err(&pci_dev->dev, "* 0x%08x 0x%016llx\n", fec_addr, fec); genwqe_fir_checking() 702 dev_err(&pci_dev->dev, genwqe_fir_checking() 710 dev_err(&pci_dev->dev, genwqe_fir_checking() 731 dev_dbg(&pci_dev->dev, genwqe_fir_checking() 748 dev_dbg(&pci_dev->dev, genwqe_fir_checking() 763 dev_dbg(&pci_dev->dev, "ACK! Another FIR! Recursing %d!\n", genwqe_fir_checking() 781 static int genwqe_pci_fundamental_reset(struct pci_dev *pci_dev) genwqe_pci_fundamental_reset() argument 789 pci_cfg_access_lock(pci_dev); genwqe_pci_fundamental_reset() 790 pci_save_state(pci_dev); genwqe_pci_fundamental_reset() 791 rc = pci_set_pcie_reset_state(pci_dev, pcie_warm_reset); genwqe_pci_fundamental_reset() 795 pci_set_pcie_reset_state(pci_dev, pcie_deassert_reset); genwqe_pci_fundamental_reset() 799 pci_restore_state(pci_dev); genwqe_pci_fundamental_reset() 800 pci_cfg_access_unlock(pci_dev); genwqe_pci_fundamental_reset() 807 struct pci_dev *pci_dev = cd->pci_dev; genwqe_platform_recovery() local 810 dev_info(&pci_dev->dev, genwqe_platform_recovery() 821 rc = genwqe_pci_fundamental_reset(pci_dev); genwqe_platform_recovery() 825 dev_info(&pci_dev->dev, genwqe_platform_recovery() 828 dev_err(&pci_dev->dev, genwqe_platform_recovery() 832 dev_err(&pci_dev->dev, genwqe_platform_recovery() 849 struct pci_dev *pci_dev = cd->pci_dev; genwqe_reload_bistream() local 852 dev_info(&pci_dev->dev, genwqe_reload_bistream() 865 rc = genwqe_pci_fundamental_reset(pci_dev); genwqe_reload_bistream() 873 dev_err(&pci_dev->dev, genwqe_reload_bistream() 880 dev_err(&pci_dev->dev, genwqe_reload_bistream() 885 dev_info(&pci_dev->dev, genwqe_reload_bistream() 914 struct pci_dev *pci_dev = cd->pci_dev; genwqe_health_thread() local 928 dev_err(&pci_dev->dev, genwqe_health_thread() 935 dev_err(&pci_dev->dev, genwqe_health_thread() 943 dev_err(&pci_dev->dev, genwqe_health_thread() 951 dev_err(&pci_dev->dev, genwqe_health_thread() 1001 if (pci_channel_offline(pci_dev)) genwqe_health_thread() 1014 dev_err(&pci_dev->dev, genwqe_health_thread() 1072 struct pci_dev *pci_dev = cd->pci_dev; genwqe_pci_setup() local 1074 bars = pci_select_bars(pci_dev, IORESOURCE_MEM); genwqe_pci_setup() 1075 err = pci_enable_device_mem(pci_dev); genwqe_pci_setup() 1077 dev_err(&pci_dev->dev, genwqe_pci_setup() 1083 err = pci_request_selected_regions(pci_dev, bars, genwqe_driver_name); genwqe_pci_setup() 1085 dev_err(&pci_dev->dev, genwqe_pci_setup() 1092 if (!pci_set_dma_mask(pci_dev, DMA_BIT_MASK(64))) { genwqe_pci_setup() 1093 err = pci_set_consistent_dma_mask(pci_dev, DMA_BIT_MASK(64)); genwqe_pci_setup() 1095 dev_err(&pci_dev->dev, genwqe_pci_setup() 1101 } else if (!pci_set_dma_mask(pci_dev, DMA_BIT_MASK(32))) { genwqe_pci_setup() 1102 err = pci_set_consistent_dma_mask(pci_dev, DMA_BIT_MASK(32)); genwqe_pci_setup() 1104 dev_err(&pci_dev->dev, genwqe_pci_setup() 1110 dev_err(&pci_dev->dev, genwqe_pci_setup() 1116 pci_set_master(pci_dev); genwqe_pci_setup() 1117 pci_enable_pcie_error_reporting(pci_dev); genwqe_pci_setup() 1120 pci_dev->needs_freset = 1; genwqe_pci_setup() 1123 cd->mmio_len = pci_resource_len(pci_dev, 0); genwqe_pci_setup() 1124 cd->mmio = pci_iomap(pci_dev, 0, 0); genwqe_pci_setup() 1126 dev_err(&pci_dev->dev, genwqe_pci_setup() 1132 cd->num_vfs = pci_sriov_get_totalvfs(pci_dev); genwqe_pci_setup() 1143 pci_iounmap(pci_dev, cd->mmio); genwqe_pci_setup() 1145 pci_release_selected_regions(pci_dev, bars); genwqe_pci_setup() 1147 pci_disable_device(pci_dev); genwqe_pci_setup() 1158 struct pci_dev *pci_dev = cd->pci_dev; genwqe_pci_remove() local 1161 pci_iounmap(pci_dev, cd->mmio); genwqe_pci_remove() 1163 bars = pci_select_bars(pci_dev, IORESOURCE_MEM); genwqe_pci_remove() 1164 pci_release_selected_regions(pci_dev, bars); genwqe_pci_remove() 1165 pci_disable_device(pci_dev); genwqe_pci_remove() 1176 static int genwqe_probe(struct pci_dev *pci_dev, genwqe_probe() argument 1186 dev_err(&pci_dev->dev, "err: could not alloc mem (err=%d)!\n", genwqe_probe() 1191 dev_set_drvdata(&pci_dev->dev, cd); genwqe_probe() 1192 cd->pci_dev = pci_dev; genwqe_probe() 1196 dev_err(&pci_dev->dev, genwqe_probe() 1203 dev_err(&pci_dev->dev, genwqe_probe() 1211 dev_err(&pci_dev->dev, genwqe_probe() 1233 static void genwqe_remove(struct pci_dev *pci_dev) genwqe_remove() argument 1235 struct genwqe_dev *cd = dev_get_drvdata(&pci_dev->dev); genwqe_remove() 1255 static pci_ers_result_t genwqe_err_error_detected(struct pci_dev *pci_dev, genwqe_err_error_detected() argument 1260 dev_err(&pci_dev->dev, "[%s] state=%d\n", __func__, state); genwqe_err_error_detected() 1262 cd = dev_get_drvdata(&pci_dev->dev); genwqe_err_error_detected() 1283 static pci_ers_result_t genwqe_err_slot_reset(struct pci_dev *pci_dev) genwqe_err_slot_reset() argument 1286 struct genwqe_dev *cd = dev_get_drvdata(&pci_dev->dev); genwqe_err_slot_reset() 1292 dev_err(&pci_dev->dev, genwqe_err_slot_reset() 1298 static pci_ers_result_t genwqe_err_result_none(struct pci_dev *dev) genwqe_err_result_none() 1303 static void genwqe_err_resume(struct pci_dev *pci_dev) genwqe_err_resume() argument 1306 struct genwqe_dev *cd = dev_get_drvdata(&pci_dev->dev); genwqe_err_resume() 1312 dev_err(&pci_dev->dev, genwqe_err_resume() 1316 dev_err(&pci_dev->dev, genwqe_err_resume() 1321 static int genwqe_sriov_configure(struct pci_dev *dev, int numvfs) genwqe_sriov_configure()
|
H A D | card_ddcb.c | 177 struct pci_dev *pci_dev = cd->pci_dev; print_ddcb_info() local 181 dev_info(&pci_dev->dev, print_ddcb_info() 187 dev_err(&pci_dev->dev, print_ddcb_info() 376 struct pci_dev *pci_dev = cd->pci_dev; genwqe_check_ddcb_queue() local 419 dev_err(&pci_dev->dev, genwqe_check_ddcb_queue() 429 dev_dbg(&pci_dev->dev, "FINISHED DDCB#%d\n", req->num); genwqe_check_ddcb_queue() 430 genwqe_hexdump(pci_dev, pddcb, sizeof(*pddcb)); genwqe_check_ddcb_queue() 442 GENWQE_DEVNAME, dev_name(&pci_dev->dev), genwqe_check_ddcb_queue() 488 struct pci_dev *pci_dev = cd->pci_dev; __genwqe_wait_ddcb() local 524 dev_err(&pci_dev->dev, __genwqe_wait_ddcb() 528 dev_err(&pci_dev->dev, __genwqe_wait_ddcb() 533 genwqe_hexdump(pci_dev, pddcb, sizeof(*pddcb)); __genwqe_wait_ddcb() 546 dev_err(&pci_dev->dev, __genwqe_wait_ddcb() 554 dev_err(&pci_dev->dev, __genwqe_wait_ddcb() 630 struct pci_dev *pci_dev = cd->pci_dev; __genwqe_purge_ddcb() local 637 dev_err(&pci_dev->dev, __genwqe_purge_ddcb() 716 dev_dbg(&pci_dev->dev, "UN/FINISHED DDCB#%d\n", req->num); __genwqe_purge_ddcb() 717 genwqe_hexdump(pci_dev, pddcb, sizeof(*pddcb)); __genwqe_purge_ddcb() 719 dev_err(&pci_dev->dev, __genwqe_purge_ddcb() 732 struct pci_dev *pci_dev = cd->pci_dev; genwqe_init_debug_data() local 735 dev_err(&pci_dev->dev, genwqe_init_debug_data() 764 struct pci_dev *pci_dev = cd->pci_dev; __genwqe_enqueue_ddcb() local 771 GENWQE_DEVNAME, dev_name(&pci_dev->dev), __genwqe_enqueue_ddcb() 805 dev_dbg(&pci_dev->dev, "[%s] waiting for free DDCB: rc=%d\n", __genwqe_enqueue_ddcb() 816 dev_err(&pci_dev->dev, __genwqe_enqueue_ddcb() 884 dev_dbg(&pci_dev->dev, "INPUT DDCB#%d\n", req->num); __genwqe_enqueue_ddcb() 885 genwqe_hexdump(pci_dev, pddcb, sizeof(*pddcb)); __genwqe_enqueue_ddcb() 920 struct pci_dev *pci_dev = cd->pci_dev; __genwqe_execute_raw_ddcb() local 924 dev_err(&pci_dev->dev, "[%s] err: wrong asiv_length of %d\n", __genwqe_execute_raw_ddcb() 929 dev_err(&pci_dev->dev, "[%s] err: wrong asv_length of %d\n", __genwqe_execute_raw_ddcb() 1029 struct pci_dev *pci_dev = cd->pci_dev; setup_ddcb_queue() local 1047 dev_err(&pci_dev->dev, setup_ddcb_queue() 1127 struct pci_dev *pci_dev = cd->pci_dev; genwqe_pf_isr() local 1142 !pci_channel_offline(pci_dev)) { genwqe_pf_isr() 1153 if (pci_channel_offline(pci_dev)) genwqe_pf_isr() 1163 dev_err_ratelimited(&pci_dev->dev, genwqe_pf_isr() 1234 struct pci_dev *pci_dev = cd->pci_dev; genwqe_setup_service_layer() local 1239 dev_err(&pci_dev->dev, genwqe_setup_service_layer() 1285 rc = request_irq(pci_dev->irq, genwqe_pf_isr, IRQF_SHARED, genwqe_setup_service_layer() 1288 rc = request_irq(pci_dev->irq, genwqe_vf_isr, IRQF_SHARED, genwqe_setup_service_layer() 1292 dev_err(&pci_dev->dev, "irq %d not free.\n", pci_dev->irq); genwqe_setup_service_layer() 1346 struct pci_dev *pci_dev = cd->pci_dev; genwqe_finish_queue() local 1367 dev_dbg(&pci_dev->dev, genwqe_finish_queue() 1381 dev_err(&pci_dev->dev, " [%s] err: queue is not empty!!\n", genwqe_finish_queue() 1396 struct pci_dev *pci_dev = cd->pci_dev; genwqe_release_service_layer() local 1401 free_irq(pci_dev->irq, cd); genwqe_release_service_layer()
|
H A D | card_utils.c | 56 struct pci_dev *pci_dev = cd->pci_dev; __genwqe_writeq() local 64 if (pci_channel_offline(pci_dev)) __genwqe_writeq() 107 struct pci_dev *pci_dev = cd->pci_dev; __genwqe_writel() local 115 if (pci_channel_offline(pci_dev)) __genwqe_writel() 223 return dma_alloc_coherent(&cd->pci_dev->dev, size, dma_handle, __genwqe_alloc_consistent() 233 dma_free_coherent(&cd->pci_dev->dev, size, vaddr, dma_handle); __genwqe_free_consistent() 240 struct pci_dev *pci_dev = cd->pci_dev; genwqe_unmap_pages() local 243 pci_unmap_page(pci_dev, dma_list[i], genwqe_unmap_pages() 254 struct pci_dev *pci_dev = cd->pci_dev; genwqe_map_pages() local 261 daddr = pci_map_page(pci_dev, page_list[i], genwqe_map_pages() 266 if (pci_dma_mapping_error(pci_dev, daddr)) { genwqe_map_pages() 267 dev_err(&pci_dev->dev, genwqe_map_pages() 302 struct pci_dev *pci_dev = cd->pci_dev; genwqe_alloc_sync_sgl() local 309 dev_dbg(&pci_dev->dev, "[%s] uaddr=%p usize=%8ld nr_pages=%ld fpage_offs=%lx fpage_size=%ld lpage_size=%ld\n", genwqe_alloc_sync_sgl() 318 dev_err(&pci_dev->dev, genwqe_alloc_sync_sgl() 326 dev_err(&pci_dev->dev, genwqe_alloc_sync_sgl() 469 struct pci_dev *pci_dev = cd->pci_dev; genwqe_free_sync_sgl() local 474 dev_err(&pci_dev->dev, "[%s] err: copying fpage!\n", genwqe_free_sync_sgl() 487 dev_err(&pci_dev->dev, "[%s] err: copying lpage!\n", genwqe_free_sync_sgl() 563 struct pci_dev *pci_dev = cd->pci_dev; genwqe_user_vmap() local 581 dev_err(&pci_dev->dev, "err: alloc page_list failed\n"); genwqe_user_vmap() 632 struct pci_dev *pci_dev = cd->pci_dev; genwqe_user_vunmap() local 635 dev_err(&pci_dev->dev, "[%s] err: mapping %p not used!\n", genwqe_user_vunmap() 679 struct pci_dev *pci_dev = cd->pci_dev; genwqe_card_reset() local 706 dev_info(&pci_dev->dev, genwqe_card_reset() 733 struct pci_dev *pci_dev = cd->pci_dev; genwqe_set_interrupt_capability() local 735 rc = pci_enable_msi_range(pci_dev, 1, count); genwqe_set_interrupt_capability() 749 struct pci_dev *pci_dev = cd->pci_dev; genwqe_reset_interrupt_capability() local 752 pci_disable_msi(pci_dev); genwqe_reset_interrupt_capability()
|
H A D | card_dev.c | 164 struct pci_dev *pci_dev = cfile->cd->pci_dev; __genwqe_search_mapping() local 188 dev_err(&pci_dev->dev, __genwqe_search_mapping() 201 struct pci_dev *pci_dev = cfile->cd->pci_dev; genwqe_remove_mappings() local 215 dev_err(&pci_dev->dev, genwqe_remove_mappings() 307 struct pci_dev *pci_dev; genwqe_open() local 314 pci_dev = cd->pci_dev; genwqe_open() 402 struct pci_dev *pci_dev = cd->pci_dev; genwqe_vma_close() local 409 dev_err(&pci_dev->dev, genwqe_vma_close() 520 struct pci_dev *pci_dev = cd->pci_dev; do_flash_update() local 565 dev_dbg(&pci_dev->dev, do_flash_update() 655 struct pci_dev *pci_dev = cd->pci_dev; do_flash_read() local 692 dev_dbg(&pci_dev->dev, do_flash_read() 777 struct pci_dev *pci_dev = cfile->cd->pci_dev; genwqe_pin_mem() local 795 dev_err(&pci_dev->dev, genwqe_pin_mem() 1056 struct pci_dev *pci_dev = cd->pci_dev; genwqe_ioctl() local 1062 if (pci_channel_offline(pci_dev)) genwqe_ioctl() 1274 struct pci_dev *pci_dev = cd->pci_dev; genwqe_device_create() local 1285 dev_err(&pci_dev->dev, "err: alloc_chrdev_region failed\n"); genwqe_device_create() 1294 dev_err(&pci_dev->dev, "err: cdev_add failed\n"); genwqe_device_create() 1303 &cd->pci_dev->dev, genwqe_device_create() 1334 struct pci_dev *pci_dev = cd->pci_dev; genwqe_inform_and_stop_processes() local 1339 dev_warn(&pci_dev->dev, "[%s] send SIGIO and wait ...\n", __func__); genwqe_inform_and_stop_processes() 1346 dev_info(&pci_dev->dev, " %d sec ...", i); genwqe_inform_and_stop_processes() 1356 dev_warn(&pci_dev->dev, genwqe_inform_and_stop_processes() 1364 dev_warn(&pci_dev->dev, " %d sec ...", i); genwqe_inform_and_stop_processes() 1386 struct pci_dev *pci_dev = cd->pci_dev; genwqe_device_remove() local 1401 dev_err(&pci_dev->dev, genwqe_device_remove()
|
H A D | genwqe_driver.h | 65 static inline void genwqe_hexdump(struct pci_dev *pci_dev, genwqe_hexdump() argument 71 GENWQE_DEVNAME, pci_name(pci_dev)); genwqe_hexdump()
|
/linux-4.4.14/drivers/mmc/host/ |
H A D | sdhci-pci-data.c | 4 struct sdhci_pci_data *(*sdhci_pci_get_data)(struct pci_dev *pdev, int slotno);
|
H A D | dw_mmc-pci.c | 39 static int dw_mci_pci_probe(struct pci_dev *pdev, dw_mci_pci_probe() 75 static void dw_mci_pci_remove(struct pci_dev *pdev) dw_mci_pci_remove() 85 struct pci_dev *pdev = to_pci_dev(dev); dw_mci_pci_suspend() 93 struct pci_dev *pdev = to_pci_dev(dev); dw_mci_pci_resume()
|
H A D | sdricoh_cs.c | 96 struct pci_dev *pci_dev; member in struct:sdricoh_host 398 static int sdricoh_init_mmc(struct pci_dev *pci_dev, sdricoh_init_mmc() argument 407 if (pci_resource_len(pci_dev, SDRICOH_PCI_REGION) != sdricoh_init_mmc() 413 pci_iomap(pci_dev, SDRICOH_PCI_REGION, SDRICOH_PCI_REGION_SIZE); sdricoh_init_mmc() 436 host->pci_dev = pci_dev; sdricoh_init_mmc() 467 pci_iounmap(pci_dev, iobase); sdricoh_init_mmc() 477 struct pci_dev *pci_dev = NULL; sdricoh_pcmcia_probe() local 484 while ((pci_dev = sdricoh_pcmcia_probe() 486 pci_dev))) { sdricoh_pcmcia_probe() 488 if (!sdricoh_init_mmc(pci_dev, pcmcia_dev)) { sdricoh_pcmcia_probe() 508 pci_iounmap(host->pci_dev, host->iobase); sdricoh_pcmcia_detach() 509 pci_dev_put(host->pci_dev); sdricoh_pcmcia_detach()
|
/linux-4.4.14/drivers/pci/pcie/ |
H A D | portdrv.h | 24 int pcie_port_device_register(struct pci_dev *dev); 29 void pcie_port_device_remove(struct pci_dev *dev); 33 struct pci_dev; 35 void pcie_clear_root_pme_status(struct pci_dev *dev); 62 void pcie_pme_interrupt_enable(struct pci_dev *dev, bool enable); 66 static inline void pcie_pme_interrupt_enable(struct pci_dev *dev, bool en) {} pcie_pme_interrupt_enable() 70 int pcie_port_acpi_setup(struct pci_dev *port, int *mask); pcie_pme_interrupt_enable() 72 static inline int pcie_port_platform_notify(struct pci_dev *port, int *mask) pcie_port_platform_notify() 77 static inline int pcie_port_platform_notify(struct pci_dev *port, int *mask) pcie_port_platform_notify()
|
H A D | portdrv_pci.c | 65 void pcie_clear_root_pme_status(struct pci_dev *dev) pcie_clear_root_pme_status() 70 static int pcie_portdrv_restore_config(struct pci_dev *dev) pcie_portdrv_restore_config() 84 struct pci_dev *pdev = to_pci_dev(dev); pcie_port_resume_noirq() 121 static int pcie_portdrv_probe(struct pci_dev *dev, pcie_portdrv_probe() 145 static void pcie_portdrv_remove(struct pci_dev *dev) pcie_portdrv_remove() 179 static pci_ers_result_t pcie_portdrv_error_detected(struct pci_dev *dev, pcie_portdrv_error_detected() 214 static pci_ers_result_t pcie_portdrv_mmio_enabled(struct pci_dev *dev) pcie_portdrv_mmio_enabled() 248 static pci_ers_result_t pcie_portdrv_slot_reset(struct pci_dev *dev) pcie_portdrv_slot_reset() 285 static void pcie_portdrv_err_resume(struct pci_dev *dev) pcie_portdrv_err_resume()
|
/linux-4.4.14/arch/mips/pci/ |
H A D | fixup-lantiq.c | 12 int (*ltq_pci_plat_arch_init)(struct pci_dev *dev) = NULL; 13 int (*ltq_pci_plat_dev_init)(struct pci_dev *dev) = NULL; 15 int pcibios_plat_dev_init(struct pci_dev *dev) pcibios_plat_dev_init() 26 int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pcibios_map_irq()
|
H A D | fixup-bcm63xx.c | 13 int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pcibios_map_irq() 18 int pcibios_plat_dev_init(struct pci_dev *dev) pcibios_plat_dev_init()
|
H A D | fixup-sb1250.c | 17 static void quirk_sb1250_pci(struct pci_dev *dev) quirk_sb1250_pci() 27 static void quirk_sb1250_ht(struct pci_dev *dev) quirk_sb1250_ht() 37 static void quirk_sp1011(struct pci_dev *dev) quirk_sp1011()
|
H A D | fixup-lemote2f.c | 54 int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pcibios_map_irq() 93 int pcibios_plat_dev_init(struct pci_dev *dev) pcibios_plat_dev_init() 99 static void loongson_cs5536_isa_fixup(struct pci_dev *pdev) loongson_cs5536_isa_fixup() 106 static void loongson_cs5536_ide_fixup(struct pci_dev *pdev) loongson_cs5536_ide_fixup() 113 static void loongson_cs5536_acc_fixup(struct pci_dev *pdev) loongson_cs5536_acc_fixup() 121 static void loongson_cs5536_ohci_fixup(struct pci_dev *pdev) loongson_cs5536_ohci_fixup() 128 static void loongson_cs5536_ehci_fixup(struct pci_dev *pdev) loongson_cs5536_ehci_fixup() 140 static void loongson_nec_fixup(struct pci_dev *pdev) loongson_nec_fixup()
|
H A D | fixup-malta.c | 41 int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pcibios_map_irq() 49 int pcibios_plat_dev_init(struct pci_dev *dev) pcibios_plat_dev_init() 54 static void malta_piix_func3_base_fixup(struct pci_dev *dev) malta_piix_func3_base_fixup() 67 static void malta_piix_func0_fixup(struct pci_dev *pdev) malta_piix_func0_fixup() 121 static void malta_piix_func1_fixup(struct pci_dev *pdev) malta_piix_func1_fixup() 145 static void quirk_dlcsetup(struct pci_dev *dev) quirk_dlcsetup()
|
H A D | fixup-fuloong2e.c | 22 int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pcibios_map_irq() 46 int pcibios_plat_dev_init(struct pci_dev *dev) pcibios_plat_dev_init() 51 static void loongson2e_nec_fixup(struct pci_dev *pdev) loongson2e_nec_fixup() 63 static void loongson2e_686b_func0_fixup(struct pci_dev *pdev) loongson2e_686b_func0_fixup() 138 static void loongson2e_686b_func1_fixup(struct pci_dev *pdev) loongson2e_686b_func1_fixup() 171 static void loongson2e_686b_func2_fixup(struct pci_dev *pdev) loongson2e_686b_func2_fixup() 177 static void loongson2e_686b_func3_fixup(struct pci_dev *pdev) loongson2e_686b_func3_fixup() 183 static void loongson2e_686b_func5_fixup(struct pci_dev *pdev) loongson2e_686b_func5_fixup()
|
H A D | fixup-emma2rh.c | 55 static void nec_usb_controller_fixup(struct pci_dev *dev) nec_usb_controller_fixup() 70 static void emma2rh_pci_host_fixup(struct pci_dev *dev) emma2rh_pci_host_fixup() 88 int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pcibios_map_irq() 94 int pcibios_plat_dev_init(struct pci_dev *dev) pcibios_plat_dev_init()
|
H A D | fixup-loongson3.c | 29 static void print_fixup_info(const struct pci_dev *pdev) print_fixup_info() 35 int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pcibios_map_irq() 41 static void pci_fixup_radeon(struct pci_dev *pdev) pci_fixup_radeon() 63 int pcibios_plat_dev_init(struct pci_dev *dev) pcibios_plat_dev_init()
|
H A D | pci-rt2880.c | 185 int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pcibios_map_irq() 208 pci_write_config_byte((struct pci_dev *) dev, pcibios_map_irq() 210 pci_write_config_byte((struct pci_dev *) dev, PCI_LATENCY_TIMER, 0xFF); pcibios_map_irq() 211 pci_read_config_word((struct pci_dev *) dev, PCI_COMMAND, &cmd); pcibios_map_irq() 215 pci_write_config_word((struct pci_dev *) dev, PCI_COMMAND, cmd); pcibios_map_irq() 216 pci_write_config_byte((struct pci_dev *) dev, PCI_INTERRUPT_LINE, pcibios_map_irq() 254 int pcibios_plat_dev_init(struct pci_dev *dev) pcibios_plat_dev_init()
|
H A D | fixup-cobalt.c | 39 static void qube_raq_galileo_early_fixup(struct pci_dev *dev) qube_raq_galileo_early_fixup() 53 static void qube_raq_via_bmIDE_fixup(struct pci_dev *dev) qube_raq_via_bmIDE_fixup() 76 static void qube_raq_galileo_fixup(struct pci_dev *dev) qube_raq_galileo_fixup() 131 static void qube_raq_via_board_id_fixup(struct pci_dev *dev) qube_raq_via_board_id_fixup() 177 int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pcibios_map_irq() 189 int pcibios_plat_dev_init(struct pci_dev *dev) pcibios_plat_dev_init()
|
H A D | fixup-rc32434.c | 39 int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pcibios_map_irq() 49 static void rc32434_pci_early_fixup(struct pci_dev *dev) rc32434_pci_early_fixup() 66 int pcibios_plat_dev_init(struct pci_dev *dev) pcibios_plat_dev_init()
|
H A D | pci-bcm47xx.c | 31 int __init pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) pcibios_map_irq() 37 static int bcm47xx_pcibios_plat_dev_init_ssb(struct pci_dev *dev) bcm47xx_pcibios_plat_dev_init_ssb() 66 static int bcm47xx_pcibios_plat_dev_init_bcma(struct pci_dev *dev) bcm47xx_pcibios_plat_dev_init_bcma() 91 int pcibios_plat_dev_init(struct pci_dev *dev) pcibios_plat_dev_init()
|
/linux-4.4.14/drivers/media/pci/netup_unidvb/ |
H A D | netup_unidvb_core.c | 151 dev_dbg(&ndev->pci_dev->dev, "%s(): num %d is_dvb_tc %d\n", netup_unidvb_tuner_ctrl() 177 dev_dbg(&ndev->pci_dev->dev, netup_unidvb_dev_enable() 189 dev_dbg(&dma->ndev->pci_dev->dev, netup_unidvb_dma_enable() 205 struct device *dev = &dma->ndev->pci_dev->dev; netup_dma_interrupt() 244 struct pci_dev *pci_dev = (struct pci_dev *)dev_id; netup_unidvb_isr() local 245 struct netup_unidvb_dev *ndev = pci_get_drvdata(pci_dev); netup_unidvb_isr() 269 dev_err(&pci_dev->dev, netup_unidvb_isr() 288 dev_dbg(&dma->ndev->pci_dev->dev, "%s()\n", __func__); netup_unidvb_queue_setup() 294 dev_dbg(&dma->ndev->pci_dev->dev, "%s() nbuffers=%d sizes[0]=%d\n", netup_unidvb_queue_setup() 306 dev_dbg(&dma->ndev->pci_dev->dev, "%s(): buf 0x%p\n", __func__, buf); netup_unidvb_buf_prepare() 319 dev_dbg(&dma->ndev->pci_dev->dev, "%s(): %p\n", __func__, buf); netup_unidvb_buf_queue() 330 dev_dbg(&dma->ndev->pci_dev->dev, "%s()\n", __func__); netup_unidvb_start_streaming() 339 dev_dbg(&dma->ndev->pci_dev->dev, "%s()\n", __func__); netup_unidvb_stop_streaming() 367 dev_err(&dma->ndev->pci_dev->dev, netup_unidvb_queue_init() 379 dev_dbg(&ndev->pci_dev->dev, netup_unidvb_dvb_init() 390 dev_dbg(&ndev->pci_dev->dev, netup_unidvb_dvb_init() 399 dev_dbg(&ndev->pci_dev->dev, netup_unidvb_dvb_init() 412 dev_dbg(&ndev->pci_dev->dev, netup_unidvb_dvb_init() 420 dev_dbg(&ndev->pci_dev->dev, netup_unidvb_dvb_init() 427 dev_dbg(&ndev->pci_dev->dev, netup_unidvb_dvb_init() 435 dev_dbg(&ndev->pci_dev->dev, netup_unidvb_dvb_init() 443 dev_dbg(&ndev->pci_dev->dev, netup_unidvb_dvb_init() 452 dev_dbg(&ndev->pci_dev->dev, netup_unidvb_dvb_init() 459 dev_dbg(&ndev->pci_dev->dev, netup_unidvb_dvb_init() 467 &ndev->pci_dev->dev, adapter_nr, 1)) { netup_unidvb_dvb_init() 468 dev_dbg(&ndev->pci_dev->dev, netup_unidvb_dvb_init() 473 dev_info(&ndev->pci_dev->dev, "DVB init done, num=%d\n", num); netup_unidvb_dvb_init() 483 dev_err(&ndev->pci_dev->dev, netup_unidvb_dvb_fini() 489 dev_info(&ndev->pci_dev->dev, netup_unidvb_dvb_fini() 517 dev_err(&ndev->pci_dev->dev, netup_unidvb_ring_copy() 558 dev_dbg(&ndev->pci_dev->dev, netup_unidvb_dma_worker() 564 dev_dbg(&ndev->pci_dev->dev, netup_unidvb_dma_worker() 571 dev_dbg(&ndev->pci_dev->dev, netup_unidvb_dma_worker() 580 dev_dbg(&ndev->pci_dev->dev, netup_unidvb_dma_worker() 613 dev_dbg(&ndev->pci_dev->dev, "%s()\n", __func__); netup_unidvb_dma_timeout() 620 struct device *dev = &ndev->pci_dev->dev; netup_unidvb_dma_init() 668 dev_dbg(&ndev->pci_dev->dev, "%s(): num %d\n", __func__, num); netup_unidvb_dma_fini() 694 struct pci_dev *pci_dev) netup_unidvb_ci_setup() 699 res = netup_unidvb_ci_register(ndev, 0, pci_dev); netup_unidvb_ci_setup() 702 res = netup_unidvb_ci_register(ndev, 1, pci_dev); netup_unidvb_ci_setup() 708 static int netup_unidvb_request_mmio(struct pci_dev *pci_dev) netup_unidvb_request_mmio() argument 710 if (!request_mem_region(pci_resource_start(pci_dev, 0), netup_unidvb_request_mmio() 711 pci_resource_len(pci_dev, 0), NETUP_UNIDVB_NAME)) { netup_unidvb_request_mmio() 712 dev_err(&pci_dev->dev, netup_unidvb_request_mmio() 715 (unsigned long long)pci_resource_start(pci_dev, 0)); netup_unidvb_request_mmio() 718 if (!request_mem_region(pci_resource_start(pci_dev, 1), netup_unidvb_request_mmio() 719 pci_resource_len(pci_dev, 1), NETUP_UNIDVB_NAME)) { netup_unidvb_request_mmio() 720 dev_err(&pci_dev->dev, netup_unidvb_request_mmio() 723 (unsigned long long)pci_resource_start(pci_dev, 1)); netup_unidvb_request_mmio() 724 release_mem_region(pci_resource_start(pci_dev, 0), netup_unidvb_request_mmio() 725 pci_resource_len(pci_dev, 0)); netup_unidvb_request_mmio() 750 static int netup_unidvb_initdev(struct pci_dev *pci_dev, netup_unidvb_initdev() argument 758 netup_unidvb_request_modules(&pci_dev->dev); netup_unidvb_initdev() 761 if (pci_dev->revision != NETUP_PCI_DEV_REVISION) { netup_unidvb_initdev() 762 dev_err(&pci_dev->dev, netup_unidvb_initdev() 764 NETUP_PCI_DEV_REVISION, pci_dev->revision); netup_unidvb_initdev() 765 dev_err(&pci_dev->dev, netup_unidvb_initdev() 767 dev_err(&pci_dev->dev, netup_unidvb_initdev() 782 dev_err(&pci_dev->dev, netup_unidvb_initdev() 786 ndev->pci_dev = pci_dev; netup_unidvb_initdev() 787 ndev->pci_bus = pci_dev->bus->number; netup_unidvb_initdev() 788 ndev->pci_slot = PCI_SLOT(pci_dev->devfn); netup_unidvb_initdev() 789 ndev->pci_func = PCI_FUNC(pci_dev->devfn); netup_unidvb_initdev() 791 pci_set_drvdata(pci_dev, ndev); netup_unidvb_initdev() 793 dev_info(&pci_dev->dev, "%s(): PCI device (%d). Bus:0x%x Slot:0x%x\n", netup_unidvb_initdev() 796 if (pci_enable_device(pci_dev)) { netup_unidvb_initdev() 797 dev_err(&pci_dev->dev, "%s(): pci_enable_device failed\n", netup_unidvb_initdev() 802 pci_read_config_byte(pci_dev, PCI_CLASS_REVISION, &board_revision); netup_unidvb_initdev() 803 pci_read_config_word(pci_dev, PCI_VENDOR_ID, &board_vendor); netup_unidvb_initdev() 805 dev_err(&pci_dev->dev, "%s(): unknown board vendor 0x%x", netup_unidvb_initdev() 809 dev_info(&pci_dev->dev, netup_unidvb_initdev() 812 pci_set_master(pci_dev); netup_unidvb_initdev() 813 if (pci_set_dma_mask(pci_dev, 0xffffffff) < 0) { netup_unidvb_initdev() 814 dev_err(&pci_dev->dev, netup_unidvb_initdev() 818 dev_info(&pci_dev->dev, "%s(): using 32bit PCI DMA\n", __func__); netup_unidvb_initdev() 820 pcie_capability_clear_and_set_word(pci_dev, PCI_EXP_DEVCTL, netup_unidvb_initdev() 824 pcie_capability_clear_and_set_word(pci_dev, netup_unidvb_initdev() 827 if (netup_unidvb_request_mmio(pci_dev)) { netup_unidvb_initdev() 828 dev_err(&pci_dev->dev, netup_unidvb_initdev() 832 ndev->lmmio0 = ioremap(pci_resource_start(pci_dev, 0), netup_unidvb_initdev() 833 pci_resource_len(pci_dev, 0)); netup_unidvb_initdev() 835 dev_err(&pci_dev->dev, netup_unidvb_initdev() 839 ndev->lmmio1 = ioremap(pci_resource_start(pci_dev, 1), netup_unidvb_initdev() 840 pci_resource_len(pci_dev, 1)); netup_unidvb_initdev() 842 dev_err(&pci_dev->dev, netup_unidvb_initdev() 848 dev_info(&pci_dev->dev, netup_unidvb_initdev() 851 ndev->lmmio0, (u32)pci_resource_len(pci_dev, 0), netup_unidvb_initdev() 852 ndev->lmmio1, (u32)pci_resource_len(pci_dev, 1), netup_unidvb_initdev() 853 pci_dev->irq); netup_unidvb_initdev() 854 if (request_irq(pci_dev->irq, netup_unidvb_isr, IRQF_SHARED, netup_unidvb_initdev() 855 "netup_unidvb", pci_dev) < 0) { netup_unidvb_initdev() 856 dev_err(&pci_dev->dev, netup_unidvb_initdev() 857 "%s(): can't get IRQ %d\n", __func__, pci_dev->irq); netup_unidvb_initdev() 862 ndev->dma_virt = dma_alloc_coherent(&pci_dev->dev, netup_unidvb_initdev() 865 dev_err(&pci_dev->dev, "%s(): unable to allocate DMA buffer\n", netup_unidvb_initdev() 871 dev_warn(&pci_dev->dev, netup_unidvb_initdev() 876 dev_err(&pci_dev->dev, netup_unidvb_initdev() 881 dev_err(&pci_dev->dev, "netup_unidvb: I2C setup failed\n"); netup_unidvb_initdev() 889 dev_err(&pci_dev->dev, "netup_unidvb: DVB setup failed\n"); netup_unidvb_initdev() 892 if (netup_unidvb_ci_setup(ndev, pci_dev)) { netup_unidvb_initdev() 893 dev_err(&pci_dev->dev, "netup_unidvb: CI setup failed\n"); netup_unidvb_initdev() 897 dev_err(&pci_dev->dev, "netup_unidvb: DMA setup failed\n"); netup_unidvb_initdev() 900 dev_info(&pci_dev->dev, netup_unidvb_initdev() 915 dma_free_coherent(&pci_dev->dev, ndev->dma_size, netup_unidvb_initdev() 918 free_irq(pci_dev->irq, pci_dev); netup_unidvb_initdev() 924 release_mem_region(pci_resource_start(pci_dev, 0), netup_unidvb_initdev() 925 pci_resource_len(pci_dev, 0)); netup_unidvb_initdev() 926 release_mem_region(pci_resource_start(pci_dev, 1), netup_unidvb_initdev() 927 pci_resource_len(pci_dev, 1)); netup_unidvb_initdev() 929 pci_disable_device(pci_dev); netup_unidvb_initdev() 931 pci_set_drvdata(pci_dev, NULL); netup_unidvb_initdev() 936 dev_err(&pci_dev->dev, netup_unidvb_initdev() 941 static void netup_unidvb_finidev(struct pci_dev *pci_dev) netup_unidvb_finidev() argument 943 struct netup_unidvb_dev *ndev = pci_get_drvdata(pci_dev); netup_unidvb_finidev() 945 dev_info(&pci_dev->dev, "%s(): trying to stop device\n", __func__); netup_unidvb_finidev() 958 dma_free_coherent(&ndev->pci_dev->dev, ndev->dma_size, netup_unidvb_finidev() 960 free_irq(pci_dev->irq, pci_dev); netup_unidvb_finidev() 963 release_mem_region(pci_resource_start(pci_dev, 0), netup_unidvb_finidev() 964 pci_resource_len(pci_dev, 0)); netup_unidvb_finidev() 965 release_mem_region(pci_resource_start(pci_dev, 1), netup_unidvb_finidev() 966 pci_resource_len(pci_dev, 1)); netup_unidvb_finidev() 967 pci_disable_device(pci_dev); netup_unidvb_finidev() 968 pci_set_drvdata(pci_dev, NULL); netup_unidvb_finidev() 971 dev_info(&pci_dev->dev, netup_unidvb_finidev() 693 netup_unidvb_ci_setup(struct netup_unidvb_dev *ndev, struct pci_dev *pci_dev) netup_unidvb_ci_setup() argument
|
H A D | netup_unidvb_ci.c | 68 dev_dbg(&dev->pci_dev->dev, "%s(): CAM_CTRLSTAT=0x%x\n", netup_unidvb_ci_slot_ts_ctl() 74 dev_dbg(&dev->pci_dev->dev, "%s(): CAM_CTRLSTAT=0x%x done\n", netup_unidvb_ci_slot_ts_ctl() 85 dev_dbg(&dev->pci_dev->dev, "%s()\n", __func__); netup_unidvb_ci_slot_shutdown() 99 dev_dbg(&dev->pci_dev->dev, "%s(): CAM_CTRLSTAT_READ_SET=0x%x\n", netup_unidvb_ci_slot_reset() 105 dev_dbg(&dev->pci_dev->dev, "%s(): waiting for reset\n", __func__); netup_unidvb_ci_slot_reset() 114 dev_dbg(&dev->pci_dev->dev, netup_unidvb_ci_slot_reset() 131 dev_dbg(&dev->pci_dev->dev, "%s(): CAM_CTRLSTAT_READ_SET=0x%x\n", netup_unidvb_poll_ci_slot_status() 152 dev_dbg(&dev->pci_dev->dev, netup_unidvb_ci_read_attribute_mem() 163 dev_dbg(&dev->pci_dev->dev, netup_unidvb_ci_write_attribute_mem() 176 dev_dbg(&dev->pci_dev->dev, netup_unidvb_ci_read_cam_ctl() 187 dev_dbg(&dev->pci_dev->dev, netup_unidvb_ci_write_cam_ctl() 194 int num, struct pci_dev *pci_dev) netup_unidvb_ci_register() 200 dev_err(&pci_dev->dev, "%s(): invalid CI adapter %d\n", netup_unidvb_ci_register() 224 dev_err(&pci_dev->dev, netup_unidvb_ci_register() 230 dev_info(&pci_dev->dev, netup_unidvb_ci_register() 239 dev_dbg(&dev->pci_dev->dev, "%s()\n", __func__); netup_unidvb_ci_unregister() 241 dev_err(&dev->pci_dev->dev, "%s(): invalid CI adapter %d\n", netup_unidvb_ci_unregister() 193 netup_unidvb_ci_register(struct netup_unidvb_dev *dev, int num, struct pci_dev *pci_dev) netup_unidvb_ci_register() argument
|
H A D | netup_unidvb.h | 103 struct pci_dev *pci_dev; member in struct:netup_unidvb_dev 130 int num, struct pci_dev *pci_dev);
|
/linux-4.4.14/include/linux/ssb/ |
H A D | ssb_driver_gige.h | 54 extern bool pdev_is_ssb_gige_core(struct pci_dev *pdev); 56 /* Convert a pci_dev pointer to a ssb_gige pointer. */ pdev_to_ssb_gige() 57 static inline struct ssb_gige * pdev_to_ssb_gige(struct pci_dev *pdev) pdev_to_ssb_gige() 65 static inline bool ssb_gige_is_rgmii(struct pci_dev *pdev) ssb_gige_is_rgmii() 72 static inline bool ssb_gige_have_roboswitch(struct pci_dev *pdev) ssb_gige_have_roboswitch() 82 static inline bool ssb_gige_one_dma_at_once(struct pci_dev *pdev) ssb_gige_one_dma_at_once() 92 static inline bool ssb_gige_must_flush_posted_writes(struct pci_dev *pdev) ssb_gige_must_flush_posted_writes() 101 static inline int ssb_gige_get_macaddr(struct pci_dev *pdev, u8 *macaddr) ssb_gige_get_macaddr() 112 static inline int ssb_gige_get_phyaddr(struct pci_dev *pdev) ssb_gige_get_phyaddr() 122 struct pci_dev *pdev); 124 const struct pci_dev *pdev); 142 struct pci_dev *pdev) ssb_gige_pcibios_plat_dev_init() 147 const struct pci_dev *pdev) ssb_gige_map_irq() 159 static inline bool pdev_is_ssb_gige_core(struct pci_dev *pdev) pdev_is_ssb_gige_core() 163 static inline struct ssb_gige * pdev_to_ssb_gige(struct pci_dev *pdev) pdev_to_ssb_gige() 167 static inline bool ssb_gige_is_rgmii(struct pci_dev *pdev) ssb_gige_is_rgmii() 171 static inline bool ssb_gige_have_roboswitch(struct pci_dev *pdev) ssb_gige_have_roboswitch() 175 static inline bool ssb_gige_one_dma_at_once(struct pci_dev *pdev) ssb_gige_one_dma_at_once() 179 static inline bool ssb_gige_must_flush_posted_writes(struct pci_dev *pdev) ssb_gige_must_flush_posted_writes() 183 static inline int ssb_gige_get_macaddr(struct pci_dev *pdev, u8 *macaddr) ssb_gige_get_macaddr() 187 static inline int ssb_gige_get_phyaddr(struct pci_dev *pdev) ssb_gige_get_phyaddr()
|
/linux-4.4.14/include/linux/mfd/ |
H A D | rdc321x.h | 18 struct pci_dev *sb_pdev; 23 struct pci_dev *sb_pdev;
|
/linux-4.4.14/drivers/media/pci/cobalt/ |
H A D | cobalt-driver.c | 198 struct pci_dev *pci_dev = cobalt->pci_dev; cobalt_pcie_status_show() local 199 struct pci_dev *pci_bus_dev = cobalt->pci_dev->bus->self; cobalt_pcie_status_show() 205 offset = pci_find_capability(pci_dev, PCI_CAP_ID_EXP); cobalt_pcie_status_show() 209 pci_read_config_dword(pci_dev, offset + PCI_EXP_DEVCAP, &capa); cobalt_pcie_status_show() 210 pci_read_config_word(pci_dev, offset + PCI_EXP_DEVCTL, &ctrl); cobalt_pcie_status_show() 211 pci_read_config_word(pci_dev, offset + PCI_EXP_DEVSTA, &stat); cobalt_pcie_status_show() 221 pci_read_config_dword(pci_dev, offset + PCI_EXP_LNKCAP, &capa); cobalt_pcie_status_show() 222 pci_read_config_word(pci_dev, offset + PCI_EXP_LNKCTL, &ctrl); cobalt_pcie_status_show() 223 pci_read_config_word(pci_dev, offset + PCI_EXP_LNKSTA, &stat); cobalt_pcie_status_show() 239 pci_read_config_dword(pci_dev, offset + PCI_EXP_SLTCAP, &capa); cobalt_pcie_status_show() 240 pci_read_config_word(pci_dev, offset + PCI_EXP_SLTCTL, &ctrl); cobalt_pcie_status_show() 241 pci_read_config_word(pci_dev, offset + PCI_EXP_SLTSTA, &stat); cobalt_pcie_status_show() 249 struct pci_dev *pci_dev = cobalt->pci_dev; pcie_link_get_lanes() local 253 offset = pci_find_capability(pci_dev, PCI_CAP_ID_EXP); pcie_link_get_lanes() 256 pci_read_config_word(pci_dev, offset + PCI_EXP_LNKSTA, &link); pcie_link_get_lanes() 262 struct pci_dev *pci_dev = cobalt->pci_dev->bus->self; pcie_bus_link_get_lanes() local 266 offset = pci_find_capability(pci_dev, PCI_CAP_ID_EXP); pcie_bus_link_get_lanes() 269 pci_read_config_dword(pci_dev, offset + PCI_EXP_LNKCAP, &link); pcie_bus_link_get_lanes() 273 static void msi_config_show(struct cobalt *cobalt, struct pci_dev *pci_dev) msi_config_show() argument 278 pci_read_config_word(pci_dev, 0x52, &ctrl); msi_config_show() 284 pci_read_config_dword(pci_dev, 0x54, &adrs_l); msi_config_show() 285 pci_read_config_dword(pci_dev, 0x58, &adrs_h); msi_config_show() 286 pci_read_config_word(pci_dev, 0x5c, &data); msi_config_show() 295 static void cobalt_pci_iounmap(struct cobalt *cobalt, struct pci_dev *pci_dev) cobalt_pci_iounmap() argument 298 pci_iounmap(pci_dev, cobalt->bar0); cobalt_pci_iounmap() 302 pci_iounmap(pci_dev, cobalt->bar1); cobalt_pci_iounmap() 307 static void cobalt_free_msi(struct cobalt *cobalt, struct pci_dev *pci_dev) cobalt_free_msi() argument 309 free_irq(pci_dev->irq, (void *)cobalt); cobalt_free_msi() 312 pci_disable_msi(pci_dev); cobalt_free_msi() 315 static int cobalt_setup_pci(struct cobalt *cobalt, struct pci_dev *pci_dev, cobalt_setup_pci() argument 323 ret = pci_enable_device(pci_dev); cobalt_setup_pci() 328 pci_set_master(pci_dev); cobalt_setup_pci() 329 pci_read_config_byte(pci_dev, PCI_CLASS_REVISION, &cobalt->card_rev); cobalt_setup_pci() 330 pci_read_config_word(pci_dev, PCI_DEVICE_ID, &cobalt->device_id); cobalt_setup_pci() 354 if (pci_set_dma_mask(pci_dev, DMA_BIT_MASK(64))) { cobalt_setup_pci() 355 ret = pci_set_dma_mask(pci_dev, DMA_BIT_MASK(32)); cobalt_setup_pci() 362 ret = pci_request_regions(pci_dev, "cobalt"); cobalt_setup_pci() 370 cobalt->bar0 = pci_iomap(pci_dev, 0, 0); cobalt_setup_pci() 371 cobalt->bar1 = pci_iomap(pci_dev, 1, 0); cobalt_setup_pci() 373 cobalt->bar1 = pci_iomap(pci_dev, 2, 0); cobalt_setup_pci() 389 if (pci_enable_msi_range(pci_dev, 1, 1) < 1) { cobalt_setup_pci() 395 msi_config_show(cobalt, pci_dev); cobalt_setup_pci() 399 if (request_irq(pci_dev->irq, cobalt_irq_handler, IRQF_SHARED, cobalt_setup_pci() 401 cobalt_err("Failed to register irq %d\n", pci_dev->irq); cobalt_setup_pci() 410 pci_disable_msi(pci_dev); cobalt_setup_pci() 413 cobalt_pci_iounmap(cobalt, pci_dev); cobalt_setup_pci() 414 pci_release_regions(pci_dev); cobalt_setup_pci() 417 pci_disable_device(cobalt->pci_dev); cobalt_setup_pci() 678 static int cobalt_probe(struct pci_dev *pci_dev, cobalt_probe() argument 691 cobalt->pci_dev = pci_dev; cobalt_probe() 694 cobalt->alloc_ctx = vb2_dma_sg_init_ctx(&pci_dev->dev); cobalt_probe() 700 retval = v4l2_device_register(&pci_dev->dev, &cobalt->v4l2_dev); cobalt_probe() 724 retval = cobalt_setup_pci(cobalt, pci_dev, pci_id); cobalt_probe() 773 cobalt_free_msi(cobalt, pci_dev); cobalt_probe() 774 cobalt_pci_iounmap(cobalt, pci_dev); cobalt_probe() 775 pci_release_regions(cobalt->pci_dev); cobalt_probe() 776 pci_disable_device(cobalt->pci_dev); cobalt_probe() 790 static void cobalt_remove(struct pci_dev *pci_dev) cobalt_remove() argument 792 struct v4l2_device *v4l2_dev = pci_get_drvdata(pci_dev); cobalt_remove() 811 cobalt_free_msi(cobalt, pci_dev); cobalt_remove() 813 cobalt_pci_iounmap(cobalt, pci_dev); cobalt_remove() 814 pci_release_regions(cobalt->pci_dev); cobalt_remove() 815 pci_disable_device(cobalt->pci_dev); cobalt_remove()
|
/linux-4.4.14/arch/powerpc/platforms/pasemi/ |
H A D | pasemi.h | 6 extern void pas_pci_irq_fixup(struct pci_dev *dev); 7 extern void pas_pci_dma_dev_setup(struct pci_dev *dev); 9 extern void __iomem *pasemi_pci_getcfgaddr(struct pci_dev *dev, int offset);
|
/linux-4.4.14/include/drm/ |
H A D | intel-gtt.h | 9 int intel_gmch_probe(struct pci_dev *bridge_pdev, struct pci_dev *gpu_pdev,
|
/linux-4.4.14/drivers/media/pci/tw68/ |
H A D | tw68-core.c | 220 static int tw68_initdev(struct pci_dev *pci_dev, tw68_initdev() argument 227 dev = devm_kzalloc(&pci_dev->dev, sizeof(*dev), GFP_KERNEL); tw68_initdev() 234 err = v4l2_device_register(&pci_dev->dev, &dev->v4l2_dev); tw68_initdev() 239 dev->pci = pci_dev; tw68_initdev() 240 if (pci_enable_device(pci_dev)) { tw68_initdev() 250 pci_write_config_byte(pci_dev, PCI_LATENCY_TIMER, latency); tw68_initdev() 254 pci_read_config_byte(pci_dev, PCI_CLASS_REVISION, &dev->pci_rev); tw68_initdev() 255 pci_read_config_byte(pci_dev, PCI_LATENCY_TIMER, &dev->pci_lat); tw68_initdev() 257 dev->name, pci_name(pci_dev), dev->pci_rev, pci_dev->irq, tw68_initdev() 258 dev->pci_lat, (u64)pci_resource_start(pci_dev, 0)); tw68_initdev() 259 pci_set_master(pci_dev); tw68_initdev() 260 err = pci_set_dma_mask(pci_dev, DMA_BIT_MASK(32)); tw68_initdev() 286 if (!request_mem_region(pci_resource_start(pci_dev, 0), tw68_initdev() 287 pci_resource_len(pci_dev, 0), tw68_initdev() 292 (unsigned long long)pci_resource_start(pci_dev, 0)); tw68_initdev() 295 dev->lmmio = ioremap(pci_resource_start(pci_dev, 0), tw68_initdev() 296 pci_resource_len(pci_dev, 0)); tw68_initdev() 308 dev->alloc_ctx = vb2_dma_sg_init_ctx(&pci_dev->dev); tw68_initdev() 315 err = devm_request_irq(&pci_dev->dev, pci_dev->irq, tw68_irq, tw68_initdev() 319 dev->name, pci_dev->irq); tw68_initdev() 350 release_mem_region(pci_resource_start(pci_dev, 0), tw68_initdev() 351 pci_resource_len(pci_dev, 0)); tw68_initdev() 357 static void tw68_finidev(struct pci_dev *pci_dev) tw68_finidev() argument 359 struct v4l2_device *v4l2_dev = pci_get_drvdata(pci_dev); tw68_finidev() 374 release_mem_region(pci_resource_start(pci_dev, 0), tw68_finidev() 375 pci_resource_len(pci_dev, 0)); tw68_finidev() 382 static int tw68_suspend(struct pci_dev *pci_dev , pm_message_t state) tw68_suspend() 384 struct v4l2_device *v4l2_dev = pci_get_drvdata(pci_dev); tw68_suspend() 392 synchronize_irq(pci_dev->irq); tw68_suspend() 394 pci_save_state(pci_dev); tw68_suspend() 395 pci_set_power_state(pci_dev, pci_choose_state(pci_dev, state)); tw68_suspend() 401 static int tw68_resume(struct pci_dev *pci_dev) tw68_resume() argument 403 struct v4l2_device *v4l2_dev = pci_get_drvdata(pci_dev); tw68_resume() 409 pci_set_power_state(pci_dev, PCI_D0); tw68_resume() 410 pci_restore_state(pci_dev); tw68_resume()
|
/linux-4.4.14/drivers/gpu/drm/virtio/ |
H A D | virtgpu_drm_bus.c | 32 struct pci_dev *pdev = dev->pdev; drm_virtio_set_busid() 40 static void virtio_pci_kick_out_firmware_fb(struct pci_dev *pci_dev) virtio_pci_kick_out_firmware_fb() argument 49 ap->ranges[0].base = pci_resource_start(pci_dev, 0); virtio_pci_kick_out_firmware_fb() 50 ap->ranges[0].size = pci_resource_len(pci_dev, 0); virtio_pci_kick_out_firmware_fb() 52 primary = pci_dev->resource[PCI_ROM_RESOURCE].flags virtio_pci_kick_out_firmware_fb() 72 struct pci_dev *pdev = to_pci_dev(vdev->dev.parent); drm_virtio_init()
|
/linux-4.4.14/sound/pci/asihpi/ |
H A D | hpioctl.c | 338 int asihpi_adapter_probe(struct pci_dev *pci_dev, asihpi_adapter_probe() argument 351 dev_printk(KERN_DEBUG, &pci_dev->dev, asihpi_adapter_probe() 352 "probe %04x:%04x,%04x:%04x,%04x\n", pci_dev->vendor, asihpi_adapter_probe() 353 pci_dev->device, pci_dev->subsystem_vendor, asihpi_adapter_probe() 354 pci_dev->subsystem_device, pci_dev->devfn); asihpi_adapter_probe() 356 if (pci_enable_device(pci_dev) < 0) { asihpi_adapter_probe() 357 dev_err(&pci_dev->dev, asihpi_adapter_probe() 362 pci_set_master(pci_dev); /* also sets latency timer if < 16 */ asihpi_adapter_probe() 375 &pci_dev->resource[idx]); asihpi_adapter_probe() 377 if (pci_resource_flags(pci_dev, idx) & IORESOURCE_MEM) { asihpi_adapter_probe() 378 memlen = pci_resource_len(pci_dev, idx); asihpi_adapter_probe() 380 ioremap(pci_resource_start(pci_dev, idx), asihpi_adapter_probe() 391 pci.pci_dev = pci_dev; asihpi_adapter_probe() 434 dev_info(&pci_dev->dev, asihpi_adapter_probe() 445 dev_info(&pci_dev->dev, asihpi_adapter_probe() 457 pci_set_drvdata(pci_dev, &adapters[adapter_index]); asihpi_adapter_probe() 461 dev_err(&pci_dev->dev, asihpi_adapter_probe() 482 if (request_irq(pci_dev->irq, asihpi_isr, IRQF_SHARED, asihpi_adapter_probe() 484 dev_err(&pci_dev->dev, "request_irq(%d) failed\n", asihpi_adapter_probe() 485 pci_dev->irq); asihpi_adapter_probe() 491 dev_info(&pci_dev->dev, "using irq %d\n", pci_dev->irq); asihpi_adapter_probe() 492 adapters[adapter_index].irq = pci_dev->irq; asihpi_adapter_probe() 494 dev_info(&pci_dev->dev, "using polled mode\n"); asihpi_adapter_probe() 497 dev_info(&pci_dev->dev, "probe succeeded for ASI%04X HPI index %d\n", asihpi_adapter_probe() 519 void asihpi_adapter_remove(struct pci_dev *pci_dev) asihpi_adapter_remove() argument 527 pa = pci_get_drvdata(pci_dev); asihpi_adapter_remove() 554 dev_info(&pci_dev->dev, asihpi_adapter_remove() 556 pci_dev->vendor, pci_dev->device, asihpi_adapter_remove() 557 pci_dev->subsystem_vendor, pci_dev->subsystem_device, asihpi_adapter_remove() 558 pci_dev->devfn, pa->adapter->index); asihpi_adapter_remove()
|
H A D | hpioctl.h | 22 int asihpi_adapter_probe(struct pci_dev *pci_dev, 24 void asihpi_adapter_remove(struct pci_dev *pci_dev);
|
/linux-4.4.14/arch/x86/pci/ |
H A D | irq.c | 28 static int pirq_enable_irq(struct pci_dev *dev); 29 static void pirq_disable_irq(struct pci_dev *dev); 46 int (*get)(struct pci_dev *router, struct pci_dev *dev, int pirq); 47 int (*set)(struct pci_dev *router, struct pci_dev *dev, int pirq, 53 int (*probe)(struct irq_router *r, struct pci_dev *router, u16 device); 56 int (*pcibios_enable_irq)(struct pci_dev *dev) = pirq_enable_irq; 57 void (*pcibios_disable_irq)(struct pci_dev *dev) = pirq_disable_irq; 175 static unsigned int read_config_nybble(struct pci_dev *router, unsigned offset, unsigned nr) read_config_nybble() 184 static void write_config_nybble(struct pci_dev *router, unsigned offset, write_config_nybble() 200 static int pirq_ali_get(struct pci_dev *router, struct pci_dev *dev, int pirq) pirq_ali_get() 208 static int pirq_ali_set(struct pci_dev *router, struct pci_dev *dev, int pirq, int irq) pirq_ali_set() 225 static int pirq_piix_get(struct pci_dev *router, struct pci_dev *dev, int pirq) pirq_piix_get() 233 static int pirq_piix_set(struct pci_dev *router, struct pci_dev *dev, int pirq, int irq) pirq_piix_set() 244 static int pirq_via_get(struct pci_dev *router, struct pci_dev *dev, int pirq) pirq_via_get() 249 static int pirq_via_set(struct pci_dev *router, struct pci_dev *dev, int pirq, int irq) pirq_via_set() 260 static int pirq_via586_get(struct pci_dev *router, struct pci_dev *dev, int pirq) pirq_via586_get() 268 static int pirq_via586_set(struct pci_dev *router, struct pci_dev *dev, int pirq, int irq) pirq_via586_set() 282 static int pirq_ite_get(struct pci_dev *router, struct pci_dev *dev, int pirq) pirq_ite_get() 290 static int pirq_ite_set(struct pci_dev *router, struct pci_dev *dev, int pirq, int irq) pirq_ite_set() 303 static int pirq_opti_get(struct pci_dev *router, struct pci_dev *dev, int pirq) pirq_opti_get() 308 static int pirq_opti_set(struct pci_dev *router, struct pci_dev *dev, int pirq, int irq) pirq_opti_set() 319 static int pirq_cyrix_get(struct pci_dev *router, struct pci_dev *dev, int pirq) pirq_cyrix_get() 324 static int pirq_cyrix_set(struct pci_dev *router, struct pci_dev *dev, int pirq, int irq) pirq_cyrix_set() 395 static int pirq_sis_get(struct pci_dev *router, struct pci_dev *dev, int pirq) pirq_sis_get() 407 static int pirq_sis_set(struct pci_dev *router, struct pci_dev *dev, int pirq, int irq) pirq_sis_set() 431 static int pirq_vlsi_get(struct pci_dev *router, struct pci_dev *dev, int pirq) pirq_vlsi_get() 441 static int pirq_vlsi_set(struct pci_dev *router, struct pci_dev *dev, int pirq, int irq) pirq_vlsi_set() 463 static int pirq_serverworks_get(struct pci_dev *router, struct pci_dev *dev, int pirq) pirq_serverworks_get() 469 static int pirq_serverworks_set(struct pci_dev *router, struct pci_dev *dev, pirq_serverworks_set() 485 static int pirq_amd756_get(struct pci_dev *router, struct pci_dev *dev, int pirq) pirq_amd756_get() 497 static int pirq_amd756_set(struct pci_dev *router, struct pci_dev *dev, int pirq, int irq) pirq_amd756_set() 510 static int pirq_pico_get(struct pci_dev *router, struct pci_dev *dev, int pirq) pirq_pico_get() 516 static int pirq_pico_set(struct pci_dev *router, struct pci_dev *dev, int pirq, pirq_pico_set() 529 static int pirq_bios_set(struct pci_dev *router, struct pci_dev *dev, int pirq, int irq) pirq_bios_set() 531 struct pci_dev *bridge; pirq_bios_set() 538 static __init int intel_router_probe(struct irq_router *r, struct pci_dev *router, u16 device) intel_router_probe() 616 struct pci_dev *router, u16 device) via_router_probe() 670 static __init int vlsi_router_probe(struct irq_router *r, struct pci_dev *router, u16 device) vlsi_router_probe() 684 struct pci_dev *router, u16 device) serverworks_router_probe() 697 static __init int sis_router_probe(struct irq_router *r, struct pci_dev *router, u16 device) sis_router_probe() 708 static __init int cyrix_router_probe(struct irq_router *r, struct pci_dev *router, u16 device) cyrix_router_probe() 720 static __init int opti_router_probe(struct irq_router *r, struct pci_dev *router, u16 device) opti_router_probe() 732 static __init int ite_router_probe(struct irq_router *r, struct pci_dev *router, u16 device) ite_router_probe() 744 static __init int ali_router_probe(struct irq_router *r, struct pci_dev *router, u16 device) ali_router_probe() 757 static __init int amd_router_probe(struct irq_router *r, struct pci_dev *router, u16 device) amd_router_probe() 777 static __init int pico_router_probe(struct irq_router *r, struct pci_dev *router, u16 device) pico_router_probe() 811 static struct pci_dev *pirq_router_dev; 865 static struct irq_info *pirq_get_info(struct pci_dev *dev) pirq_get_info() 879 static int pcibios_lookup_irq(struct pci_dev *dev, int assign) pcibios_lookup_irq() 887 struct pci_dev *dev2 = NULL; pcibios_lookup_irq() 1026 struct pci_dev *dev = NULL; pcibios_fixup_irqs() 1153 struct pci_dev *dev = NULL; pcibios_irq_init() 1189 static int pirq_enable_irq(struct pci_dev *dev) pirq_enable_irq() 1202 struct pci_dev *temp_dev; pirq_enable_irq() 1218 struct pci_dev *bridge = dev->bus->self; pirq_enable_irq() 1272 static void pirq_disable_irq(struct pci_dev *dev) pirq_disable_irq()
|
H A D | i386.c | 48 struct pci_dev *dev; 57 static struct pcibios_fwaddrmap *pcibios_fwaddrmap_lookup(struct pci_dev *dev) pcibios_fwaddrmap_lookup() 71 pcibios_save_fw_addr(struct pci_dev *dev, int idx, resource_size_t fw_addr) pcibios_save_fw_addr() 98 resource_size_t pcibios_retrieve_fw_addr(struct pci_dev *dev, int idx) pcibios_retrieve_fw_addr() 132 skip_isa_ioresource_align(struct pci_dev *dev) { skip_isa_ioresource_align() 157 struct pci_dev *dev = data; pcibios_align_resource() 208 static void pcibios_allocate_bridge_resources(struct pci_dev *dev) pcibios_allocate_bridge_resources() 248 static void pcibios_allocate_dev_resources(struct pci_dev *dev, int pass) pcibios_allocate_dev_resources() 308 struct pci_dev *dev; pcibios_allocate_resources() 320 static void pcibios_allocate_dev_rom_resource(struct pci_dev *dev) pcibios_allocate_dev_rom_resource() 342 struct pci_dev *dev; pcibios_allocate_rom_resources() 414 int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma, pci_mmap_page_range()
|
/linux-4.4.14/tools/power/cpupower/utils/helpers/ |
H A D | pci.c | 10 * **pacc : if a valid pci_dev is returned 22 * struct pci_dev which can be used with pci_{read,write}_* functions 25 struct pci_dev *pci_acc_init(struct pci_access **pacc, int domain, int bus, pci_acc_init() 29 struct pci_dev *device; pci_acc_init() 56 struct pci_dev *pci_slot_func_init(struct pci_access **pacc, int slot, pci_slot_func_init()
|
/linux-4.4.14/drivers/usb/core/ |
H A D | hcd-pci.c | 51 static inline int is_ohci_or_uhci(struct pci_dev *pdev) is_ohci_or_uhci() 56 typedef void (*companion_fn)(struct pci_dev *pdev, struct usb_hcd *hcd, 57 struct pci_dev *companion, struct usb_hcd *companion_hcd); 60 static void for_each_companion(struct pci_dev *pdev, struct usb_hcd *hcd, for_each_companion() 63 struct pci_dev *companion; for_each_companion() 99 static void ehci_pre_add(struct pci_dev *pdev, struct usb_hcd *hcd, ehci_pre_add() 100 struct pci_dev *companion, struct usb_hcd *companion_hcd) ehci_pre_add() 116 static void ehci_post_add(struct pci_dev *pdev, struct usb_hcd *hcd, ehci_post_add() 117 struct pci_dev *companion, struct usb_hcd *companion_hcd) ehci_post_add() 137 static void non_ehci_add(struct pci_dev *pdev, struct usb_hcd *hcd, non_ehci_add() 138 struct pci_dev *companion, struct usb_hcd *companion_hcd) non_ehci_add() 148 static void ehci_remove(struct pci_dev *pdev, struct usb_hcd *hcd, ehci_remove() 149 struct pci_dev *companion, struct usb_hcd *companion_hcd) ehci_remove() 158 static void ehci_wait_for_companions(struct pci_dev *pdev, struct usb_hcd *hcd, ehci_wait_for_companions() 159 struct pci_dev *companion, struct usb_hcd *companion_hcd) ehci_wait_for_companions() 186 int usb_hcd_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) usb_hcd_pci_probe() 330 void usb_hcd_pci_remove(struct pci_dev *dev) usb_hcd_pci_remove() 381 void usb_hcd_pci_shutdown(struct pci_dev *dev) usb_hcd_pci_shutdown() 402 static void powermac_set_asic(struct pci_dev *pci_dev, int enable) powermac_set_asic() argument 408 of_node = pci_device_to_OF_node(pci_dev); powermac_set_asic() 417 static inline void powermac_set_asic(struct pci_dev *pci_dev, int enable) powermac_set_asic() argument 424 struct pci_dev *pci_dev = to_pci_dev(dev); check_root_hub_suspended() local 425 struct usb_hcd *hcd = pci_get_drvdata(pci_dev); check_root_hub_suspended() 443 struct pci_dev *pci_dev = to_pci_dev(dev); suspend_common() local 444 struct usb_hcd *hcd = pci_get_drvdata(pci_dev); suspend_common() 485 synchronize_irq(pci_dev->irq); suspend_common() 492 pci_disable_device(pci_dev); suspend_common() 498 struct pci_dev *pci_dev = to_pci_dev(dev); resume_common() local 499 struct usb_hcd *hcd = pci_get_drvdata(pci_dev); resume_common() 509 retval = pci_enable_device(pci_dev); resume_common() 515 pci_set_master(pci_dev); resume_common() 524 if (pci_dev->class == CL_EHCI && event != PM_EVENT_AUTO_RESUME) resume_common() 525 for_each_companion(pci_dev, hcd, resume_common() 549 struct pci_dev *pci_dev = to_pci_dev(dev); hcd_pci_suspend_noirq() local 550 struct usb_hcd *hcd = pci_get_drvdata(pci_dev); hcd_pci_suspend_noirq() 557 pci_save_state(pci_dev); hcd_pci_suspend_noirq() 570 retval = pci_prepare_to_sleep(pci_dev); hcd_pci_suspend_noirq() 576 pci_power_name(pci_dev->current_state)); hcd_pci_suspend_noirq() 582 powermac_set_asic(pci_dev, 0); hcd_pci_suspend_noirq() 588 struct pci_dev *pci_dev = to_pci_dev(dev); hcd_pci_resume_noirq() local 590 powermac_set_asic(pci_dev, 1); hcd_pci_resume_noirq() 593 pci_back_from_sleep(pci_dev); hcd_pci_resume_noirq()
|
/linux-4.4.14/arch/x86/kernel/ |
H A D | reboot_fixups_32.c | 17 static void cs5530a_warm_reset(struct pci_dev *dev) cs5530a_warm_reset() 26 static void cs5536_warm_reset(struct pci_dev *dev) cs5536_warm_reset() 33 static void rdc321x_reset(struct pci_dev *dev) rdc321x_reset() 46 static void ce4100_reset(struct pci_dev *dev) ce4100_reset() 59 void (*reboot_fixup)(struct pci_dev *); 84 struct pci_dev *dev; mach_reboot_fixups()
|
H A D | x86_init.c | 119 int arch_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) arch_setup_msi_irqs() 124 void arch_teardown_msi_irqs(struct pci_dev *dev) arch_teardown_msi_irqs() 134 void arch_restore_msi_irqs(struct pci_dev *dev) arch_restore_msi_irqs()
|
/linux-4.4.14/drivers/staging/rtl8192e/rtl8192e/ |
H A D | rtl_pm.h | 22 int rtl92e_suspend(struct pci_dev *dev, pm_message_t state); 23 int rtl92e_resume(struct pci_dev *dev);
|
/linux-4.4.14/drivers/media/common/ |
H A D | btcx-risc.h | 15 int btcx_riscmem_alloc(struct pci_dev *pci, 18 void btcx_riscmem_free(struct pci_dev *pci,
|
/linux-4.4.14/drivers/media/pci/bt8xx/ |
H A D | btcx-risc.h | 13 int btcx_riscmem_alloc(struct pci_dev *pci, 16 void btcx_riscmem_free(struct pci_dev *pci,
|
/linux-4.4.14/arch/x86/kvm/ |
H A D | assigned-dev.h | 7 int kvm_assign_device(struct kvm *kvm, struct pci_dev *pdev); 8 int kvm_deassign_device(struct kvm *kvm, struct pci_dev *pdev);
|
/linux-4.4.14/drivers/net/ethernet/cavium/liquidio/ |
H A D | octeon_main.h | 73 dev_dbg(&oct->pci_dev->dev, "Freeing PCI mapped regions for Bar%d\n", octeon_unmap_pci_barx() 80 pci_release_region(oct->pci_dev, baridx * 2); octeon_unmap_pci_barx() 94 if (pci_request_region(oct->pci_dev, baridx * 2, DRV_NAME)) { octeon_map_pci_barx() 95 dev_err(&oct->pci_dev->dev, "pci_request_region failed for bar %d\n", octeon_map_pci_barx() 100 oct->mmio[baridx].start = pci_resource_start(oct->pci_dev, baridx * 2); octeon_map_pci_barx() 101 oct->mmio[baridx].len = pci_resource_len(oct->pci_dev, baridx * 2); octeon_map_pci_barx() 114 dev_dbg(&oct->pci_dev->dev, "BAR%d start: 0x%llx mapped %u of %u bytes\n", octeon_map_pci_barx() 119 dev_err(&oct->pci_dev->dev, "error ioremap for bar %d\n", octeon_map_pci_barx() 129 cnnic_alloc_aligned_dma(struct pci_dev *pci_dev, cnnic_alloc_aligned_dma() argument 162 #define cnnic_free_aligned_dma(pci_dev, ptr, size, orig_ptr, dma_addr) \
|
H A D | lio_main.c | 195 struct pci_dev *pci_dev; member in struct:handshake 207 static void liquidio_remove(struct pci_dev *pdev); 208 static int liquidio_probe(struct pci_dev *pdev, 392 dev_err(&oct->pci_dev->dev, "There were pending requests\n"); pcierror_quiesce_device() 423 static void cleanup_aer_uncorrect_error_status(struct pci_dev *dev) cleanup_aer_uncorrect_error_status() 448 pci_disable_device(oct->pci_dev); stop_pci_io() 456 free_irq(oct->pci_dev->irq, oct); stop_pci_io() 459 pci_disable_msi(oct->pci_dev); stop_pci_io() 461 dev_dbg(&oct->pci_dev->dev, "Device state is now %s\n", stop_pci_io() 464 /* cn63xx_cleanup_aer_uncorrect_error_status(oct->pci_dev); */ stop_pci_io() 466 cleanup_aer_uncorrect_error_status(oct->pci_dev); stop_pci_io() 477 static pci_ers_result_t liquidio_pcie_error_detected(struct pci_dev *pdev, liquidio_pcie_error_detected() 484 dev_err(&oct->pci_dev->dev, "Non-correctable non-fatal error reported:\n"); liquidio_pcie_error_detected() 485 cleanup_aer_uncorrect_error_status(oct->pci_dev); liquidio_pcie_error_detected() 490 dev_err(&oct->pci_dev->dev, "Non-correctable FATAL reported by PCI AER driver\n"); liquidio_pcie_error_detected() 503 static pci_ers_result_t liquidio_pcie_mmio_enabled(struct pci_dev *pdev) liquidio_pcie_mmio_enabled() 519 static pci_ers_result_t liquidio_pcie_slot_reset(struct pci_dev *pdev) liquidio_pcie_slot_reset() 536 static void liquidio_pcie_resume(struct pci_dev *pdev) liquidio_pcie_resume() 547 static int liquidio_suspend(struct pci_dev *pdev, pm_message_t state) liquidio_suspend() 556 static int liquidio_resume(struct pci_dev *pdev) liquidio_resume() 965 err = pci_enable_msi(oct->pci_dev); octeon_setup_interrupt() 967 dev_warn(&oct->pci_dev->dev, "Reverting to legacy interrupts. Error: %d\n", octeon_setup_interrupt() 972 irqret = request_irq(oct->pci_dev->irq, liquidio_intr_handler, octeon_setup_interrupt() 976 pci_disable_msi(oct->pci_dev); octeon_setup_interrupt() 977 dev_err(&oct->pci_dev->dev, "Request IRQ failed with code: %d\n", octeon_setup_interrupt() 990 static int liquidio_probe(struct pci_dev *pdev, const struct pci_device_id *ent) liquidio_probe() 1009 oct_dev->pci_dev = (void *)pdev; liquidio_probe() 1014 hs->pci_dev = pdev; liquidio_probe() 1025 dev_dbg(&oct_dev->pci_dev->dev, "Device is ready\n"); liquidio_probe() 1051 dev_dbg(&oct->pci_dev->dev, "Device state is now %s\n", octeon_destroy_resources() 1067 dev_err(&oct->pci_dev->dev, "There were pending requests\n"); octeon_destroy_resources() 1070 dev_err(&oct->pci_dev->dev, "IQ had pending instructions\n"); octeon_destroy_resources() 1079 dev_err(&oct->pci_dev->dev, "OQ had pending packets\n"); octeon_destroy_resources() 1085 free_irq(oct->pci_dev->irq, oct); octeon_destroy_resources() 1088 pci_disable_msi(oct->pci_dev); octeon_destroy_resources() 1094 pci_disable_device(oct->pci_dev); octeon_destroy_resources() 1111 if (hs->pci_dev) { octeon_destroy_resources() 1191 dev_err(&oct->pci_dev->dev, "%s No netdevice ptr for index %d\n", liquidio_destroy_nic_device() 1198 dev_dbg(&oct->pci_dev->dev, "NIC device cleanup\n"); liquidio_destroy_nic_device() 1224 dev_dbg(&oct->pci_dev->dev, "Stopping network interfaces\n"); liquidio_stop_nic_module() 1226 dev_err(&oct->pci_dev->dev, "Init for Octeon was not completed\n"); liquidio_stop_nic_module() 1239 dev_dbg(&oct->pci_dev->dev, "Network interfaces stopped\n"); liquidio_stop_nic_module() 1247 static void liquidio_remove(struct pci_dev *pdev) liquidio_remove() 1251 dev_dbg(&oct_dev->pci_dev->dev, "Stopping device\n"); liquidio_remove() 1261 dev_info(&oct_dev->pci_dev->dev, "Device removed\n"); liquidio_remove() 1278 pci_read_config_dword(oct->pci_dev, 0, &dev_id); octeon_chip_specific_setup() 1279 pci_read_config_dword(oct->pci_dev, 8, &rev_id); octeon_chip_specific_setup() 1293 dev_err(&oct->pci_dev->dev, "Unknown device found (dev_id: %x)\n", octeon_chip_specific_setup() 1298 dev_info(&oct->pci_dev->dev, "CN68XX PASS%d.%d %s\n", octeon_chip_specific_setup() 1313 if (pci_enable_device(oct->pci_dev)) { octeon_pci_os_setup() 1314 dev_err(&oct->pci_dev->dev, "pci_enable_device failed\n"); octeon_pci_os_setup() 1318 if (dma_set_mask_and_coherent(&oct->pci_dev->dev, DMA_BIT_MASK(64))) { octeon_pci_os_setup() 1319 dev_err(&oct->pci_dev->dev, "Unexpected DMA device capability\n"); octeon_pci_os_setup() 1324 pci_set_master(oct->pci_dev); octeon_pci_os_setup() 1365 dma_unmap_single(&lio->oct_dev->pci_dev->dev, finfo->dptr, skb->len, free_netbuf() 1391 dma_unmap_single(&lio->oct_dev->pci_dev->dev, free_netsgbuf() 1399 pci_unmap_page((lio->oct_dev)->pci_dev, free_netsgbuf() 1405 dma_unmap_single(&lio->oct_dev->pci_dev->dev, free_netsgbuf() 1439 dma_unmap_single(&lio->oct_dev->pci_dev->dev, free_netsgbuf_with_resp() 1447 pci_unmap_page((lio->oct_dev)->pci_dev, free_netsgbuf_with_resp() 1453 dma_unmap_single(&lio->oct_dev->pci_dev->dev, free_netsgbuf_with_resp() 1607 &oct->pci_dev->dev); oct_ptp_open() 1645 dev_info(&oct->pci_dev->dev, "Skipping firmware load\n"); load_firmware() 1658 ret = request_firmware(&fw, fw_name, &oct->pci_dev->dev); load_firmware() 1660 dev_err(&oct->pci_dev->dev, "Request firmware failed. Could not find file %s.\n.", load_firmware() 1685 dev_dbg(&oct->pci_dev->dev, "Creating Droq: %d\n", q_no); octeon_setup_droq() 1692 dev_dbg(&oct->pci_dev->dev, "Using default droq %d\n", q_no); octeon_setup_droq() 1727 dev_err(&oct->pci_dev->dev, "nic if cfg instruction failed. Status: %llx\n", if_cfg_callback() 1894 dev_err(&oct->pci_dev->dev, ">>>> %s work_done: %d budget: %d\n", liquidio_napi_do_rx() 1977 dev_err(&octeon_dev->pci_dev->dev, setup_io_queues() 2005 dev_err(&octeon_dev->pci_dev->dev, setup_io_queues() 2043 dev_err(&oct->pci_dev->dev, "unable to create cavium txq status wq\n"); setup_tx_poll_fn() 2081 dev_info(&oct->pci_dev->dev, "%s interface is opened\n", liquidio_open() 2126 dev_info(&oct->pci_dev->dev, "%s interface is stopped\n", netdev->name); liquidio_stop() 2148 dev_info(&oct->pci_dev->dev, "%s MACAddr changed to 0x%llx\n", liquidio_link_ctrl_cmd_completion() 2157 dev_info(&oct->pci_dev->dev, "%s MTU Changed from %d to %d\n", liquidio_link_ctrl_cmd_completion() 2169 dev_info(&oct->pci_dev->dev, "%s LRO Enabled\n", netdev->name); liquidio_link_ctrl_cmd_completion() 2173 dev_info(&oct->pci_dev->dev, "%s LRO Disabled\n", liquidio_link_ctrl_cmd_completion() 2178 dev_info(&oct->pci_dev->dev, "%s LRO Enabled\n", netdev->name); liquidio_link_ctrl_cmd_completion() 2182 dev_info(&oct->pci_dev->dev, "%s LRO Disabled\n", liquidio_link_ctrl_cmd_completion() 2187 dev_info(&oct->pci_dev->dev, "%s settings changed\n", liquidio_link_ctrl_cmd_completion() 2193 dev_err(&oct->pci_dev->dev, "%s Unknown cmd %d\n", __func__, liquidio_link_ctrl_cmd_completion() 2279 dev_err(&oct->pci_dev->dev, "DEVFLAGS change failed in core (ret: 0x%x)\n", 2320 dev_err(&oct->pci_dev->dev, "MAC Address change failed\n"); liquidio_set_mac() 2397 dev_err(&oct->pci_dev->dev, "Invalid MTU: %d\n", new_mtu); liquidio_change_mtu() 2398 dev_err(&oct->pci_dev->dev, "Valid range %d and %d\n", liquidio_change_mtu() 2418 dev_err(&oct->pci_dev->dev, "Failed to set MTU\n"); liquidio_change_mtu() 2522 dev_err(&oct->pci_dev->dev, "Tx timestamp instruction failed. Status: %llx\n", handle_timestamp() 2568 dev_err(&oct->pci_dev->dev, "No memory for timestamped data packet\n"); send_nic_timestamp_pkt() 2589 dev_err(&oct->pci_dev->dev, "timestamp data packet failed status: %x\n", send_nic_timestamp_pkt() 2800 ndata.cmd.dptr = dma_map_single(&oct->pci_dev->dev, liquidio_xmit() 2804 if (dma_mapping_error(&oct->pci_dev->dev, ndata.cmd.dptr)) { liquidio_xmit() 2805 dev_err(&oct->pci_dev->dev, "%s DMA mapping error 1\n", liquidio_xmit() 2835 g->sg[0].ptr[0] = dma_map_single(&oct->pci_dev->dev, liquidio_xmit() 2839 if (dma_mapping_error(&oct->pci_dev->dev, g->sg[0].ptr[0])) { liquidio_xmit() 2840 dev_err(&oct->pci_dev->dev, "%s DMA mapping error 2\n", liquidio_xmit() 2852 dma_map_page(&oct->pci_dev->dev, liquidio_xmit() 2862 ndata.cmd.dptr = dma_map_single(&oct->pci_dev->dev, liquidio_xmit() 2865 if (dma_mapping_error(&oct->pci_dev->dev, ndata.cmd.dptr)) { liquidio_xmit() 2866 dev_err(&oct->pci_dev->dev, "%s DMA mapping error 3\n", liquidio_xmit() 2868 dma_unmap_single(&oct->pci_dev->dev, g->sg[0].ptr[0], liquidio_xmit() 2915 dma_unmap_single(&oct->pci_dev->dev, ndata.cmd.dptr, liquidio_xmit() 2959 dev_err(&oct->pci_dev->dev, "Feature change failed in core (ret: 0x%x)\n", liquidio_set_feature() 3053 if (hs->pci_dev) { liquidio_init() 3057 dev_err(&hs->pci_dev->dev, liquidio_init() 3067 if (hs->pci_dev) { liquidio_init() 3072 dev_err(&hs->pci_dev->dev, liquidio_init() 3093 dev_err(&oct->pci_dev->dev, "Malformed NIC_INFO, len=%d, ifidx=%d\n", lio_nic_info() 3176 dev_dbg(&octeon_dev->pci_dev->dev, setup_nic_devices() 3198 dev_err(&octeon_dev->pci_dev->dev, setup_nic_devices() 3211 dev_err(&octeon_dev->pci_dev->dev, "iq/oq config failed\n"); setup_nic_devices() 3222 dev_err(&octeon_dev->pci_dev->dev, setup_nic_devices() 3228 dev_dbg(&octeon_dev->pci_dev->dev, setup_nic_devices() 3235 dev_err(&octeon_dev->pci_dev->dev, "Device allocation failed\n"); setup_nic_devices() 3298 dev_dbg(&octeon_dev->pci_dev->dev, setup_nic_devices() 3312 dev_err(&octeon_dev->pci_dev->dev, "I/O queues creation failed\n"); setup_nic_devices() 3328 dev_err(&octeon_dev->pci_dev->dev, setup_nic_devices() 3343 dev_err(&octeon_dev->pci_dev->dev, "Device registration failed\n"); setup_nic_devices() 3347 dev_dbg(&octeon_dev->pci_dev->dev, setup_nic_devices() 3361 dev_dbg(&octeon_dev->pci_dev->dev, setup_nic_devices() 3374 dev_err(&octeon_dev->pci_dev->dev, setup_nic_devices() 3394 dev_dbg(&oct->pci_dev->dev, "Initializing network interfaces\n"); liquidio_init_nic_module() 3407 dev_err(&oct->pci_dev->dev, "Setup NIC devices failed\n"); liquidio_init_nic_module() 3424 dev_dbg(&oct->pci_dev->dev, "Network interfaces ready\n"); liquidio_init_nic_module() 3464 dev_dbg(&oct->pci_dev->dev, "Starting NIC module\n"); nic_starter() 3467 dev_err(&oct->pci_dev->dev, "NIC initialization failed\n"); nic_starter() 3471 dev_err(&oct->pci_dev->dev, nic_starter() 3498 dev_err(&octeon_dev->pci_dev->dev, "Chip specific setup failed\n"); octeon_device_init() 3532 dev_err(&octeon_dev->pci_dev->dev, octeon_device_init() 3544 dev_err(&octeon_dev->pci_dev->dev, "sc buffer pool allocation failed\n"); octeon_device_init() 3553 dev_err(&octeon_dev->pci_dev->dev, "Response list allocation failed\n"); octeon_device_init() 3559 dev_err(&octeon_dev->pci_dev->dev, "Output queue initialization failed\n"); octeon_device_init() 3573 dev_err(&octeon_dev->pci_dev->dev, octeon_device_init() 3579 dev_dbg(&octeon_dev->pci_dev->dev, "Initializing droq tasklet\n"); octeon_device_init() 3595 dev_dbg(&octeon_dev->pci_dev->dev, "Waiting for DDR initialization...\n"); octeon_device_init() 3598 dev_info(&octeon_dev->pci_dev->dev, octeon_device_init() 3607 dev_err(&octeon_dev->pci_dev->dev, octeon_device_init() 3614 dev_err(&octeon_dev->pci_dev->dev, "Board not responding\n"); octeon_device_init() 3618 dev_dbg(&octeon_dev->pci_dev->dev, "Initializing consoles\n"); octeon_device_init() 3621 dev_err(&octeon_dev->pci_dev->dev, "Could not access board consoles\n"); octeon_device_init() 3626 dev_err(&octeon_dev->pci_dev->dev, "Could not access board console\n"); octeon_device_init() 3632 dev_dbg(&octeon_dev->pci_dev->dev, "Loading firmware\n"); octeon_device_init() 3635 dev_err(&octeon_dev->pci_dev->dev, "Could not load firmware to board\n"); octeon_device_init()
|
H A D | octeon_network.h | 158 dma_alloc_coherent(&oct->pci_dev->dev, size, dma_addr, GFP_KERNEL) 160 dma_free_coherent(&oct->pci_dev->dev, size, virt_addr, dma_addr) 170 dma_addr = dma_map_single(&oct->pci_dev->dev, &droq->info_list[i], lio_map_ring_info() 173 BUG_ON(dma_mapping_error(&oct->pci_dev->dev, dma_addr)); lio_map_ring_info() 179 lio_unmap_ring_info(struct pci_dev *pci_dev, lio_unmap_ring_info() argument 182 dma_unmap_single(&pci_dev->dev, info_ptr, size, DMA_FROM_DEVICE); lio_unmap_ring_info() 186 lio_map_ring(struct pci_dev *pci_dev, lio_map_ring() argument 191 dma_addr = dma_map_single(&pci_dev->dev, get_rbd(buf), size, lio_map_ring() 194 BUG_ON(dma_mapping_error(&pci_dev->dev, dma_addr)); lio_map_ring() 200 lio_unmap_ring(struct pci_dev *pci_dev, lio_unmap_ring() argument 203 dma_unmap_single(&pci_dev->dev, lio_unmap_ring()
|
H A D | octeon_droq.c | 158 lio_unmap_ring_info(oct->pci_dev, octeon_droq_destroy_ring_buffers() 162 lio_unmap_ring(oct->pci_dev, octeon_droq_destroy_ring_buffers() 187 dev_err(&oct->pci_dev->dev, "%s buffer alloc failed\n", octeon_droq_setup_ring_buffers() 200 lio_map_ring(oct->pci_dev, octeon_droq_setup_ring_buffers() 216 dev_dbg(&oct->pci_dev->dev, "%s[%d]\n", __func__, q_no); octeon_delete_droq() 222 cnnic_free_aligned_dma(oct->pci_dev, droq->info_list, octeon_delete_droq() 246 dev_dbg(&oct->pci_dev->dev, "%s[%d]\n", __func__, q_no); octeon_init_droq() 275 dev_err(&oct->pci_dev->dev, octeon_init_droq() 280 dev_dbg(&oct->pci_dev->dev, "droq[%d]: desc_ring: virt: 0x%p, dma: %lx\n", octeon_init_droq() 282 dev_dbg(&oct->pci_dev->dev, "droq[%d]: num_desc: %d\n", q_no, octeon_init_droq() 286 cnnic_alloc_aligned_dma(oct->pci_dev, octeon_init_droq() 293 dev_err(&oct->pci_dev->dev, "Cannot allocate memory for info list.\n"); octeon_init_droq() 303 dev_err(&oct->pci_dev->dev, "Output queue recv buf list alloc failed\n"); octeon_init_droq() 313 dev_dbg(&oct->pci_dev->dev, "DROQ INIT: max_empty_descs: %d\n", octeon_init_droq() 378 lio_unmap_ring(octeon_dev->pci_dev, octeon_create_recv_info() 479 lio_map_ring(octeon_dev->pci_dev, octeon_droq_refill() 542 dev_err(&oct->pci_dev->dev, "DROQ: No dispatch function\n"); octeon_droq_dispatch_pkt() 566 dev_err(&oct->pci_dev->dev, "DROQ: In drop: pkt with len 0\n"); octeon_droq_drop_packets() 594 dev_err(&oct->pci_dev->dev, octeon_droq_fast_process_packets() 617 lio_unmap_ring(oct->pci_dev, octeon_droq_fast_process_packets() 648 lio_unmap_ring(oct->pci_dev, octeon_droq_fast_process_packets() 818 dev_err(&oct->pci_dev->dev, "%s: droq id (%d) exceeds MAX (%d)\n", octeon_process_droq_poll_cmd() 873 dev_err(&oct->pci_dev->dev, "%s Unknown command: %d\n", __func__, cmd); octeon_process_droq_poll_cmd() 890 dev_err(&oct->pci_dev->dev, "%s: droq_ops pointer is NULL\n", octeon_register_droq_ops() 896 dev_err(&oct->pci_dev->dev, "%s: droq id (%d) exceeds MAX (%d)\n", octeon_register_droq_ops() 924 dev_err(&oct->pci_dev->dev, "%s: droq id (%d) exceeds MAX (%d)\n", octeon_unregister_droq_ops() 932 dev_info(&oct->pci_dev->dev, octeon_unregister_droq_ops() 954 dev_dbg(&oct->pci_dev->dev, "Droq already in use. Cannot create droq %d again\n", octeon_create_droq() 974 dev_dbg(&oct->pci_dev->dev, "%s: Total number of OQ: %d\n", __func__, octeon_create_droq()
|
H A D | cn68xx_device.c | 51 dev_dbg(&oct->pci_dev->dev, "DPI_DMA_CONTROL: 0x%016llx\n", lio_cn68xx_set_dpi_regs() 61 dev_dbg(&oct->pci_dev->dev, "DPI_ENG_BUF%d: 0x%016llx\n", i, lio_cn68xx_set_dpi_regs() 70 dev_dbg(&oct->pci_dev->dev, "DPI_CTL: 0x%016llx\n", lio_cn68xx_set_dpi_regs() 127 pci_read_config_dword(oct->pci_dev, CN6XXX_PCIE_FLTMSK, &val); lio_cn68xx_vendor_message_fix() 129 pci_write_config_dword(oct->pci_dev, CN6XXX_PCIE_FLTMSK, val); lio_cn68xx_vendor_message_fix() 148 dev_err(&oct->pci_dev->dev, "%s CN68XX BAR1 map failed\n", lio_setup_cn68xx_octeon_device() 184 dev_err(&oct->pci_dev->dev, "%s No Config found for CN68XX %s\n", lio_setup_cn68xx_octeon_device()
|
/linux-4.4.14/drivers/virtio/ |
H A D | virtio_pci_legacy.c | 217 struct pci_dev *pci_dev = vp_dev->pci_dev; virtio_pci_legacy_probe() local 221 if (pci_dev->device < 0x1000 || pci_dev->device > 0x103f) virtio_pci_legacy_probe() 224 if (pci_dev->revision != VIRTIO_PCI_ABI_VERSION) { virtio_pci_legacy_probe() 226 VIRTIO_PCI_ABI_VERSION, pci_dev->revision); virtio_pci_legacy_probe() 230 rc = pci_request_region(pci_dev, 0, "virtio-pci-legacy"); virtio_pci_legacy_probe() 235 vp_dev->ioaddr = pci_iomap(pci_dev, 0, 0); virtio_pci_legacy_probe() 245 vp_dev->vdev.id.vendor = pci_dev->subsystem_vendor; virtio_pci_legacy_probe() 246 vp_dev->vdev.id.device = pci_dev->subsystem_device; virtio_pci_legacy_probe() 257 pci_release_region(pci_dev, 0); virtio_pci_legacy_probe() 263 struct pci_dev *pci_dev = vp_dev->pci_dev; virtio_pci_legacy_remove() local 265 pci_iounmap(pci_dev, vp_dev->ioaddr); virtio_pci_legacy_remove() 266 pci_release_region(pci_dev, 0); virtio_pci_legacy_remove()
|
H A D | virtio_pci_modern.c | 68 static void __iomem *map_capability(struct pci_dev *dev, int off, map_capability() 344 dev_warn(&vp_dev->pci_dev->dev, "bad queue size %u", num); setup_vq() 380 dev_warn(&vp_dev->pci_dev->dev, setup_vq() 391 vq->priv = (void __force *)map_capability(vp_dev->pci_dev, setup_vq() 415 pci_iounmap(vp_dev->pci_dev, (void __iomem __force *)vq->priv); setup_vq() 461 pci_iounmap(vp_dev->pci_dev, (void __force __iomem *)vq->priv); del_vq() 506 static inline int virtio_pci_find_capability(struct pci_dev *dev, u8 cfg_type, virtio_pci_find_capability() 603 struct pci_dev *pci_dev = vp_dev->pci_dev; virtio_pci_modern_probe() local 611 if (pci_dev->device < 0x1000 || pci_dev->device > 0x107f) virtio_pci_modern_probe() 614 if (pci_dev->device < 0x1040) { virtio_pci_modern_probe() 618 vp_dev->vdev.id.device = pci_dev->subsystem_device; virtio_pci_modern_probe() 621 vp_dev->vdev.id.device = pci_dev->device - 0x1040; virtio_pci_modern_probe() 623 vp_dev->vdev.id.vendor = pci_dev->subsystem_vendor; virtio_pci_modern_probe() 626 common = virtio_pci_find_capability(pci_dev, VIRTIO_PCI_CAP_COMMON_CFG, virtio_pci_modern_probe() 630 dev_info(&pci_dev->dev, virtio_pci_modern_probe() 636 isr = virtio_pci_find_capability(pci_dev, VIRTIO_PCI_CAP_ISR_CFG, virtio_pci_modern_probe() 639 notify = virtio_pci_find_capability(pci_dev, VIRTIO_PCI_CAP_NOTIFY_CFG, virtio_pci_modern_probe() 643 dev_err(&pci_dev->dev, virtio_pci_modern_probe() 652 device = virtio_pci_find_capability(pci_dev, VIRTIO_PCI_CAP_DEVICE_CFG, virtio_pci_modern_probe() 656 err = pci_request_selected_regions(pci_dev, vp_dev->modern_bars, virtio_pci_modern_probe() 662 vp_dev->common = map_capability(pci_dev, common, virtio_pci_modern_probe() 668 vp_dev->isr = map_capability(pci_dev, isr, sizeof(u8), 1, virtio_pci_modern_probe() 675 pci_read_config_dword(pci_dev, virtio_pci_modern_probe() 680 pci_read_config_dword(pci_dev, virtio_pci_modern_probe() 685 pci_read_config_dword(pci_dev, virtio_pci_modern_probe() 695 vp_dev->notify_base = map_capability(pci_dev, notify, 2, 2, virtio_pci_modern_probe() 708 vp_dev->device = map_capability(pci_dev, device, 0, 4, virtio_pci_modern_probe() 727 pci_iounmap(pci_dev, vp_dev->notify_base); virtio_pci_modern_probe() 729 pci_iounmap(pci_dev, vp_dev->isr); virtio_pci_modern_probe() 731 pci_iounmap(pci_dev, vp_dev->common); virtio_pci_modern_probe() 738 struct pci_dev *pci_dev = vp_dev->pci_dev; virtio_pci_modern_remove() local 741 pci_iounmap(pci_dev, vp_dev->device); virtio_pci_modern_remove() 743 pci_iounmap(pci_dev, vp_dev->notify_base); virtio_pci_modern_remove() 744 pci_iounmap(pci_dev, vp_dev->isr); virtio_pci_modern_remove() 745 pci_iounmap(pci_dev, vp_dev->common); virtio_pci_modern_remove() 746 pci_release_selected_regions(pci_dev, vp_dev->modern_bars); virtio_pci_modern_remove()
|
H A D | virtio_pci_common.c | 37 synchronize_irq(vp_dev->pci_dev->irq); vp_synchronize_vectors() 111 free_irq(vp_dev->pci_dev->irq, vp_dev); vp_free_vectors() 126 pci_disable_msix(vp_dev->pci_dev); vp_free_vectors() 171 err = pci_enable_msix_exact(vp_dev->pci_dev, vp_request_msix_vectors() 218 err = request_irq(vp_dev->pci_dev->irq, vp_interrupt, vp_request_intx() 401 return pci_name(vp_dev->pci_dev); vp_bus_name() 437 struct pci_dev *pci_dev = to_pci_dev(dev); virtio_pci_freeze() local 438 struct virtio_pci_device *vp_dev = pci_get_drvdata(pci_dev); virtio_pci_freeze() 444 pci_disable_device(pci_dev); virtio_pci_freeze() 450 struct pci_dev *pci_dev = to_pci_dev(dev); virtio_pci_restore() local 451 struct virtio_pci_device *vp_dev = pci_get_drvdata(pci_dev); virtio_pci_restore() 454 ret = pci_enable_device(pci_dev); virtio_pci_restore() 458 pci_set_master(pci_dev); virtio_pci_restore() 487 static int virtio_pci_probe(struct pci_dev *pci_dev, virtio_pci_probe() argument 498 pci_set_drvdata(pci_dev, vp_dev); virtio_pci_probe() 499 vp_dev->vdev.dev.parent = &pci_dev->dev; virtio_pci_probe() 501 vp_dev->pci_dev = pci_dev; virtio_pci_probe() 506 rc = pci_enable_device(pci_dev); virtio_pci_probe() 525 pci_set_master(pci_dev); virtio_pci_probe() 539 pci_disable_device(pci_dev); virtio_pci_probe() 545 static void virtio_pci_remove(struct pci_dev *pci_dev) virtio_pci_remove() argument 547 struct virtio_pci_device *vp_dev = pci_get_drvdata(pci_dev); virtio_pci_remove() 557 pci_disable_device(pci_dev); virtio_pci_remove()
|
/linux-4.4.14/drivers/net/wireless/ |
H A D | atmel_pci.c | 40 static int atmel_pci_probe(struct pci_dev *, const struct pci_device_id *); 41 static void atmel_pci_remove(struct pci_dev *); 51 static int atmel_pci_probe(struct pci_dev *pdev, atmel_pci_probe() 71 static void atmel_pci_remove(struct pci_dev *pdev) atmel_pci_remove()
|
/linux-4.4.14/arch/sparc/lib/ |
H A D | iomap.c | 21 void pci_iounmap(struct pci_dev *dev, void __iomem * addr) pci_iounmap()
|
/linux-4.4.14/arch/powerpc/platforms/powernv/ |
H A D | powernv.h | 10 struct pci_dev; pnv_smp_init()
|
/linux-4.4.14/arch/sparc/include/asm/ |
H A D | leon_pci.h | 16 int (*map_irq)(const struct pci_dev *dev, u8 slot, u8 pin);
|
H A D | pci_32.h | 23 struct pci_dev; 40 static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) pci_get_legacy_ide_irq()
|
H A D | pci_64.h | 48 int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma, 52 static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) pci_get_legacy_ide_irq() 58 void pci_resource_to_user(const struct pci_dev *dev, int bar,
|
/linux-4.4.14/arch/microblaze/pci/ |
H A D | iomap.c | 13 void pci_iounmap(struct pci_dev *dev, void __iomem *addr) pci_iounmap()
|
/linux-4.4.14/arch/cris/include/asm/ |
H A D | pci.h | 22 void pcibios_set_master(struct pci_dev *dev); 24 int pcibios_set_irq_routing(struct pci_dev *dev, int pin, int irq); 36 struct pci_dev; 45 extern int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma,
|
/linux-4.4.14/arch/frv/include/asm/ |
H A D | pci.h | 21 struct pci_dev; 25 extern void pcibios_set_master(struct pci_dev *dev); 35 extern void *pci_alloc_consistent(struct pci_dev *hwdev, size_t size, 38 extern void pci_free_consistent(struct pci_dev *hwdev, size_t size,
|
/linux-4.4.14/arch/frv/mb93090-mb00/ |
H A D | pci-frv.h | 32 void pcibios_enable_irq(struct pci_dev *dev);
|
H A D | pci-irq.c | 45 struct pci_dev *dev = NULL; pcibios_fixup_irqs() 58 void pcibios_enable_irq(struct pci_dev *dev) pcibios_enable_irq()
|
/linux-4.4.14/drivers/staging/comedi/drivers/ |
H A D | amplc_pci236.c | 97 struct pci_dev *pci_dev = comedi_to_pci_dev(dev); pci236_auto_attach() local 103 pci_name(pci_dev)); pci236_auto_attach() 115 devpriv->lcr_iobase = pci_resource_start(pci_dev, 1); pci236_auto_attach() 116 iobase = pci_resource_start(pci_dev, 2); pci236_auto_attach() 117 return amplc_pc236_common_attach(dev, iobase, pci_dev->irq, pci236_auto_attach() 135 static int amplc_pci236_pci_probe(struct pci_dev *dev, amplc_pci236_pci_probe()
|
H A D | amplc_pci263.c | 57 struct pci_dev *pci_dev = comedi_to_pci_dev(dev); pci263_auto_attach() local 65 dev->iobase = pci_resource_start(pci_dev, 2); pci263_auto_attach() 97 static int amplc_pci263_pci_probe(struct pci_dev *dev, amplc_pci263_pci_probe()
|
/linux-4.4.14/arch/cris/arch-v32/drivers/pci/ |
H A D | bios.c | 9 void pcibios_set_master(struct pci_dev *dev) pcibios_set_master() 17 int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma, pci_mmap_page_range() 51 int pcibios_enable_resources(struct pci_dev *dev, int mask) pcibios_enable_resources() 83 int pcibios_enable_irq(struct pci_dev *dev) pcibios_enable_irq() 89 int pcibios_enable_device(struct pci_dev *dev, int mask) pcibios_enable_device()
|
/linux-4.4.14/arch/mn10300/include/asm/ |
H A D | pci.h | 50 void pcibios_set_master(struct pci_dev *dev); 62 struct pci_dev; 71 static inline int pci_controller_num(struct pci_dev *dev) pci_controller_num() 77 extern int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma, 86 static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) pci_get_legacy_ide_irq()
|
/linux-4.4.14/arch/arm/include/asm/mach/ |
H A D | pci.h | 30 u8 (*swizzle)(struct pci_dev *dev, u8 *pin); 31 int (*map_irq)(const struct pci_dev *dev, u8 slot, u8 pin); 32 resource_size_t (*align_resource)(struct pci_dev *dev, 52 u8 (*swizzle)(struct pci_dev *, u8 *); 54 int (*map_irq)(const struct pci_dev *, u8, u8);
|
/linux-4.4.14/drivers/tty/serial/jsm/ |
H A D | jsm_tty.c | 41 jsm_dbg(IOCTL, &ch->ch_bd->pci_dev, "start\n"); jsm_get_mstat() 60 jsm_dbg(IOCTL, &ch->ch_bd->pci_dev, "finish\n"); jsm_get_mstat() 78 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "start\n"); jsm_tty_get_mctrl() 85 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "finish\n"); jsm_tty_get_mctrl() 100 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "start\n"); jsm_tty_set_mctrl() 114 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "finish\n"); jsm_tty_set_mctrl() 136 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "start\n"); jsm_tty_start_tx() 141 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "finish\n"); jsm_tty_start_tx() 149 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "start\n"); jsm_tty_stop_tx() 153 jsm_dbg(IOCTL, &channel->ch_bd->pci_dev, "finish\n"); jsm_tty_stop_tx() 217 jsm_dbg(INIT, &channel->ch_bd->pci_dev, jsm_tty_open() 225 jsm_dbg(INIT, &channel->ch_bd->pci_dev, jsm_tty_open() 235 jsm_dbg(OPEN, &channel->ch_bd->pci_dev, jsm_tty_open() 271 jsm_dbg(OPEN, &channel->ch_bd->pci_dev, "finish\n"); jsm_tty_open() 282 jsm_dbg(CLOSE, &channel->ch_bd->pci_dev, "start\n"); jsm_tty_close() 295 jsm_dbg(CLOSE, &channel->ch_bd->pci_dev, jsm_tty_close() 306 jsm_dbg(CLOSE, &channel->ch_bd->pci_dev, "finish\n"); jsm_tty_close() 382 jsm_dbg(INIT, &brd->pci_dev, "start\n"); jsm_tty_init() 403 jsm_dbg(CORE, &brd->pci_dev, jsm_tty_init() 435 jsm_dbg(INIT, &brd->pci_dev, "finish\n"); jsm_tty_init() 448 jsm_dbg(INIT, &brd->pci_dev, "start\n"); jsm_uart_port_init() 485 jsm_dbg(INIT, &brd->pci_dev, "finish\n"); jsm_uart_port_init() 497 jsm_dbg(INIT, &brd->pci_dev, "start\n"); jsm_remove_uart_port() 517 jsm_dbg(INIT, &brd->pci_dev, "finish\n"); jsm_remove_uart_port() 536 jsm_dbg(READ, &ch->ch_bd->pci_dev, "start\n"); jsm_input() 566 jsm_dbg(READ, &ch->ch_bd->pci_dev, "start\n"); jsm_input() 575 jsm_dbg(READ, &ch->ch_bd->pci_dev, jsm_input() 592 jsm_dbg(READ, &ch->ch_bd->pci_dev, jsm_input() 598 jsm_dbg(READ, &ch->ch_bd->pci_dev, "start 2\n"); jsm_input() 654 jsm_dbg(IOCTL, &ch->ch_bd->pci_dev, "finish\n"); jsm_input() 664 jsm_dbg(CARR, &ch->ch_bd->pci_dev, "start\n"); jsm_carrier() 674 jsm_dbg(CARR, &ch->ch_bd->pci_dev, "mistat: %x D_CD: %x\n", jsm_carrier() 682 jsm_dbg(CARR, &ch->ch_bd->pci_dev, "DCD: physical: %d virt: %d\n", jsm_carrier() 695 jsm_dbg(CARR, &ch->ch_bd->pci_dev, "carrier: virt DCD rose\n"); jsm_carrier() 711 jsm_dbg(CARR, &ch->ch_bd->pci_dev, jsm_carrier() 790 jsm_dbg(READ, &ch->ch_bd->pci_dev, jsm_check_queue_flow_control() 800 jsm_dbg(READ, &ch->ch_bd->pci_dev, jsm_check_queue_flow_control() 828 jsm_dbg(READ, &ch->ch_bd->pci_dev, jsm_check_queue_flow_control() 837 jsm_dbg(READ, &ch->ch_bd->pci_dev, jsm_check_queue_flow_control()
|
H A D | jsm_driver.c | 46 static pci_ers_result_t jsm_io_error_detected(struct pci_dev *pdev, 48 static pci_ers_result_t jsm_io_slot_reset(struct pci_dev *pdev); 49 static void jsm_io_resume(struct pci_dev *pdev); 61 static int jsm_probe_one(struct pci_dev *pdev, const struct pci_device_id *ent) jsm_probe_one() 87 brd->pci_dev = pdev; jsm_probe_one() 133 jsm_dbg(INIT, &brd->pci_dev, jsm_probe_one() 196 jsm_dbg(INIT, &brd->pci_dev, "jsm_found_board - NEO adapter\n"); jsm_probe_one() 271 static void jsm_remove_one(struct pci_dev *pdev) jsm_remove_one() 338 static pci_ers_result_t jsm_io_error_detected(struct pci_dev *pdev, jsm_io_error_detected() 348 static pci_ers_result_t jsm_io_slot_reset(struct pci_dev *pdev) jsm_io_slot_reset() 362 static void jsm_io_resume(struct pci_dev *pdev) jsm_io_resume()
|
/linux-4.4.14/drivers/uwb/ |
H A D | whci.c | 18 struct pci_dev *pci; 30 struct pci_dev *pci_dev = card->pci; whci_capdata_quirks() local 31 if (pci_dev->vendor == PCI_VENDOR_ID_INTEL whci_capdata_quirks() 32 && (pci_dev->device == 0x0c3b || pci_dev->device == 0004) whci_capdata_quirks() 33 && pci_dev->class == 0x0d1010) { whci_capdata_quirks() 47 dev_warn(&pci_dev->dev, whci_capdata_quirks() 50 pci_dev->vendor, pci_dev->device, pci_dev->class, whci_capdata_quirks() 139 static int whci_n_caps(struct pci_dev *pci) whci_n_caps() 153 static int whci_probe(struct pci_dev *pci, const struct pci_device_id *id) whci_probe() 224 static void whci_remove(struct pci_dev *pci) whci_remove()
|
/linux-4.4.14/arch/alpha/include/asm/ |
H A D | pci.h | 16 struct pci_dev; 60 extern void pcibios_set_master(struct pci_dev *dev); 77 static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) pci_get_legacy_ide_irq() 101 extern struct pci_dev *isa_bridge; 114 extern int pci_create_resource_files(struct pci_dev *dev); 115 extern void pci_remove_resource_files(struct pci_dev *dev);
|
/linux-4.4.14/drivers/tty/serial/ |
H A D | m32r_sio.h | 22 int (*pci_init_one)(struct pci_dev *dev); 23 void (*pci_remove_one)(struct pci_dev *dev);
|
/linux-4.4.14/drivers/mtd/nand/ |
H A D | r852.c | 151 pci_unmap_single(dev->pci_dev, dev->phys_dma_addr, R852_DMA_LEN, r852_dma_done() 197 dev->phys_dma_addr = pci_map_single(dev->pci_dev, (void *)buf, r852_do_dma() 201 if (pci_dma_mapping_error(dev->pci_dev, dev->phys_dma_addr)) r852_do_dma() 645 dev->mtd->dev.parent = &dev->pci_dev->dev; r852_register_nand_device() 829 static int r852_probe(struct pci_dev *pci_dev, const struct pci_device_id *id) r852_probe() argument 836 error = pci_enable_device(pci_dev); r852_probe() 841 pci_set_master(pci_dev); r852_probe() 843 error = pci_set_dma_mask(pci_dev, DMA_BIT_MASK(32)); r852_probe() 847 error = pci_request_regions(pci_dev, DRV_NAME); r852_probe() 890 dev->pci_dev = pci_dev; r852_probe() 891 pci_set_drvdata(pci_dev, dev); r852_probe() 893 dev->bounce_buffer = pci_alloc_consistent(pci_dev, R852_DMA_LEN, r852_probe() 901 dev->mmio = pci_ioremap_bar(pci_dev, 0); r852_probe() 927 dev->irq = pci_dev->irq; r852_probe() 935 if (request_irq(pci_dev->irq, &r852_irq, IRQF_SHARED, r852_probe() 952 pci_iounmap(pci_dev, dev->mmio); r852_probe() 954 pci_free_consistent(pci_dev, R852_DMA_LEN, r852_probe() 961 pci_release_regions(pci_dev); r852_probe() 964 pci_disable_device(pci_dev); r852_probe() 969 static void r852_remove(struct pci_dev *pci_dev) r852_remove() argument 971 struct r852_device *dev = pci_get_drvdata(pci_dev); r852_remove() 988 pci_iounmap(pci_dev, dev->mmio); r852_remove() 989 pci_free_consistent(pci_dev, R852_DMA_LEN, r852_remove() 996 pci_release_regions(pci_dev); r852_remove() 997 pci_disable_device(pci_dev); r852_remove() 1000 static void r852_shutdown(struct pci_dev *pci_dev) r852_shutdown() argument 1002 struct r852_device *dev = pci_get_drvdata(pci_dev); r852_shutdown() 1007 pci_disable_device(pci_dev); r852_shutdown()
|
/linux-4.4.14/drivers/net/wireless/orinoco/ |
H A D | orinoco_pci.h | 22 static int orinoco_pci_suspend(struct pci_dev *pdev, pm_message_t state) orinoco_pci_suspend() 35 static int orinoco_pci_resume(struct pci_dev *pdev) orinoco_pci_resume()
|
/linux-4.4.14/drivers/pcmcia/ |
H A D | i82092aa.h | 21 static int i82092aa_pci_probe(struct pci_dev *dev, const struct pci_device_id *id); 22 static void i82092aa_pci_remove(struct pci_dev *dev);
|
/linux-4.4.14/arch/powerpc/kernel/ |
H A D | msi.c | 16 int arch_setup_msi_irqs(struct pci_dev *dev, int nvec, int type) arch_setup_msi_irqs() 33 void arch_teardown_msi_irqs(struct pci_dev *dev) arch_teardown_msi_irqs()
|
H A D | pci_of_scan.c | 69 * @dev: pci_dev structure for the device 72 * device tree node and writes them into the associated pci_dev structure. 74 static void of_pci_parse_addrs(struct device_node *node, struct pci_dev *dev) of_pci_parse_addrs() 119 * of_create_pci_dev - Given a device tree node on a pci bus, create a pci_dev 124 struct pci_dev *of_create_pci_dev(struct device_node *node, of_create_pci_dev() 127 struct pci_dev *dev; of_create_pci_dev() 199 * @dev: pci_dev structure for the bridge 205 void of_scan_pci_bridge(struct pci_dev *dev) of_scan_pci_bridge() 303 static struct pci_dev *of_scan_pci_dev(struct pci_bus *bus, of_scan_pci_dev() 306 struct pci_dev *dev = NULL; of_scan_pci_dev() 335 /* create a new pci_dev for this device */ of_scan_pci_dev() 354 struct pci_dev *dev; __of_scan_bus()
|
/linux-4.4.14/arch/mips/ath79/ |
H A D | pci.h | 25 void ath79_pci_set_plat_dev_init(int (*func)(struct pci_dev *dev)); 31 ath79_pci_set_plat_dev_init(int (*func)(struct pci_dev *)) {} ath79_register_pci()
|
H A D | pci.c | 24 static int (*ath79_pci_plat_dev_init)(struct pci_dev *dev); 67 int __init pcibios_map_irq(const struct pci_dev *dev, uint8_t slot, uint8_t pin) pcibios_map_irq() 87 pci_name((struct pci_dev *) dev)); pcibios_map_irq() 106 pci_name((struct pci_dev *) dev), pin); pcibios_map_irq() 109 pci_name((struct pci_dev *) dev), irq, pin); pcibios_map_irq() 114 int pcibios_plat_dev_init(struct pci_dev *dev) pcibios_plat_dev_init() 129 void __init ath79_pci_set_plat_dev_init(int (*func)(struct pci_dev *dev)) ath79_pci_set_plat_dev_init()
|
/linux-4.4.14/arch/mips/lib/ |
H A D | iomap-pci.c | 13 void __iomem *__pci_ioport_map(struct pci_dev *dev, __pci_ioport_map() 43 void pci_iounmap(struct pci_dev *dev, void __iomem * addr) pci_iounmap()
|
/linux-4.4.14/arch/mn10300/unit-asb2305/ |
H A D | pci-irq.c | 29 struct pci_dev *dev = NULL; pcibios_fixup_irqs() 43 void pcibios_enable_irq(struct pci_dev *dev) pcibios_enable_irq()
|
/linux-4.4.14/arch/arm/include/asm/ |
H A D | pci.h | 35 extern int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma, 38 static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) pci_get_legacy_ide_irq()
|
/linux-4.4.14/arch/arm/mach-footbridge/ |
H A D | cats-pci.c | 19 static u8 cats_no_swizzle(struct pci_dev *dev, u8 *pin) cats_no_swizzle() 24 static int __init cats_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) cats_map_irq()
|
H A D | ebsa285-pci.c | 18 static int __init ebsa285_map_irq(const struct pci_dev *dev, u8 slot, u8 pin) ebsa285_map_irq()
|
/linux-4.4.14/drivers/ssb/ |
H A D | pcihost_wrapper.c | 24 struct pci_dev *dev = to_pci_dev(d); ssb_pcihost_suspend() 45 struct pci_dev *dev = to_pci_dev(d); ssb_pcihost_resume() 67 static int ssb_pcihost_probe(struct pci_dev *dev, ssb_pcihost_probe() 113 static void ssb_pcihost_remove(struct pci_dev *dev) ssb_pcihost_remove()
|
/linux-4.4.14/drivers/media/pci/saa7134/ |
H A D | saa7134-core.c | 235 int saa7134_pgtable_alloc(struct pci_dev *pci, struct saa7134_pgtable *pt) saa7134_pgtable_alloc() 249 int saa7134_pgtable_build(struct pci_dev *pci, struct saa7134_pgtable *pt, saa7134_pgtable_build() 267 void saa7134_pgtable_free(struct pci_dev *pci, struct saa7134_pgtable *pt) saa7134_pgtable_free() 878 static int saa7134_initdev(struct pci_dev *pci_dev, saa7134_initdev() argument 892 err = v4l2_device_register(&pci_dev->dev, &dev->v4l2_dev); saa7134_initdev() 897 dev->pci = pci_dev; saa7134_initdev() 898 if (pci_enable_device(pci_dev)) { saa7134_initdev() 904 sprintf(dev->name,"saa%x[%d]",pci_dev->device,dev->nr); saa7134_initdev() 943 pci_write_config_byte(pci_dev, PCI_LATENCY_TIMER, latency); saa7134_initdev() 947 dev->pci_rev = pci_dev->revision; saa7134_initdev() 948 pci_read_config_byte(pci_dev, PCI_LATENCY_TIMER, &dev->pci_lat); saa7134_initdev() 951 pci_name(pci_dev), dev->pci_rev, pci_dev->irq, saa7134_initdev() 952 dev->pci_lat,(unsigned long long)pci_resource_start(pci_dev,0)); saa7134_initdev() 953 pci_set_master(pci_dev); saa7134_initdev() 954 err = pci_set_dma_mask(pci_dev, DMA_BIT_MASK(32)); saa7134_initdev() 979 dev->name,pci_dev->subsystem_vendor, saa7134_initdev() 980 pci_dev->subsystem_device,saa7134_boards[dev->board].name, saa7134_initdev() 985 if (!request_mem_region(pci_resource_start(pci_dev,0), saa7134_initdev() 986 pci_resource_len(pci_dev,0), saa7134_initdev() 990 dev->name,(unsigned long long)pci_resource_start(pci_dev,0)); saa7134_initdev() 993 dev->lmmio = ioremap(pci_resource_start(pci_dev, 0), saa7134_initdev() 994 pci_resource_len(pci_dev, 0)); saa7134_initdev() 1007 dev->alloc_ctx = vb2_dma_sg_init_ctx(&pci_dev->dev); saa7134_initdev() 1013 err = request_irq(pci_dev->irq, saa7134_irq, saa7134_initdev() 1017 dev->name,pci_dev->irq); saa7134_initdev() 1117 free_irq(pci_dev->irq, dev); saa7134_initdev() 1124 release_mem_region(pci_resource_start(pci_dev,0), saa7134_initdev() 1125 pci_resource_len(pci_dev,0)); saa7134_initdev() 1133 static void saa7134_finidev(struct pci_dev *pci_dev) saa7134_finidev() argument 1135 struct v4l2_device *v4l2_dev = pci_get_drvdata(pci_dev); saa7134_finidev() 1179 free_irq(pci_dev->irq, &dev->dmasound); saa7134_finidev() 1185 free_irq(pci_dev->irq, dev); saa7134_finidev() 1188 release_mem_region(pci_resource_start(pci_dev,0), saa7134_finidev() 1189 pci_resource_len(pci_dev,0)); saa7134_finidev() 1225 static int saa7134_suspend(struct pci_dev *pci_dev , pm_message_t state) saa7134_suspend() 1227 struct v4l2_device *v4l2_dev = pci_get_drvdata(pci_dev); saa7134_suspend() 1239 synchronize_irq(pci_dev->irq); saa7134_suspend() 1256 pci_save_state(pci_dev); saa7134_suspend() 1257 pci_set_power_state(pci_dev, pci_choose_state(pci_dev, state)); saa7134_suspend() 1262 static int saa7134_resume(struct pci_dev *pci_dev) saa7134_resume() argument 1264 struct v4l2_device *v4l2_dev = pci_get_drvdata(pci_dev); saa7134_resume() 1268 pci_set_power_state(pci_dev, PCI_D0); saa7134_resume() 1269 pci_restore_state(pci_dev); saa7134_resume()
|
/linux-4.4.14/drivers/pci/hotplug/ |
H A D | shpchp.h | 65 dev_printk(KERN_DEBUG, &ctrl->pci_dev->dev, \ 69 dev_err(&ctrl->pci_dev->dev, format, ## arg) 71 dev_info(&ctrl->pci_dev->dev, format, ## arg) 73 dev_warn(&ctrl->pci_dev->dev, format, ## arg) 107 struct pci_dev *pci_dev; member in struct:controller 183 int shpc_init(struct controller *ctrl, struct pci_dev *pdev); 192 static inline int get_hp_hw_control_from_firmware(struct pci_dev *dev) get_hp_hw_control_from_firmware() 257 pci_read_config_dword(p_slot->ctrl->pci_dev, PCIX_MISCII_OFFSET, &pcix_misc2_temp); amd_pogo_errata_save_misc_reg() 267 pci_write_config_dword(p_slot->ctrl->pci_dev, PCIX_MISCII_OFFSET, pcix_misc2_temp); amd_pogo_errata_save_misc_reg() 279 pci_read_config_dword(p_slot->ctrl->pci_dev, PCIX_MISC_BRIDGE_ERRORS_OFFSET, &pcix_bridge_errors_reg); amd_pogo_errata_restore_misc_reg() 286 pci_write_config_dword(p_slot->ctrl->pci_dev, PCIX_MISC_BRIDGE_ERRORS_OFFSET, perr_set); amd_pogo_errata_restore_misc_reg() 290 pci_read_config_dword(p_slot->ctrl->pci_dev, PCIX_MEM_BASE_LIMIT_OFFSET, &pcix_mem_base_reg); amd_pogo_errata_restore_misc_reg() 295 pci_write_config_dword(p_slot->ctrl->pci_dev, PCIX_MEM_BASE_LIMIT_OFFSET, rse_set); amd_pogo_errata_restore_misc_reg() 298 pci_read_config_dword(p_slot->ctrl->pci_dev, PCIX_MISCII_OFFSET, &pcix_misc2_temp ); amd_pogo_errata_restore_misc_reg() 324 pci_write_config_dword(p_slot->ctrl->pci_dev, PCIX_MISCII_OFFSET, pcix_misc2_temp); amd_pogo_errata_restore_misc_reg()
|
H A D | shpchp_pci.c | 39 struct pci_dev *dev; shpchp_configure_device() 41 struct pci_dev *bridge = ctrl->pci_dev; shpchp_configure_device() 84 struct pci_bus *parent = p_slot->ctrl->pci_dev->subordinate; shpchp_unconfigure_device() 85 struct pci_dev *dev, *temp; shpchp_unconfigure_device()
|
H A D | shpchp_sysfs.c | 40 struct pci_dev *pdev; show_ctrl() 46 pdev = container_of (dev, struct pci_dev, dev); show_ctrl() 90 return device_create_file (&ctrl->pci_dev->dev, &dev_attr_ctrl); shpchp_create_ctrl_files() 95 device_remove_file(&ctrl->pci_dev->dev, &dev_attr_ctrl); shpchp_remove_ctrl_files()
|
/linux-4.4.14/drivers/net/ethernet/sfc/ |
H A D | ef10_sriov.h | 18 * @pci_dev: the pci_dev struct for the VF, retained while the VF is assigned 26 struct pci_dev *pci_dev; member in struct:ef10_vf
|
/linux-4.4.14/drivers/dma/dw/ |
H A D | pci.c | 18 static int dw_pci_probe(struct pci_dev *pdev, const struct pci_device_id *pid) dw_pci_probe() 62 static void dw_pci_remove(struct pci_dev *pdev) dw_pci_remove() 76 struct pci_dev *pci = to_pci_dev(dev); dw_pci_suspend_late() 84 struct pci_dev *pci = to_pci_dev(dev); dw_pci_resume_early()
|
/linux-4.4.14/arch/sh/drivers/pci/ |
H A D | fixups-r7780rp.c | 18 int __init pcibios_map_platform_irq(const struct pci_dev *pdev, u8 slot, u8 pin) pcibios_map_platform_irq()
|
H A D | fixups-sh03.c | 7 int __init pcibios_map_platform_irq(const struct pci_dev *dev, u8 slot, u8 pin) pcibios_map_platform_irq()
|
/linux-4.4.14/drivers/vme/boards/ |
H A D | vme_vmivme7805.c | 22 static int vmic_probe(struct pci_dev *, const struct pci_device_id *); 23 static void vmic_remove(struct pci_dev *); 42 static int vmic_probe(struct pci_dev *pdev, const struct pci_device_id *id) vmic_probe() 97 static void vmic_remove(struct pci_dev *pdev) vmic_remove()
|
/linux-4.4.14/drivers/staging/comedi/ |
H A D | comedi_pci.h | 37 struct pci_dev *comedi_to_pci_dev(struct comedi_device *); 43 int comedi_pci_auto_config(struct pci_dev *, struct comedi_driver *, 45 void comedi_pci_auto_unconfig(struct pci_dev *);
|
H A D | comedi_pci.c | 29 * a &struct device embedded in a &struct pci_dev. 34 struct pci_dev *comedi_to_pci_dev(struct comedi_device *dev) comedi_to_pci_dev() 45 * a &struct device embedded in a &struct pci_dev. Enable the PCI device 60 struct pci_dev *pcidev = comedi_to_pci_dev(dev); comedi_pci_enable() 85 * a &struct device embedded in a &struct pci_dev. If the earlier call 91 struct pci_dev *pcidev = comedi_to_pci_dev(dev); comedi_pci_disable() 117 struct pci_dev *pcidev = comedi_to_pci_dev(dev); comedi_pci_detach() 149 int comedi_pci_auto_config(struct pci_dev *pcidev, comedi_pci_auto_config() 171 void comedi_pci_auto_unconfig(struct pci_dev *pcidev) comedi_pci_auto_unconfig()
|
/linux-4.4.14/drivers/ide/ |
H A D | rz1000.c | 25 static int rz1000_disable_readahead(struct pci_dev *dev) rz1000_disable_readahead() 46 static int rz1000_init_one(struct pci_dev *dev, const struct pci_device_id *id) rz1000_init_one() 63 static void rz1000_remove(struct pci_dev *dev) rz1000_remove()
|
H A D | cy82c693.c | 85 struct pci_dev *dev = to_pci_dev(hwif->dev); cy82c693_set_pio_mode() 151 struct pci_dev *dev = to_pci_dev(hwif->dev); init_iops_cy82c693() 176 static int cy82c693_init_one(struct pci_dev *dev, cy82c693_init_one() 179 struct pci_dev *dev2; cy82c693_init_one() 194 static void cy82c693_remove(struct pci_dev *dev) cy82c693_remove() 197 struct pci_dev *dev2 = host->dev[1] ? to_pci_dev(host->dev[1]) : NULL; cy82c693_remove()
|
H A D | serverworks.c | 67 struct pci_dev *dev = to_pci_dev(drive->hwif->dev); svwks_udma_filter() 95 static u8 svwks_csb_check (struct pci_dev *dev) svwks_csb_check() 114 struct pci_dev *dev = to_pci_dev(hwif->dev); svwks_set_pio_mode() 137 struct pci_dev *dev = to_pci_dev(hwif->dev); svwks_set_dma_mode() 161 static int init_chipset_svwks(struct pci_dev *dev) init_chipset_svwks() 171 struct pci_dev *isa_dev = init_chipset_svwks() 193 struct pci_dev * findev = NULL; init_chipset_svwks() 208 struct pci_dev * findev = NULL; init_chipset_svwks() 275 struct pci_dev *dev = to_pci_dev(hwif->dev); ata66_svwks_dell() 294 struct pci_dev *dev = to_pci_dev(hwif->dev); ata66_svwks_cobalt() 306 struct pci_dev *dev = to_pci_dev(hwif->dev); svwks_cable_detect() 394 static int svwks_init_one(struct pci_dev *dev, const struct pci_device_id *id) svwks_init_one()
|
H A D | sl82c105.c | 68 struct pci_dev *dev = to_pci_dev(hwif->dev); sl82c105_set_pio_mode() 115 struct pci_dev *dev = to_pci_dev(hwif->dev); sl82c105_test_irq() 131 static inline void sl82c105_reset_host(struct pci_dev *dev) sl82c105_reset_host() 150 struct pci_dev *dev = to_pci_dev(hwif->dev); sl82c105_dma_lost_irq() 188 struct pci_dev *dev = to_pci_dev(hwif->dev); sl82c105_dma_start() 200 struct pci_dev *dev = to_pci_dev(drive->hwif->dev); sl82c105_dma_clear() 207 struct pci_dev *dev = to_pci_dev(drive->hwif->dev); sl82c105_dma_end() 223 struct pci_dev *dev = to_pci_dev(drive->hwif->dev); sl82c105_resetproc() 235 static u8 sl82c105_bridge_revision(struct pci_dev *dev) sl82c105_bridge_revision() 237 struct pci_dev *bridge; sl82c105_bridge_revision() 272 static int init_chipset_sl82c105(struct pci_dev *dev) init_chipset_sl82c105() 316 static int sl82c105_init_one(struct pci_dev *dev, const struct pci_device_id *id) sl82c105_init_one()
|
/linux-4.4.14/drivers/crypto/ccp/ |
H A D | ccp-pci.c | 47 struct pci_dev *pdev = container_of(dev, struct pci_dev, dev); ccp_get_msix_irqs() 89 struct pci_dev *pdev = container_of(dev, struct pci_dev, dev); ccp_get_msi_irq() 136 struct pci_dev *pdev = container_of(dev, struct pci_dev, dev); ccp_free_irqs() 152 struct pci_dev *pdev = container_of(dev, struct pci_dev, dev); ccp_find_mmio_area() 164 static int ccp_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id) ccp_pci_probe() 246 static void ccp_pci_remove(struct pci_dev *pdev) ccp_pci_remove() 266 static int ccp_pci_suspend(struct pci_dev *pdev, pm_message_t state) ccp_pci_suspend() 291 static int ccp_pci_resume(struct pci_dev *pdev) ccp_pci_resume()
|
/linux-4.4.14/drivers/gpu/drm/bochs/ |
H A D | bochs_drv.c | 104 struct pci_dev *pdev = to_pci_dev(dev); bochs_pm_suspend() 121 struct pci_dev *pdev = to_pci_dev(dev); bochs_pm_resume() 146 static int bochs_kick_out_firmware_fb(struct pci_dev *pdev) bochs_kick_out_firmware_fb() 162 static int bochs_pci_probe(struct pci_dev *pdev, bochs_pci_probe() 174 static void bochs_pci_remove(struct pci_dev *pdev) bochs_pci_remove()
|
/linux-4.4.14/drivers/gpu/drm/cirrus/ |
H A D | cirrus_drv.c | 44 static int cirrus_kick_out_firmware_fb(struct pci_dev *pdev) cirrus_kick_out_firmware_fb() 65 static int cirrus_pci_probe(struct pci_dev *pdev, cirrus_pci_probe() 77 static void cirrus_pci_remove(struct pci_dev *pdev) cirrus_pci_remove() 87 struct pci_dev *pdev = to_pci_dev(dev); cirrus_pm_suspend() 104 struct pci_dev *pdev = to_pci_dev(dev); cirrus_pm_resume()
|
/linux-4.4.14/arch/sh/include/asm/ |
H A D | pci.h | 66 struct pci_dev; 69 extern int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma, 71 extern void pcibios_set_master(struct pci_dev *dev); 92 int pcibios_map_platform_irq(const struct pci_dev *dev, u8 slot, u8 pin); 103 static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) pci_get_legacy_ide_irq()
|
/linux-4.4.14/drivers/parisc/ |
H A D | ccio-rm-dma.c | 69 static int ccio_dma_supported( struct pci_dev *dev, u64 mask) ccio_dma_supported() 82 static void *ccio_alloc_consistent(struct pci_dev *dev, size_t size, ccio_alloc_consistent() 96 static void ccio_free_consistent(struct pci_dev *dev, size_t size, ccio_free_consistent() 102 static dma_addr_t ccio_map_single(struct pci_dev *dev, void *ptr, size_t size, ccio_map_single() 108 static void ccio_unmap_single(struct pci_dev *dev, dma_addr_t dma_addr, ccio_unmap_single() 115 static int ccio_map_sg(struct pci_dev *dev, struct scatterlist *sglist, int nents, int direction) ccio_map_sg() 131 static void ccio_unmap_sg(struct pci_dev *dev, struct scatterlist *sglist, int nents, int direction) ccio_unmap_sg()
|
/linux-4.4.14/drivers/gpu/drm/ast/ |
H A D | ast_drv.c | 63 static int ast_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) ast_pci_probe() 69 ast_pci_remove(struct pci_dev *pdev) ast_pci_remove() 122 struct pci_dev *pdev = to_pci_dev(dev); ast_pm_suspend() 136 struct pci_dev *pdev = to_pci_dev(dev); ast_pm_resume() 143 struct pci_dev *pdev = to_pci_dev(dev); ast_pm_freeze() 154 struct pci_dev *pdev = to_pci_dev(dev); ast_pm_thaw() 161 struct pci_dev *pdev = to_pci_dev(dev); ast_pm_poweroff()
|
/linux-4.4.14/arch/mips/include/asm/ |
H A D | pci.h | 62 extern int pcibios_map_irq(const struct pci_dev *dev, u8 slot, u8 pin); 76 extern void pcibios_set_master(struct pci_dev *dev); 80 extern int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma, 85 static inline void pci_resource_to_user(const struct pci_dev *dev, int bar, pci_resource_to_user() 107 struct pci_dev; 132 extern int pcibios_plat_dev_init(struct pci_dev *dev); 135 static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) pci_get_legacy_ide_irq()
|
/linux-4.4.14/drivers/ata/ |
H A D | pata_serverworks.c | 69 struct pci_dev *pdev = to_pci_dev(ap->host->dev); oem_cable() 104 struct pci_dev *pdev = to_pci_dev(ap->host->dev); serverworks_cable_detect() 128 static u8 serverworks_is_csb(struct pci_dev *pdev) serverworks_is_csb() 202 struct pci_dev *pdev = to_pci_dev(ap->host->dev); serverworks_set_piomode() 233 struct pci_dev *pdev = to_pci_dev(ap->host->dev); serverworks_set_dmamode() 278 static int serverworks_fixup_osb4(struct pci_dev *pdev) serverworks_fixup_osb4() 281 struct pci_dev *isa_dev = pci_get_device(PCI_VENDOR_ID_SERVERWORKS, serverworks_fixup_osb4() 297 static int serverworks_fixup_csb(struct pci_dev *pdev) serverworks_fixup_csb() 303 struct pci_dev * findev = NULL; serverworks_fixup_csb() 316 struct pci_dev * findev = NULL; serverworks_fixup_csb() 348 static void serverworks_fixup_ht1000(struct pci_dev *pdev) serverworks_fixup_ht1000() 358 static int serverworks_fixup(struct pci_dev *pdev) serverworks_fixup() 384 static int serverworks_init_one(struct pci_dev *pdev, const struct pci_device_id *id) serverworks_init_one() 449 static int serverworks_reinit_one(struct pci_dev *pdev) serverworks_reinit_one()
|
/linux-4.4.14/drivers/mtd/maps/ |
H A D | pci.c | 26 int (*init)(struct pci_dev *dev, struct map_pci_info *map); 27 void (*exit)(struct pci_dev *dev, struct map_pci_info *map); 35 void (*exit)(struct pci_dev *dev, struct map_pci_info *map); 37 struct pci_dev *dev; 91 intel_iq80310_init(struct pci_dev *dev, struct map_pci_info *map) intel_iq80310_init() 119 intel_iq80310_exit(struct pci_dev *dev, struct map_pci_info *map) intel_iq80310_exit() 159 intel_dc21285_init(struct pci_dev *dev, struct map_pci_info *map) intel_dc21285_init() 203 intel_dc21285_exit(struct pci_dev *dev, struct map_pci_info *map) intel_dc21285_exit() 255 static int mtd_pci_probe(struct pci_dev *dev, const struct pci_device_id *id) mtd_pci_probe() 308 static void mtd_pci_remove(struct pci_dev *dev) mtd_pci_remove()
|
/linux-4.4.14/arch/powerpc/platforms/ |
H A D | fsl_uli1575.c | 62 static void early_uli5249(struct pci_dev *dev) early_uli5249() 85 static void quirk_uli1575(struct pci_dev *dev) quirk_uli1575() 142 static void quirk_final_uli1575(struct pci_dev *dev) quirk_final_uli1575() 178 static void quirk_uli5288(struct pci_dev *dev) quirk_uli5288() 203 static void quirk_uli5229(struct pci_dev *dev) quirk_uli5229() 219 static void quirk_final_uli5249(struct pci_dev *dev) quirk_final_uli5249() 256 static void hpcd_quirk_uli1575(struct pci_dev *dev) hpcd_quirk_uli1575() 272 static void hpcd_quirk_uli5288(struct pci_dev *dev) hpcd_quirk_uli5288() 298 static void hpcd_quirk_uli5229(struct pci_dev *dev) hpcd_quirk_uli5229() 320 static void hpcd_final_uli5288(struct pci_dev *dev) hpcd_final_uli5288()
|
/linux-4.4.14/drivers/crypto/qat/qat_dh895xccvf/ |
H A D | adf_drv.c | 78 static int adf_probe(struct pci_dev *dev, const struct pci_device_id *ent); 79 static void adf_remove(struct pci_dev *dev); 90 pci_release_regions(accel_dev->accel_pci_dev.pci_dev); adf_cleanup_pci_dev() 91 pci_disable_device(accel_dev->accel_pci_dev.pci_dev); adf_cleanup_pci_dev() 104 pci_iounmap(accel_pci_dev->pci_dev, bar->virt_addr); adf_cleanup_accel() 108 switch (accel_pci_dev->pci_dev->device) { adf_cleanup_accel() 120 pf = adf_devmgr_pci_to_accel_dev(accel_pci_dev->pci_dev->physfn); adf_cleanup_accel() 201 static int adf_probe(struct pci_dev *pdev, const struct pci_device_id *ent) adf_probe() 227 accel_pci_dev->pci_dev = pdev; adf_probe() 314 bar->virt_addr = pci_iomap(accel_pci_dev->pci_dev, bar_nr, 0); adf_probe() 344 pci_release_regions(accel_pci_dev->pci_dev); adf_probe() 346 pci_disable_device(accel_pci_dev->pci_dev); adf_probe() 353 static void adf_remove(struct pci_dev *pdev) adf_remove()
|
/linux-4.4.14/drivers/i2c/busses/ |
H A D | i2c-i801.c | 227 struct pci_dev *pci_dev; member in struct:i801_priv 282 dev_err(&priv->pci_dev->dev, "SMBus is busy, can't use it!\n"); i801_check_pre() 288 dev_dbg(&priv->pci_dev->dev, "Clearing status flags (%02x)\n", i801_check_pre() 293 dev_err(&priv->pci_dev->dev, i801_check_pre() 319 dev_err(&priv->pci_dev->dev, "Transaction timeout\n"); i801_check_post() 321 dev_dbg(&priv->pci_dev->dev, "Terminating the current operation\n"); i801_check_post() 332 dev_err(&priv->pci_dev->dev, i801_check_post() 340 dev_err(&priv->pci_dev->dev, "Transaction failed\n"); i801_check_post() 344 dev_dbg(&priv->pci_dev->dev, "No response\n"); i801_check_post() 348 dev_dbg(&priv->pci_dev->dev, "Lost arbitration\n"); i801_check_post() 372 dev_dbg(&priv->pci_dev->dev, "INTR Timeout!\n"); i801_wait_intr() 392 dev_dbg(&priv->pci_dev->dev, "BYTE_DONE Timeout!\n"); i801_wait_byte_done() 416 dev_warn(&priv->pci_dev->dev, i801_transaction() 473 dev_err(&priv->pci_dev->dev, i801_isr_byte_done() 479 dev_dbg(&priv->pci_dev->dev, i801_isr_byte_done() 490 dev_dbg(&priv->pci_dev->dev, i801_isr_byte_done() 527 pci_read_config_word(priv->pci_dev, SMBPCISTS, &pcists); i801_isr() 597 dev_warn(&priv->pci_dev->dev, i801_block_transaction_byte_by_byte() 621 dev_err(&priv->pci_dev->dev, i801_block_transaction_byte_by_byte() 669 pci_read_config_byte(priv->pci_dev, SMBHSTCFG, &hostc); i801_block_transaction() 670 pci_write_config_byte(priv->pci_dev, SMBHSTCFG, i801_block_transaction() 673 dev_err(&priv->pci_dev->dev, i801_block_transaction() 705 pci_write_config_byte(priv->pci_dev, SMBHSTCFG, hostc); i801_block_transaction() 774 dev_err(&priv->pci_dev->dev, "Unsupported transaction %d\n", i801_access() 1172 struct pci_dev *pci_dev = priv->pci_dev; i801_add_tco() local 1183 pci_read_config_dword(pci_dev, TCOBASE, &tco_base); i801_add_tco() 1184 pci_read_config_dword(pci_dev, TCOCTL, &tco_ctl); i801_add_tco() 1198 devfn = PCI_DEVFN(PCI_SLOT(pci_dev->devfn), 2); i801_add_tco() 1199 pci_bus_read_config_dword(pci_dev->bus, devfn, ACPIBASE, &base_addr); i801_add_tco() 1209 pci_bus_read_config_dword(pci_dev->bus, devfn, ACPICTRL, &ctrl_val); i801_add_tco() 1211 pci_bus_write_config_dword(pci_dev->bus, devfn, ACPICTRL, ctrl_val); i801_add_tco() 1221 devfn = PCI_DEVFN(PCI_SLOT(pci_dev->devfn), 1); i801_add_tco() 1224 pci_bus_write_config_byte(pci_dev->bus, devfn, 0xe1, 0x0); i801_add_tco() 1226 pci_bus_read_config_dword(pci_dev->bus, devfn, SBREG_BAR, &base_addr); i801_add_tco() 1229 pci_bus_read_config_dword(pci_dev->bus, devfn, SBREG_BAR + 0x4, &base_addr); i801_add_tco() 1233 pci_bus_write_config_byte(pci_dev->bus, devfn, 0xe1, 0x1); i801_add_tco() 1241 pdev = platform_device_register_resndata(&pci_dev->dev, "iTCO_wdt", -1, i801_add_tco() 1245 dev_warn(&pci_dev->dev, "failed to create iTCO device\n"); i801_add_tco() 1252 static int i801_probe(struct pci_dev *dev, const struct pci_device_id *id) i801_probe() 1270 priv->pci_dev = dev; i801_probe() 1346 pci_read_config_byte(priv->pci_dev, SMBHSTCFG, &temp); i801_probe() 1353 pci_write_config_byte(priv->pci_dev, SMBHSTCFG, temp); i801_probe() 1373 pci_read_config_word(priv->pci_dev, SMBPCISTS, &pcists); i801_probe() 1378 pci_read_config_word(priv->pci_dev, SMBPCICTL, &pcictl); i801_probe() 1419 static void i801_remove(struct pci_dev *dev) i801_remove() 1436 static int i801_suspend(struct pci_dev *dev, pm_message_t mesg) i801_suspend() 1446 static int i801_resume(struct pci_dev *dev) i801_resume()
|
/linux-4.4.14/arch/powerpc/sysdev/ |
H A D | mpic_u3msi.c | 22 /* A bit ugly, can we get this from the pci_dev somehow? */ 47 static u64 read_ht_magic_addr(struct pci_dev *pdev, unsigned int pos) read_ht_magic_addr() 66 static u64 find_ht_magic_addr(struct pci_dev *pdev, unsigned int hwirq) find_ht_magic_addr() 80 static u64 find_u4_magic_addr(struct pci_dev *pdev, unsigned int hwirq) find_u4_magic_addr() 107 static void u3msi_teardown_msi_irqs(struct pci_dev *pdev) u3msi_teardown_msi_irqs() 125 static int u3msi_setup_msi_irqs(struct pci_dev *pdev, int nvec, int type) u3msi_setup_msi_irqs()
|
/linux-4.4.14/drivers/media/pci/cx18/ |
H A D | cx18-driver.c | 658 if (cx->pci_dev->subsystem_vendor == CX18_PCI_ID_HAUPPAUGE) { cx18_process_options() 668 if (cx->pci_dev->device != cx18_process_options() 671 if (cx->pci_dev->subsystem_vendor != cx18_process_options() 674 if (cx->pci_dev->subsystem_device != cx18_process_options() 687 cx->pci_dev->vendor, cx->pci_dev->device); cx18_process_options() 689 cx->pci_dev->subsystem_vendor, cx18_process_options() 690 cx->pci_dev->subsystem_device); cx18_process_options() 732 cx->base_addr = pci_resource_start(cx->pci_dev, 0); cx18_init_struct1() 810 static int cx18_setup_pci(struct cx18 *cx, struct pci_dev *pci_dev, cx18_setup_pci() argument 818 if (pci_enable_device(pci_dev)) { cx18_setup_pci() 822 if (pci_set_dma_mask(pci_dev, DMA_BIT_MASK(32))) { cx18_setup_pci() 833 pci_read_config_word(pci_dev, PCI_COMMAND, &cmd); cx18_setup_pci() 835 pci_write_config_word(pci_dev, PCI_COMMAND, cmd); cx18_setup_pci() 837 cx->card_rev = pci_dev->revision; cx18_setup_pci() 838 pci_read_config_byte(pci_dev, PCI_LATENCY_TIMER, &pci_latency); cx18_setup_pci() 843 pci_write_config_byte(pci_dev, PCI_LATENCY_TIMER, 64); cx18_setup_pci() 844 pci_read_config_byte(pci_dev, PCI_LATENCY_TIMER, &pci_latency); cx18_setup_pci() 849 cx->pci_dev->device, cx->card_rev, pci_dev->bus->number, cx18_setup_pci() 850 PCI_SLOT(pci_dev->devfn), PCI_FUNC(pci_dev->devfn), cx18_setup_pci() 851 cx->pci_dev->irq, pci_latency, (u64)cx->base_addr); cx18_setup_pci() 902 static int cx18_probe(struct pci_dev *pci_dev, cx18_probe() argument 924 cx->pci_dev = pci_dev; cx18_probe() 927 retval = v4l2_device_register(&pci_dev->dev, &cx->v4l2_dev); cx18_probe() 951 retval = cx18_setup_pci(cx, pci_dev, pci_id); cx18_probe() 1040 retval = request_irq(cx->pci_dev->irq, cx18_irq_handler, cx18_probe() 1139 free_irq(cx->pci_dev->irq, (void *)cx); cx18_probe() 1273 static void cx18_remove(struct pci_dev *pci_dev) cx18_remove() argument 1275 struct v4l2_device *v4l2_dev = pci_get_drvdata(pci_dev); cx18_remove() 1306 free_irq(cx->pci_dev->irq, (void *)cx); cx18_remove() 1312 pci_disable_device(cx->pci_dev); cx18_remove()
|
/linux-4.4.14/drivers/crypto/qat/qat_dh895xcc/ |
H A D | adf_drv.c | 78 static int adf_probe(struct pci_dev *dev, const struct pci_device_id *ent); 79 static void adf_remove(struct pci_dev *dev); 91 pci_release_regions(accel_dev->accel_pci_dev.pci_dev); adf_cleanup_pci_dev() 92 pci_disable_device(accel_dev->accel_pci_dev.pci_dev); adf_cleanup_pci_dev() 104 pci_iounmap(accel_pci_dev->pci_dev, bar->virt_addr); adf_cleanup_accel() 108 switch (accel_pci_dev->pci_dev->device) { adf_cleanup_accel() 204 static int adf_probe(struct pci_dev *pdev, const struct pci_device_id *ent) adf_probe() 236 accel_pci_dev->pci_dev = pdev; adf_probe() 339 bar->virt_addr = pci_iomap(accel_pci_dev->pci_dev, bar_nr, 0); adf_probe() 379 pci_release_regions(accel_pci_dev->pci_dev); adf_probe() 381 pci_disable_device(accel_pci_dev->pci_dev); adf_probe() 388 static void adf_remove(struct pci_dev *pdev) adf_remove()
|
/linux-4.4.14/drivers/gpu/drm/mgag200/ |
H A D | mgag200_drv.c | 44 static void mgag200_kick_out_firmware_fb(struct pci_dev *pdev) mgag200_kick_out_firmware_fb() 64 static int mga_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) mga_pci_probe() 71 static void mga_pci_remove(struct pci_dev *pdev) mga_pci_remove()
|
/linux-4.4.14/drivers/gpu/drm/nouveau/ |
H A D | nouveau_vga.c | 35 nouveau_switcheroo_set_state(struct pci_dev *pdev, nouveau_switcheroo_set_state() 60 nouveau_switcheroo_reprobe(struct pci_dev *pdev) nouveau_switcheroo_reprobe() 67 nouveau_switcheroo_can_switch(struct pci_dev *pdev) nouveau_switcheroo_can_switch()
|
/linux-4.4.14/arch/ia64/include/asm/ |
H A D | pci.h | 34 struct pci_dev; 56 extern int pci_mmap_page_range (struct pci_dev *dev, struct vm_area_struct *vma, 88 static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) pci_get_legacy_ide_irq()
|
/linux-4.4.14/sound/pci/au88x0/ |
H A D | au88x0.c | 47 static void vortex_fix_latency(struct pci_dev *vortex) vortex_fix_latency() 58 static void vortex_fix_agp_bridge(struct pci_dev *via) vortex_fix_agp_bridge() 79 static void snd_vortex_workaround(struct pci_dev *vortex, int fix) snd_vortex_workaround() 81 struct pci_dev *via = NULL; snd_vortex_workaround() 130 pci_release_regions(vortex->pci_dev); snd_vortex_dev_free() 131 pci_disable_device(vortex->pci_dev); snd_vortex_dev_free() 140 snd_vortex_create(struct snd_card *card, struct pci_dev *pci, vortex_t ** rchip) snd_vortex_create() 169 chip->pci_dev = pci; snd_vortex_create() 224 pci_release_regions(chip->pci_dev); snd_vortex_create() 226 pci_disable_device(chip->pci_dev); snd_vortex_create() 235 snd_vortex_probe(struct pci_dev *pci, const struct pci_device_id *pci_id) snd_vortex_probe() 369 static void snd_vortex_remove(struct pci_dev *pci) snd_vortex_remove()
|
/linux-4.4.14/drivers/spi/ |
H A D | spi-dw-pci.c | 44 static int spi_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) spi_pci_probe() 99 static void spi_pci_remove(struct pci_dev *pdev) spi_pci_remove() 109 struct pci_dev *pdev = to_pci_dev(dev); spi_suspend() 117 struct pci_dev *pdev = to_pci_dev(dev); spi_resume()
|
/linux-4.4.14/drivers/irqchip/ |
H A D | irq-gic-v3-its-pci-msi.c | 44 struct pci_dev *pdev; 48 static int its_pci_msi_vec_count(struct pci_dev *pdev) its_pci_msi_vec_count() 58 static int its_get_pci_alias(struct pci_dev *pdev, u16 alias, void *data) its_get_pci_alias() 71 struct pci_dev *pdev; its_pci_msi_prepare()
|
/linux-4.4.14/drivers/misc/mei/ |
H A D | pci-txe.c | 54 static void mei_txe_pci_iounmap(struct pci_dev *pdev, struct mei_txe_hw *hw) mei_txe_pci_iounmap() 73 static int mei_txe_probe(struct pci_dev *pdev, const struct pci_device_id *ent) mei_txe_probe() 203 static void mei_txe_remove(struct pci_dev *pdev) mei_txe_remove() 244 struct pci_dev *pdev = to_pci_dev(device); mei_txe_pci_suspend() 264 struct pci_dev *pdev = to_pci_dev(device); mei_txe_pci_resume() 302 struct pci_dev *pdev = to_pci_dev(device); mei_txe_pm_runtime_idle() 317 struct pci_dev *pdev = to_pci_dev(device); mei_txe_pm_runtime_suspend() 352 struct pci_dev *pdev = to_pci_dev(device); mei_txe_pm_runtime_resume() 382 struct pci_dev *pdev = to_pci_dev(dev->dev); mei_txe_set_pm_domain()
|
/linux-4.4.14/drivers/hwmon/ |
H A D | i5500_temp.c | 49 struct pci_dev *pdev = to_pci_dev(dev->parent); show_temp() 64 struct pci_dev *pdev = to_pci_dev(dev->parent); show_thresh() 78 struct pci_dev *pdev = to_pci_dev(dev->parent); show_alarm() 112 static int i5500_temp_probe(struct pci_dev *pdev, i5500_temp_probe()
|
/linux-4.4.14/drivers/misc/cxl/ |
H A D | vphb.c | 14 static int cxl_dma_set_mask(struct pci_dev *pdev, u64 dma_mask) cxl_dma_set_mask() 30 static int cxl_setup_msi_irqs(struct pci_dev *pdev, int nvec, int type) cxl_setup_msi_irqs() 35 static void cxl_teardown_msi_irqs(struct pci_dev *pdev) cxl_teardown_msi_irqs() 43 static bool cxl_pci_enable_device_hook(struct pci_dev *dev) cxl_pci_enable_device_hook() 72 static void cxl_pci_disable_device(struct pci_dev *dev) cxl_pci_disable_device() 92 static void cxl_pci_reset_secondary_bus(struct pci_dev *dev) cxl_pci_reset_secondary_bus() 234 struct pci_dev *phys_dev; cxl_pci_vphb_add() 299 struct cxl_afu *cxl_pci_to_afu(struct pci_dev *dev) cxl_pci_to_afu() 309 unsigned int cxl_pci_to_cfg_record(struct pci_dev *dev) cxl_pci_to_cfg_record()
|
/linux-4.4.14/drivers/net/ethernet/broadcom/bnxt/ |
H A D | bnxt_sriov.h | 19 int bnxt_sriov_configure(struct pci_dev *pdev, int num_vfs);
|
/linux-4.4.14/arch/unicore32/include/asm/ |
H A D | pci.h | 22 extern int pci_mmap_page_range(struct pci_dev *dev, struct vm_area_struct *vma,
|
/linux-4.4.14/arch/powerpc/platforms/44x/ |
H A D | virtex_ml510.c | 8 static void ml510_ali_quirk(struct pci_dev *dev) ml510_ali_quirk()
|
/linux-4.4.14/arch/arm/mm/ |
H A D | iomap.c | 35 void pci_iounmap(struct pci_dev *dev, void __iomem *addr) pci_iounmap()
|
/linux-4.4.14/arch/arm64/include/asm/ |
H A D | pci.h | 30 static inline int pci_get_legacy_ide_irq(struct pci_dev *dev, int channel) pci_get_legacy_ide_irq()
|
/linux-4.4.14/arch/arm/mach-ks8695/include/mach/ |
H A D | devices.h | 28 int (*map_irq)(const struct pci_dev *, u8, u8);
|
/linux-4.4.14/drivers/media/pci/cx88/ |
H A D | cx88-mpeg.c | 442 static int cx8802_suspend_common(struct pci_dev *pci_dev, pm_message_t state) cx8802_suspend_common() argument 444 struct cx8802_dev *dev = pci_get_drvdata(pci_dev); cx8802_suspend_common() 460 pci_save_state(pci_dev); cx8802_suspend_common() 461 if (0 != pci_set_power_state(pci_dev, pci_choose_state(pci_dev, state))) { cx8802_suspend_common() 462 pci_disable_device(pci_dev); cx8802_suspend_common() 468 static int cx8802_resume_common(struct pci_dev *pci_dev) cx8802_resume_common() argument 470 struct cx8802_dev *dev = pci_get_drvdata(pci_dev); cx8802_resume_common() 476 err=pci_enable_device(pci_dev); cx8802_resume_common() 484 err=pci_set_power_state(pci_dev, PCI_D0); cx8802_resume_common() 488 pci_disable_device(pci_dev); cx8802_resume_common() 493 pci_restore_state(pci_dev); cx8802_resume_common() 706 static int cx8802_probe(struct pci_dev *pci_dev, cx8802_probe() argument 714 core = cx88_core_get(pci_dev); cx8802_probe() 728 dev->pci = pci_dev; cx8802_probe() 729 dev->alloc_ctx = vb2_dma_sg_init_ctx(&pci_dev->dev); cx8802_probe() 758 cx88_core_put(core,pci_dev); cx8802_probe() 762 static void cx8802_remove(struct pci_dev *pci_dev) cx8802_remove() argument 766 dev = pci_get_drvdata(pci_dev); cx8802_remove()
|
/linux-4.4.14/drivers/media/pci/ngene/ |
H A D | ngene-core.c | 787 pci_free_consistent(dev->pci_dev, free_ringbuffer() 793 pci_free_consistent(dev->pci_dev, free_ringbuffer() 800 pci_free_consistent(dev->pci_dev, rb->SCListMemSize, free_ringbuffer() 803 pci_free_consistent(dev->pci_dev, rb->MemSize, rb->Head, rb->PAHead); free_ringbuffer() 837 pci_free_consistent(dev->pci_dev, free_common_buffers() 842 pci_free_consistent(dev->pci_dev, free_common_buffers() 852 static int create_ring_buffer(struct pci_dev *pci_dev, create_ring_buffer() argument 872 Head = pci_alloc_consistent(pci_dev, MemSize, &tmp); create_ring_buffer() 904 static int AllocateRingBuffers(struct pci_dev *pci_dev, AllocateRingBuffers() argument 925 SCListMem = pci_alloc_consistent(pci_dev, SCListMemSize, &tmp); AllocateRingBuffers() 946 void *Buffer = pci_alloc_consistent(pci_dev, Buffer1Length, AllocateRingBuffers() 979 Buffer = pci_alloc_consistent(pci_dev, Buffer2Length, &tmp); AllocateRingBuffers() 1068 dev->FWInterfaceBuffer = pci_alloc_consistent(dev->pci_dev, 4096, AllocCommonBuffers() 1076 dev->OverflowBuffer = pci_zalloc_consistent(dev->pci_dev, AllocCommonBuffers() 1088 status = create_ring_buffer(dev->pci_dev, AllocCommonBuffers() 1095 status = AllocateRingBuffers(dev->pci_dev, AllocCommonBuffers() 1105 status = AllocateRingBuffers(dev->pci_dev, AllocCommonBuffers() 1119 status = create_ring_buffer(dev->pci_dev, AllocCommonBuffers() 1125 status = AllocateRingBuffers(dev->pci_dev, AllocCommonBuffers() 1135 status = create_ring_buffer(dev->pci_dev, AllocCommonBuffers() 1140 status = AllocateRingBuffers(dev->pci_dev, AllocCommonBuffers() 1196 dev->iomem = ioremap(pci_resource_start(dev->pci_dev, 0), ngene_get_buffers() 1197 pci_resource_len(dev->pci_dev, 0)); ngene_get_buffers() 1263 if (request_firmware(&fw, fw_name, &dev->pci_dev->dev) < 0) { ngene_load_firm() 1300 free_irq(dev->pci_dev->irq, dev); ngene_stop() 1303 pci_disable_msi(dev->pci_dev); ngene_stop() 1341 pci_set_master(dev->pci_dev); ngene_start() 1344 stat = request_irq(dev->pci_dev->irq, irq_handler, ngene_start() 1374 free_irq(dev->pci_dev->irq, dev); ngene_start() 1375 stat = pci_enable_msi(dev->pci_dev); ngene_start() 1384 stat = request_irq(dev->pci_dev->irq, irq_handler, ngene_start() 1404 free_irq(dev->pci_dev->irq, dev); ngene_start() 1408 pci_disable_msi(dev->pci_dev); ngene_start() 1498 &chan->dev->pci_dev->dev, init_channel() 1619 void ngene_shutdown(struct pci_dev *pdev) ngene_shutdown() 1635 void ngene_remove(struct pci_dev *pdev) ngene_remove() 1650 int ngene_probe(struct pci_dev *pci_dev, const struct pci_device_id *id) ngene_probe() argument 1655 if (pci_enable_device(pci_dev) < 0) ngene_probe() 1664 dev->pci_dev = pci_dev; ngene_probe() 1668 pci_set_drvdata(pci_dev, dev); ngene_probe() 1699 pci_disable_device(pci_dev); ngene_probe()
|