Lines Matching defs:ctrl
44 static inline int pciehp_readw(struct controller *ctrl, int reg, u16 *value) in pciehp_readw()
50 static inline int pciehp_readl(struct controller *ctrl, int reg, u32 *value) in pciehp_readl()
56 static inline int pciehp_writew(struct controller *ctrl, int reg, u16 value) in pciehp_writew()
62 static inline int pciehp_writel(struct controller *ctrl, int reg, u32 value) in pciehp_writel()
78 struct controller *ctrl = (struct controller *)data; in int_poll_timeout() local
91 static void start_int_poll_timer(struct controller *ctrl, int sec) in start_int_poll_timer()
103 static inline int pciehp_request_irq(struct controller *ctrl) in pciehp_request_irq()
122 static inline void pciehp_free_irq(struct controller *ctrl) in pciehp_free_irq()
130 static int pcie_poll_cmd(struct controller *ctrl) in pcie_poll_cmd()
152 static void pcie_wait_cmd(struct controller *ctrl, int poll) in pcie_wait_cmd()
172 static int pcie_write_cmd(struct controller *ctrl, u16 cmd, u16 mask) in pcie_write_cmd()
244 static bool check_link_active(struct controller *ctrl) in check_link_active()
260 static void __pcie_wait_link_active(struct controller *ctrl, bool active) in __pcie_wait_link_active()
276 static void pcie_wait_link_active(struct controller *ctrl) in pcie_wait_link_active()
281 static void pcie_wait_link_not_active(struct controller *ctrl) in pcie_wait_link_not_active()
312 int pciehp_check_link_status(struct controller *ctrl) in pciehp_check_link_status()
355 static int __pciehp_link_set(struct controller *ctrl, bool enable) in __pciehp_link_set()
381 static int pciehp_link_enable(struct controller *ctrl) in pciehp_link_enable()
386 static int pciehp_link_disable(struct controller *ctrl) in pciehp_link_disable()
393 struct controller *ctrl = slot->ctrl; in pciehp_get_attention_status() local
432 struct controller *ctrl = slot->ctrl; in pciehp_get_power_status() local
464 struct controller *ctrl = slot->ctrl; in pciehp_get_latch_status() local
480 struct controller *ctrl = slot->ctrl; in pciehp_get_adapter_status() local
496 struct controller *ctrl = slot->ctrl; in pciehp_query_power_fault() local
510 struct controller *ctrl = slot->ctrl; in pciehp_set_attention_status() local
535 struct controller *ctrl = slot->ctrl; in pciehp_green_led_on() local
548 struct controller *ctrl = slot->ctrl; in pciehp_green_led_off() local
561 struct controller *ctrl = slot->ctrl; in pciehp_green_led_blink() local
574 struct controller *ctrl = slot->ctrl; in pciehp_power_on_slot() local
618 struct controller *ctrl = slot->ctrl; in pciehp_power_off_slot() local
645 struct controller *ctrl = (struct controller *)dev_id; in pcie_isr() local
708 int pcie_enable_notification(struct controller *ctrl) in pcie_enable_notification()
741 static void pcie_disable_notification(struct controller *ctrl) in pcie_disable_notification()
752 int pcie_init_notification(struct controller *ctrl) in pcie_init_notification()
764 static void pcie_shutdown_notification(struct controller *ctrl) in pcie_shutdown_notification()
773 static int pcie_init_slot(struct controller *ctrl) in pcie_init_slot()
797 static void pcie_cleanup_slot(struct controller *ctrl) in pcie_cleanup_slot()
805 static inline void dbg_ctrl(struct controller *ctrl) in dbg_ctrl()
857 struct controller *ctrl; in pcie_init() local
918 void pciehp_release_ctrl(struct controller *ctrl) in pciehp_release_ctrl()