Lines Matching refs:slot
260 struct slot { struct
262 struct slot *next; argument
305 struct slot *slot; member
458 extern int cpqhp_get_bus_dev (struct controller *ctrl, u8 *bus_num, u8 *dev_num, u8 slot);
470 extern struct slot *cpqhp_find_slot (struct controller *ctrl, u8 device);
486 static inline int slot_paranoia_check (struct slot *slot, const char *function) in slot_paranoia_check() argument
488 if (!slot) { in slot_paranoia_check()
492 if (slot->magic != SLOT_MAGIC) { in slot_paranoia_check()
496 if (!slot->hotplug_slot) { in slot_paranoia_check()
503 static inline struct slot *get_slot (struct hotplug_slot *hotplug_slot, const char *function) in get_slot()
505 struct slot *slot; in get_slot() local
512 slot = (struct slot *)hotplug_slot->private; in get_slot()
513 if (slot_paranoia_check (slot, function)) in get_slot()
515 return slot; in get_slot()
542 static inline void amber_LED_on (struct controller *ctrl, u8 slot) in amber_LED_on() argument
547 led_control |= (0x01010000L << slot); in amber_LED_on()
552 static inline void amber_LED_off (struct controller *ctrl, u8 slot) in amber_LED_off() argument
557 led_control &= ~(0x01010000L << slot); in amber_LED_off()
562 static inline int read_amber_LED (struct controller *ctrl, u8 slot) in read_amber_LED() argument
567 led_control &= (0x01010000L << slot); in read_amber_LED()
573 static inline void green_LED_on (struct controller *ctrl, u8 slot) in green_LED_on() argument
578 led_control |= 0x0101L << slot; in green_LED_on()
582 static inline void green_LED_off (struct controller *ctrl, u8 slot) in green_LED_off() argument
587 led_control &= ~(0x0101L << slot); in green_LED_off()
592 static inline void green_LED_blink (struct controller *ctrl, u8 slot) in green_LED_blink() argument
597 led_control &= ~(0x0101L << slot); in green_LED_blink()
598 led_control |= (0x0001L << slot); in green_LED_blink()
603 static inline void slot_disable (struct controller *ctrl, u8 slot) in slot_disable() argument
608 slot_enable &= ~(0x01 << slot); in slot_disable()
613 static inline void slot_enable (struct controller *ctrl, u8 slot) in slot_enable() argument
618 slot_enable |= (0x01 << slot); in slot_enable()
623 static inline u8 is_slot_enabled (struct controller *ctrl, u8 slot) in is_slot_enabled() argument
628 slot_enable &= (0x01 << slot); in is_slot_enabled()
696 static inline void enable_slot_power (struct controller *ctrl, u8 slot) in enable_slot_power() argument
701 slot_power |= (0x01 << slot); in enable_slot_power()
705 static inline void disable_slot_power (struct controller *ctrl, u8 slot) in disable_slot_power() argument
710 slot_power &= ~(0x01 << slot); in disable_slot_power()
715 static inline int cpq_get_attention_status (struct controller *ctrl, struct slot *slot) in cpq_get_attention_status() argument
719 if (slot == NULL) in cpq_get_attention_status()
722 hp_slot = slot->device - ctrl->slot_device_offset; in cpq_get_attention_status()
728 static inline int get_slot_enabled (struct controller *ctrl, struct slot *slot) in get_slot_enabled() argument
732 if (slot == NULL) in get_slot_enabled()
735 hp_slot = slot->device - ctrl->slot_device_offset; in get_slot_enabled()
741 static inline int cpq_get_latch_status (struct controller *ctrl, struct slot *slot) in cpq_get_latch_status() argument
746 if (slot == NULL) in cpq_get_latch_status()
749 hp_slot = slot->device - ctrl->slot_device_offset; in cpq_get_latch_status()
750 …dbg("%s: slot->device = %d, ctrl->slot_device_offset = %d \n", __FUNCTION__, slot->device, ctrl->s… in cpq_get_latch_status()
758 static inline int get_presence_status (struct controller *ctrl, struct slot *slot) in get_presence_status() argument
764 if (slot == NULL) in get_presence_status()
767 hp_slot = slot->device - ctrl->slot_device_offset; in get_presence_status()
777 static inline void make_slot_name (char *buffer, int buffer_size, struct slot *slot) in make_slot_name() argument
779 snprintf (buffer, buffer_size, "%d", slot->number); in make_slot_name()
816 struct slot *slot; in set_controller_speed() local
827 for(slot = ctrl->slot; slot; slot = slot->next) { in set_controller_speed()
828 if (slot->device == (hp_slot + ctrl->slot_device_offset)) in set_controller_speed()
830 if (!slot->hotplug_slot && !slot->hotplug_slot->info) in set_controller_speed()
832 if (slot->hotplug_slot->info->adapter_status == 0) in set_controller_speed()
927 slot = cpqhp_find_slot(ctrl, hp_slot + ctrl->slot_device_offset); in set_controller_speed()
930 slot->number); in set_controller_speed()