Lines Matching defs:tfd
92 int tfd;
212 tfd = open(dev_name, O_RDONLY);
213 if (tfd < 0) {
220 if (ioctl(tfd, TVTUNER_SETAFC, &afc) < 0) {
221 perror("ioctl(tfd, TVTUNER_SETAFC) failed.");
226 if (ioctl(tfd, METEORSINPUT, &device) < 0) {
227 perror("ioctl(tfd, METEORSINPUT) failed.");
232 if (ioctl(tfd, BT848_SAUDIO, &audio) < 0) {
233 perror("ioctl(tfd, BT848_SAUDIO) failed.");
237 if (ioctl(tfd, BT848_GAUDIO, &audio) < 0) {
238 perror("ioctl(tfd, BT848_GAUDIO) failed.");
246 if (ioctl(tfd, BT848_SCAPAREA, &cap) < 0) {
247 perror("ioctl(tfd, BT848_SCAPAREA) failed.");
253 if (ioctl(tfd, TVTUNER_SETTYPE, &channel_set) < 0) {
254 perror("ioctl(tfd, TVTUNER_SETTYPE) failed.");
259 if (ioctl(tfd, TVTUNER_SETCHNL, &channel) < 0) {
260 perror("ioctl(tfd, TVTUNER_SETCHNL) failed.");
268 if (ioctl(tfd, RADIO_SETFREQ, &freq) < 0) {
269 perror("ioctl(tfd, RADIO_SETFREQ) failed.");
276 if (ioctl(tfd, TVTUNER_SETFREQ, &freq) < 0) {
277 perror("ioctl(tfd, TVTUNER_SETFREQ) failed.");
283 close(tfd);