Home
last modified time | relevance | path

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

/linux/drivers/gpio/
H A Dgpio-loongson-64bit.c45 static inline void loongson_commit_direction(struct loongson_gpio_chip *lgpio, unsigned int pin, in loongson_commit_direction() argument
50 writeb(bval, lgpio->reg_base + lgpio->chip_data->conf_offset + 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() argument
57 writeb(bval, lgpio->reg_base + lgpio->chip_data->out_offset + pin); in loongson_commit_level()
63 struct loongson_gpio_chip *lgpio = to_loongson_gpio_chip(chip); in loongson_gpio_direction_input() local
65 spin_lock_irqsave(&lgpio->lock, flags); in loongson_gpio_direction_input()
66 loongson_commit_direction(lgpio, pin, 1); in loongson_gpio_direction_input()
67 spin_unlock_irqrestore(&lgpio->lock, flags); in loongson_gpio_direction_input()
75 struct loongson_gpio_chip *lgpio = to_loongson_gpio_chip(chip); in loongson_gpio_direction_output() local
77 spin_lock_irqsave(&lgpio->lock, flags); in loongson_gpio_direction_output()
[all …]