Lines Matching refs:loongson_gpio_chip
32 struct loongson_gpio_chip { struct
40 static inline struct loongson_gpio_chip *to_loongson_gpio_chip(struct gpio_chip *chip) in to_loongson_gpio_chip() argument
42 return container_of(chip, struct loongson_gpio_chip, chip); in to_loongson_gpio_chip()
45 static inline void loongson_commit_direction(struct loongson_gpio_chip *lgpio, unsigned int pin, in loongson_commit_direction()
53 static void loongson_commit_level(struct loongson_gpio_chip *lgpio, unsigned int pin, int high) in loongson_commit_level()
63 struct loongson_gpio_chip *lgpio = to_loongson_gpio_chip(chip); in loongson_gpio_direction_input()
75 struct loongson_gpio_chip *lgpio = to_loongson_gpio_chip(chip); in loongson_gpio_direction_output()
89 struct loongson_gpio_chip *lgpio = to_loongson_gpio_chip(chip); in loongson_gpio_get()
100 struct loongson_gpio_chip *lgpio = to_loongson_gpio_chip(chip); in loongson_gpio_get_direction()
112 struct loongson_gpio_chip *lgpio = to_loongson_gpio_chip(chip); in loongson_gpio_set()
123 struct loongson_gpio_chip *lgpio = to_loongson_gpio_chip(chip); in loongson_gpio_to_irq()
137 static int loongson_gpio_init(struct device *dev, struct loongson_gpio_chip *lgpio, in loongson_gpio_init()
178 struct loongson_gpio_chip *lgpio; in loongson_gpio_probe()