Lines Matching refs:scratchbuf
43 void *scratchbuf; in m25p80_read_reg() local
46 scratchbuf = kmalloc(len, GFP_KERNEL); in m25p80_read_reg()
47 if (!scratchbuf) in m25p80_read_reg()
50 op.data.buf.in = scratchbuf; in m25p80_read_reg()
56 memcpy(val, scratchbuf, len); in m25p80_read_reg()
58 kfree(scratchbuf); in m25p80_read_reg()
70 void *scratchbuf; in m25p80_write_reg() local
73 scratchbuf = kmemdup(buf, len, GFP_KERNEL); in m25p80_write_reg()
74 if (!scratchbuf) in m25p80_write_reg()
77 op.data.buf.out = scratchbuf; in m25p80_write_reg()
79 kfree(scratchbuf); in m25p80_write_reg()