Lines Matching refs:gpios
22 struct bcm2835_gpios *gpios = dev_get_priv(dev); in bcm2835_gpio_direction_input() local
25 val = readl(&gpios->reg->gpfsel[BCM2835_GPIO_FSEL_BANK(gpio)]); in bcm2835_gpio_direction_input()
28 writel(val, &gpios->reg->gpfsel[BCM2835_GPIO_FSEL_BANK(gpio)]); in bcm2835_gpio_direction_input()
36 struct bcm2835_gpios *gpios = dev_get_priv(dev); in bcm2835_gpio_direction_output() local
41 val = readl(&gpios->reg->gpfsel[BCM2835_GPIO_FSEL_BANK(gpio)]); in bcm2835_gpio_direction_output()
44 writel(val, &gpios->reg->gpfsel[BCM2835_GPIO_FSEL_BANK(gpio)]); in bcm2835_gpio_direction_output()
49 static int bcm2835_get_value(const struct bcm2835_gpios *gpios, unsigned gpio) in bcm2835_get_value() argument
53 val = readl(&gpios->reg->gplev[BCM2835_GPIO_COMMON_BANK(gpio)]); in bcm2835_get_value()
60 const struct bcm2835_gpios *gpios = dev_get_priv(dev); in bcm2835_gpio_get_value() local
62 return bcm2835_get_value(gpios, gpio); in bcm2835_gpio_get_value()
68 struct bcm2835_gpios *gpios = dev_get_priv(dev); in bcm2835_gpio_set_value() local
69 u32 *output_reg = value ? gpios->reg->gpset : gpios->reg->gpclr; in bcm2835_gpio_set_value()
104 struct bcm2835_gpios *gpios = dev_get_priv(dev); in bcm2835_gpio_probe() local
110 gpios->reg = (struct bcm2835_gpio_regs *)plat->base; in bcm2835_gpio_probe()
113 gpios->pinctrl = dev->parent; in bcm2835_gpio_probe()