Lines Matching defs:offset

328 static const struct aspeed_gpio_bank *to_bank(unsigned int offset)  in to_bank()
342 struct aspeed_gpio *gpio, unsigned int offset) in find_bank_props()
355 static inline bool have_gpio(struct aspeed_gpio *gpio, unsigned int offset) in have_gpio()
365 static inline bool have_input(struct aspeed_gpio *gpio, unsigned int offset) in have_input()
375 static inline bool have_output(struct aspeed_gpio *gpio, unsigned int offset) in have_output()
382 static void aspeed_gpio_change_cmd_source(struct aspeed_gpio *gpio, unsigned int offset, int cmdsrc) in aspeed_gpio_change_cmd_source()
389 unsigned int offset) in aspeed_gpio_copro_request()
398 unsigned int offset) in aspeed_gpio_copro_release()
410 static int aspeed_gpio_get(struct gpio_chip *gc, unsigned int offset) in aspeed_gpio_get()
417 static void __aspeed_gpio_set(struct gpio_chip *gc, unsigned int offset, in __aspeed_gpio_set()
427 static int aspeed_gpio_set(struct gpio_chip *gc, unsigned int offset, int val) in aspeed_gpio_set()
444 static int aspeed_gpio_dir_in(struct gpio_chip *gc, unsigned int offset) in aspeed_gpio_dir_in()
463 unsigned int offset, int val) in aspeed_gpio_dir_out()
483 static int aspeed_gpio_get_direction(struct gpio_chip *gc, unsigned int offset) in aspeed_gpio_get_direction()
503 int *offset) in irqd_to_aspeed_gpio_data()
523 int rc, offset; in aspeed_gpio_irq_ack() local
543 int rc, offset; in aspeed_gpio_irq_set_mask() local
585 int rc, offset; in aspeed_gpio_set_type() local
661 unsigned int offset; in aspeed_init_irq_valid_mask() local
679 unsigned int offset, bool enable) in aspeed_gpio_reset_tolerance()
696 static int aspeed_gpio_request(struct gpio_chip *chip, unsigned int offset) in aspeed_gpio_request()
704 static void aspeed_gpio_free(struct gpio_chip *chip, unsigned int offset) in aspeed_gpio_free()
734 unsigned int offset, unsigned int timer) in register_allocated_timer()
753 unsigned int offset) in unregister_allocated_timer()
772 unsigned int offset) in timer_allocation_registered()
778 static void configure_timer(struct aspeed_gpio *gpio, unsigned int offset, in configure_timer()
788 static int enable_debounce(struct gpio_chip *chip, unsigned int offset, in enable_debounce()
866 static int disable_debounce(struct gpio_chip *chip, unsigned int offset) in disable_debounce()
880 static int set_debounce(struct gpio_chip *chip, unsigned int offset, in set_debounce()
894 static int aspeed_gpio_set_config(struct gpio_chip *chip, unsigned int offset, in aspeed_gpio_set_config()
945 int rc = 0, bindex, offset = gpio_chip_hwgpio(desc); in aspeed_gpio_copro_grab_gpio() local
990 int rc = 0, bindex, offset = gpio_chip_hwgpio(desc); in aspeed_gpio_copro_release_gpio() local
1022 int rc, offset; in aspeed_gpio_irq_print_chip() local
1041 static void aspeed_g4_reg_bit_set(struct aspeed_gpio *gpio, unsigned int offset, in aspeed_g4_reg_bit_set()
1063 static bool aspeed_g4_reg_bit_get(struct aspeed_gpio *gpio, unsigned int offset, in aspeed_g4_reg_bit_get()
1072 static int aspeed_g4_reg_bank_get(struct aspeed_gpio *gpio, unsigned int offset, in aspeed_g4_reg_bank_get()
1084 static void aspeed_g4_privilege_ctrl(struct aspeed_gpio *gpio, unsigned int offset, int cmdsrc) in aspeed_g4_privilege_ctrl()
1109 static bool aspeed_g4_copro_request(struct aspeed_gpio *gpio, unsigned int offset) in aspeed_g4_copro_request()
1130 static void aspeed_g4_copro_release(struct aspeed_gpio *gpio, unsigned int offset) in aspeed_g4_copro_release()
1156 static void aspeed_g7_reg_bit_set(struct aspeed_gpio *gpio, unsigned int offset, in aspeed_g7_reg_bit_set()
1169 static bool aspeed_g7_reg_bit_get(struct aspeed_gpio *gpio, unsigned int offset, in aspeed_g7_reg_bit_get()
1185 static int aspeed_g7_reg_bank_get(struct aspeed_gpio *gpio, unsigned int offset, in aspeed_g7_reg_bank_get()