Lines Matching refs:controller

138 /* offsets to the controller registers based on the above structure layout */
261 struct controller *ctrl;
277 struct controller {
278 struct controller *next;
281 void __iomem *hpc_reg; /* cookie for our pci controller location */
293 u8 bus; /* bus number for the pci hotplug controller */
382 #define msg_HPC_rev_error "Unsupported revision of the PCI hot plug controller found.\n"
383 #define msg_HPC_non_compaq_or_intel "The PCI hot plug controller is not supported by this driver.\n"
392 /* debugfs functions for the hotplug controller info */
395 void cpqhp_create_debugfs_files(struct controller *ctrl);
396 void cpqhp_remove_debugfs_files(struct controller *ctrl);
398 /* controller functions */
401 int cpqhp_find_available_resources(struct controller *ctrl,
408 int cpqhp_process_SI(struct controller *ctrl, struct pci_func *func);
409 int cpqhp_process_SS(struct controller *ctrl, struct pci_func *func);
410 int cpqhp_hardware_test(struct controller *ctrl, int test_num);
417 int cpqhp_get_bus_dev(struct controller *ctrl, u8 *bus_num, u8 *dev_num,
419 int cpqhp_save_config(struct controller *ctrl, int busnumber, int is_hot_plug);
420 int cpqhp_save_base_addr_length(struct controller *ctrl, struct pci_func *func);
421 int cpqhp_save_used_resources(struct controller *ctrl, struct pci_func *func);
422 int cpqhp_configure_board(struct controller *ctrl, struct pci_func *func);
423 int cpqhp_save_slot_config(struct controller *ctrl, struct pci_func *new_slot);
424 int cpqhp_valid_replace(struct controller *ctrl, struct pci_func *func);
429 int cpqhp_configure_device(struct controller *ctrl, struct pci_func *func);
435 extern struct controller *cpqhp_ctrl_list;
470 static inline void set_SOGO(struct controller *ctrl)
480 static inline void amber_LED_on(struct controller *ctrl, u8 slot)
490 static inline void amber_LED_off(struct controller *ctrl, u8 slot)
500 static inline int read_amber_LED(struct controller *ctrl, u8 slot)
511 static inline void green_LED_on(struct controller *ctrl, u8 slot)
520 static inline void green_LED_off(struct controller *ctrl, u8 slot)
530 static inline void green_LED_blink(struct controller *ctrl, u8 slot)
541 static inline void slot_disable(struct controller *ctrl, u8 slot)
551 static inline void slot_enable(struct controller *ctrl, u8 slot)
561 static inline u8 is_slot_enabled(struct controller *ctrl, u8 slot)
571 static inline u8 read_slot_enable(struct controller *ctrl)
578 * get_controller_speed - find the current frequency/mode of controller.
580 * @ctrl: controller to get frequency/mode for.
582 * Returns controller speed.
584 static inline u8 get_controller_speed(struct controller *ctrl)
611 * @ctrl: hotplug controller.
616 static inline u8 get_adapter_speed(struct controller *ctrl, u8 hp_slot)
633 static inline void enable_slot_power(struct controller *ctrl, u8 slot)
642 static inline void disable_slot_power(struct controller *ctrl, u8 slot)
652 static inline int cpq_get_attention_status(struct controller *ctrl, struct slot *slot)
662 static inline int get_slot_enabled(struct controller *ctrl, struct slot *slot)
672 static inline int cpq_get_latch_status(struct controller *ctrl,
688 static inline int get_presence_status(struct controller *ctrl,
704 static inline int wait_for_ctrl_irq(struct controller *ctrl)