Home
last modified time | relevance | path

Searched refs:pci_slot (Results 1 – 25 of 48) sorted by relevance

12

/linux-6.15/drivers/pci/hotplug/
H A Dpci_hotplug_core.c59 static ssize_t power_read_file(struct pci_slot *pci_slot, char *buf) in GET_STATUS()
71 static ssize_t power_write_file(struct pci_slot *pci_slot, const char *buf, in power_write_file() argument
110 static ssize_t attention_read_file(struct pci_slot *pci_slot, char *buf) in attention_read_file() argument
149 static ssize_t latch_read_file(struct pci_slot *pci_slot, char *buf) in latch_read_file() argument
166 static ssize_t presence_read_file(struct pci_slot *pci_slot, char *buf) in presence_read_file() argument
183 static ssize_t test_write_file(struct pci_slot *pci_slot, const char *buf, in test_write_file() argument
393 struct pci_slot *pci_slot; in __pci_hp_initialize() local
412 slot->pci_slot = pci_slot; in __pci_hp_initialize()
430 struct pci_slot *pci_slot; in pci_hp_add() local
436 pci_slot = slot->pci_slot; in pci_hp_add()
[all …]
H A DTODO31 * Several functions access the pci_slot member in struct hotplug_slot even
33 example. Either the pci_slot member should no longer be declared private
H A Dacpiphp_ampere_altra.c48 bus = slot->pci_slot->bus; in set_attention_status()
/linux-6.15/drivers/acpi/
H A Dpci_slot.c34 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 %pe\n", 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 DMakefile88 obj-$(CONFIG_ACPI_PCI_SLOT) += pci_slot.o
/linux-6.15/drivers/pci/
H A Dslot.c20 struct pci_slot *slot = to_pci_slot(kobj); in pci_slot_attr_show()
28 struct pci_slot *slot = to_pci_slot(kobj); in pci_slot_attr_store()
38 static ssize_t address_read_file(struct pci_slot *slot, char *buf) in address_read_file()
56 static ssize_t max_speed_read_file(struct pci_slot *slot, char *buf) in max_speed_read_file()
61 static ssize_t cur_speed_read_file(struct pci_slot *slot, char *buf) in cur_speed_read_file()
69 struct pci_slot *slot = to_pci_slot(kobj); in pci_slot_release()
145 static int rename_slot(struct pci_slot *slot, const char *name) in rename_slot()
165 struct pci_slot *slot; in pci_dev_assign_slot()
176 struct pci_slot *slot; in get_slot()
231 struct pci_slot *slot; in pci_create_slot()
[all …]
H A Dpci.h310 #define to_pci_slot(s) container_of(s, struct pci_slot, kobj)
316 ssize_t (*show)(struct pci_slot *, char *);
317 ssize_t (*store)(struct pci_slot *, const char *, size_t);
H A Dpci.c5497 static bool pci_slot_resettable(struct pci_slot *slot) in pci_slot_resettable()
5517 static void pci_slot_lock(struct pci_slot *slot) in pci_slot_lock()
5532 static void pci_slot_unlock(struct pci_slot *slot) in pci_slot_unlock()
5546 static int pci_slot_trylock(struct pci_slot *slot) in pci_slot_trylock()
5613 static void pci_slot_save_and_disable_locked(struct pci_slot *slot) in pci_slot_save_and_disable_locked()
5631 static void pci_slot_restore_locked(struct pci_slot *slot) in pci_slot_restore_locked()
5646 static int pci_slot_reset(struct pci_slot *slot, bool probe) in pci_slot_reset()
5672 int pci_probe_reset_slot(struct pci_slot *slot) in pci_probe_reset_slot()
5693 static int __pci_reset_slot(struct pci_slot *slot) in __pci_reset_slot()
5745 struct pci_slot *slot; in pci_bus_error_reset()
/linux-6.15/include/linux/
H A Dpci_hotplug.h61 struct pci_slot *pci_slot; member
68 return pci_slot_name(slot->pci_slot); in hotplug_slot_name()
H A Dpci.h76 struct pci_slot { struct
84 static inline const char *pci_slot_name(const struct pci_slot *slot) in pci_slot_name() argument
339 struct pci_slot *slot; /* Physical slot this device is in */
1170 struct pci_slot *pci_create_slot(struct pci_bus *parent, int slot_nr,
1173 void pci_destroy_slot(struct pci_slot *slot);
1397 int pci_probe_reset_slot(struct pci_slot *slot);
/linux-6.15/arch/sparc/kernel/
H A Dpci.c909 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()
/linux-6.15/drivers/net/ethernet/cisco/enic/
H A Dvnic_resource.h58 u16 pci_slot; /* installed pci slot */ member
/linux-6.15/drivers/pci/controller/
H A Dpci-hyperv.c556 struct pci_slot *pci_slot; member
2324 if (hpdev->pci_slot) in hv_pci_assign_slots()
2331 if (IS_ERR(hpdev->pci_slot)) { in hv_pci_assign_slots()
2333 hpdev->pci_slot = NULL; in hv_pci_assign_slots()
2346 if (!hpdev->pci_slot) in hv_pci_remove_slots()
2348 pci_destroy_slot(hpdev->pci_slot); in hv_pci_remove_slots()
2349 hpdev->pci_slot = NULL; in hv_pci_remove_slots()
2660 if (hpdev->pci_slot) in pci_devices_present_work()
2859 if (hpdev->pci_slot) in hv_eject_device_work()
2860 pci_destroy_slot(hpdev->pci_slot); in hv_eject_device_work()
[all …]
/linux-6.15/drivers/media/pci/netup_unidvb/
H A Dnetup_unidvb.h105 int pci_slot; member
H A Dnetup_unidvb_spi.c208 ndev->pci_slot, in netup_spi_init()
H A Dnetup_unidvb_core.c825 ndev->pci_slot = PCI_SLOT(pci_dev->devfn); in netup_unidvb_initdev()
827 ndev->board_num = ndev->pci_bus*10 + ndev->pci_slot; in netup_unidvb_initdev()
831 __func__, ndev->board_num, ndev->pci_bus, ndev->pci_slot); in netup_unidvb_initdev()
/linux-6.15/drivers/scsi/megaraid/
H A Dmegaraid_ioctl.h187 uint8_t pci_slot; member
H A Dmegaraid_mm.c890 cinfo->pcidev = hinfo->pci_slot; in hinfo_to_cinfo()
894 cinfo->pcislot = hinfo->pci_slot; in hinfo_to_cinfo()
/linux-6.15/drivers/staging/gpib/uapi/
H A Dgpib_ioctl.h86 int pci_slot; member
/linux-6.15/drivers/staging/gpib/include/
H A Dgpib_types.h47 int pci_slot; member
/linux-6.15/drivers/staging/gpib/common/
H A Dgpib_os.c1806 config->pci_slot = selection.pci_slot; in select_pci_ioctl()
2072 config->pci_slot = -1; in init_gpib_board_config()
2219 if (config->pci_slot >= 0 && config->pci_slot != in gpib_pci_get_device()
2241 if (config->pci_slot >= 0 && config->pci_slot != in gpib_pci_get_subsys()
/linux-6.15/drivers/media/pci/ivtv/
H A Divtv-driver.c387 int pci_slot = PCI_SLOT(itv->pdev->devfn); in ivtv_process_eeprom() local
459 if (pci_slot == 8 || pci_slot == 9) { in ivtv_process_eeprom()
460 int is_first = (pci_slot & 1) == 0; in ivtv_process_eeprom()
/linux-6.15/drivers/staging/gpib/lpvo_usb_gpib/
H A Dlpvo_usb_gpib.c397 config->pci_bus, config->pci_slot, base); in usb_gpib_attach()
420 } else if (config->pci_bus != -1 && config->pci_slot != -1) { in usb_gpib_attach()
427 udev->bus->busnum, config->pci_bus, udev->devnum, config->pci_slot); in usb_gpib_attach()
429 config->pci_slot == udev->devnum) in usb_gpib_attach()
/linux-6.15/drivers/media/pci/cx25821/
H A Dcx25821.h226 int pci_bus, pci_slot; member
/linux-6.15/arch/powerpc/kernel/
H A Deeh_driver.c763 struct pci_slot *slot; in eeh_slot_presence_check()
795 struct pci_slot *slot; in eeh_clear_slot_attention()

12