Home | History | Annotate | Download | only in ppc32

Lines Matching refs:buffer

43 /* Test dcbzl at addr in buffer given dcbzl_block_size */
44 static void test_dcbzl_at(char *addr, char *buffer, int block_size)
48 /* Note: Assumption is that the length of buffer is three times the block_size. */
49 memset(buffer, 0xff, 3 * block_size);
52 assert(buffer[i] == 0xff);
53 assert(buffer[block_size + i] == 0x00);
54 assert(buffer[2 * block_size + i] == 0xff);
62 char *buffer = NULL;
69 err = posix_memalign((void **) &buffer, block_size, buffer_size);
76 test_dcbzl_at(&buffer[block_size], buffer, block_size);
80 test_dcbzl_at(&buffer[block_size+1], buffer, block_size);
84 test_dcbzl_at(&buffer[2 * block_size - 1], buffer, block_size);
87 free(buffer);