Lines Matching refs:buf

23 	u8 *buf;  in mem_test_ms_b()  local
25 buf = map_sysmem(0, BUF_SIZE + 1); in mem_test_ms_b()
26 memset(buf, '\0', BUF_SIZE); in mem_test_ms_b()
27 buf[0x0] = 0x12; in mem_test_ms_b()
28 buf[0x31] = 0x12; in mem_test_ms_b()
29 buf[0xff] = 0x12; in mem_test_ms_b()
30 buf[0x100] = 0x12; in mem_test_ms_b()
43 unmap_sysmem(buf); in mem_test_ms_b()
52 u16 *buf; in mem_test_ms_w() local
54 buf = map_sysmem(0, BUF_SIZE + 2); in mem_test_ms_w()
55 memset(buf, '\0', BUF_SIZE); in mem_test_ms_w()
56 buf[0x34 / 2] = 0x1234; in mem_test_ms_w()
57 buf[BUF_SIZE / 2] = 0x1234; in mem_test_ms_w()
68 unmap_sysmem(buf); in mem_test_ms_w()
77 u32 *buf; in mem_test_ms_l() local
79 buf = map_sysmem(0, BUF_SIZE + 4); in mem_test_ms_l()
80 memset(buf, '\0', BUF_SIZE); in mem_test_ms_l()
81 buf[0x38 / 4] = 0x12345678; in mem_test_ms_l()
82 buf[BUF_SIZE / 4] = 0x12345678; in mem_test_ms_l()
102 unmap_sysmem(buf); in mem_test_ms_l()
113 u8 *buf; in mem_test_ms_cont() local
116 buf = map_sysmem(0, BUF_SIZE); in mem_test_ms_cont()
117 memset(buf, '\0', BUF_SIZE); in mem_test_ms_cont()
119 buf[i] = 0x34; in mem_test_ms_cont()
152 unmap_sysmem(buf); in mem_test_ms_cont()
163 u8 *buf; in mem_test_ms_cont_end() local
165 buf = map_sysmem(0, BUF_SIZE); in mem_test_ms_cont_end()
166 memset(buf, '\0', BUF_SIZE); in mem_test_ms_cont_end()
167 buf[0x0] = 0x12; in mem_test_ms_cont_end()
168 buf[0x31] = 0x12; in mem_test_ms_cont_end()
169 buf[0xff] = 0x12; in mem_test_ms_cont_end()
170 buf[0x100] = 0x12; in mem_test_ms_cont_end()
196 unmap_sysmem(buf); in mem_test_ms_cont_end()
206 char *buf; in mem_test_ms_mult() local
208 buf = map_sysmem(0, BUF_SIZE + 5); in mem_test_ms_mult()
209 memset(buf, '\0', BUF_SIZE); in mem_test_ms_mult()
210 strcpy(buf + 0x1e, str); in mem_test_ms_mult()
211 strcpy(buf + 0x63, str); in mem_test_ms_mult()
212 strcpy(buf + BUF_SIZE - strlen(str) + 1, str); in mem_test_ms_mult()
221 unmap_sysmem(buf); in mem_test_ms_mult()
236 char *buf; in mem_test_ms_s() local
238 buf = map_sysmem(0, BUF_SIZE); in mem_test_ms_s()
239 memset(buf, '\0', BUF_SIZE); in mem_test_ms_s()
240 strcpy(buf + 0x1e, str); in mem_test_ms_s()
241 strcpy(buf + 0x63, str); in mem_test_ms_s()
242 strcpy(buf + 0xa1, str2); in mem_test_ms_s()
268 unmap_sysmem(buf); in mem_test_ms_s()
277 u8 *buf; in mem_test_ms_limit() local
279 buf = map_sysmem(0, BUF_SIZE + 1); in mem_test_ms_limit()
280 memset(buf, '\0', BUF_SIZE); in mem_test_ms_limit()
281 buf[0x0] = 0x12; in mem_test_ms_limit()
282 buf[0x31] = 0x12; in mem_test_ms_limit()
283 buf[0x62] = 0x12; in mem_test_ms_limit()
284 buf[0x76] = 0x12; in mem_test_ms_limit()
297 unmap_sysmem(buf); in mem_test_ms_limit()
306 u8 *buf; in mem_test_ms_quiet() local
308 buf = map_sysmem(0, BUF_SIZE + 1); in mem_test_ms_quiet()
309 memset(buf, '\0', BUF_SIZE); in mem_test_ms_quiet()
310 buf[0x0] = 0x12; in mem_test_ms_quiet()
311 buf[0x31] = 0x12; in mem_test_ms_quiet()
312 buf[0x62] = 0x12; in mem_test_ms_quiet()
313 buf[0x76] = 0x12; in mem_test_ms_quiet()
317 unmap_sysmem(buf); in mem_test_ms_quiet()