• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/pci/hotplug/

Lines Matching defs:slot

82 static int set_attention_status	(struct hotplug_slot *slot, u8 value);
83 static int process_SI (struct hotplug_slot *slot);
84 static int process_SS (struct hotplug_slot *slot);
85 static int hardware_test (struct hotplug_slot *slot, u32 value);
86 static int get_power_status (struct hotplug_slot *slot, u8 *value);
87 static int get_attention_status (struct hotplug_slot *slot, u8 *value);
88 static int get_latch_status (struct hotplug_slot *slot, u8 *value);
89 static int get_adapter_status (struct hotplug_slot *slot, u8 *value);
90 static int get_max_bus_speed (struct hotplug_slot *slot, enum pci_bus_speed *value);
91 static int get_cur_bus_speed (struct hotplug_slot *slot, enum pci_bus_speed *value);
108 static inline int is_slot64bit(struct slot *slot)
110 return (readb(slot->p_sm_slot + SMBIOS_SLOT_WIDTH) == 0x06) ? 1 : 0;
113 static inline int is_slot66mhz(struct slot *slot)
115 return (readb(slot->p_sm_slot + SMBIOS_SLOT_TYPE) == 0x0E) ? 1 : 0;
159 * init_SERR - Initializes the per slot SERR generation.
211 dbg("bus dev func slot\n");
216 tslot = routing_table->slots[loop].slot;
316 struct slot *slot = hotplug_slot->private;
320 kfree(slot->hotplug_slot->info);
321 kfree(slot->hotplug_slot->name);
322 kfree(slot->hotplug_slot);
323 kfree(slot);
330 struct slot *slot;
350 slot = kzalloc(sizeof(*slot), GFP_KERNEL);
351 if (!slot)
354 slot->hotplug_slot = kzalloc(sizeof(*(slot->hotplug_slot)),
356 if (!slot->hotplug_slot)
358 hotplug_slot = slot->hotplug_slot;
371 slot->ctrl = ctrl;
372 slot->bus = ctrl->bus;
373 slot->device = slot_device;
374 slot->number = slot_number;
375 dbg("slot->number = %d\n", slot->number);
381 slot->number)) {
386 slot->p_sm_slot = slot_entry;
388 init_timer(&slot->task_event);
389 slot->task_event.expires = jiffies + 5 * HZ;
390 slot->task_event.function = cpqhp_pushbutton_thread;
393 slot->capabilities |= PCISLOT_REPLACE_SUPPORTED;
394 slot->capabilities |= PCISLOT_INTERLOCK_SUPPORTED;
396 if (is_slot64bit(slot))
397 slot->capabilities |= PCISLOT_64_BIT_SUPPORTED;
398 if (is_slot66mhz(slot))
399 slot->capabilities |= PCISLOT_66_MHZ_SUPPORTED;
401 slot->capabilities |= PCISLOT_66_MHZ_OPERATION;
407 slot->capabilities |=
411 slot->capabilities |=
413 // Check the slot enable
414 slot->capabilities |=
417 /* register this slot with the hotplug pci core */
419 hotplug_slot->private = slot;
420 make_slot_name(hotplug_slot->name, SLOT_NAME_SIZE, slot);
423 hotplug_slot_info->power_status = get_slot_enabled(ctrl, slot);
425 cpq_get_attention_status(ctrl, slot);
427 cpq_get_latch_status(ctrl, slot);
429 get_presence_status(ctrl, slot);
432 "ctrl->slot_device_offset %d, slot %d\n",
433 slot->bus, slot->device,
434 slot->number, ctrl->slot_device_offset,
442 slot->next = ctrl->slot;
443 ctrl->slot = slot;
458 kfree(slot);
465 struct slot *old_slot, *next_slot;
467 old_slot = ctrl->slot;
468 ctrl->slot = NULL;
494 // Description: Attempts to determine a logical slot mapping for a PCI
496 // in a slot.
500 // u8 *slot - Pointer to u8 where slot number will
506 get_slot_mapping(struct pci_bus *bus, u8 bus_num, u8 dev_num, u8 *slot)
515 dbg("%s: %p, %d, %d, %p\n", __FUNCTION__, bus, bus_num, dev_num, slot);
534 tslot = PCIIRQRoutingInfoLength->slots[loop].slot;
537 *slot = tslot;
545 * bridge's slot number. If I can not find an entry for
548 * slot. */
569 // slot number for the bridge.
571 *slot = bridgeSlot;
582 * cpqhp_set_attention_status - Turns the Amber LED for a slot on or off
622 * set_attention_status - Turns the Amber LED for a slot on or off
628 struct slot *slot = hotplug_slot->private;
629 struct controller *ctrl = slot->ctrl;
637 if (cpqhp_get_bus_dev(ctrl, &bus, &devfn, slot->number) == -1)
655 struct slot *slot = hotplug_slot->private;
656 struct controller *ctrl = slot->ctrl;
664 if (cpqhp_get_bus_dev(ctrl, &bus, &devfn, slot->number) == -1)
687 struct slot *slot = hotplug_slot->private;
688 struct controller *ctrl = slot->ctrl;
696 if (cpqhp_get_bus_dev(ctrl, &bus, &devfn, slot->number) == -1)
714 struct slot *slot = hotplug_slot->private;
715 struct controller *ctrl = slot->ctrl;
725 struct slot *slot = hotplug_slot->private;
726 struct controller *ctrl = slot->ctrl;
730 *value = get_slot_enabled(ctrl, slot);
736 struct slot *slot = hotplug_slot->private;
737 struct controller *ctrl = slot->ctrl;
741 *value = cpq_get_attention_status(ctrl, slot);
747 struct slot *slot = hotplug_slot->private;
748 struct controller *ctrl = slot->ctrl;
752 *value = cpq_get_latch_status(ctrl, slot);
759 struct slot *slot = hotplug_slot->private;
760 struct controller *ctrl = slot->ctrl;
764 *value = get_presence_status(ctrl, slot);
771 struct slot *slot = hotplug_slot->private;
772 struct controller *ctrl = slot->ctrl;
783 struct slot *slot = hotplug_slot->private;
784 struct controller *ctrl = slot->ctrl;
983 /* Check for slot switch type (0=mechanical, 1=not mechanical) */
1122 // find the physical slot number of the first hot plug slot
1124 /* Get slot won't work for devices behind bridges, but
1126 * bus/dev/func of a slot.
1176 /* Setup the slot information structures */
1314 dbg("Initialize slot lists\n");