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