bdgpio 19 drivers/gpio/gpio-bd70528.c static int bd70528_set_debounce(struct bd70528_gpio *bdgpio, bdgpio 38 drivers/gpio/gpio-bd70528.c dev_err(bdgpio->chip.dev, bdgpio 42 drivers/gpio/gpio-bd70528.c return regmap_update_bits(bdgpio->chip.regmap, GPIO_IN_REG(offset), bdgpio 48 drivers/gpio/gpio-bd70528.c struct bd70528_gpio *bdgpio = gpiochip_get_data(chip); bdgpio 52 drivers/gpio/gpio-bd70528.c ret = regmap_read(bdgpio->chip.regmap, GPIO_OUT_REG(offset), &val); bdgpio 54 drivers/gpio/gpio-bd70528.c dev_err(bdgpio->chip.dev, "Could not read gpio direction\n"); bdgpio 64 drivers/gpio/gpio-bd70528.c struct bd70528_gpio *bdgpio = gpiochip_get_data(chip); bdgpio 68 drivers/gpio/gpio-bd70528.c return regmap_update_bits(bdgpio->chip.regmap, bdgpio 74 drivers/gpio/gpio-bd70528.c return regmap_update_bits(bdgpio->chip.regmap, bdgpio 80 drivers/gpio/gpio-bd70528.c return bd70528_set_debounce(bdgpio, offset, bdgpio 91 drivers/gpio/gpio-bd70528.c struct bd70528_gpio *bdgpio = gpiochip_get_data(chip); bdgpio 94 drivers/gpio/gpio-bd70528.c return regmap_update_bits(bdgpio->chip.regmap, GPIO_OUT_REG(offset), bdgpio 103 drivers/gpio/gpio-bd70528.c struct bd70528_gpio *bdgpio = gpiochip_get_data(chip); bdgpio 106 drivers/gpio/gpio-bd70528.c ret = regmap_update_bits(bdgpio->chip.regmap, GPIO_OUT_REG(offset), bdgpio 109 drivers/gpio/gpio-bd70528.c dev_err(bdgpio->chip.dev, "Could not set gpio to %d\n", value); bdgpio 115 drivers/gpio/gpio-bd70528.c struct bd70528_gpio *bdgpio = gpiochip_get_data(chip); bdgpio 118 drivers/gpio/gpio-bd70528.c return regmap_update_bits(bdgpio->chip.regmap, GPIO_OUT_REG(offset), bdgpio 125 drivers/gpio/gpio-bd70528.c static int bd70528_gpio_get_o(struct bd70528_gpio *bdgpio, unsigned int offset) bdgpio 130 drivers/gpio/gpio-bd70528.c ret = regmap_read(bdgpio->chip.regmap, GPIO_OUT_REG(offset), &val); bdgpio 134 drivers/gpio/gpio-bd70528.c dev_err(bdgpio->chip.dev, "GPIO (out) state read failed\n"); bdgpio 139 drivers/gpio/gpio-bd70528.c static int bd70528_gpio_get_i(struct bd70528_gpio *bdgpio, unsigned int offset) bdgpio 144 drivers/gpio/gpio-bd70528.c ret = regmap_read(bdgpio->chip.regmap, BD70528_REG_GPIO_STATE, &val); bdgpio 149 drivers/gpio/gpio-bd70528.c dev_err(bdgpio->chip.dev, "GPIO (in) state read failed\n"); bdgpio 157 drivers/gpio/gpio-bd70528.c struct bd70528_gpio *bdgpio = gpiochip_get_data(chip); bdgpio 170 drivers/gpio/gpio-bd70528.c ret = bd70528_gpio_get_o(bdgpio, offset); bdgpio 172 drivers/gpio/gpio-bd70528.c ret = bd70528_gpio_get_i(bdgpio, offset); bdgpio 174 drivers/gpio/gpio-bd70528.c dev_err(bdgpio->chip.dev, "failed to read GPIO direction\n"); bdgpio 181 drivers/gpio/gpio-bd70528.c struct bd70528_gpio *bdgpio; bdgpio 191 drivers/gpio/gpio-bd70528.c bdgpio = devm_kzalloc(&pdev->dev, sizeof(*bdgpio), bdgpio 193 drivers/gpio/gpio-bd70528.c if (!bdgpio) bdgpio 195 drivers/gpio/gpio-bd70528.c bdgpio->chip.dev = &pdev->dev; bdgpio 196 drivers/gpio/gpio-bd70528.c bdgpio->gpio.parent = pdev->dev.parent; bdgpio 197 drivers/gpio/gpio-bd70528.c bdgpio->gpio.label = "bd70528-gpio"; bdgpio 198 drivers/gpio/gpio-bd70528.c bdgpio->gpio.owner = THIS_MODULE; bdgpio 199 drivers/gpio/gpio-bd70528.c bdgpio->gpio.get_direction = bd70528_get_direction; bdgpio 200 drivers/gpio/gpio-bd70528.c bdgpio->gpio.direction_input = bd70528_direction_input; bdgpio 201 drivers/gpio/gpio-bd70528.c bdgpio->gpio.direction_output = bd70528_direction_output; bdgpio 202 drivers/gpio/gpio-bd70528.c bdgpio->gpio.set_config = bd70528_gpio_set_config; bdgpio 203 drivers/gpio/gpio-bd70528.c bdgpio->gpio.can_sleep = true; bdgpio 204 drivers/gpio/gpio-bd70528.c bdgpio->gpio.get = bd70528_gpio_get; bdgpio 205 drivers/gpio/gpio-bd70528.c bdgpio->gpio.set = bd70528_gpio_set; bdgpio 206 drivers/gpio/gpio-bd70528.c bdgpio->gpio.ngpio = 4; bdgpio 207 drivers/gpio/gpio-bd70528.c bdgpio->gpio.base = -1; bdgpio 209 drivers/gpio/gpio-bd70528.c bdgpio->gpio.of_node = pdev->dev.parent->of_node; bdgpio 211 drivers/gpio/gpio-bd70528.c bdgpio->chip.regmap = bd70528->regmap; bdgpio 213 drivers/gpio/gpio-bd70528.c ret = devm_gpiochip_add_data(&pdev->dev, &bdgpio->gpio, bdgpio 214 drivers/gpio/gpio-bd70528.c bdgpio);