Lines Matching refs:test_buf
86 const u8 *golden_buf, u8 *test_buf);
856 const u8 *golden_buf, u8 *test_buf) in aspeed_spi_check_reads() argument
861 memcpy_fromio(test_buf, chip->ahb_base, CALIBRATE_BUF_SIZE); in aspeed_spi_check_reads()
862 if (memcmp(test_buf, golden_buf, CALIBRATE_BUF_SIZE) != 0) { in aspeed_spi_check_reads()
865 test_buf, 0x100); in aspeed_spi_check_reads()
879 const u8 *golden_buf, u8 *test_buf) in aspeed_spi_calibrate() argument
900 pass = aspeed_spi_check_reads(chip, golden_buf, test_buf); in aspeed_spi_calibrate()
931 static bool aspeed_spi_check_calib_data(const u8 *test_buf, u32 size) in aspeed_spi_check_calib_data() argument
933 const u32 *tb32 = (const u32 *)test_buf; in aspeed_spi_check_calib_data()
968 u8 *test_buf = NULL; in aspeed_spi_do_calibration() local
981 test_buf = kzalloc(CALIBRATE_BUF_SIZE * 2, GFP_KERNEL); in aspeed_spi_do_calibration()
982 if (!test_buf) in aspeed_spi_do_calibration()
985 golden_buf = test_buf + CALIBRATE_BUF_SIZE; in aspeed_spi_do_calibration()
1010 rc = data->calibrate(chip, i, golden_buf, test_buf); in aspeed_spi_do_calibration()
1029 kfree(test_buf); in aspeed_spi_do_calibration()
1040 const u8 *golden_buf, u8 *test_buf) in aspeed_spi_ast2600_calibrate() argument
1057 pass = aspeed_spi_check_reads(chip, golden_buf, test_buf); in aspeed_spi_ast2600_calibrate()
1073 pass = aspeed_spi_check_reads(chip, golden_buf, test_buf); in aspeed_spi_ast2600_calibrate()