Searched refs:gpch (Results 1 – 2 of 2) sorted by relevance
/linux-6.12.1/drivers/gpio/ |
D | gpio-rdc321x.c | 32 struct rdc321x_gpio *gpch; in rdc_gpio_get_value() local 36 gpch = gpiochip_get_data(chip); in rdc_gpio_get_value() 37 reg = gpio < 32 ? gpch->reg1_data_base : gpch->reg2_data_base; in rdc_gpio_get_value() 39 spin_lock(&gpch->lock); in rdc_gpio_get_value() 40 pci_write_config_dword(gpch->sb_pdev, reg, in rdc_gpio_get_value() 41 gpch->data_reg[gpio < 32 ? 0 : 1]); in rdc_gpio_get_value() 42 pci_read_config_dword(gpch->sb_pdev, reg, &value); in rdc_gpio_get_value() 43 spin_unlock(&gpch->lock); in rdc_gpio_get_value() 51 struct rdc321x_gpio *gpch; in rdc_gpio_set_value_impl() local 54 gpch = gpiochip_get_data(chip); in rdc_gpio_set_value_impl() [all …]
|
/linux-6.12.1/arch/mips/rb532/ |
D | gpio.c | 99 struct rb532_gpio_chip *gpch; in rb532_gpio_get() local 101 gpch = gpiochip_get_data(chip); in rb532_gpio_get() 102 return !!rb532_get_bit(offset, gpch->regbase + GPIOD); in rb532_gpio_get() 111 struct rb532_gpio_chip *gpch; in rb532_gpio_set() local 113 gpch = gpiochip_get_data(chip); in rb532_gpio_set() 114 rb532_set_bit(value, offset, gpch->regbase + GPIOD); in rb532_gpio_set() 122 struct rb532_gpio_chip *gpch; in rb532_gpio_direction_input() local 124 gpch = gpiochip_get_data(chip); in rb532_gpio_direction_input() 127 rb532_set_bit(0, offset, gpch->regbase + GPIOFUNC); in rb532_gpio_direction_input() 129 rb532_set_bit(0, offset, gpch->regbase + GPIOCFG); in rb532_gpio_direction_input() [all …]
|