Home
last modified time | relevance | path

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

/linux/drivers/gpio/
H A Dgpio-thunderx.c48 struct thunderx_gpio *txgpio; member
74 static bool thunderx_gpio_is_gpio_nowarn(struct thunderx_gpio *txgpio, in thunderx_gpio_is_gpio_nowarn() argument
77 u64 bit_cfg = readq(txgpio->register_base + bit_cfg_reg(line)); in thunderx_gpio_is_gpio_nowarn()
86 static bool thunderx_gpio_is_gpio(struct thunderx_gpio *txgpio, in thunderx_gpio_is_gpio() argument
89 bool rv = thunderx_gpio_is_gpio_nowarn(txgpio, line); in thunderx_gpio_is_gpio()
98 struct thunderx_gpio *txgpio = gpiochip_get_data(chip); in thunderx_gpio_request() local
100 return thunderx_gpio_is_gpio(txgpio, line) ? 0 : -EIO; in thunderx_gpio_request()
105 struct thunderx_gpio *txgpio = gpiochip_get_data(chip); in thunderx_gpio_dir_in() local
107 if (!thunderx_gpio_is_gpio(txgpio, line)) in thunderx_gpio_dir_in()
110 raw_spin_lock(&txgpio->lock); in thunderx_gpio_dir_in()
[all …]