Lines Matching refs:fd
322 int fd, res, af_freq;
324 fd = open(FMTX_RDS_AF_SYSFS_ENTRY, O_RDWR);
325 if (fd < 0) {
330 res = write(fd, cmd, FMAPP_AF_MAX_FREQ_RANGE);
338 close(fd);
686 int fd, res;
688 fd = open(FMRX_RDS_AF_SYSFS_ENTRY, O_RDWR);
689 if (fd < 0) {
694 res = write(fd, cmd, sizeof(char));
703 close(fd);
710 int fd, res;
712 fd = open(FMRX_RDS_AF_SYSFS_ENTRY, O_RDONLY);
713 if (fd < 0) {
718 res = read(fd, &fm_rds_af, 1);
728 close(fd);
735 int fd, res;
737 fd = open(FMRX_RSSI_LVL_SYSFS_ENTRY, O_RDONLY);
738 if (fd < 0) {
743 res = read(fd, &fm_rssi_threshhold, 3);
755 close(fd);
761 int fd, res;
763 fd = open(FMRX_RSSI_LVL_SYSFS_ENTRY, O_RDWR);
764 if (fd < 0) {
769 res = write(fd, cmd, sizeof(char) * 3);
778 close(fd);
784 int fd, res;
786 fd = open(FMRX_BAND_SYSFS_ENTRY, O_RDWR);
787 if (fd < 0) {
792 res = write(fd, cmd, sizeof(char));
800 close(fd);
807 int fd, res;
809 fd = open(FMRX_BAND_SYSFS_ENTRY, O_RDONLY);
810 if (fd < 0) {
815 res = read(fd, &fm_band, 1);
824 close(fd);
1176 pfd.fd = radio_fd;