Home
last modified time | relevance | path

Searched refs:scratchbuf (Results 1 – 6 of 6) sorted by relevance

/Linux-v4.19/drivers/mtd/devices/
Dm25p80.c43 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()
[all …]
/Linux-v4.19/drivers/mtd/nand/spi/
Dwinbond.c70 spinand->scratchbuf, in w25m02gv_select_target()
73 *spinand->scratchbuf = target; in w25m02gv_select_target()
Dcore.c40 spinand->scratchbuf); in spinand_read_reg_op()
47 *val = *spinand->scratchbuf; in spinand_read_reg_op()
54 spinand->scratchbuf); in spinand_write_reg_op()
56 *spinand->scratchbuf = val; in spinand_write_reg_op()
438 struct spi_mem_op op = SPINAND_READID_OP(0, spinand->scratchbuf, in spinand_read_id_op()
444 memcpy(buf, spinand->scratchbuf, SPINAND_MAX_ID_LEN); in spinand_read_id_op()
972 spinand->scratchbuf = kzalloc(SPINAND_MAX_ID_LEN, GFP_KERNEL); in spinand_init()
973 if (!spinand->scratchbuf) in spinand_init()
1062 kfree(spinand->scratchbuf); in spinand_init()
1073 kfree(spinand->scratchbuf); in spinand_cleanup()
/Linux-v4.19/drivers/usb/dwc3/
Dcore.c433 dwc->scratchbuf = kmalloc_array(dwc->nr_scratch, in dwc3_alloc_scratch_buffers()
435 if (!dwc->scratchbuf) in dwc3_alloc_scratch_buffers()
454 if (!WARN_ON(dwc->scratchbuf)) in dwc3_setup_scratch_buffers()
457 scratch_addr = dma_map_single(dwc->sysdev, dwc->scratchbuf, in dwc3_setup_scratch_buffers()
501 if (!WARN_ON(dwc->scratchbuf)) in dwc3_free_scratch_buffers()
506 kfree(dwc->scratchbuf); in dwc3_free_scratch_buffers()
Dcore.h1008 void *scratchbuf; member
/Linux-v4.19/include/linux/mtd/
Dspinand.h351 u8 *scratchbuf; member