Home
last modified time | relevance | path

Searched refs:nchunks (Results 1 – 13 of 13) sorted by relevance

/external/ltp/testcases/kernel/fs/ftest/
Dftest05.c250 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 …]
Dftest01.c249 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 …]
Dftest03.c269 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 …]
Dftest07.c266 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 …]
Dftest04.c206 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 …]
Dftest08.c219 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/
Dstack_space.c201 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()
Ddata_space.c214 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/
Dtest_file.py230 nchunks = dataoffset // len(filler)
244 bag.write(filler * nchunks)
263 for i in range(nchunks):
Dtest_file2k.py334 nchunks = dataoffset // len(filler)
349 bag.write(filler * nchunks)
375 for i in range(nchunks):
/external/python/cpython3/Lib/test/
Dtest_file.py235 nchunks = dataoffset // len(filler)
249 bag.write(filler * nchunks)
268 for i in range(nchunks):
/external/autotest/server/cros/bluetooth/
Dbluetooth_adapter_audio_tests.py633 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/
Dlibbitmask.c223 int nchunks = 0, chunk; in bitmask_parsehex() local
231 nchunks++; in bitmask_parsehex()
233 chunk = nchunks - 1; in bitmask_parsehex()