Home
last modified time | relevance | path

Searched refs:NBPW (Results 1 – 2 of 2) sorted by relevance

/external/ltp/testcases/kernel/fs/doio/
Ddatapid.c97 num_full_words = bsize / NBPW; in datapidgen()
100 if (cnt = (offset % NBPW)) { /* partial word */ in datapidgen()
118 for (; boff < (NBPW - cnt) && boff < bsize; boff++, chr++) { in datapidgen()
127 num_full_words = (bsize - boff) / NBPW; in datapidgen()
131 for (cnt = 0; cnt < num_full_words; woff += NBPW, cnt++) { in datapidgen()
138 for (tmp = 0; tmp < NBPW; tmp++, chr++) { in datapidgen()
153 if (cnt = ((bsize - boff) % NBPW)) { in datapidgen()
198 num_full_words = bsize / NBPW; in datapidchk()
201 if (cnt = (offset % NBPW)) { /* partial word */ in datapidchk()
213 for (; boff < (NBPW - cnt) && boff < bsize; boff++, chr++) { in datapidchk()
[all …]
/external/ltp/testcases/kernel/ipc/pipeio/
Dpipeio.c64 #define NBPW sizeof(int) macro
536 count_word = (int *)&writebuf[NBPW]; in do_child()
598 for (i = 2 * NBPW; i < size; ++i) { in check_rw_buf()
760 int num_words = length / NBPW; /* given length in bytes, get length in words */ in prt_buf()
764 char b[NBPW]; in prt_buf()
765 char c[NBPW * 2]; in prt_buf()
772 if (length % NBPW) in prt_buf()
781 for (i = 0; i < num_words; ++i, a += NBPW, addr++) { in prt_buf()
789 memset(c, 0x00, width * NBPW); in prt_buf()
793 memcpy(c, a - (width * NBPW), width * NBPW); in prt_buf()
[all …]