Home
last modified time | relevance | path

Searched refs:xfr (Results 1 – 8 of 8) sorted by relevance

/external/libusb/examples/
Dsam3u_benchmark.c43 static void LIBUSB_CALL cb_xfr(struct libusb_transfer *xfr) in cb_xfr() argument
47 if (xfr->status != LIBUSB_TRANSFER_COMPLETED) { in cb_xfr()
48 fprintf(stderr, "transfer status %d\n", xfr->status); in cb_xfr()
49 libusb_free_transfer(xfr); in cb_xfr()
53 if (xfr->type == LIBUSB_TRANSFER_TYPE_ISOCHRONOUS) { in cb_xfr()
54 for (i = 0; i < xfr->num_iso_packets; i++) { in cb_xfr()
55 struct libusb_iso_packet_descriptor *pack = &xfr->iso_packet_desc[i]; in cb_xfr()
66 printf("length:%u, actual_length:%u\n", xfr->length, xfr->actual_length); in cb_xfr()
67 for (i = 0; i < xfr->actual_length; i++) { in cb_xfr()
68 printf("%02x", xfr->buffer[i]); in cb_xfr()
[all …]
/external/ltp/testcases/kernel/fs/ftest/
Dftest04.c225 int count, collide, chunk, whenmisc, xfr, i; in dotest() local
336 if ((xfr = readv(fd, &r_iovec[0], MAXIOVCNT)) < 0) { in dotest()
347 if (xfr == 0) { in dotest()
350 if (xfr != csize) { in dotest()
354 me, xfr, csize); in dotest()
364 count, xfr); in dotest()
378 if (xfr != csize) { in dotest()
382 me, xfr, csize); in dotest()
393 count, xfr); in dotest()
408 if (lseek(fd, -xfr, 1) < 0) { in dotest()
[all …]
Dftest08.c232 int count, collide, chunk, whenmisc, xfr, i; in dotest() local
343 if ((xfr = readv(fd, &r_iovec[0], MAXIOVCNT)) < 0) { in dotest()
354 if (xfr == 0) { in dotest()
357 if (xfr != csize) { in dotest()
361 me, xfr, csize); in dotest()
373 count, xfr); in dotest()
387 if (xfr != csize) { in dotest()
391 me, xfr, csize); in dotest()
404 count, xfr); in dotest()
419 if (lseek64(fd, -xfr, 1) < 0) { in dotest()
[all …]
Dftest01.c264 int count, collide, chunk, whenmisc, xfr, i; in dotest() local
344 if ((xfr = read(fd, buf, csize)) < 0) { in dotest()
359 if (xfr != csize) { in dotest()
363 me, xfr, csize); in dotest()
370 xfr, file_max, zero_buf[0]); in dotest()
391 if (xfr != csize) { in dotest()
395 me, xfr, csize); in dotest()
403 xfr, file_max); in dotest()
425 if (lseek(fd, -xfr, 1) < 0) { in dotest()
431 if ((xfr = write(fd, val_buf, csize)) < csize) { in dotest()
[all …]
Dftest03.c288 int chunk, whenmisc, xfr, count, collide, i; in dotest() local
410 if ((xfr = readv(fd, &r_iovec[0], MAXIOVCNT)) < 0) { in dotest()
425 if (xfr != csize) { in dotest()
429 me, xfr, csize); in dotest()
439 count, xfr, file_max); in dotest()
462 if (xfr != csize) { in dotest()
466 me, xfr, csize); in dotest()
477 count, xfr, file_max); in dotest()
501 if (lseek(fd, -xfr, 1) < 0) { in dotest()
507 if ((xfr = in dotest()
[all …]
Dftest07.c287 int count, collide, chunk, whenmisc, xfr, i; in dotest() local
404 if ((xfr = readv(fd, &r_iovec[0], MAXIOVCNT)) < 0) { in dotest()
419 if (xfr != csize) { in dotest()
423 me, xfr, csize); in dotest()
433 count, xfr, file_max); in dotest()
456 if (xfr != csize) { in dotest()
460 me, xfr, csize); in dotest()
471 count, xfr, file_max); in dotest()
495 if (lseek64(fd, -((off64_t) xfr), 1) < 0) { in dotest()
501 if ((xfr = in dotest()
[all …]
Dftest05.c264 int i, count, collide, chunk, whenmisc, xfr; in dotest() local
340 if ((xfr = read(fd, buf, csize)) < 0) { in dotest()
355 if (xfr != csize) { in dotest()
364 xfr, file_max, zero_buf[0]); in dotest()
385 if (xfr != csize) { in dotest()
388 me, xfr, csize); in dotest()
395 xfr, file_max); in dotest()
417 if (lseek64(fd, -((off64_t) xfr), 1) < (off64_t) 0) { in dotest()
422 if ((xfr = write(fd, val_buf, csize)) < csize) { in dotest()
431 me, CHUNK(chunk), xfr); in dotest()
/external/llvm/test/CodeGen/ARM/
Doptselect-regclass.ll10 define void @xfr() {