Lines Matching refs:scratch
469 u8 *scratch; in otp_read() local
482 scratch = kzalloc(l, GFP_KERNEL); in otp_read()
483 if (!scratch) in otp_read()
489 scratch[0] = OP_READ_SECURITY; in otp_read()
492 t.tx_buf = scratch; in otp_read()
493 t.rx_buf = scratch; in otp_read()
501 memcpy(buf, scratch + 4 + base + off, len); in otp_read()
505 kfree(scratch); in otp_read()
548 u8 *scratch; in dataflash_write_user_otp() local
569 scratch = kzalloc(l, GFP_KERNEL); in dataflash_write_user_otp()
570 if (!scratch) in dataflash_write_user_otp()
572 scratch[0] = OP_WRITE_SECURITY; in dataflash_write_user_otp()
573 memcpy(scratch + 4 + from, buf, len); in dataflash_write_user_otp()
578 t.tx_buf = scratch; in dataflash_write_user_otp()
590 kfree(scratch); in dataflash_write_user_otp()