Lines Matching defs:test_buf
86 const u8 *golden_buf, u8 *test_buf);
868 const u8 *golden_buf, u8 *test_buf)
873 memcpy_fromio(test_buf, chip->ahb_base, CALIBRATE_BUF_SIZE);
874 if (memcmp(test_buf, golden_buf, CALIBRATE_BUF_SIZE) != 0) {
877 test_buf, 0x100);
891 const u8 *golden_buf, u8 *test_buf)
912 pass = aspeed_spi_check_reads(chip, golden_buf, test_buf);
943 static bool aspeed_spi_check_calib_data(const u8 *test_buf, u32 size)
945 const u32 *tb32 = (const u32 *)test_buf;
980 u8 *test_buf = NULL;
993 test_buf = kzalloc(CALIBRATE_BUF_SIZE * 2, GFP_KERNEL);
994 if (!test_buf)
997 golden_buf = test_buf + CALIBRATE_BUF_SIZE;
1022 rc = data->calibrate(chip, i, golden_buf, test_buf);
1041 kfree(test_buf);
1052 const u8 *golden_buf, u8 *test_buf)
1069 pass = aspeed_spi_check_reads(chip, golden_buf, test_buf);
1085 pass = aspeed_spi_check_reads(chip, golden_buf, test_buf);