Lines Matching full:aspeed_gpio
80 struct aspeed_gpio { struct
223 void (*reg_bit_set)(struct aspeed_gpio *gpio, unsigned int offset,
225 bool (*reg_bit_get)(struct aspeed_gpio *gpio, unsigned int offset,
227 int (*reg_bank_get)(struct aspeed_gpio *gpio, unsigned int offset,
229 void (*privilege_ctrl)(struct aspeed_gpio *gpio, unsigned int offset, int owner);
230 void (*privilege_init)(struct aspeed_gpio *gpio);
231 bool (*copro_request)(struct aspeed_gpio *gpio, unsigned int offset);
232 void (*copro_release)(struct aspeed_gpio *gpio, unsigned int offset);
255 static void __iomem *aspeed_gpio_g4_bank_reg(struct aspeed_gpio *gpio, in aspeed_gpio_g4_bank_reg()
341 struct aspeed_gpio *gpio, unsigned int offset) in find_bank_props()
354 static inline bool have_gpio(struct aspeed_gpio *gpio, unsigned int offset) in have_gpio()
364 static inline bool have_input(struct aspeed_gpio *gpio, unsigned int offset) in have_input()
374 static inline bool have_output(struct aspeed_gpio *gpio, unsigned int offset) in have_output()
381 static void aspeed_gpio_change_cmd_source(struct aspeed_gpio *gpio, unsigned int offset, int cmdsrc) in aspeed_gpio_change_cmd_source()
387 static bool aspeed_gpio_copro_request(struct aspeed_gpio *gpio, in aspeed_gpio_copro_request()
396 static void aspeed_gpio_copro_release(struct aspeed_gpio *gpio, in aspeed_gpio_copro_release()
403 static bool aspeed_gpio_support_copro(struct aspeed_gpio *gpio) in aspeed_gpio_support_copro()
411 struct aspeed_gpio *gpio = gpiochip_get_data(gc); in aspeed_gpio_get()
419 struct aspeed_gpio *gpio = gpiochip_get_data(gc); in __aspeed_gpio_set()
429 struct aspeed_gpio *gpio = gpiochip_get_data(gc); in aspeed_gpio_set()
445 struct aspeed_gpio *gpio = gpiochip_get_data(gc); in aspeed_gpio_dir_in()
467 struct aspeed_gpio *gpio = gpiochip_get_data(gc); in aspeed_gpio_dir_out()
489 struct aspeed_gpio *gpio = gpiochip_get_data(gc); in aspeed_gpio_get_direction()
509 struct aspeed_gpio **gpio, in irqd_to_aspeed_gpio_data()
512 struct aspeed_gpio *internal; in irqd_to_aspeed_gpio_data()
529 struct aspeed_gpio *gpio; in aspeed_gpio_irq_ack()
550 struct aspeed_gpio *gpio; in aspeed_gpio_irq_set_mask()
593 struct aspeed_gpio *gpio; in aspeed_gpio_set_type()
645 struct aspeed_gpio *gpio = gpiochip_get_data(gc); in aspeed_gpio_irq_handler()
664 struct aspeed_gpio *gpio = gpiochip_get_data(gc); in aspeed_init_irq_valid_mask()
688 struct aspeed_gpio *gpio = gpiochip_get_data(chip); in aspeed_gpio_reset_tolerance()
717 static int usecs_to_cycles(struct aspeed_gpio *gpio, unsigned long usecs, in usecs_to_cycles()
741 static int register_allocated_timer(struct aspeed_gpio *gpio, in register_allocated_timer()
760 static int unregister_allocated_timer(struct aspeed_gpio *gpio, in unregister_allocated_timer()
779 static inline bool timer_allocation_registered(struct aspeed_gpio *gpio, in timer_allocation_registered()
786 static void configure_timer(struct aspeed_gpio *gpio, unsigned int offset, in configure_timer()
799 struct aspeed_gpio *gpio = gpiochip_get_data(chip); in enable_debounce()
882 struct aspeed_gpio *gpio = gpiochip_get_data(chip); in disable_debounce()
900 struct aspeed_gpio *gpio = gpiochip_get_data(chip); in set_debounce()
961 struct aspeed_gpio *gpio = gpiochip_get_data(chip); in aspeed_gpio_copro_grab_gpio()
1010 struct aspeed_gpio *gpio = gpiochip_get_data(chip); in aspeed_gpio_copro_release_gpio()
1045 struct aspeed_gpio *gpio; in aspeed_gpio_irq_print_chip()
1065 static void aspeed_g4_reg_bit_set(struct aspeed_gpio *gpio, unsigned int offset, in aspeed_g4_reg_bit_set()
1087 static bool aspeed_g4_reg_bit_get(struct aspeed_gpio *gpio, unsigned int offset, in aspeed_g4_reg_bit_get()
1096 static int aspeed_g4_reg_bank_get(struct aspeed_gpio *gpio, unsigned int offset, in aspeed_g4_reg_bank_get()
1108 static void aspeed_g4_privilege_ctrl(struct aspeed_gpio *gpio, unsigned int offset, int cmdsrc) in aspeed_g4_privilege_ctrl()
1120 static void aspeed_g4_privilege_init(struct aspeed_gpio *gpio) in aspeed_g4_privilege_init()
1133 static bool aspeed_g4_copro_request(struct aspeed_gpio *gpio, unsigned int offset) in aspeed_g4_copro_request()
1154 static void aspeed_g4_copro_release(struct aspeed_gpio *gpio, unsigned int offset) in aspeed_g4_copro_release()
1180 static void aspeed_g7_reg_bit_set(struct aspeed_gpio *gpio, unsigned int offset, in aspeed_g7_reg_bit_set()
1193 static bool aspeed_g7_reg_bit_get(struct aspeed_gpio *gpio, unsigned int offset, in aspeed_g7_reg_bit_get()
1209 static int aspeed_g7_reg_bank_get(struct aspeed_gpio *gpio, unsigned int offset, in aspeed_g7_reg_bank_get()
1335 struct aspeed_gpio *gpio; in aspeed_gpio_probe()