Lines Matching refs:buf
229 int ram_dspace_read_page(char *buf, size_t len, struct ram_dspace *dataspace, uint32_t offset);
230 int ram_dspace_write_page(char *buf, size_t len, struct ram_dspace *dataspace, uint32_t offset);
245 int (*dsRead)(char *buf, size_t len, struct ram_dspace *dataspace, uint32_t offset) = NULL;
246 int (*dsWrite)(char *buf, size_t len, struct ram_dspace *dataspace, uint32_t offset) = NULL;
411 char *buf = kmalloc(REFOS_PAGE_SIZE * 3);
413 test_assert(ds && buf && outbuf);
421 buf[i] = 'a' + (i / REFOS_PAGE_SIZE);
436 rb_write(rb, buf + REFOS_PAGE_SIZE, REFOS_PAGE_SIZE);
449 test_assert(buf[i] != outbuf[i]);
452 test_assert(buf[i] == outbuf[i]);
455 test_assert(buf[i] != outbuf[i]);
464 buf[i] = '0' + (i / REFOS_PAGE_SIZE);
477 rb_write(rbw, buf, REFOS_PAGE_SIZE * 3);
485 test_assert(buf[i] == outbuf[i]);
501 kfree(buf);