Home
last modified time | relevance | path

Searched refs:lgpio (Results 1 – 1 of 1) sorted by relevance

/drivers/gpio/
Dgpio-loongson-64bit.c44 static inline void loongson_commit_direction(struct loongson_gpio_chip *lgpio, unsigned int pin, in loongson_commit_direction() argument
49 writeb(bval, lgpio->reg_base + lgpio->chip_data->conf_offset + pin); in loongson_commit_direction()
52 static void loongson_commit_level(struct loongson_gpio_chip *lgpio, unsigned int pin, int high) in loongson_commit_level() argument
56 writeb(bval, lgpio->reg_base + lgpio->chip_data->out_offset + pin); in loongson_commit_level()
62 struct loongson_gpio_chip *lgpio = to_loongson_gpio_chip(chip); in loongson_gpio_direction_input() local
64 spin_lock_irqsave(&lgpio->lock, flags); in loongson_gpio_direction_input()
65 loongson_commit_direction(lgpio, pin, 1); in loongson_gpio_direction_input()
66 spin_unlock_irqrestore(&lgpio->lock, flags); in loongson_gpio_direction_input()
74 struct loongson_gpio_chip *lgpio = to_loongson_gpio_chip(chip); in loongson_gpio_direction_output() local
76 spin_lock_irqsave(&lgpio->lock, flags); in loongson_gpio_direction_output()
[all …]