/linux-4.1.27/drivers/pci/hotplug/ |
H A D | pci_hotplug_core.c | 86 static ssize_t power_read_file(struct pci_slot *slot, char *buf) power_read_file() 98 static ssize_t power_write_file(struct pci_slot *pci_slot, const char *buf, power_write_file() argument 101 struct hotplug_slot *slot = pci_slot->hotplug; power_write_file() 143 static ssize_t attention_read_file(struct pci_slot *slot, char *buf) attention_read_file() 155 static ssize_t attention_write_file(struct pci_slot *slot, const char *buf, attention_write_file() 187 static ssize_t latch_read_file(struct pci_slot *slot, char *buf) latch_read_file() 204 static ssize_t presence_read_file(struct pci_slot *slot, char *buf) presence_read_file() 221 static ssize_t test_write_file(struct pci_slot *pci_slot, const char *buf, test_write_file() argument 224 struct hotplug_slot *slot = pci_slot->hotplug; test_write_file() 252 static bool has_power_file(struct pci_slot *pci_slot) has_power_file() argument 254 struct hotplug_slot *slot = pci_slot->hotplug; has_power_file() 265 static bool has_attention_file(struct pci_slot *pci_slot) has_attention_file() argument 267 struct hotplug_slot *slot = pci_slot->hotplug; has_attention_file() 277 static bool has_latch_file(struct pci_slot *pci_slot) has_latch_file() argument 279 struct hotplug_slot *slot = pci_slot->hotplug; has_latch_file() 288 static bool has_adapter_file(struct pci_slot *pci_slot) has_adapter_file() argument 290 struct hotplug_slot *slot = pci_slot->hotplug; has_adapter_file() 299 static bool has_test_file(struct pci_slot *pci_slot) has_test_file() argument 301 struct hotplug_slot *slot = pci_slot->hotplug; has_test_file() 310 static int fs_add_slot(struct pci_slot *slot) fs_add_slot() 374 static void fs_remove_slot(struct pci_slot *slot) fs_remove_slot() 428 struct pci_slot *pci_slot; __pci_hp_register() local 446 * pci_slot, the interface will simply bump the refcount. __pci_hp_register() 448 pci_slot = pci_create_slot(bus, devnr, name, slot); __pci_hp_register() 449 if (IS_ERR(pci_slot)) { __pci_hp_register() 450 result = PTR_ERR(pci_slot); __pci_hp_register() 454 slot->pci_slot = pci_slot; __pci_hp_register() 455 pci_slot->hotplug = slot; __pci_hp_register() 459 result = fs_add_slot(pci_slot); __pci_hp_register() 460 kobject_uevent(&pci_slot->kobj, KOBJ_ADD); __pci_hp_register() 480 struct pci_slot *slot; pci_hp_deregister() 494 slot = hotplug->pci_slot; pci_hp_deregister()
|
H A D | sgi_hotplug.c | 94 static ssize_t path_show(struct pci_slot *pci_slot, char *buf) path_show() argument 97 struct slot *slot = pci_slot->hotplug->private; path_show() 194 struct pci_slot *pci_slot; sn_hp_destroy() local 199 pci_slot = bss_hotplug_slot->pci_slot; sn_hp_destroy() 202 sysfs_remove_file(&pci_slot->kobj, sn_hp_destroy() 599 struct pci_slot *pci_slot; sn_hotplug_slot_register() local 640 pci_slot = bss_hotplug_slot->pci_slot; sn_hotplug_slot_register() 641 rc = sysfs_create_file(&pci_slot->kobj, sn_hotplug_slot_register()
|
H A D | ibmphp_core.c | 401 struct pci_bus *bus = slot->hotplug_slot->pci_slot->bus; get_max_bus_speed() 608 struct pci_bus *bus = slot_cur->hotplug_slot->pci_slot->bus; ibmphp_update_slot_info()
|
/linux-4.1.27/drivers/pci/ |
H A D | slot.c | 21 struct pci_slot *slot = to_pci_slot(kobj); pci_slot_attr_show() 29 struct pci_slot *slot = to_pci_slot(kobj); pci_slot_attr_store() 39 static ssize_t address_read_file(struct pci_slot *slot, char *buf) address_read_file() 91 static ssize_t max_speed_read_file(struct pci_slot *slot, char *buf) max_speed_read_file() 96 static ssize_t cur_speed_read_file(struct pci_slot *slot, char *buf) cur_speed_read_file() 104 struct pci_slot *slot = to_pci_slot(kobj); pci_slot_release() 176 static int rename_slot(struct pci_slot *slot, const char *name) rename_slot() 194 static struct pci_slot *get_slot(struct pci_bus *parent, int slot_nr) get_slot() 196 struct pci_slot *slot; get_slot() 217 * and a &struct pci_slot is used to manage them. This interface will 218 * either return a new &struct pci_slot to the caller, or if the pci_slot 240 * -1. First, we no longer check for an existing %struct pci_slot, as there 247 struct pci_slot *pci_create_slot(struct pci_bus *parent, int slot_nr, pci_create_slot() 252 struct pci_slot *slot; pci_create_slot() 324 * @slot: struct pci_slot to decrement 326 * %struct pci_slot is refcounted, so destroying them is really easy; we 330 void pci_destroy_slot(struct pci_slot *slot) pci_destroy_slot() 345 * @pci_slot: struct pci_slot 350 void pci_hp_create_module_link(struct pci_slot *pci_slot) pci_hp_create_module_link() argument 352 struct hotplug_slot *slot = pci_slot->hotplug; pci_hp_create_module_link() 361 ret = sysfs_create_link(&pci_slot->kobj, kobj, "module"); pci_hp_create_module_link() 363 dev_err(&pci_slot->bus->dev, "Error creating sysfs link (%d)\n", pci_hp_create_module_link() 371 * @pci_slot: struct pci_slot 376 void pci_hp_remove_module_link(struct pci_slot *pci_slot) pci_hp_remove_module_link() argument 378 sysfs_remove_link(&pci_slot->kobj, "module"); pci_hp_remove_module_link()
|
H A D | pci.h | 187 #define to_pci_slot(s) container_of(s, struct pci_slot, kobj) 193 ssize_t (*show)(struct pci_slot *, char *); 194 ssize_t (*store)(struct pci_slot *, const char *, size_t);
|
H A D | pci.c | 3660 static bool pci_slot_resetable(struct pci_slot *slot) pci_slot_resetable() 3676 static void pci_slot_lock(struct pci_slot *slot) pci_slot_lock() 3690 static void pci_slot_unlock(struct pci_slot *slot) pci_slot_unlock() 3704 static int pci_slot_trylock(struct pci_slot *slot) pci_slot_trylock() 3762 static void pci_slot_save_and_disable(struct pci_slot *slot) pci_slot_save_and_disable() 3779 static void pci_slot_restore(struct pci_slot *slot) pci_slot_restore() 3792 static int pci_slot_reset(struct pci_slot *slot, int probe) pci_slot_reset() 3818 int pci_probe_reset_slot(struct pci_slot *slot) pci_probe_reset_slot() 3839 int pci_reset_slot(struct pci_slot *slot) pci_reset_slot() 3863 int pci_try_reset_slot(struct pci_slot *slot) pci_try_reset_slot()
|
H A D | probe.c | 1124 struct pci_slot *slot; pci_setup_device()
|
/linux-4.1.27/drivers/acpi/ |
H A D | pci_slot.c | 2 * pci_slot.c - ACPI PCI Slot Driver 53 ACPI_MODULE_NAME("pci_slot"); 55 #define MY_NAME "pci_slot" 67 struct pci_slot *pci_slot; /* corresponding pci_slot */ member in struct:acpi_pci_slot 121 struct pci_slot *pci_slot; register_slot() local 133 pci_slot = slot->pci_slot; register_slot() 134 if (pci_slot->bus == pci_bus && pci_slot->number == device) register_slot() 145 pci_slot = pci_create_slot(pci_bus, device, name, NULL); register_slot() 146 if (IS_ERR(pci_slot)) { register_slot() 147 err("pci_create_slot returned %ld\n", PTR_ERR(pci_slot)); register_slot() 152 slot->pci_slot = pci_slot; register_slot() 157 dbg("pci_slot: %p, pci_bus: %x, device: %d, name: %s\n", register_slot() 158 pci_slot, pci_bus->number, device, name); register_slot() 181 if (slot->pci_slot->bus == bus) { acpi_pci_slot_remove() 183 pci_destroy_slot(slot->pci_slot); acpi_pci_slot_remove()
|
H A D | Makefile | 70 obj-$(CONFIG_ACPI_PCI_SLOT) += pci_slot.o
|
/linux-4.1.27/drivers/net/ethernet/cisco/enic/ |
H A D | vnic_resource.h | 64 u16 pci_slot; /* installed pci slot */ member in struct:mgmt_barmap_hdr
|
/linux-4.1.27/include/linux/ |
H A D | pci_hotplug.h | 110 struct pci_slot *pci_slot; member in struct:hotplug_slot 115 return pci_slot_name(slot->pci_slot); hotplug_slot_name()
|
H A D | pci.h | 53 /* pci_slot represents a physical slot */ 54 struct pci_slot { struct 62 static inline const char *pci_slot_name(const struct pci_slot *slot) pci_slot_name() 265 struct pci_slot *slot; /* Physical slot this device is in */ 801 struct pci_slot *pci_create_slot(struct pci_bus *parent, int slot_nr, 804 void pci_destroy_slot(struct pci_slot *slot); 1005 int pci_probe_reset_slot(struct pci_slot *slot); 1006 int pci_reset_slot(struct pci_slot *slot); 1007 int pci_try_reset_slot(struct pci_slot *slot); 1717 void pci_hp_create_module_link(struct pci_slot *pci_slot); 1718 void pci_hp_remove_module_link(struct pci_slot *pci_slot);
|
/linux-4.1.27/arch/sparc/kernel/ |
H A D | pci.c | 252 struct pci_slot *slot; of_create_pci_dev() 1015 struct pci_slot *pci_slot; pcie_bus_slot_names() local 1026 pci_slot = pci_create_slot(pbus, slot_num[0], name, NULL); pcie_bus_slot_names() 1028 if (IS_ERR(pci_slot)) pcie_bus_slot_names() 1030 PTR_ERR(pci_slot)); pcie_bus_slot_names() 1060 struct pci_slot *pci_slot; pci_bus_slot_names() local 1071 pci_slot = pci_create_slot(bus, i, sp, NULL); pci_bus_slot_names() 1072 if (IS_ERR(pci_slot)) pci_bus_slot_names() 1074 PTR_ERR(pci_slot)); pci_bus_slot_names()
|
/linux-4.1.27/drivers/scsi/megaraid/ |
H A D | megaraid_ioctl.h | 185 uint8_t pci_slot; member in struct:mraid_hba_info
|
H A D | megaraid_mm.c | 890 cinfo->pcidev = hinfo->pci_slot; hinfo_to_cinfo() 894 cinfo->pcislot = hinfo->pci_slot; hinfo_to_cinfo()
|
H A D | megaraid_mbox.c | 3810 hinfo->pci_slot = PCI_SLOT(adapter->pdev->devfn); gather_hbainfo()
|
/linux-4.1.27/drivers/media/pci/cx25821/ |
H A D | cx25821.h | 243 int pci_bus, pci_slot; member in struct:cx25821_dev
|
H A D | cx25821-core.c | 897 dev->pci_slot = PCI_SLOT(dev->pci->devfn); cx25821_dev_setup()
|
/linux-4.1.27/drivers/media/pci/ivtv/ |
H A D | ivtv-driver.c | 417 int pci_slot = PCI_SLOT(itv->pdev->devfn); ivtv_process_eeprom() local 489 if (pci_slot == 8 || pci_slot == 9) { ivtv_process_eeprom() 490 int is_first = (pci_slot & 1) == 0; ivtv_process_eeprom()
|
/linux-4.1.27/drivers/net/ethernet/brocade/bna/ |
H A D | bfa_ioc.h | 36 int pci_slot; member in struct:bfa_pcidev
|
H A D | bnad.c | 3678 pcidev_info.pci_slot = PCI_SLOT(bnad->pcidev->devfn); bnad_pci_probe()
|
/linux-4.1.27/arch/powerpc/kernel/ |
H A D | pci_of_scan.c | 129 struct pci_slot *slot; of_create_pci_dev()
|
/linux-4.1.27/drivers/media/pci/cx23885/ |
H A D | cx23885.h | 359 int pci_bus, pci_slot; member in struct:cx23885_dev
|
H A D | cx23885-core.c | 875 dev->pci_slot = PCI_SLOT(dev->pci->devfn); cx23885_dev_setup()
|
H A D | cx23885-dvb.c | 2299 dev->pci_slot); cx23885_dvb_register()
|
/linux-4.1.27/drivers/media/pci/saa7164/ |
H A D | saa7164.h | 436 int pci_bus, pci_slot; member in struct:saa7164_dev
|
H A D | saa7164-core.c | 988 dev->pci_slot = PCI_SLOT(dev->pci->devfn); saa7164_dev_setup()
|
/linux-4.1.27/drivers/staging/dgnc/ |
H A D | dgnc_driver.c | 402 brd->pci_slot = PCI_SLOT(pdev->devfn); dgnc_found_board()
|
H A D | dgnc_driver.h | 165 uint pci_slot; /* PCI slot value */ member in struct:dgnc_board
|
/linux-4.1.27/drivers/net/ethernet/qlogic/ |
H A D | qla3xxx.h | 1083 u8 pci_slot; member in struct:ql3_adapter
|
H A D | qla3xxx.c | 3395 qdev->pci_slot); ql_display_dev_info() 3747 qdev->pci_slot = (u8) PCI_SLOT(qdev->pdev->devfn); ql_get_board_info()
|
/linux-4.1.27/drivers/media/pci/cx88/ |
H A D | cx88.h | 352 int pci_slot; member in struct:cx88_core
|
H A D | cx88-blackbird.c | 1142 core->pci_slot); cx8802_blackbird_probe()
|
H A D | cx88-core.c | 1018 if (PCI_SLOT(pci->devfn) != core->pci_slot) cx88_core_get()
|
H A D | cx88-dvb.c | 1752 core->pci_slot); cx8802_dvb_probe()
|
H A D | cx88-cards.c | 3685 core->pci_slot = PCI_SLOT(pci->devfn); cx88_core_create()
|
/linux-4.1.27/drivers/scsi/aic94xx/ |
H A D | aic94xx_sds.c | 117 u8 pci_slot; member in struct:asd_bios_chim_struct
|
/linux-4.1.27/drivers/scsi/bfa/ |
H A D | bfa_ioc.h | 153 int pci_slot; member in struct:bfa_pcidev_s
|
H A D | bfad.c | 769 bfad->hal_pcidev.pci_slot = PCI_SLOT(pdev->devfn); bfad_pci_init()
|
/linux-4.1.27/drivers/vfio/pci/ |
H A D | vfio_pci.c | 384 static bool vfio_pci_dev_below_slot(struct pci_dev *pdev, struct pci_slot *slot) vfio_pci_dev_below_slot()
|
/linux-4.1.27/drivers/staging/dgap/ |
H A D | dgap.h | 542 uint pci_slot; /* PCI slot value */ member in struct:board_t
|
H A D | dgap.c | 2142 brd->pci_slot = PCI_SLOT(pdev->devfn); dgap_found_board() 6660 dgap_find_config(brd->type, brd->pci_bus, brd->pci_slot); dgap_firmware_load() 6670 dgap_find_config(PAPORT4, brd->pci_bus, brd->pci_slot); dgap_firmware_load()
|