Lines Matching refs:tfd
132 static int tfd; /* Camera File Descriptor */
420 if ((tfd = open (device, O_RDWR)) == -1)
428 if (tcgetattr (tfd, &tty_orig) == -1)
451 if (tcsetattr (tfd, TCSANOW, &tty_new) == -1)
457 if (send_pck (tfd, init_pck) == -1)
473 if (tcsetattr (tfd, TCSANOW, &tty_new) == -1)
478 if (send_pck (tfd, init_pck) != -1)
484 tcsetattr (tfd, TCSANOW, &tty_orig);
497 if (tcsetattr (tfd, TCSANOW, &tty_new) == -1)
503 return tfd;
1891 if ((tfd = init_dc20 (tty_name, tty_baud)) == -1)
1896 if ((dc20_info = get_info (tfd)) == NULL)
1899 close_dc20 (tfd);
2027 close_dc20 (tfd);
2331 if (change_res (tfd, dc25_opt_lowres) == -1)
2346 if (shoot (tfd) == -1)
2375 if (send_pck (tfd, thumb_pck) == -1)
2381 if (read_data (tfd, buffer, 1024) == -1)
2443 if (send_pck (tfd, pic_pck) == -1)
2449 if (read_data (tfd, buffer, 1024) == -1)
2485 if (read_data (tfd, buffer, 1024) == -1)
2493 if (end_of_data (tfd) == -1)
2536 if (erase (tfd) == -1)
2546 if (get_info (tfd) == NULL)
2549 close_dc20 (tfd);
2561 if (read_data (tfd, buffer, 1024) == -1)
2581 if (end_of_data (tfd) == -1)
2642 if (erase (tfd) == -1)
2649 if (get_info (tfd) == NULL)
2652 close_dc20 (tfd);
2658 get_info (tfd);