Lines Matching defs:direction
275 int direction = -1;
279 direction = GPIO_PIN_INPUT;
283 * just "don't set the direction" - it's an active
290 if (direction == -1)
291 direction = 0;
292 direction |= GPIO_PIN_OUTPUT;
294 if (direction == -1)
295 direction = 0;
296 direction |= GPIO_PIN_TRISTATE;
300 if (direction == -1)
301 direction = 0;
302 direction |= GPIO_PIN_OUTPUT;
305 if (direction == -1)
306 direction = 0;
307 direction |= GPIO_PIN_OUTPUT;
319 if (direction != -1
320 && (direction & (GPIO_PIN_INPUT | GPIO_PIN_OUTPUT))
322 direction |= GPIO_PIN_INOUT;
325 return direction;