Lines Matching refs:count
46 int count, err_flg = 0; in check_file_contents() local
48 for (count = 0; count < NBUFS; count++) { in check_file_contents()
49 l_seek(fildes, count * K1, SEEK_SET, count * K1); in check_file_contents()
51 SAFE_READ(1, fildes, read_buf[count], K1); in check_file_contents()
53 if (memcmp(write_buf[count], read_buf[count], K1) != 0) { in check_file_contents()
54 tst_res(TFAIL, "read/write buffer[%d] data mismatch", count); in check_file_contents()
85 int count; in setup() local
87 for (count = 0; count < NBUFS; count++) { in setup()
88 write_buf[count] = SAFE_MALLOC(K1); in setup()
89 read_buf[count] = SAFE_MALLOC(K1); in setup()
90 memset(write_buf[count], count, K1); in setup()
98 int count; in cleanup() local
100 for (count = 0; count < NBUFS; count++) { in cleanup()
101 free(write_buf[count]); in cleanup()
102 free(read_buf[count]); in cleanup()