Lines Matching refs:fd_file
98 int fd_file; in wcnss_write_cal_data() local
114 fd_file = open(WCNSS_CAL_FILE, O_RDONLY); in wcnss_write_cal_data()
115 if (fd_file < 0) { in wcnss_write_cal_data()
118 rc = fd_file; in wcnss_write_cal_data()
133 rcount = read(fd_file, (void *)buf, sizeof(buf)); in wcnss_write_cal_data()
153 close(fd_file); in wcnss_write_cal_data()
158 close(fd_file); in wcnss_write_cal_data()
163 close(fd_file); in wcnss_write_cal_data()
174 int fd_file = -1; in wcnss_read_and_store_cal_data() local
195 if (fd_file < 0) { in wcnss_read_and_store_cal_data()
196 fd_file = open(WCNSS_CAL_FILE, O_WRONLY in wcnss_read_and_store_cal_data()
198 if (fd_file < 0) { in wcnss_read_and_store_cal_data()
201 rc = fd_file; in wcnss_read_and_store_cal_data()
209 wcount = write(fd_file, buf, rcount); in wcnss_read_and_store_cal_data()
219 close(fd_file); in wcnss_read_and_store_cal_data()
224 close(fd_file); in wcnss_read_and_store_cal_data()