Lines Matching refs:scratch
462 uint8_t *scratch; in otp_read() local
475 scratch = kzalloc(l, GFP_KERNEL); in otp_read()
476 if (!scratch) in otp_read()
482 scratch[0] = OP_READ_SECURITY; in otp_read()
485 t.tx_buf = scratch; in otp_read()
486 t.rx_buf = scratch; in otp_read()
494 memcpy(buf, scratch + 4 + base + off, len); in otp_read()
498 kfree(scratch); in otp_read()
541 uint8_t *scratch; in dataflash_write_user_otp() local
562 scratch = kzalloc(l, GFP_KERNEL); in dataflash_write_user_otp()
563 if (!scratch) in dataflash_write_user_otp()
565 scratch[0] = OP_WRITE_SECURITY; in dataflash_write_user_otp()
566 memcpy(scratch + 4 + from, buf, len); in dataflash_write_user_otp()
571 t.tx_buf = scratch; in dataflash_write_user_otp()
583 kfree(scratch); in dataflash_write_user_otp()