Lines Matching refs:gpio
40 struct da9055_gpio *gpio = gpiochip_get_data(gc); in da9055_gpio_get() local
45 ret = da9055_reg_read(gpio->da9055, (offset >> 1) + DA9055_REG_GPIO0_1); in da9055_gpio_get()
53 ret = da9055_reg_read(gpio->da9055, DA9055_REG_STATUS_B); in da9055_gpio_get()
58 ret = da9055_reg_read(gpio->da9055, DA9055_REG_GPIO_MODE0_2); in da9055_gpio_get()
69 struct da9055_gpio *gpio = gpiochip_get_data(gc); in da9055_gpio_set() local
71 da9055_reg_update(gpio->da9055, in da9055_gpio_set()
79 struct da9055_gpio *gpio = gpiochip_get_data(gc); in da9055_gpio_direction_input() local
85 return da9055_reg_update(gpio->da9055, (offset >> 1) + in da9055_gpio_direction_input()
95 struct da9055_gpio *gpio = gpiochip_get_data(gc); in da9055_gpio_direction_output() local
102 ret = da9055_reg_update(gpio->da9055, (offset >> 1) + in da9055_gpio_direction_output()
117 struct da9055_gpio *gpio = gpiochip_get_data(gc); in da9055_gpio_to_irq() local
118 struct da9055 *da9055 = gpio->da9055; in da9055_gpio_to_irq()
139 struct da9055_gpio *gpio; in da9055_gpio_probe() local
143 gpio = devm_kzalloc(&pdev->dev, sizeof(*gpio), GFP_KERNEL); in da9055_gpio_probe()
144 if (!gpio) in da9055_gpio_probe()
147 gpio->da9055 = dev_get_drvdata(pdev->dev.parent); in da9055_gpio_probe()
148 pdata = dev_get_platdata(gpio->da9055->dev); in da9055_gpio_probe()
150 gpio->gp = reference_gp; in da9055_gpio_probe()
152 gpio->gp.base = pdata->gpio_base; in da9055_gpio_probe()
154 ret = devm_gpiochip_add_data(&pdev->dev, &gpio->gp, gpio); in da9055_gpio_probe()
160 platform_set_drvdata(pdev, gpio); in da9055_gpio_probe()