/linux-4.4.14/drivers/pci/hotplug/ |
D | pci_hotplug_core.c | 86 static ssize_t power_read_file(struct pci_slot *pci_slot, char *buf) in GET_STATUS() 91 retval = get_power_status(pci_slot->hotplug, &value); in GET_STATUS() 98 static ssize_t power_write_file(struct pci_slot *pci_slot, const char *buf, in power_write_file() argument 101 struct hotplug_slot *slot = pci_slot->hotplug; in power_write_file() 143 static ssize_t attention_read_file(struct pci_slot *pci_slot, char *buf) in attention_read_file() argument 148 retval = get_attention_status(pci_slot->hotplug, &value); in attention_read_file() 155 static ssize_t attention_write_file(struct pci_slot *pci_slot, const char *buf, in attention_write_file() argument 158 struct hotplug_slot_ops *ops = pci_slot->hotplug->ops; in attention_write_file() 172 retval = ops->set_attention_status(pci_slot->hotplug, attention); in attention_write_file() 187 static ssize_t latch_read_file(struct pci_slot *pci_slot, char *buf) in latch_read_file() argument [all …]
|
D | sgi_hotplug.c | 94 static ssize_t path_show(struct pci_slot *pci_slot, char *buf) in path_show() argument 97 struct slot *slot = pci_slot->hotplug->private; in path_show() 194 struct pci_slot *pci_slot; in sn_hp_destroy() local 199 pci_slot = bss_hotplug_slot->pci_slot; in sn_hp_destroy() 202 sysfs_remove_file(&pci_slot->kobj, in sn_hp_destroy() 599 struct pci_slot *pci_slot; in sn_hotplug_slot_register() local 640 pci_slot = bss_hotplug_slot->pci_slot; in sn_hotplug_slot_register() 641 rc = sysfs_create_file(&pci_slot->kobj, in sn_hotplug_slot_register()
|
D | ibmphp_core.c | 401 struct pci_bus *bus = slot->hotplug_slot->pci_slot->bus; in get_max_bus_speed() 608 struct pci_bus *bus = slot_cur->hotplug_slot->pci_slot->bus; in ibmphp_update_slot_info()
|
/linux-4.4.14/drivers/acpi/ |
D | pci_slot.c | 63 struct pci_slot *pci_slot; /* corresponding pci_slot */ member 117 struct pci_slot *pci_slot; in register_slot() local 129 pci_slot = slot->pci_slot; in register_slot() 130 if (pci_slot->bus == pci_bus && pci_slot->number == device) in register_slot() 141 pci_slot = pci_create_slot(pci_bus, device, name, NULL); in register_slot() 142 if (IS_ERR(pci_slot)) { in register_slot() 143 err("pci_create_slot returned %ld\n", PTR_ERR(pci_slot)); in register_slot() 148 slot->pci_slot = pci_slot; in register_slot() 154 pci_slot, pci_bus->number, device, name); in register_slot() 177 if (slot->pci_slot->bus == bus) { in acpi_pci_slot_remove() [all …]
|
D | Makefile | 67 obj-$(CONFIG_ACPI_PCI_SLOT) += pci_slot.o
|
/linux-4.4.14/drivers/pci/ |
D | slot.c | 22 struct pci_slot *slot = to_pci_slot(kobj); in pci_slot_attr_show() 30 struct pci_slot *slot = to_pci_slot(kobj); in pci_slot_attr_store() 40 static ssize_t address_read_file(struct pci_slot *slot, char *buf) in address_read_file() 92 static ssize_t max_speed_read_file(struct pci_slot *slot, char *buf) in max_speed_read_file() 97 static ssize_t cur_speed_read_file(struct pci_slot *slot, char *buf) in cur_speed_read_file() 105 struct pci_slot *slot = to_pci_slot(kobj); in pci_slot_release() 179 static int rename_slot(struct pci_slot *slot, const char *name) in rename_slot() 199 struct pci_slot *slot; in pci_dev_assign_slot() 208 static struct pci_slot *get_slot(struct pci_bus *parent, int slot_nr) in get_slot() 210 struct pci_slot *slot; in get_slot() [all …]
|
D | pci.h | 212 #define to_pci_slot(s) container_of(s, struct pci_slot, kobj) 218 ssize_t (*show)(struct pci_slot *, char *); 219 ssize_t (*store)(struct pci_slot *, const char *, size_t);
|
D | pci.c | 3912 static bool pci_slot_resetable(struct pci_slot *slot) in pci_slot_resetable() 3928 static void pci_slot_lock(struct pci_slot *slot) in pci_slot_lock() 3942 static void pci_slot_unlock(struct pci_slot *slot) in pci_slot_unlock() 3956 static int pci_slot_trylock(struct pci_slot *slot) in pci_slot_trylock() 4014 static void pci_slot_save_and_disable(struct pci_slot *slot) in pci_slot_save_and_disable() 4031 static void pci_slot_restore(struct pci_slot *slot) in pci_slot_restore() 4044 static int pci_slot_reset(struct pci_slot *slot, int probe) in pci_slot_reset() 4070 int pci_probe_reset_slot(struct pci_slot *slot) in pci_probe_reset_slot() 4091 int pci_reset_slot(struct pci_slot *slot) in pci_reset_slot() 4115 int pci_try_reset_slot(struct pci_slot *slot) in pci_try_reset_slot()
|
/linux-4.4.14/include/linux/ |
D | pci_hotplug.h | 110 struct pci_slot *pci_slot; member 115 return pci_slot_name(slot->pci_slot); in hotplug_slot_name()
|
D | pci.h | 54 struct pci_slot { struct 62 static inline const char *pci_slot_name(const struct pci_slot *slot) in pci_slot_name() argument 265 struct pci_slot *slot; /* Physical slot this device is in */ 816 struct pci_slot *pci_create_slot(struct pci_bus *parent, int slot_nr, 819 void pci_destroy_slot(struct pci_slot *slot); 1025 int pci_probe_reset_slot(struct pci_slot *slot); 1026 int pci_reset_slot(struct pci_slot *slot); 1027 int pci_try_reset_slot(struct pci_slot *slot); 1756 void pci_hp_create_module_link(struct pci_slot *pci_slot); 1757 void pci_hp_remove_module_link(struct pci_slot *pci_slot);
|
/linux-4.4.14/arch/sparc/kernel/ |
D | pci.c | 1032 struct pci_slot *pci_slot; in pcie_bus_slot_names() local 1043 pci_slot = pci_create_slot(pbus, slot_num[0], name, NULL); in pcie_bus_slot_names() 1045 if (IS_ERR(pci_slot)) in pcie_bus_slot_names() 1047 PTR_ERR(pci_slot)); in pcie_bus_slot_names() 1077 struct pci_slot *pci_slot; in pci_bus_slot_names() local 1088 pci_slot = pci_create_slot(bus, i, sp, NULL); in pci_bus_slot_names() 1089 if (IS_ERR(pci_slot)) in pci_bus_slot_names() 1091 PTR_ERR(pci_slot)); in pci_bus_slot_names()
|
/linux-4.4.14/drivers/net/ethernet/cisco/enic/ |
D | vnic_resource.h | 71 u16 pci_slot; /* installed pci slot */ member
|
/linux-4.4.14/drivers/media/pci/netup_unidvb/ |
D | netup_unidvb.h | 105 int pci_slot; member
|
D | netup_unidvb_spi.c | 217 ndev->pci_slot, in netup_spi_init()
|
D | netup_unidvb_core.c | 788 ndev->pci_slot = PCI_SLOT(pci_dev->devfn); in netup_unidvb_initdev() 790 ndev->board_num = ndev->pci_bus*10 + ndev->pci_slot; in netup_unidvb_initdev() 794 __func__, ndev->board_num, ndev->pci_bus, ndev->pci_slot); in netup_unidvb_initdev()
|
/linux-4.4.14/drivers/scsi/megaraid/ |
D | megaraid_ioctl.h | 185 uint8_t pci_slot; member
|
D | megaraid_mm.c | 890 cinfo->pcidev = hinfo->pci_slot; in hinfo_to_cinfo() 894 cinfo->pcislot = hinfo->pci_slot; in hinfo_to_cinfo()
|
D | megaraid_mbox.c | 3810 hinfo->pci_slot = PCI_SLOT(adapter->pdev->devfn); in gather_hbainfo()
|
/linux-4.4.14/drivers/media/pci/ivtv/ |
D | ivtv-driver.c | 417 int pci_slot = PCI_SLOT(itv->pdev->devfn); in ivtv_process_eeprom() local 489 if (pci_slot == 8 || pci_slot == 9) { in ivtv_process_eeprom() 490 int is_first = (pci_slot & 1) == 0; in ivtv_process_eeprom()
|
/linux-4.4.14/drivers/staging/dgnc/ |
D | dgnc_driver.h | 166 uint pci_slot; /* PCI slot value */ member
|
D | dgnc_driver.c | 395 brd->pci_slot = PCI_SLOT(pdev->devfn); in dgnc_found_board()
|
/linux-4.4.14/drivers/media/pci/cx25821/ |
D | cx25821.h | 244 int pci_bus, pci_slot; member
|
D | cx25821-core.c | 897 dev->pci_slot = PCI_SLOT(dev->pci->devfn); in cx25821_dev_setup()
|
/linux-4.4.14/drivers/net/ethernet/brocade/bna/ |
D | bfa_ioc.h | 36 int pci_slot; member
|
D | bnad.c | 3689 pcidev_info.pci_slot = PCI_SLOT(bnad->pcidev->devfn); in bnad_pci_probe()
|
/linux-4.4.14/drivers/media/pci/cx88/ |
D | cx88.h | 351 int pci_slot; member
|
D | cx88-core.c | 1020 if (PCI_SLOT(pci->devfn) != core->pci_slot) in cx88_core_get()
|
D | cx88-blackbird.c | 1145 core->pci_slot); in cx8802_blackbird_probe()
|
D | cx88-dvb.c | 1755 core->pci_slot); in cx8802_dvb_probe()
|
D | cx88-cards.c | 3685 core->pci_slot = PCI_SLOT(pci->devfn); in cx88_core_create()
|
/linux-4.4.14/drivers/media/pci/cx23885/ |
D | cx23885.h | 360 int pci_bus, pci_slot; member
|
D | cx23885-core.c | 876 dev->pci_slot = PCI_SLOT(dev->pci->devfn); in cx23885_dev_setup()
|
D | cx23885-dvb.c | 2379 dev->pci_slot); in cx23885_dvb_register()
|
/linux-4.4.14/drivers/media/pci/saa7164/ |
D | saa7164.h | 447 int pci_bus, pci_slot; member
|
D | saa7164-core.c | 995 dev->pci_slot = PCI_SLOT(dev->pci->devfn); in saa7164_dev_setup()
|
/linux-4.4.14/drivers/staging/dgap/ |
D | dgap.h | 541 uint pci_slot; /* PCI slot value */ member
|
D | dgap.c | 2083 brd->pci_slot = PCI_SLOT(pdev->devfn); in dgap_found_board() 6567 dgap_find_config(brd->type, brd->pci_bus, brd->pci_slot); in dgap_firmware_load() 6577 dgap_find_config(PAPORT4, brd->pci_bus, brd->pci_slot); in dgap_firmware_load()
|
/linux-4.4.14/drivers/net/ethernet/qlogic/ |
D | qla3xxx.h | 1083 u8 pci_slot; member
|
D | qla3xxx.c | 3393 qdev->pci_slot); in ql_display_dev_info() 3745 qdev->pci_slot = (u8) PCI_SLOT(qdev->pdev->devfn); in ql_get_board_info()
|
/linux-4.4.14/drivers/vfio/pci/ |
D | vfio_pci.c | 384 static bool vfio_pci_dev_below_slot(struct pci_dev *pdev, struct pci_slot *slot) in vfio_pci_dev_below_slot()
|
/linux-4.4.14/drivers/scsi/bfa/ |
D | bfa_ioc.h | 153 int pci_slot; member
|
D | bfad.c | 769 bfad->hal_pcidev.pci_slot = PCI_SLOT(pdev->devfn); in bfad_pci_init()
|
/linux-4.4.14/drivers/scsi/aic94xx/ |
D | aic94xx_sds.c | 117 u8 pci_slot; member
|