Home
last modified time | relevance | path

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

/linux-2.6.39/drivers/gpio/
Drdc321x-gpio.c47 struct rdc321x_gpio *gpch; in rdc_gpio_get_value() local
51 gpch = container_of(chip, struct rdc321x_gpio, chip); in rdc_gpio_get_value()
52 reg = gpio < 32 ? gpch->reg1_data_base : gpch->reg2_data_base; in rdc_gpio_get_value()
54 spin_lock(&gpch->lock); in rdc_gpio_get_value()
55 pci_write_config_dword(gpch->sb_pdev, reg, in rdc_gpio_get_value()
56 gpch->data_reg[gpio < 32 ? 0 : 1]); in rdc_gpio_get_value()
57 pci_read_config_dword(gpch->sb_pdev, reg, &value); in rdc_gpio_get_value()
58 spin_unlock(&gpch->lock); in rdc_gpio_get_value()
66 struct rdc321x_gpio *gpch; in rdc_gpio_set_value_impl() local
69 gpch = container_of(chip, struct rdc321x_gpio, chip); in rdc_gpio_set_value_impl()
[all …]
/linux-2.6.39/arch/mips/ar7/
Dgpio.c33 struct ar7_gpio_chip *gpch = in ar7_gpio_get_value() local
35 void __iomem *gpio_in = gpch->regs + AR7_GPIO_INPUT; in ar7_gpio_get_value()
42 struct ar7_gpio_chip *gpch = in titan_gpio_get_value() local
44 void __iomem *gpio_in0 = gpch->regs + TITAN_GPIO_INPUT_0; in titan_gpio_get_value()
45 void __iomem *gpio_in1 = gpch->regs + TITAN_GPIO_INPUT_1; in titan_gpio_get_value()
53 struct ar7_gpio_chip *gpch = in ar7_gpio_set_value() local
55 void __iomem *gpio_out = gpch->regs + AR7_GPIO_OUTPUT; in ar7_gpio_set_value()
67 struct ar7_gpio_chip *gpch = in titan_gpio_set_value() local
69 void __iomem *gpio_out0 = gpch->regs + TITAN_GPIO_OUTPUT_0; in titan_gpio_set_value()
70 void __iomem *gpio_out1 = gpch->regs + TITAN_GPIO_OUTPUT_1; in titan_gpio_set_value()
[all …]
/linux-2.6.39/arch/mips/rb532/
Dgpio.c88 struct rb532_gpio_chip *gpch; in rb532_gpio_get() local
90 gpch = container_of(chip, struct rb532_gpio_chip, chip); in rb532_gpio_get()
91 return rb532_get_bit(offset, gpch->regbase + GPIOD); in rb532_gpio_get()
100 struct rb532_gpio_chip *gpch; in rb532_gpio_set() local
102 gpch = container_of(chip, struct rb532_gpio_chip, chip); in rb532_gpio_set()
103 rb532_set_bit(value, offset, gpch->regbase + GPIOD); in rb532_gpio_set()
111 struct rb532_gpio_chip *gpch; in rb532_gpio_direction_input() local
113 gpch = container_of(chip, struct rb532_gpio_chip, chip); in rb532_gpio_direction_input()
116 rb532_set_bit(0, offset, gpch->regbase + GPIOFUNC); in rb532_gpio_direction_input()
118 rb532_set_bit(0, offset, gpch->regbase + GPIOCFG); in rb532_gpio_direction_input()
[all …]