Lines Matching full:get
57 struct gpio_get_config get; in rpi_exp_gpio_get_polarity() local
62 get.gpio = off + RPI_EXP_GPIO_BASE; /* GPIO to update */ in rpi_exp_gpio_get_polarity()
65 &get, sizeof(get)); in rpi_exp_gpio_get_polarity()
66 if (ret || get.gpio != 0) { in rpi_exp_gpio_get_polarity()
67 dev_err(gc->parent, "Failed to get GPIO %u config (%d %x)\n", in rpi_exp_gpio_get_polarity()
68 off, ret, get.gpio); in rpi_exp_gpio_get_polarity()
71 return get.polarity; in rpi_exp_gpio_get_polarity()
135 struct gpio_get_config get; in rpi_exp_gpio_get_direction() local
140 get.gpio = off + RPI_EXP_GPIO_BASE; /* GPIO to update */ in rpi_exp_gpio_get_direction()
143 &get, sizeof(get)); in rpi_exp_gpio_get_direction()
144 if (ret || get.gpio != 0) { in rpi_exp_gpio_get_direction()
146 "Failed to get GPIO %u config (%d %x)\n", off, ret, in rpi_exp_gpio_get_direction()
147 get.gpio); in rpi_exp_gpio_get_direction()
150 if (get.direction) in rpi_exp_gpio_get_direction()
159 struct gpio_get_set_state get; in rpi_exp_gpio_get() local
164 get.gpio = off + RPI_EXP_GPIO_BASE; /* GPIO to update */ in rpi_exp_gpio_get()
165 get.state = 0; /* storage for returned value */ in rpi_exp_gpio_get()
168 &get, sizeof(get)); in rpi_exp_gpio_get()
169 if (ret || get.gpio != 0) { in rpi_exp_gpio_get()
171 "Failed to get GPIO %u state (%d %x)\n", off, ret, in rpi_exp_gpio_get()
172 get.gpio); in rpi_exp_gpio_get()
175 return !!get.state; in rpi_exp_gpio_get()
230 rpi_gpio->gc.get = rpi_exp_gpio_get; in rpi_exp_gpio_probe()