| /OK3568_Linux_fs/kernel/drivers/mtd/tests/ |
| H A D | subpagetest.c | 27 static unsigned char *writebuf; variable 49 prandom_bytes_state(&rnd_state, writebuf, subpgsize); in write_eraseblock() 50 err = mtd_write(mtd, addr, subpgsize, &written, writebuf); in write_eraseblock() 63 prandom_bytes_state(&rnd_state, writebuf, subpgsize); in write_eraseblock() 64 err = mtd_write(mtd, addr, subpgsize, &written, writebuf); in write_eraseblock() 87 prandom_bytes_state(&rnd_state, writebuf, subpgsize * k); in write_eraseblock2() 88 err = mtd_write(mtd, addr, subpgsize * k, &written, writebuf); in write_eraseblock2() 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() [all …]
|
| H A D | pagetest.c | 30 static unsigned char *writebuf; variable 45 prandom_bytes_state(&rnd_state, writebuf, mtd->erasesize); in write_eraseblock() 47 return mtdtest_write(mtd, addr, mtd->erasesize, writebuf); in write_eraseblock() 65 prandom_bytes_state(&rnd_state, writebuf, mtd->erasesize); in verify_eraseblock() 78 if (memcmp(twopages, writebuf + (j * pgsize), bufsize)) { in verify_eraseblock() 99 memcpy(boundary, writebuf + mtd->erasesize - pgsize, pgsize); in verify_eraseblock() 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() [all …]
|
| H A D | oobtest.c | 33 static unsigned char *writebuf; variable 63 prandom_bytes_state(&rnd_state, writebuf, use_len_max * pgcnt); in write_eraseblock() 72 ops.oobbuf = writebuf + (use_len_max * i) + use_offset; in write_eraseblock() 173 prandom_bytes_state(&rnd_state, writebuf, use_len_max * pgcnt); in verify_eraseblock() 195 writebuf + (use_len_max * i) + use_offset, in verify_eraseblock() 232 writebuf + (use_len_max * i) + use_offset, in verify_eraseblock() 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() [all …]
|
| H A D | stresstest.c | 33 static unsigned char *writebuf; variable 116 err = mtdtest_write(mtd, addr, len, writebuf); in do_write() 189 writebuf = vmalloc(bufsize); in mtd_stresstest_init() 191 if (!readbuf || !writebuf || !offsets) in mtd_stresstest_init() 195 prandom_bytes(writebuf, bufsize); in mtd_stresstest_init() 222 vfree(writebuf); in mtd_stresstest_init()
|
| /OK3568_Linux_fs/kernel/drivers/input/touchscreen/focaltech_touch_ft5436/ |
| H A D | focaltech_ex_fun.c | 87 u8 *writebuf = NULL; in fts_debug_write() local 102 writebuf = (u8 *)kzalloc(buflen * sizeof(u8), GFP_KERNEL); in fts_debug_write() 103 if (NULL == writebuf) { in fts_debug_write() 108 writebuf = tmpbuf; in fts_debug_write() 111 if (copy_from_user(writebuf, buff, buflen)) { in fts_debug_write() 117 proc->opmode = writebuf[0]; in fts_debug_write() 120 FTS_DEBUG("[APK]: PROC_SET_TEST_FLAG = %x", writebuf[1]); in fts_debug_write() 121 if (writebuf[1] == 0) { in fts_debug_write() 133 proc->cmd[0] = writebuf[1]; in fts_debug_write() 137 ret = fts_write_reg(writebuf[1], writebuf[2]); in fts_debug_write() [all …]
|
| H A D | focaltech_i2c.c | 115 int fts_write(u8 *writebuf, u32 writelen) in fts_write() argument 122 if (!ts_data || !ts_data->client || !writebuf || !writelen in fts_write() 130 memcpy(ts_data->bus_tx_buf, writebuf, writelen); in fts_write()
|
| H A D | focaltech_core.h | 205 int fts_write(u8 *writebuf, u32 writelen);
|
| /OK3568_Linux_fs/kernel/drivers/input/touchscreen/focaltech_touch/ |
| H A D | focaltech_ex_fun.c | 94 u8 *writebuf = NULL; in fts_debug_write() local 109 writebuf = (u8 *)kzalloc(buflen * sizeof(u8), GFP_KERNEL); in fts_debug_write() 110 if (NULL == writebuf) { in fts_debug_write() 115 writebuf = tmpbuf; in fts_debug_write() 118 if (copy_from_user(writebuf, buff, buflen)) { in fts_debug_write() 124 ts_data->proc_opmode = writebuf[0]; in fts_debug_write() 128 FTS_INFO("[APK]: PROC_SET_TEST_FLAG = %x!!", writebuf[1]); in fts_debug_write() 130 if (writebuf[1] == 0) { in fts_debug_write() 139 ret = fts_i2c_write(client, writebuf + 1, writelen); in fts_debug_write() 147 ret = fts_i2c_write(client, writebuf + 1, writelen); in fts_debug_write() [all …]
|
| H A D | focaltech_i2c.c | 71 int fts_i2c_read(struct i2c_client *client, char *writebuf, int writelen, char *readbuf, int readle… in fts_i2c_read() argument 85 .buf = writebuf, in fts_i2c_read() 131 int fts_i2c_write(struct i2c_client *client, char *writebuf, int writelen) in fts_i2c_write() argument 143 .buf = writebuf, in fts_i2c_write()
|
| H A D | focaltech_core.h | 186 int fts_i2c_read(struct i2c_client *client, char *writebuf, int writelen, char *readbuf, int readle… 187 int fts_i2c_write(struct i2c_client *client, char *writebuf, int writelen);
|
| /OK3568_Linux_fs/u-boot/lib/ |
| H A D | gunzip.c | 137 unsigned char *writebuf; in gzwrite() local 217 writebuf = (unsigned char *)malloc_cache_aligned(szwritebuf); in gzwrite() 234 s.next_out = writebuf; in gzwrite() 242 crc = crc32(crc, writebuf, numfilled); in gzwrite() 247 memset(writebuf+numfilled, 0, in gzwrite() 257 writeblocks, writebuf); in gzwrite() 277 free(writebuf); in gzwrite()
|
| /OK3568_Linux_fs/u-boot/cmd/ |
| H A D | unzip.c | 50 unsigned long writebuf = 1<<20; in do_gzwrite() local 64 writebuf = simple_strtoul(argv[5], NULL, 16); in do_gzwrite() 73 ret = gzwrite(addr, length, bdev, writebuf, startoffs, szexpected); in do_gzwrite()
|
| /OK3568_Linux_fs/u-boot/drivers/mtd/spi/ |
| H A D | sf_dataflash.c | 276 u_char *writebuf = (u_char *)buf; in spi_dataflash_write() local 360 writebuf, NULL, writelen); in spi_dataflash_write() 384 writebuf, NULL, writelen); in spi_dataflash_write() 408 writebuf += writelen; in spi_dataflash_write()
|
| /OK3568_Linux_fs/kernel/drivers/usb/serial/ |
| H A D | iuu_phoenix.c | 56 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() 613 memcpy(buf_ptr, priv->writebuf, priv->writelen); in iuu_bulk_write() 715 memcpy(priv->writebuf + priv->writelen, buf, count); in iuu_uart_write()
|
| /OK3568_Linux_fs/kernel/drivers/input/touchscreen/focaltech_touch/focaltech_test/ |
| H A D | focaltech_test.c | 100 static int fts_test_i2c_read(u8 *writebuf, int writelen, u8 *readbuf, int readlen) in fts_test_i2c_read() argument 108 ret = fts_i2c_read(fts_data->client, writebuf, writelen, readbuf, readlen); in fts_test_i2c_read() 110 ret = fts_i2c_read(writebuf, writelen, readbuf, readlen); in fts_test_i2c_read() 119 static int fts_test_i2c_write(u8 *writebuf, int writelen) in fts_test_i2c_write() argument 127 ret = fts_i2c_write(fts_data->client, writebuf, writelen); in fts_test_i2c_write() 129 ret = fts_i2c_write(writebuf, writelen); in fts_test_i2c_write() 198 int fts_test_write(u8 addr, u8 *writebuf, int writelen) in fts_test_write() argument 229 memcpy(&data[1], &writebuf[offset], packet_length); in fts_test_write()
|
| H A D | focaltech_test.h | 506 int fts_test_write(u8 addr, u8 *writebuf, int writelen);
|
| /OK3568_Linux_fs/kernel/drivers/usb/class/ |
| H A D | usblp.c | 722 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()
|
| /OK3568_Linux_fs/kernel/drivers/mtd/devices/ |
| H A D | mtd_dataflash.c | 302 u_char *writebuf = (u_char *) buf; in dataflash_write() local 373 x[1].tx_buf = writebuf; in dataflash_write() 419 writebuf += writelen; in dataflash_write()
|
| /OK3568_Linux_fs/kernel/fs/jffs2/ |
| H A D | gc.c | 1173 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()
|
| /OK3568_Linux_fs/kernel/drivers/staging/wlan-ng/ |
| H A D | hfa384x_usb.c | 1805 u8 *writebuf; in hfa384x_drvr_flashdl_write() local 1866 writebuf = buf + in hfa384x_drvr_flashdl_write() 1882 writebuf, writelen); in hfa384x_drvr_flashdl_write()
|