Lines Matching refs:gpios
25 const struct vybrid_gpios *gpios = dev_get_priv(dev); in vybrid_gpio_direction_input() local
27 gpio = gpio + (gpios->chip * VYBRID_GPIO_COUNT); in vybrid_gpio_direction_input()
36 const struct vybrid_gpios *gpios = dev_get_priv(dev); in vybrid_gpio_direction_output() local
38 gpio = gpio + (gpios->chip * VYBRID_GPIO_COUNT); in vybrid_gpio_direction_output()
47 const struct vybrid_gpios *gpios = dev_get_priv(dev); in vybrid_gpio_get_value() local
49 return ((readl(&gpios->reg->gpio_pdir) & (1 << gpio))) ? 1 : 0; in vybrid_gpio_get_value()
55 const struct vybrid_gpios *gpios = dev_get_priv(dev); in vybrid_gpio_set_value() local
57 writel((1 << gpio), &gpios->reg->gpio_psor); in vybrid_gpio_set_value()
59 writel((1 << gpio), &gpios->reg->gpio_pcor); in vybrid_gpio_set_value()
66 const struct vybrid_gpios *gpios = dev_get_priv(dev); in vybrid_gpio_get_function() local
69 gpio = gpio + (gpios->chip * VYBRID_GPIO_COUNT); in vybrid_gpio_get_function()
95 struct vybrid_gpios *gpios = dev_get_priv(dev); in vybrid_gpio_probe() local
101 gpios->reg = (struct vybrid_gpio_regs *)plat->base; in vybrid_gpio_probe()
102 gpios->chip = plat->chip; in vybrid_gpio_probe()