Searched refs:txgpio (Results 1 – 1 of 1) sorted by relevance
48 struct thunderx_gpio *txgpio; member74 static bool thunderx_gpio_is_gpio_nowarn(struct thunderx_gpio *txgpio, in thunderx_gpio_is_gpio_nowarn() argument77 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() argument89 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() local100 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() local107 if (!thunderx_gpio_is_gpio(txgpio, line)) in thunderx_gpio_dir_in()110 raw_spin_lock(&txgpio->lock); in thunderx_gpio_dir_in()[all …]