Lines Matching refs:scratch
455 u8 *scratch; in otp_read() local
468 scratch = kzalloc(l, GFP_KERNEL); in otp_read()
469 if (!scratch) in otp_read()
475 scratch[0] = OP_READ_SECURITY; in otp_read()
478 t.tx_buf = scratch; in otp_read()
479 t.rx_buf = scratch; in otp_read()
487 memcpy(buf, scratch + 4 + base + off, len); in otp_read()
491 kfree(scratch); in otp_read()
534 u8 *scratch; in dataflash_write_user_otp() local
555 scratch = kzalloc(l, GFP_KERNEL); in dataflash_write_user_otp()
556 if (!scratch) in dataflash_write_user_otp()
558 scratch[0] = OP_WRITE_SECURITY; in dataflash_write_user_otp()
559 memcpy(scratch + 4 + from, buf, len); in dataflash_write_user_otp()
564 t.tx_buf = scratch; in dataflash_write_user_otp()
576 kfree(scratch); in dataflash_write_user_otp()