Home
last modified time | relevance | path

Searched refs:read (Results 1 – 25 of 100) sorted by relevance

1234

/system/core/libctest/
Dctest.c79 size_t read; in printFailures() local
80 while ((read = fread(buffer, sizeof(char), 512, suite->out)) > 0) { in printFailures()
82 fwrite(buffer, sizeof(char), read, stderr); in printFailures()
/system/wlan/ti/sta_dk_4_0_4_32/CUDK/CLI/
Deth_utils.c357 result = read(module_pipe[0], out_buffer, sizeof(out_buffer)); in ethernet_utils_init_module()
411 result = read(socket_id, &prefix, sizeof(prefix)); in ethernet_utils_process_in_command()
433 result = read(socket_id, (void *)((unsigned char *)(packet_size) + 0), sizeof(unsigned char)); in ethernet_utils_process_in_command()
446 result = read(socket_id, (void *)((unsigned char *)(packet_size) + 1), sizeof(unsigned char)); in ethernet_utils_process_in_command()
464 result = read(socket_id, (in_buffer + 3 + *in_buffer_offset), (*packet_size - *in_buffer_offset)); in ethernet_utils_process_in_command()
/system/bluetooth/brcm_patchram_plus/
Dbrcm_patchram_plus.c373 while ((count = read(fd, &buffer[i], len)) < len) { in read_event()
381 while ((count = read(fd, &buffer[i], len)) < len) { in read_event()
436 read(uart_fd, &buffer[0], 2); in proc_patchram()
440 while (read(hcdfile_fd, &buffer[1], 3)) { in proc_patchram()
445 read(hcdfile_fd, &buffer[4], len); in proc_patchram()
524 sz = read(fd, bdaddr, sizeof(bdaddr)); in read_default_bdaddr()
/system/core/adb/
Dsysdeps.h128 return read(fd, buf, len); in unix_read()
130 #undef read
131 #define read ___xxx_read macro
348 return read(fd, buf, len); in adb_read()
351 #undef read
352 #define read ___xxx_read macro
Dusb_windows.c303 unsigned long read = 0; in usb_read() local
314 &read, in usb_read()
317 D("usb_write got: %ld, expected: %d, errno: %d\n", read, xfer, errno); in usb_read()
319 data += read; in usb_read()
320 len -= read; in usb_read()
/system/extras/sound/
Dplaywav.c143 if (read(fd, next, count) != count) { in play_file()
161 if (read(fd, &hdr, sizeof(hdr)) != sizeof(hdr)) { in wav_play()
263 while (read(0, &tmp, 1) == 1) { in wav_rec()
266 if (read(afd, buf, sz) != sz) { in wav_rec()
318 r = read(fd, buf, 64*1024); in mp3_play()
/system/core/toolbox/
Dcmp.c62 res1 = read(fd1, &buf1, sizeof(buf1)); in cmp_main()
63 res2 = read(fd2, &buf2, sizeof(buf2)); in cmp_main()
Dnotify.c85 res = read(nfd, event_buf, sizeof(event_buf)); in notify_main()
115 read_len = read(ffd, buf, buflen); in notify_main()
Dinsmod.c36 ret = read(fd, buffer, size); in read_file()
Dps.c60 r = read(fd, cmdline, 1023); in ps_line()
69 r = read(fd, statline, 1023); in ps_line()
Dhd.c69 res = read(fd, &buf, read_len); in hd_main()
/system/core/fastboot/
Dusb_windows.c197 unsigned long read = 0; in usb_read() local
208 &read, in usb_read()
211 DBG("usb_read got: %ld, expected: %d, errno: %d\n", read, xfer, errno); in usb_read()
213 return read; in usb_read()
/system/extras/libpagemap/
Dpm_kernel.c125 if (read(ker->kpagecount_fd, count_out, sizeof(uint64_t)) < in pm_kernel_count()
141 if (read(ker->kpageflags_fd, flags_out, sizeof(uint64_t)) < in pm_kernel_flags()
/system/netd/
DUsbController.cpp59 read(fd, &value, 1); in isRNDISStarted()
/system/core/libcutils/
Dload_file.c40 if(read(fd, data, sz) != sz) goto oops; in load_file()
Duio.c31 int ret = read( fd, buf, len ); in readv()
Dproperties.c205 if (read(gPropFd, recvBuf, sizeof(recvBuf)) != sizeof(recvBuf)) { in property_get()
268 if (read(gPropFd, recvBuf, sizeof(recvBuf)) != sizeof(recvBuf)) { in property_set()
/system/media/opensles/tests/sandbox/
Dgetch.c47 if ((r = read(0, &c, sizeof(c))) < 0) { in getch()
/system/bluetooth/bluedroid/
Dbluetooth.c62 sz = read(fd, &buf, sizeof(buf)); in init_rfkill()
90 sz = read(fd, &buffer, 1); in check_bluetooth_power()
/system/core/debuggerd/
Dgetevent.c103 res = read(nfd, event_buf, sizeof(event_buf)); in read_notify()
208 res = read(ufds[i].fd, event, sizeof(*event)); in get_event()
Dcrasher.c31 read(s, tmp, 1); in debuggerd_connect()
/system/extras/tests/sdcard/
Dsysutil.cpp105 s = read(fd, end, size); in readStringFromFile()
486 s = read(readfd, &dummy, size); in writePidAndWaitForReply()
541 s = read(readfd, end, size); in waitForChildrenAndSignal()
/system/core/init/
Dutil.c182 if(read(fd, data, sz) != sz) goto oops; in read_file()
237 pmtdsize = read(fd, buf, sizeof(buf) - 1); in find_mtd_partitions()
429 n = read(fd, data, 1023); in get_hardware_name()
/system/core/libdiskconfig/
Ddiskutils.c62 if ((nr_bytes = read(src_fd, buffer, sizeof(buffer))) < 0) { in write_raw_image()
/system/core/sh/
Dmiscbltin.c127 if (read(0, &c, 1) != 1) { in readcmd()
134 if (read(0, &c, 1) != 1) { in readcmd()

1234