Lines Matching refs:fd_dev
92 int wcnss_write_cal_data(int fd_dev) in wcnss_write_cal_data() argument
124 wcount = write(fd_dev, (void *)&size, 4); in wcnss_write_cal_data()
144 wcount = write(fd_dev, buf, rcount); in wcnss_write_cal_data()
170 int wcnss_read_and_store_cal_data(int fd_dev) in wcnss_read_and_store_cal_data() argument
183 rcount = read(fd_dev, (void *)buf, sizeof(buf)); in wcnss_read_and_store_cal_data()
501 int fd_dev, ret_cal; in main() local
555 fd_dev = open(WCNSS_DEVICE, O_RDWR); in main()
556 if (fd_dev < 0) { in main()
559 return fd_dev; in main()
563 rc = wcnss_write_cal_data(fd_dev); in main()
572 rc = wcnss_read_and_store_cal_data(fd_dev); in main()
579 close(fd_dev); in main()