Lines Matching refs:scratch
461 uint8_t *scratch; in otp_read() local
474 scratch = kzalloc(l, GFP_KERNEL); in otp_read()
475 if (!scratch) in otp_read()
481 scratch[0] = OP_READ_SECURITY; in otp_read()
484 t.tx_buf = scratch; in otp_read()
485 t.rx_buf = scratch; in otp_read()
493 memcpy(buf, scratch + 4 + base + off, len); in otp_read()
497 kfree(scratch); in otp_read()
540 uint8_t *scratch; in dataflash_write_user_otp() local
561 scratch = kzalloc(l, GFP_KERNEL); in dataflash_write_user_otp()
562 if (!scratch) in dataflash_write_user_otp()
564 scratch[0] = OP_WRITE_SECURITY; in dataflash_write_user_otp()
565 memcpy(scratch + 4 + from, buf, len); in dataflash_write_user_otp()
570 t.tx_buf = scratch; in dataflash_write_user_otp()
582 kfree(scratch); in dataflash_write_user_otp()