pci_slot
struct pci_slot *slot;
struct pci_slot *slot;
struct pci_slot *pci_slot;
pci_slot = pci_create_slot(pbus, slot_num[0], name, NULL);
if (IS_ERR(pci_slot))
PTR_ERR(pci_slot));
struct pci_slot *pci_slot;
pci_slot = pci_create_slot(bus, i, sp, NULL);
if (IS_ERR(pci_slot))
PTR_ERR(pci_slot));
pci_slot = slot->pci_slot;
if (pci_slot->bus == pci_bus && pci_slot->number == device)
pci_slot = pci_create_slot(pci_bus, device, name, NULL);
if (IS_ERR(pci_slot)) {
pr_err("pci_create_slot returned %pe\n", pci_slot);
slot->pci_slot = pci_slot;
pci_slot, pci_bus->number, device, name);
if (slot->pci_slot->bus == bus) {
pci_destroy_slot(slot->pci_slot);
struct pci_slot *pci_slot; /* corresponding pci_slot */
struct pci_slot *pci_slot;
config->pci_slot = selection.pci_slot;
config->pci_slot = -1;
if (config->pci_slot >= 0 && config->pci_slot !=
if (config->pci_slot >= 0 && config->pci_slot !=
int pci_slot;
if (config->pci_slot >= 0 && config->pci_slot != PCI_SLOT(pdev->devfn))
config->pci_bus, config->pci_slot, base);
} else if (config->pci_bus != -1 && config->pci_slot != -1) {
udev->bus->busnum, config->pci_bus, udev->devnum, config->pci_slot);
config->pci_slot == udev->devnum)
if (config->pci_slot >= 0 && config->pci_slot != PCI_SLOT(mite->pcidev->devfn))
dev->pci_slot = PCI_SLOT(dev->pci->devfn);
dev->pci_slot);
int pci_bus, pci_slot;
dev->pci_slot = PCI_SLOT(dev->pci->devfn);
int pci_bus, pci_slot;
core->pci_slot);
core->pci_slot = PCI_SLOT(pci->devfn);
if (PCI_SLOT(pci->devfn) != core->pci_slot)
core->pci_slot);
int pci_slot;
int pci_slot = PCI_SLOT(itv->pdev->devfn);
if (pci_slot == 8 || pci_slot == 9) {
int is_first = (pci_slot & 1) == 0;
int pci_slot;
ndev->pci_slot = PCI_SLOT(pci_dev->devfn);
ndev->board_num = ndev->pci_bus*10 + ndev->pci_slot;
__func__, ndev->board_num, ndev->pci_bus, ndev->pci_slot);
ndev->pci_slot,
dev->pci_slot = PCI_SLOT(dev->pci->devfn);
int pci_bus, pci_slot;
int pci_slot;
pcidev_info.pci_slot = PCI_SLOT(bnad->pcidev->devfn);
u16 pci_slot; /* installed pci slot */
qdev->pci_slot);
qdev->pci_slot = (u8) PCI_SLOT(qdev->pdev->devfn);
u8 pci_slot;
if (hpdev->pci_slot)
hpdev->pci_slot = pci_create_slot(hbus->bridge->bus, slot_nr,
if (IS_ERR(hpdev->pci_slot)) {
hpdev->pci_slot = NULL;
if (!hpdev->pci_slot)
pci_destroy_slot(hpdev->pci_slot);
hpdev->pci_slot = NULL;
if (hpdev->pci_slot)
pci_destroy_slot(hpdev->pci_slot);
if (hpdev->pci_slot)
pci_destroy_slot(hpdev->pci_slot);
if (hpdev->pci_slot)
pci_destroy_slot(hpdev->pci_slot);
struct pci_slot *pci_slot;
bus = slot->pci_slot->bus;
struct pci_bus *bus = slot->hotplug_slot.pci_slot->bus;
struct pci_bus *bus = slot_cur->hotplug_slot.pci_slot->bus;
static ssize_t attention_read_file(struct pci_slot *pci_slot, char *buf)
retval = get_attention_status(pci_slot->hotplug, &value);
static ssize_t attention_write_file(struct pci_slot *pci_slot, const char *buf,
struct hotplug_slot *slot = pci_slot->hotplug;
static ssize_t latch_read_file(struct pci_slot *pci_slot, char *buf)
retval = get_latch_status(pci_slot->hotplug, &value);
static ssize_t presence_read_file(struct pci_slot *pci_slot, char *buf)
retval = get_adapter_status(pci_slot->hotplug, &value);
static ssize_t test_write_file(struct pci_slot *pci_slot, const char *buf,
struct hotplug_slot *slot = pci_slot->hotplug;
static int fs_add_slot(struct hotplug_slot *slot, struct pci_slot *pci_slot)
retval = sysfs_create_link(&pci_slot->kobj, kobj, "module");
dev_err(&pci_slot->bus->dev,
retval = sysfs_create_file(&pci_slot->kobj,
retval = sysfs_create_file(&pci_slot->kobj,
retval = sysfs_create_file(&pci_slot->kobj,
retval = sysfs_create_file(&pci_slot->kobj,
retval = sysfs_create_file(&pci_slot->kobj,
sysfs_remove_file(&pci_slot->kobj,
sysfs_remove_file(&pci_slot->kobj, &hotplug_slot_attr_latch.attr);
sysfs_remove_file(&pci_slot->kobj,
sysfs_remove_file(&pci_slot->kobj, &hotplug_slot_attr_power.attr);
sysfs_remove_link(&pci_slot->kobj, "module");
static void fs_remove_slot(struct hotplug_slot *slot, struct pci_slot *pci_slot)
sysfs_remove_file(&pci_slot->kobj, &hotplug_slot_attr_power.attr);
sysfs_remove_file(&pci_slot->kobj,
sysfs_remove_file(&pci_slot->kobj, &hotplug_slot_attr_latch.attr);
sysfs_remove_file(&pci_slot->kobj,
sysfs_remove_file(&pci_slot->kobj, &hotplug_slot_attr_test.attr);
sysfs_remove_link(&pci_slot->kobj, "module");
struct pci_slot *pci_slot;
pci_slot = pci_create_slot(bus, devnr, name, slot);
if (IS_ERR(pci_slot))
return PTR_ERR(pci_slot);
slot->pci_slot = pci_slot;
pci_slot->hotplug = slot;
struct pci_slot *pci_slot;
pci_slot = slot->pci_slot;
result = fs_add_slot(slot, pci_slot);
kobject_uevent(&pci_slot->kobj, KOBJ_ADD);
fs_remove_slot(slot, slot->pci_slot);
struct pci_slot *pci_slot = slot->pci_slot;
slot->pci_slot = NULL;
pci_slot->hotplug = NULL;
pci_destroy_slot(pci_slot);
static ssize_t power_read_file(struct pci_slot *pci_slot, char *buf)
retval = get_power_status(pci_slot->hotplug, &value);
static ssize_t power_write_file(struct pci_slot *pci_slot, const char *buf,
struct hotplug_slot *slot = pci_slot->hotplug;
struct pci_slot *slot;
static bool pci_slot_resettable(struct pci_slot *slot)
static void pci_slot_lock(struct pci_slot *slot)
static void pci_slot_unlock(struct pci_slot *slot)
static int pci_slot_trylock(struct pci_slot *slot)
static void pci_slot_save_and_disable_locked(struct pci_slot *slot)
static void pci_slot_restore_locked(struct pci_slot *slot)
static int pci_slot_reset(struct pci_slot *slot, bool probe)
int pci_probe_reset_slot(struct pci_slot *slot)
static int __pci_reset_slot(struct pci_slot *slot)
struct pci_slot *slot;
#define to_pci_slot(s) container_of(s, struct pci_slot, kobj)
ssize_t (*show)(struct pci_slot *, char *);
ssize_t (*store)(struct pci_slot *, const char *, size_t);
static int rename_slot(struct pci_slot *slot, const char *name)
struct pci_slot *slot;
static struct pci_slot *get_slot(struct pci_bus *parent, int slot_nr)
struct pci_slot *slot;
struct pci_slot *slot = to_pci_slot(kobj);
struct pci_slot *pci_create_slot(struct pci_bus *parent, int slot_nr,
struct pci_slot *slot;
struct pci_slot *slot = to_pci_slot(kobj);
void pci_destroy_slot(struct pci_slot *slot)
static ssize_t address_read_file(struct pci_slot *slot, char *buf)
static ssize_t max_speed_read_file(struct pci_slot *slot, char *buf)
static ssize_t cur_speed_read_file(struct pci_slot *slot, char *buf)
struct pci_slot *slot = to_pci_slot(kobj);
u8 pci_slot;
int pci_slot;
bfad->hal_pcidev.pci_slot = PCI_SLOT(pdev->devfn);
uint8_t pci_slot;
hinfo->pci_slot = PCI_SLOT(adapter->pdev->devfn);
cinfo->pcidev = hinfo->pci_slot;
cinfo->pcislot = hinfo->pci_slot;
static bool vfio_pci_dev_below_slot(struct pci_dev *pdev, struct pci_slot *slot)
struct pci_slot *pci_create_slot(struct pci_bus *parent, int slot_nr,
void pci_destroy_slot(struct pci_slot *slot);
int pci_probe_reset_slot(struct pci_slot *slot);
struct pci_slot *slot; /* Physical slot this device is in */
static inline const char *pci_slot_name(const struct pci_slot *slot)
struct pci_slot *pci_slot;
return pci_slot_name(slot->pci_slot);
__s32 pci_slot;