Lines Matching full:gpios
21 struct bcm2835_gpios *gpios = dev_get_priv(dev); in bcm2835_gpio_direction_input() local
24 val = readl(&gpios->reg->gpfsel[BCM2835_GPIO_FSEL_BANK(gpio)]); in bcm2835_gpio_direction_input()
27 writel(val, &gpios->reg->gpfsel[BCM2835_GPIO_FSEL_BANK(gpio)]); in bcm2835_gpio_direction_input()
35 struct bcm2835_gpios *gpios = dev_get_priv(dev); in bcm2835_gpio_direction_output() local
40 val = readl(&gpios->reg->gpfsel[BCM2835_GPIO_FSEL_BANK(gpio)]); in bcm2835_gpio_direction_output()
43 writel(val, &gpios->reg->gpfsel[BCM2835_GPIO_FSEL_BANK(gpio)]); in bcm2835_gpio_direction_output()
48 static int bcm2835_get_value(const struct bcm2835_gpios *gpios, unsigned gpio) in bcm2835_get_value() argument
52 val = readl(&gpios->reg->gplev[BCM2835_GPIO_COMMON_BANK(gpio)]); in bcm2835_get_value()
59 const struct bcm2835_gpios *gpios = dev_get_priv(dev); in bcm2835_gpio_get_value() local
61 return bcm2835_get_value(gpios, gpio); in bcm2835_gpio_get_value()
67 struct bcm2835_gpios *gpios = dev_get_priv(dev); in bcm2835_gpio_set_value() local
68 u32 *output_reg = value ? gpios->reg->gpset : gpios->reg->gpclr; in bcm2835_gpio_set_value()
78 struct bcm2835_gpios *gpios = dev_get_priv(dev); in bcm2835_gpio_get_func_id() local
81 val = readl(&gpios->reg->gpfsel[BCM2835_GPIO_FSEL_BANK(gpio)]); in bcm2835_gpio_get_func_id()
111 struct bcm2835_gpios *gpios = dev_get_priv(dev); in bcm2835_gpio_probe() local
117 gpios->reg = (struct bcm2835_gpio_regs *)plat->base; in bcm2835_gpio_probe()