Lines Matching refs:ref
2398 u16 *ref; in isp1362_chip_test() local
2401 ref = kmalloc(2 * ISP1362_BUF_SIZE, GFP_KERNEL); in isp1362_chip_test()
2402 if (ref) { in isp1362_chip_test()
2404 u16 *tst = &ref[ISP1362_BUF_SIZE / 2]; in isp1362_chip_test()
2407 ref[offset] = ~offset; in isp1362_chip_test()
2416 isp1362_write_buffer(isp1362_hcd, (u8 *)ref + offset, 0, j); in isp1362_chip_test()
2420 if (memcmp(ref, tst, j)) { in isp1362_chip_test()
2424 dump_data((u8 *)ref + offset, j); in isp1362_chip_test()
2431 isp1362_write_buffer(isp1362_hcd, ref, 0, ISP1362_BUF_SIZE); in isp1362_chip_test()
2435 if (memcmp(ref, tst, ISP1362_BUF_SIZE)) { in isp1362_chip_test()
2458 isp1362_write_buffer(isp1362_hcd, ref, offset * 2, PTD_HEADER_SIZE); in isp1362_chip_test()
2459 isp1362_write_buffer(isp1362_hcd, ref + PTD_HEADER_SIZE / sizeof(*ref), in isp1362_chip_test()
2464 if (memcmp(ref, tst, PTD_HEADER_SIZE + test_size)) { in isp1362_chip_test()
2465 dump_data(((u8 *)ref) + offset, PTD_HEADER_SIZE + test_size); in isp1362_chip_test()
2471 if (memcmp(ref, tst, PTD_HEADER_SIZE + test_size)) { in isp1362_chip_test()
2481 kfree(ref); in isp1362_chip_test()