/openbmc/linux/drivers/pci/hotplug/ |
H A D | pci_hotplug_core.c | 67 static ssize_t power_read_file(struct pci_slot *pci_slot, char *buf) in GET_STATUS() 72 retval = get_power_status(pci_slot->hotplug, &value); in GET_STATUS() 79 static ssize_t power_write_file(struct pci_slot *pci_slot, const char *buf, in power_write_file() argument 82 struct hotplug_slot *slot = pci_slot->hotplug; in power_write_file() 124 static ssize_t attention_read_file(struct pci_slot *pci_slot, char *buf) in attention_read_file() argument 129 retval = get_attention_status(pci_slot->hotplug, &value); in attention_read_file() 136 static ssize_t attention_write_file(struct pci_slot *pci_slot, const char *buf, in attention_write_file() argument 139 struct hotplug_slot *slot = pci_slot->hotplug; in attention_write_file() 169 static ssize_t latch_read_file(struct pci_slot *pci_slot, char *buf) in latch_read_file() argument 174 retval = get_latch_status(pci_slot->hotplug, &value); in latch_read_file() [all …]
|
H A D | TODO | 27 * Several functions access the pci_slot member in struct hotplug_slot even 29 example. Either the pci_slot member should no longer be declared private 48 * Several functions access the pci_slot member in struct hotplug_slot even 50 example. Either the pci_slot member should no longer be declared private
|
/openbmc/linux/drivers/acpi/ |
H A D | pci_slot.c | 34 struct pci_slot *pci_slot; /* corresponding pci_slot */ member 90 struct pci_slot *pci_slot; in register_slot() local 102 pci_slot = slot->pci_slot; in register_slot() 103 if (pci_slot->bus == pci_bus && pci_slot->number == device) in register_slot() 112 pci_slot = pci_create_slot(pci_bus, device, name, NULL); in register_slot() 113 if (IS_ERR(pci_slot)) { in register_slot() 114 pr_err("pci_create_slot returned %ld\n", PTR_ERR(pci_slot)); in register_slot() 119 slot->pci_slot = pci_slot; in register_slot() 125 pci_slot, pci_bus->number, device, name); in register_slot() 148 if (slot->pci_slot->bus == bus) { in acpi_pci_slot_remove() [all …]
|
H A D | Makefile | 89 obj-$(CONFIG_ACPI_PCI_SLOT) += pci_slot.o
|
/openbmc/linux/drivers/pci/ |
H A D | slot.c | 21 struct pci_slot *slot = to_pci_slot(kobj); in pci_slot_attr_show() 29 struct pci_slot *slot = to_pci_slot(kobj); in pci_slot_attr_store() 39 static ssize_t address_read_file(struct pci_slot *slot, char *buf) in address_read_file() 57 static ssize_t max_speed_read_file(struct pci_slot *slot, char *buf) in max_speed_read_file() 62 static ssize_t cur_speed_read_file(struct pci_slot *slot, char *buf) in cur_speed_read_file() 70 struct pci_slot *slot = to_pci_slot(kobj); in pci_slot_release() 146 static int rename_slot(struct pci_slot *slot, const char *name) in rename_slot() 166 struct pci_slot *slot; in pci_dev_assign_slot() 175 static struct pci_slot *get_slot(struct pci_bus *parent, int slot_nr) in get_slot() 177 struct pci_slot *slot; in get_slot() [all …]
|
H A D | pci.h | 220 #define to_pci_slot(s) container_of(s, struct pci_slot, kobj) 226 ssize_t (*show)(struct pci_slot *, char *); 227 ssize_t (*store)(struct pci_slot *, const char *, size_t);
|
H A D | pci.c | 5782 static bool pci_slot_resettable(struct pci_slot *slot) in pci_slot_resettable() 5802 static void pci_slot_lock(struct pci_slot *slot) in pci_slot_lock() 5817 static void pci_slot_unlock(struct pci_slot *slot) in pci_slot_unlock() 5831 static int pci_slot_trylock(struct pci_slot *slot) in pci_slot_trylock() 5898 static void pci_slot_save_and_disable_locked(struct pci_slot *slot) in pci_slot_save_and_disable_locked() 5916 static void pci_slot_restore_locked(struct pci_slot *slot) in pci_slot_restore_locked() 5931 static int pci_slot_reset(struct pci_slot *slot, bool probe) in pci_slot_reset() 5957 int pci_probe_reset_slot(struct pci_slot *slot) in pci_probe_reset_slot() 5978 static int __pci_reset_slot(struct pci_slot *slot) in __pci_reset_slot() 6030 struct pci_slot *slot; in pci_bus_error_reset()
|
/openbmc/linux/include/linux/ |
H A D | pci_hotplug.h | 63 struct pci_slot *pci_slot; member 70 return pci_slot_name(slot->pci_slot); in hotplug_slot_name()
|
H A D | pci.h | 76 struct pci_slot { struct 84 static inline const char *pci_slot_name(const struct pci_slot *slot) in pci_slot_name() argument 329 struct pci_slot *slot; /* Physical slot this device is in */ 1127 struct pci_slot *pci_create_slot(struct pci_bus *parent, int slot_nr, 1130 void pci_destroy_slot(struct pci_slot *slot); 1351 int pci_probe_reset_slot(struct pci_slot *slot); 2398 void pci_hp_create_module_link(struct pci_slot *pci_slot); 2399 void pci_hp_remove_module_link(struct pci_slot *pci_slot);
|
/openbmc/qemu/hw/pci/ |
H A D | shpc.c | 124 #define SHPC_PCI_TO_IDX(pci_slot) ((pci_slot) - 1) argument 276 int pci_slot = SHPC_IDX_TO_PCI(slot); in shpc_free_devices_in_slot() local 277 for (devfn = PCI_DEVFN(pci_slot, 0); in shpc_free_devices_in_slot() 278 devfn <= PCI_DEVFN(pci_slot, PCI_FUNC_MAX - 1); in shpc_free_devices_in_slot() 336 int pci_slot = SHPC_IDX_TO_PCI(slot); in shpc_slot_command() local 338 DEVICE(shpc->sec_bus->devices[PCI_DEVFN(pci_slot, 0)]); in shpc_slot_command() 341 parent->canonical_path, pci_slot, in shpc_slot_command() 549 int pci_slot = PCI_SLOT(affected_dev->devfn); in shpc_device_get_slot() local 550 *slot = SHPC_PCI_TO_IDX(pci_slot); in shpc_device_get_slot() 552 if (pci_slot < SHPC_IDX_TO_PCI(0) || *slot >= shpc->nslots) { in shpc_device_get_slot() [all …]
|
H A D | trace-events | 24 shpc_slot_command(const char *parent, int pci_slot, const char *child, const char *old_pic, const c…
|
/openbmc/linux/arch/sparc/kernel/ |
H A D | pci.c | 909 struct pci_slot *pci_slot; in pcie_bus_slot_names() local 920 pci_slot = pci_create_slot(pbus, slot_num[0], name, NULL); in pcie_bus_slot_names() 922 if (IS_ERR(pci_slot)) in pcie_bus_slot_names() 924 PTR_ERR(pci_slot)); in pcie_bus_slot_names() 954 struct pci_slot *pci_slot; in pci_bus_slot_names() local 965 pci_slot = pci_create_slot(bus, i, sp, NULL); in pci_bus_slot_names() 966 if (IS_ERR(pci_slot)) in pci_bus_slot_names() 968 PTR_ERR(pci_slot)); in pci_bus_slot_names()
|
/openbmc/u-boot/board/freescale/mpc8555cds/ |
H A D | mpc8555cds.c | 187 uint pci_slot = get_pci_slot (); in checkboard() local 199 get_board_version (), pci_slot); in checkboard()
|
/openbmc/u-boot/board/freescale/mpc8541cds/ |
H A D | mpc8541cds.c | 189 uint pci_slot = get_pci_slot (); in checkboard() local 201 get_board_version (), pci_slot); in checkboard()
|
/openbmc/linux/drivers/net/ethernet/cisco/enic/ |
H A D | vnic_resource.h | 58 u16 pci_slot; /* installed pci slot */ member
|
/openbmc/u-boot/board/freescale/mpc8548cds/ |
H A D | mpc8548cds.c | 35 uint pci_slot = get_pci_slot (); in checkboard() local 41 get_board_version(), pci_slot); in checkboard()
|
/openbmc/linux/drivers/pci/controller/ |
H A D | pci-hyperv.c | 556 struct pci_slot *pci_slot; member 2331 if (hpdev->pci_slot) in hv_pci_assign_slots() 2336 hpdev->pci_slot = pci_create_slot(hbus->bridge->bus, slot_nr, in hv_pci_assign_slots() 2338 if (IS_ERR(hpdev->pci_slot)) { in hv_pci_assign_slots() 2340 hpdev->pci_slot = NULL; in hv_pci_assign_slots() 2353 if (!hpdev->pci_slot) in hv_pci_remove_slots() 2355 pci_destroy_slot(hpdev->pci_slot); in hv_pci_remove_slots() 2356 hpdev->pci_slot = NULL; in hv_pci_remove_slots() 2667 if (hpdev->pci_slot) in pci_devices_present_work() 2668 pci_destroy_slot(hpdev->pci_slot); in pci_devices_present_work() [all …]
|
/openbmc/linux/drivers/media/pci/netup_unidvb/ |
H A D | netup_unidvb.h | 105 int pci_slot; member
|
H A D | netup_unidvb_spi.c | 208 ndev->pci_slot, in netup_spi_init()
|
H A D | netup_unidvb_core.c | 824 ndev->pci_slot = PCI_SLOT(pci_dev->devfn); in netup_unidvb_initdev() 826 ndev->board_num = ndev->pci_bus*10 + ndev->pci_slot; in netup_unidvb_initdev() 830 __func__, ndev->board_num, ndev->pci_bus, ndev->pci_slot); in netup_unidvb_initdev()
|
/openbmc/linux/drivers/scsi/megaraid/ |
H A D | megaraid_ioctl.h | 187 uint8_t pci_slot; member
|
H A D | megaraid_mm.c | 890 cinfo->pcidev = hinfo->pci_slot; in hinfo_to_cinfo() 894 cinfo->pcislot = hinfo->pci_slot; in hinfo_to_cinfo()
|
/openbmc/linux/drivers/media/pci/ivtv/ |
H A D | ivtv-driver.c | 414 int pci_slot = PCI_SLOT(itv->pdev->devfn); in ivtv_process_eeprom() local 486 if (pci_slot == 8 || pci_slot == 9) { in ivtv_process_eeprom() 487 int is_first = (pci_slot & 1) == 0; in ivtv_process_eeprom()
|
/openbmc/linux/arch/powerpc/kernel/ |
H A D | eeh_driver.c | 763 struct pci_slot *slot; in eeh_slot_presence_check() 795 struct pci_slot *slot; in eeh_clear_slot_attention()
|
/openbmc/linux/drivers/media/pci/cx25821/ |
H A D | cx25821.h | 226 int pci_bus, pci_slot; member
|