Lines Matching refs:slot
66 static inline int is_slot64bit(struct slot *slot) in is_slot64bit() argument
68 return (readb(slot->p_sm_slot + SMBIOS_SLOT_WIDTH) == 0x06) ? 1 : 0; in is_slot64bit()
71 static inline int is_slot66mhz(struct slot *slot) in is_slot66mhz() argument
73 return (readb(slot->p_sm_slot + SMBIOS_SLOT_TYPE) == 0x0E) ? 1 : 0; in is_slot66mhz()
172 tslot = cpqhp_routing_table->slots[loop].slot; in pci_print_IRQ_route()
268 struct slot *old_slot, *next_slot; in ctrl_slot_cleanup()
270 old_slot = ctrl->slot; in ctrl_slot_cleanup()
271 ctrl->slot = NULL; in ctrl_slot_cleanup()
307 get_slot_mapping(struct pci_bus *bus, u8 bus_num, u8 dev_num, u8 *slot) in get_slot_mapping() argument
315 dbg("%s: %p, %d, %d, %p\n", __func__, bus, bus_num, dev_num, slot); in get_slot_mapping()
323 tslot = cpqhp_routing_table->slots[loop].slot; in get_slot_mapping()
326 *slot = tslot; in get_slot_mapping()
360 *slot = bridgeSlot; in get_slot_mapping()
418 struct slot *slot = to_slot(hotplug_slot); in set_attention_status() local
419 struct controller *ctrl = slot->ctrl; in set_attention_status()
425 dbg("%s - physical_slot = %s\n", __func__, slot_name(slot)); in set_attention_status()
427 if (cpqhp_get_bus_dev(ctrl, &bus, &devfn, slot->number) == -1) in set_attention_status()
445 struct slot *slot = to_slot(hotplug_slot); in process_SI() local
446 struct controller *ctrl = slot->ctrl; in process_SI()
452 dbg("%s - physical_slot = %s\n", __func__, slot_name(slot)); in process_SI()
454 if (cpqhp_get_bus_dev(ctrl, &bus, &devfn, slot->number) == -1) in process_SI()
477 struct slot *slot = to_slot(hotplug_slot); in process_SS() local
478 struct controller *ctrl = slot->ctrl; in process_SS()
484 dbg("%s - physical_slot = %s\n", __func__, slot_name(slot)); in process_SS()
486 if (cpqhp_get_bus_dev(ctrl, &bus, &devfn, slot->number) == -1) in process_SS()
504 struct slot *slot = to_slot(hotplug_slot); in hardware_test() local
505 struct controller *ctrl = slot->ctrl; in hardware_test()
507 dbg("%s - physical_slot = %s\n", __func__, slot_name(slot)); in hardware_test()
515 struct slot *slot = to_slot(hotplug_slot); in get_power_status() local
516 struct controller *ctrl = slot->ctrl; in get_power_status()
518 dbg("%s - physical_slot = %s\n", __func__, slot_name(slot)); in get_power_status()
520 *value = get_slot_enabled(ctrl, slot); in get_power_status()
526 struct slot *slot = to_slot(hotplug_slot); in get_attention_status() local
527 struct controller *ctrl = slot->ctrl; in get_attention_status()
529 dbg("%s - physical_slot = %s\n", __func__, slot_name(slot)); in get_attention_status()
531 *value = cpq_get_attention_status(ctrl, slot); in get_attention_status()
537 struct slot *slot = to_slot(hotplug_slot); in get_latch_status() local
538 struct controller *ctrl = slot->ctrl; in get_latch_status()
540 dbg("%s - physical_slot = %s\n", __func__, slot_name(slot)); in get_latch_status()
542 *value = cpq_get_latch_status(ctrl, slot); in get_latch_status()
549 struct slot *slot = to_slot(hotplug_slot); in get_adapter_status() local
550 struct controller *ctrl = slot->ctrl; in get_adapter_status()
552 dbg("%s - physical_slot = %s\n", __func__, slot_name(slot)); in get_adapter_status()
554 *value = get_presence_status(ctrl, slot); in get_adapter_status()
576 struct slot *slot; in ctrl_slot_setup() local
596 slot = kzalloc(sizeof(*slot), GFP_KERNEL); in ctrl_slot_setup()
597 if (!slot) { in ctrl_slot_setup()
602 slot->ctrl = ctrl; in ctrl_slot_setup()
603 slot->bus = ctrl->bus; in ctrl_slot_setup()
604 slot->device = slot_device; in ctrl_slot_setup()
605 slot->number = slot_number; in ctrl_slot_setup()
606 dbg("slot->number = %u\n", slot->number); in ctrl_slot_setup()
612 slot->number)) { in ctrl_slot_setup()
617 slot->p_sm_slot = slot_entry; in ctrl_slot_setup()
619 timer_setup(&slot->task_event, cpqhp_pushbutton_thread, 0); in ctrl_slot_setup()
620 slot->task_event.expires = jiffies + 5 * HZ; in ctrl_slot_setup()
625 slot->capabilities |= PCISLOT_REPLACE_SUPPORTED; in ctrl_slot_setup()
626 slot->capabilities |= PCISLOT_INTERLOCK_SUPPORTED; in ctrl_slot_setup()
628 if (is_slot64bit(slot)) in ctrl_slot_setup()
629 slot->capabilities |= PCISLOT_64_BIT_SUPPORTED; in ctrl_slot_setup()
630 if (is_slot66mhz(slot)) in ctrl_slot_setup()
631 slot->capabilities |= PCISLOT_66_MHZ_SUPPORTED; in ctrl_slot_setup()
633 slot->capabilities |= PCISLOT_66_MHZ_OPERATION; in ctrl_slot_setup()
639 slot->capabilities |= in ctrl_slot_setup()
643 slot->capabilities |= in ctrl_slot_setup()
646 slot->capabilities |= in ctrl_slot_setup()
650 snprintf(name, SLOT_NAME_SIZE, "%u", slot->number); in ctrl_slot_setup()
651 slot->hotplug_slot.ops = &cpqphp_hotplug_slot_ops; in ctrl_slot_setup()
654 slot->bus, slot->device, in ctrl_slot_setup()
655 slot->number, ctrl->slot_device_offset, in ctrl_slot_setup()
657 result = pci_hp_register(&slot->hotplug_slot, in ctrl_slot_setup()
659 slot->device, in ctrl_slot_setup()
666 slot->next = ctrl->slot; in ctrl_slot_setup()
667 ctrl->slot = slot; in ctrl_slot_setup()
676 kfree(slot); in ctrl_slot_setup()