Lines Matching refs:BUF_SIZE
54 #define BUF_SIZE 1024 macro
56 uint8_t memc_write_buffer[BUF_SIZE];
57 uint8_t memc_read_buffer[BUF_SIZE];
65 for (i = 0; i < BUF_SIZE; i++) { in main()
71 for (i = 0, j = 0; j < (MEMC_SIZE / BUF_SIZE); i += BUF_SIZE, j++) { in main()
72 memcpy(memc + i, memc_write_buffer, BUF_SIZE); in main()
79 for (i = 0, j = 0; j < (MEMC_SIZE / BUF_SIZE); i += BUF_SIZE, j++) { in main()
80 memcpy(memc_read_buffer, memc + i, BUF_SIZE); in main()
82 if (memcmp(memc_read_buffer, memc_write_buffer, BUF_SIZE)) { in main()
84 i, i + (BUF_SIZE - 1)); in main()
85 dump_memory(memc_write_buffer, BUF_SIZE); in main()
86 dump_memory(memc_read_buffer, BUF_SIZE); in main()
89 printk("Check (%i/%i) passed!\n", j, (MEMC_SIZE / BUF_SIZE) - 1); in main()