Home
last modified time | relevance | path

Searched refs:writebuf (Results 1 – 13 of 13) sorted by relevance

/openbmc/linux/drivers/mtd/tests/
H A Dsubpagetest.c27 static unsigned char *writebuf; variable
49 prandom_bytes_state(&rnd_state, writebuf, subpgsize); in write_eraseblock()
63 prandom_bytes_state(&rnd_state, writebuf, subpgsize); in write_eraseblock()
123 prandom_bytes_state(&rnd_state, writebuf, subpgsize); in verify_eraseblock()
137 if (unlikely(memcmp(readbuf, writebuf, subpgsize))) { in verify_eraseblock()
141 print_subpage(writebuf); in verify_eraseblock()
168 print_subpage(writebuf); in verify_eraseblock()
219 memset(writebuf, 0xff, subpgsize); in verify_eraseblock_ff()
311 writebuf = kmalloc(bufsize, GFP_KERNEL); in mtd_subpagetest_init()
312 if (!writebuf) in mtd_subpagetest_init()
[all …]
H A Dpagetest.c30 static unsigned char *writebuf; variable
213 prandom_bytes_state(&rnd_state, writebuf, pgsize); in erasecrosstest()
214 strcpy(writebuf, "There is no data like this!"); in erasecrosstest()
215 err = mtdtest_write(mtd, addr0, pgsize, writebuf); in erasecrosstest()
226 if (memcmp(writebuf, readbuf, pgsize)) { in erasecrosstest()
238 prandom_bytes_state(&rnd_state, writebuf, pgsize); in erasecrosstest()
239 strcpy(writebuf, "There is no data like this!"); in erasecrosstest()
256 if (memcmp(writebuf, readbuf, pgsize)) { in erasecrosstest()
362 writebuf = kmalloc(mtd->erasesize, GFP_KERNEL); in mtd_pagetest_init()
363 if (!writebuf) in mtd_pagetest_init()
[all …]
H A Doobtest.c33 static unsigned char *writebuf; variable
271 prandom_bytes_state(&rnd_state, writebuf, len); in verify_eraseblock_in_one_go()
296 writebuf + (i * oobavail), oobavail); in verify_eraseblock_in_one_go()
382 writebuf = kmalloc(mtd->erasesize, GFP_KERNEL); in mtd_oobtest_init()
383 if (!writebuf) in mtd_oobtest_init()
503 ops.oobbuf = writebuf; in mtd_oobtest_init()
548 ops.oobbuf = writebuf; in mtd_oobtest_init()
593 ops.oobbuf = writebuf; in mtd_oobtest_init()
654 ops.oobbuf = writebuf + pg * sz; in mtd_oobtest_init()
692 if (memcmpshow(addr, readbuf, writebuf, in mtd_oobtest_init()
[all …]
H A Dstresstest.c33 static unsigned char *writebuf; variable
107 err = mtdtest_write(mtd, addr, len, writebuf); in do_write()
180 writebuf = vmalloc(bufsize); in mtd_stresstest_init()
182 if (!readbuf || !writebuf || !offsets) in mtd_stresstest_init()
186 get_random_bytes(writebuf, bufsize); in mtd_stresstest_init()
213 vfree(writebuf); in mtd_stresstest_init()
/openbmc/u-boot/lib/
H A Dgunzip.c125 unsigned char *writebuf; in gzwrite() local
205 writebuf = (unsigned char *)malloc_cache_aligned(szwritebuf); in gzwrite()
222 s.next_out = writebuf; in gzwrite()
230 crc = crc32(crc, writebuf, numfilled); in gzwrite()
235 memset(writebuf+numfilled, 0, in gzwrite()
245 writeblocks, writebuf); in gzwrite()
265 free(writebuf); in gzwrite()
/openbmc/u-boot/cmd/
H A Dunzip.c49 unsigned long writebuf = 1<<20; in do_gzwrite() local
63 writebuf = simple_strtoul(argv[5], NULL, 16); in do_gzwrite()
72 ret = gzwrite(addr, length, bdev, writebuf, startoffs, szexpected); in do_gzwrite()
/openbmc/u-boot/drivers/mtd/spi/
H A Dsf_dataflash.c273 u_char *writebuf = (u_char *)buf; in spi_dataflash_write() local
356 4, writebuf, writelen); in spi_dataflash_write()
380 4, writebuf, writelen); in spi_dataflash_write()
404 writebuf += writelen; in spi_dataflash_write()
/openbmc/linux/drivers/char/xillybus/
H A Dxillyusb.c82 unsigned int writebuf; member
231 unsigned int writebuf = fifo->writebuf; in fifo_write() local
247 fifo->writebuf = writebuf; in fifo_write()
255 rc = (*copier)(fifo->mem[writebuf] + writepos, data + done, n); in fifo_write()
268 writebuf++; in fifo_write()
270 if (writebuf == fifo->bufnum) in fifo_write()
271 writebuf = 0; in fifo_write()
412 fifo->writebuf = 0; in fifo_init()
/openbmc/linux/drivers/usb/serial/
H A Diuu_phoenix.c56 u8 *writebuf; /* buffer for writing to device */ member
80 priv->writebuf = kzalloc(256, GFP_KERNEL); in iuu_port_probe()
81 if (!priv->writebuf) { in iuu_port_probe()
94 kfree(priv->writebuf); in iuu_port_probe()
108 kfree(priv->writebuf); in iuu_port_remove()
611 memcpy(buf_ptr, priv->writebuf, priv->writelen); in iuu_bulk_write()
711 memcpy(priv->writebuf + priv->writelen, buf, count); in iuu_uart_write()
/openbmc/linux/drivers/usb/class/
H A Dusblp.c722 char *writebuf; in usblp_new_writeurb() local
724 writebuf = kmalloc(transfer_length, GFP_KERNEL); in usblp_new_writeurb()
725 if (writebuf == NULL) in usblp_new_writeurb()
729 kfree(writebuf); in usblp_new_writeurb()
736 writebuf, transfer_length, usblp_bulk_write, usblp); in usblp_new_writeurb()
/openbmc/linux/drivers/mtd/devices/
H A Dmtd_dataflash.c308 u_char *writebuf = (u_char *) buf; in dataflash_write() local
379 x[1].tx_buf = writebuf; in dataflash_write()
425 writebuf += writelen; in dataflash_write()
/openbmc/linux/fs/jffs2/
H A Dgc.c1173 unsigned char *comprbuf = NULL, *writebuf; in jffs2_garbage_collect_dnode() local
1358 writebuf = pg_ptr + (offset & (PAGE_SIZE -1)); in jffs2_garbage_collect_dnode()
1360 comprtype = jffs2_compress(c, f, writebuf, &comprbuf, &datalen, &cdatalen); in jffs2_garbage_collect_dnode()
1386 jffs2_free_comprbuf(comprbuf, writebuf); in jffs2_garbage_collect_dnode()
/openbmc/linux/drivers/staging/wlan-ng/
H A Dhfa384x_usb.c1784 u8 *writebuf; in hfa384x_drvr_flashdl_write() local
1845 writebuf = buf + in hfa384x_drvr_flashdl_write()
1861 writebuf, writelen); in hfa384x_drvr_flashdl_write()