Lines Matching refs:direction
77 switch (w->direction)
167 if (w->direction == WIRE_FREE)
190 if (w->direction == WIRE_ENCODE)
202 if (w->direction == WIRE_DECODE)
256 if (w->direction == WIRE_FREE)
272 if (w->direction == WIRE_ENCODE)
285 if (w->direction == WIRE_DECODE)
311 else if (w->direction == WIRE_DECODE)
322 if (w->direction != WIRE_FREE)
331 if (w->direction != WIRE_FREE)
340 if (w->direction != WIRE_FREE)
349 if (w->direction != WIRE_FREE && w->status == 0)
361 if (w->direction == WIRE_DECODE)
364 if (w->direction != WIRE_FREE)
375 if (w->direction == WIRE_DECODE)
378 if (w->direction != WIRE_FREE)
391 if (w->direction == WIRE_DECODE)
394 if (w->direction != WIRE_FREE)
406 if (w->direction == WIRE_DECODE)
408 if (w->direction != WIRE_FREE)
419 if (w->direction == WIRE_DECODE)
422 if (w->direction != WIRE_FREE)
435 if (w->direction == WIRE_DECODE)
438 if (w->direction != WIRE_FREE)
450 if (w->direction == WIRE_DECODE)
453 if (w->direction != WIRE_FREE)
464 if (w->direction != WIRE_FREE)
477 if (w->direction != WIRE_FREE)
487 if (w->direction != WIRE_FREE)
507 if (w->direction != WIRE_FREE)
521 if (w->direction != WIRE_DECODE)
528 if (w->direction != WIRE_DECODE)
559 if (w->direction != WIRE_FREE)
570 if (w->direction == WIRE_ENCODE)
572 else if (w->direction == WIRE_DECODE)
582 DBG (3, "sanei_w_set_dir: wire %d, old direction WIRE_%s\n", w->io.fd,
583 w->direction == WIRE_ENCODE ? "ENCODE" :
584 (w->direction == WIRE_DECODE ? "DECODE" : "FREE"));
585 if (w->direction == WIRE_DECODE && w->buffer.curr != w->buffer.end)
589 w->direction = dir;
590 DBG (4, "sanei_w_set_dir: direction changed\n");
592 DBG (3, "sanei_w_set_dir: wire %d, new direction WIRE_%s\n", w->io.fd,
640 WireDirection saved_dir = w->direction;
644 w->direction = WIRE_FREE;
646 w->direction = saved_dir;
660 w->direction = WIRE_ENCODE;