/kernel/liteos_a/testsuites/unittest/basic/mem/shm/full/ |
D | shm_test_013.cpp | 40 char *writebuf = NULL; in testcase() local 46 writebuf = static_cast<char *>(malloc(pageSize)); in testcase() 47 ICUNIT_ASSERT_NOT_EQUAL(writebuf, NULL, writebuf); in testcase() 51 (void)memset_s(writebuf, pageSize, 0xf, pageSize); in testcase() 53 count = write(shmfd, writebuf, pageSize); in testcase() 65 if (writebuf != NULL) { in testcase() 66 free(writebuf); in testcase()
|
D | shm_test_014.cpp | 42 char *writebuf = NULL; in testcase() local 52 writebuf = static_cast<char *>(malloc(pageSize)); in testcase() 53 ICUNIT_ASSERT_NOT_EQUAL(writebuf, NULL, writebuf); in testcase() 56 (void)memset_s(writebuf, pageSize, 0xf, pageSize); in testcase() 60 count = write(shmfd, writebuf, pageSize); in testcase() 71 count = write(shmfd, writebuf, pageSize); in testcase() 78 free(writebuf); in testcase()
|
/kernel/linux/linux-5.10/drivers/mtd/tests/ |
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 …]
|
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 …]
|
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 …]
|
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()
|
/kernel/liteos_a/fs/vfs/operation/ |
D | vfs_writev.c | 46 char *writebuf = NULL; in iov_trans_to_buf() local 50 writebuf = (char *)iov[i].iov_base; in iov_trans_to_buf() 61 ret = LOS_CopyToKernel(curbuf, bytestowrite, writebuf, bytestowrite); in iov_trans_to_buf()
|
/kernel/linux/linux-5.10/drivers/usb/serial/ |
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()
|
/kernel/linux/linux-5.10/drivers/usb/class/ |
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()
|
/kernel/linux/linux-5.10/drivers/mtd/devices/ |
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()
|
/kernel/linux/linux-5.10/fs/jffs2/ |
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()
|
/kernel/linux/linux-5.10/drivers/staging/wlan-ng/ |
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()
|
/kernel/liteos_a/fs/jffs2/ |
D | jffs2.patch | 3908 unsigned char *comprbuf = NULL, *writebuf; 3987 - writebuf = pg_ptr + (offset & (PAGE_SIZE -1)); 3988 + writebuf = pg_ptr + (offset & (PAGE_CACHE_SIZE -1)); 3990 comprtype = jffs2_compress(c, f, writebuf, &comprbuf, &datalen, &cdatalen);
|