• Home
  • Raw
  • Download

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()
306 get_slot_mapping(struct pci_bus *bus, u8 bus_num, u8 dev_num, u8 *slot) in get_slot_mapping() argument
314 dbg("%s: %p, %d, %d, %p\n", __func__, bus, bus_num, dev_num, slot); in get_slot_mapping()
322 tslot = cpqhp_routing_table->slots[loop].slot; in get_slot_mapping()
325 *slot = tslot; in get_slot_mapping()
359 *slot = bridgeSlot; in get_slot_mapping()
417 struct slot *slot = to_slot(hotplug_slot); in set_attention_status() local
418 struct controller *ctrl = slot->ctrl; in set_attention_status()
424 dbg("%s - physical_slot = %s\n", __func__, slot_name(slot)); in set_attention_status()
426 if (cpqhp_get_bus_dev(ctrl, &bus, &devfn, slot->number) == -1) in set_attention_status()
444 struct slot *slot = to_slot(hotplug_slot); in process_SI() local
445 struct controller *ctrl = slot->ctrl; in process_SI()
451 dbg("%s - physical_slot = %s\n", __func__, slot_name(slot)); in process_SI()
453 if (cpqhp_get_bus_dev(ctrl, &bus, &devfn, slot->number) == -1) in process_SI()
476 struct slot *slot = to_slot(hotplug_slot); in process_SS() local
477 struct controller *ctrl = slot->ctrl; in process_SS()
483 dbg("%s - physical_slot = %s\n", __func__, slot_name(slot)); in process_SS()
485 if (cpqhp_get_bus_dev(ctrl, &bus, &devfn, slot->number) == -1) in process_SS()
503 struct slot *slot = to_slot(hotplug_slot); in hardware_test() local
504 struct controller *ctrl = slot->ctrl; in hardware_test()
506 dbg("%s - physical_slot = %s\n", __func__, slot_name(slot)); in hardware_test()
514 struct slot *slot = to_slot(hotplug_slot); in get_power_status() local
515 struct controller *ctrl = slot->ctrl; in get_power_status()
517 dbg("%s - physical_slot = %s\n", __func__, slot_name(slot)); in get_power_status()
519 *value = get_slot_enabled(ctrl, slot); in get_power_status()
525 struct slot *slot = to_slot(hotplug_slot); in get_attention_status() local
526 struct controller *ctrl = slot->ctrl; in get_attention_status()
528 dbg("%s - physical_slot = %s\n", __func__, slot_name(slot)); in get_attention_status()
530 *value = cpq_get_attention_status(ctrl, slot); in get_attention_status()
536 struct slot *slot = to_slot(hotplug_slot); in get_latch_status() local
537 struct controller *ctrl = slot->ctrl; in get_latch_status()
539 dbg("%s - physical_slot = %s\n", __func__, slot_name(slot)); in get_latch_status()
541 *value = cpq_get_latch_status(ctrl, slot); in get_latch_status()
548 struct slot *slot = to_slot(hotplug_slot); in get_adapter_status() local
549 struct controller *ctrl = slot->ctrl; in get_adapter_status()
551 dbg("%s - physical_slot = %s\n", __func__, slot_name(slot)); in get_adapter_status()
553 *value = get_presence_status(ctrl, slot); in get_adapter_status()
575 struct slot *slot; in ctrl_slot_setup() local
595 slot = kzalloc(sizeof(*slot), GFP_KERNEL); in ctrl_slot_setup()
596 if (!slot) { in ctrl_slot_setup()
601 slot->ctrl = ctrl; in ctrl_slot_setup()
602 slot->bus = ctrl->bus; in ctrl_slot_setup()
603 slot->device = slot_device; in ctrl_slot_setup()
604 slot->number = slot_number; in ctrl_slot_setup()
605 dbg("slot->number = %u\n", slot->number); in ctrl_slot_setup()
611 slot->number)) { in ctrl_slot_setup()
616 slot->p_sm_slot = slot_entry; in ctrl_slot_setup()
618 timer_setup(&slot->task_event, cpqhp_pushbutton_thread, 0); in ctrl_slot_setup()
619 slot->task_event.expires = jiffies + 5 * HZ; in ctrl_slot_setup()
624 slot->capabilities |= PCISLOT_REPLACE_SUPPORTED; in ctrl_slot_setup()
625 slot->capabilities |= PCISLOT_INTERLOCK_SUPPORTED; in ctrl_slot_setup()
627 if (is_slot64bit(slot)) in ctrl_slot_setup()
628 slot->capabilities |= PCISLOT_64_BIT_SUPPORTED; in ctrl_slot_setup()
629 if (is_slot66mhz(slot)) in ctrl_slot_setup()
630 slot->capabilities |= PCISLOT_66_MHZ_SUPPORTED; in ctrl_slot_setup()
632 slot->capabilities |= PCISLOT_66_MHZ_OPERATION; in ctrl_slot_setup()
638 slot->capabilities |= in ctrl_slot_setup()
642 slot->capabilities |= in ctrl_slot_setup()
645 slot->capabilities |= in ctrl_slot_setup()
649 snprintf(name, SLOT_NAME_SIZE, "%u", slot->number); in ctrl_slot_setup()
650 slot->hotplug_slot.ops = &cpqphp_hotplug_slot_ops; in ctrl_slot_setup()
653 slot->bus, slot->device, in ctrl_slot_setup()
654 slot->number, ctrl->slot_device_offset, in ctrl_slot_setup()
656 result = pci_hp_register(&slot->hotplug_slot, in ctrl_slot_setup()
658 slot->device, in ctrl_slot_setup()
665 slot->next = ctrl->slot; in ctrl_slot_setup()
666 ctrl->slot = slot; in ctrl_slot_setup()
675 kfree(slot); in ctrl_slot_setup()