Lines Matching refs:scratch
459 u8 *scratch; in otp_read() local
472 scratch = kzalloc(l, GFP_KERNEL); in otp_read()
473 if (!scratch) in otp_read()
479 scratch[0] = OP_READ_SECURITY; in otp_read()
482 t.tx_buf = scratch; in otp_read()
483 t.rx_buf = scratch; in otp_read()
491 memcpy(buf, scratch + 4 + base + off, len); in otp_read()
495 kfree(scratch); in otp_read()
538 u8 *scratch; in dataflash_write_user_otp() local
559 scratch = kzalloc(l, GFP_KERNEL); in dataflash_write_user_otp()
560 if (!scratch) in dataflash_write_user_otp()
562 scratch[0] = OP_WRITE_SECURITY; in dataflash_write_user_otp()
563 memcpy(scratch + 4 + from, buf, len); in dataflash_write_user_otp()
568 t.tx_buf = scratch; in dataflash_write_user_otp()
580 kfree(scratch); in dataflash_write_user_otp()