Lines Matching refs:buf_size
41 void mem_flush(unsigned char *buf, size_t buf_size) in mem_flush() argument
46 buf_size = buf_size / CL_SIZE; /* mem size in cache lines */ in mem_flush()
48 for (i = 0; i < buf_size; i++) in mem_flush()
65 static int fill_one_span_read(unsigned char *buf, size_t buf_size) in fill_one_span_read() argument
67 unsigned int size = buf_size / (CL_SIZE / 2); in fill_one_span_read()
91 void fill_cache_read(unsigned char *buf, size_t buf_size, bool once) in fill_cache_read() argument
96 ret = fill_one_span_read(buf, buf_size); in fill_cache_read()
105 unsigned char *alloc_buffer(size_t buf_size, bool memflush) in alloc_buffer() argument
112 ret = posix_memalign(&buf, PAGE_SIZE, buf_size); in alloc_buffer()
118 s64 = buf_size / sizeof(uint64_t); in alloc_buffer()
128 mem_flush(buf, buf_size); in alloc_buffer()