/external/ltp/testcases/kernel/fs/ftest/ |
D | ftest05.c | 250 int nchunks; variable 265 nchunks = max_size / csize; in dotest() 267 if ((bits = calloc((nchunks + 7) / 8, 1)) == NULL) { in dotest() 272 if ((hold_bits = calloc((nchunks + 7) / 8, 1)) == NULL) { in dotest() 320 memset(bits, 0, (nchunks + 7) / 8); in dotest() 321 memset(hold_bits, 0, (nchunks + 7) / 8); in dotest() 326 while (count < nchunks) { in dotest() 327 chunk = rand() % nchunks; in dotest() 370 ft_dumpbits(bits, (nchunks + 7) / 8); in dotest() 372 (nchunks + 7) / 8); in dotest() [all …]
|
D | ftest01.c | 249 int nchunks; variable 265 nchunks = max_size / csize; in dotest() 267 if ((bits = calloc((nchunks + 7) / 8, 1)) == 0) { in dotest() 273 if ((hold_bits = calloc((nchunks + 7) / 8, 1)) == 0) { in dotest() 325 memset(bits, 0, (nchunks + 7) / 8); in dotest() 326 memset(hold_bits, 0, (nchunks + 7) / 8); in dotest() 331 while (count < nchunks) { in dotest() 332 chunk = rand() % nchunks; in dotest() 378 ft_dumpbits(bits, (nchunks + 7) / 8); in dotest() 380 (nchunks + 7) / 8); in dotest() [all …]
|
D | ftest03.c | 269 int nchunks; variable 293 nchunks = max_size / csize; in dotest() 296 if ((bits = malloc((nchunks + 7) / 8)) == 0) { in dotest() 300 if ((hold_bits = malloc((nchunks + 7) / 8)) == 0) { in dotest() 376 memset(bits, 0, (nchunks + 7) / 8); in dotest() 377 memset(hold_bits, 0, (nchunks + 7) / 8); in dotest() 392 while (count < nchunks) { in dotest() 393 chunk = rand() % nchunks; in dotest() 443 (nchunks + 7) / 8); in dotest() 445 (nchunks + 7) / 8); in dotest() [all …]
|
D | ftest07.c | 266 int nchunks; variable 294 nchunks = max_size / csize; in dotest() 297 if ((bits = malloc((nchunks + 7) / 8)) == NULL) { in dotest() 300 if ((hold_bits = malloc((nchunks + 7) / 8)) == NULL) { in dotest() 373 memset(bits, 0, (nchunks + 7) / 8); in dotest() 374 memset(hold_bits, 0, (nchunks + 7) / 8); in dotest() 387 while (count < nchunks) { in dotest() 388 chunk = rand() % nchunks; in dotest() 438 (nchunks + 7) / 8); in dotest() 440 (nchunks + 7) / 8); in dotest() [all …]
|
D | ftest04.c | 206 int nchunks; variable 227 nchunks = max_size / (testers * csize); in dotest() 230 if ((bits = malloc((nchunks + 7) / 8)) == NULL) { in dotest() 304 memset(bits, 0, (nchunks + 7) / 8); in dotest() 315 while (count < nchunks) { in dotest() 316 chunk = rand() % nchunks; in dotest() 361 (nchunks + 7) / 8); in dotest() 390 (nchunks + 7) / 8); in dotest() 425 if (count + collide > 2 * nchunks) in dotest() 433 if (count < nchunks) { in dotest() [all …]
|
D | ftest08.c | 219 int nchunks; variable 240 nchunks = max_size / (testers * csize); in dotest() 243 if ((bits = malloc((nchunks + 7) / 8)) == NULL) { in dotest() 314 memset(bits, 0, (nchunks + 7) / 8); in dotest() 328 while (count < nchunks) { in dotest() 329 chunk = rand() % nchunks; in dotest() 376 (nchunks + 7) / 8); in dotest() 407 (nchunks + 7) / 8); in dotest() 442 if (count + collide > 2 * nchunks) in dotest() 450 if (count < nchunks) { in dotest() [all …]
|
/external/ltp/testcases/kernel/mem/vmtests/ |
D | stack_space.c | 201 int nchunks; variable 217 nchunks = MAXSIZE / csize; in dotest() 218 bits = malloc((nchunks + 7) / 8); in dotest() 253 bfill(bits, 0, (nchunks + 7) / 8); in dotest() 257 while (count < nchunks) { in dotest() 258 chunk = rand() % nchunks; in dotest() 277 dumpbits(bits, (nchunks + 7) / 8); in dotest() 294 dumpbits(bits, (nchunks + 7) / 8); in dotest() 305 if (count + collide > 2 * nchunks) in dotest() 313 for (chunk = 0; chunk < nchunks; chunk++) { in dotest()
|
D | data_space.c | 214 int nchunks; variable 242 nchunks = max_size / csize; 243 bits = malloc((nchunks + 7) / 8); 285 bfill(bits, 0, (nchunks + 7) / 8); 289 while (count < nchunks) { 290 chunk = rand() % nchunks; 309 dumpbits(bits, (nchunks + 7) / 8); 326 dumpbits(bits, (nchunks + 7) / 8); 337 if (count + collide > 2 * nchunks) 349 for (chunk = 0; chunk < nchunks; chunk++) {
|
/external/python/cpython2/Lib/test/ |
D | test_file.py | 230 nchunks = dataoffset // len(filler) 244 bag.write(filler * nchunks) 263 for i in range(nchunks):
|
D | test_file2k.py | 334 nchunks = dataoffset // len(filler) 349 bag.write(filler * nchunks) 375 for i in range(nchunks):
|
/external/python/cpython3/Lib/test/ |
D | test_file.py | 235 nchunks = dataoffset // len(filler) 249 bag.write(filler * nchunks) 268 for i in range(nchunks):
|
/external/autotest/server/cros/bluetooth/ |
D | bluetooth_adapter_audio_tests.py | 633 nchunks = duration // chunk_in_secs 634 logging.info('Number of chunks: %d', nchunks) 637 for i in range(nchunks): 648 i >= nchunks - self.IGNORE_LAST_FEW_CHUNKS): 661 i >= nchunks - self.IGNORE_LAST_FEW_CHUNKS):
|
/external/ltp/testcases/kernel/controllers/cpuset/cpuset_lib/ |
D | libbitmask.c | 223 int nchunks = 0, chunk; in bitmask_parsehex() local 231 nchunks++; in bitmask_parsehex() 233 chunk = nchunks - 1; in bitmask_parsehex()
|