lp3943_gpio 47 drivers/gpio/gpio-lp3943.c struct lp3943_gpio *lp3943_gpio = gpiochip_get_data(chip); lp3943_gpio 48 drivers/gpio/gpio-lp3943.c struct lp3943 *lp3943 = lp3943_gpio->lp3943; lp3943_gpio 59 drivers/gpio/gpio-lp3943.c struct lp3943_gpio *lp3943_gpio = gpiochip_get_data(chip); lp3943_gpio 60 drivers/gpio/gpio-lp3943.c struct lp3943 *lp3943 = lp3943_gpio->lp3943; lp3943_gpio 65 drivers/gpio/gpio-lp3943.c static int lp3943_gpio_set_mode(struct lp3943_gpio *lp3943_gpio, u8 offset, lp3943_gpio 68 drivers/gpio/gpio-lp3943.c struct lp3943 *lp3943 = lp3943_gpio->lp3943; lp3943_gpio 77 drivers/gpio/gpio-lp3943.c struct lp3943_gpio *lp3943_gpio = gpiochip_get_data(chip); lp3943_gpio 79 drivers/gpio/gpio-lp3943.c lp3943_gpio->input_mask |= BIT(offset); lp3943_gpio 81 drivers/gpio/gpio-lp3943.c return lp3943_gpio_set_mode(lp3943_gpio, offset, LP3943_GPIO_IN); lp3943_gpio 84 drivers/gpio/gpio-lp3943.c static int lp3943_get_gpio_in_status(struct lp3943_gpio *lp3943_gpio, lp3943_gpio 102 drivers/gpio/gpio-lp3943.c err = lp3943_read_byte(lp3943_gpio->lp3943, addr, &read); lp3943_gpio 109 drivers/gpio/gpio-lp3943.c static int lp3943_get_gpio_out_status(struct lp3943_gpio *lp3943_gpio, lp3943_gpio 112 drivers/gpio/gpio-lp3943.c struct lp3943 *lp3943 = lp3943_gpio->lp3943; lp3943_gpio 133 drivers/gpio/gpio-lp3943.c struct lp3943_gpio *lp3943_gpio = gpiochip_get_data(chip); lp3943_gpio 144 drivers/gpio/gpio-lp3943.c if (lp3943_gpio->input_mask & BIT(offset)) lp3943_gpio 145 drivers/gpio/gpio-lp3943.c return lp3943_get_gpio_in_status(lp3943_gpio, chip, offset); lp3943_gpio 147 drivers/gpio/gpio-lp3943.c return lp3943_get_gpio_out_status(lp3943_gpio, chip, offset); lp3943_gpio 152 drivers/gpio/gpio-lp3943.c struct lp3943_gpio *lp3943_gpio = gpiochip_get_data(chip); lp3943_gpio 160 drivers/gpio/gpio-lp3943.c lp3943_gpio_set_mode(lp3943_gpio, offset, data); lp3943_gpio 166 drivers/gpio/gpio-lp3943.c struct lp3943_gpio *lp3943_gpio = gpiochip_get_data(chip); lp3943_gpio 169 drivers/gpio/gpio-lp3943.c lp3943_gpio->input_mask &= ~BIT(offset); lp3943_gpio 191 drivers/gpio/gpio-lp3943.c struct lp3943_gpio *lp3943_gpio; lp3943_gpio 193 drivers/gpio/gpio-lp3943.c lp3943_gpio = devm_kzalloc(&pdev->dev, sizeof(*lp3943_gpio), lp3943_gpio 195 drivers/gpio/gpio-lp3943.c if (!lp3943_gpio) lp3943_gpio 198 drivers/gpio/gpio-lp3943.c lp3943_gpio->lp3943 = lp3943; lp3943_gpio 199 drivers/gpio/gpio-lp3943.c lp3943_gpio->chip = lp3943_gpio_chip; lp3943_gpio 200 drivers/gpio/gpio-lp3943.c lp3943_gpio->chip.parent = &pdev->dev; lp3943_gpio 202 drivers/gpio/gpio-lp3943.c platform_set_drvdata(pdev, lp3943_gpio); lp3943_gpio 204 drivers/gpio/gpio-lp3943.c return devm_gpiochip_add_data(&pdev->dev, &lp3943_gpio->chip, lp3943_gpio 205 drivers/gpio/gpio-lp3943.c lp3943_gpio);