Lines Matching refs:cmd
562 char cmd = CMD_QUIT; in gps_state_done() local
564 write( s->control[0], &cmd, 1 ); in gps_state_done()
580 char cmd = CMD_START; in gps_state_start() local
583 do { ret=write( s->control[0], &cmd, 1 ); } in gps_state_start()
595 char cmd = CMD_STOP; in gps_state_stop() local
598 do { ret=write( s->control[0], &cmd, 1 ); } in gps_state_stop()
680 char cmd = 255; in gps_state_thread() local
684 ret = read( fd, &cmd, 1 ); in gps_state_thread()
687 if (cmd == CMD_QUIT) { in gps_state_thread()
691 else if (cmd == CMD_START) { in gps_state_thread()
698 else if (cmd == CMD_STOP) { in gps_state_thread()