Lines Matching defs:gpreq
155 struct gpio_req gpreq;
157 bzero(&gpreq, sizeof(gpreq));
158 gpreq.gp_pin = pin;
159 if (ioctl(handle, GPIOGET, &gpreq) < 0)
162 return (gpreq.gp_value);
168 struct gpio_req gpreq;
172 bzero(&gpreq, sizeof(gpreq));
173 gpreq.gp_pin = pin;
174 gpreq.gp_value = value;
175 if (ioctl(handle, GPIOSET, &gpreq) < 0)
184 struct gpio_req gpreq;
186 bzero(&gpreq, sizeof(gpreq));
187 gpreq.gp_pin = pin;
188 if (ioctl(handle, GPIOTOGGLE, &gpreq) < 0)