Home
last modified time | relevance | path

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

/linux-2.6.39/fs/jffs2/
Dread.c29 unsigned char *readbuf = NULL; in jffs2_read_dnode() local
88 readbuf = buf; in jffs2_read_dnode()
90 readbuf = kmalloc(je32_to_cpu(ri->csize), GFP_KERNEL); in jffs2_read_dnode()
91 if (!readbuf) { in jffs2_read_dnode()
107 decomprbuf = readbuf; in jffs2_read_dnode()
111 readbuf)); in jffs2_read_dnode()
113 je32_to_cpu(ri->csize), &readlen, readbuf); in jffs2_read_dnode()
120 crc = crc32(0, readbuf, je32_to_cpu(ri->csize)); in jffs2_read_dnode()
130 je32_to_cpu(ri->csize), readbuf, je32_to_cpu(ri->dsize), decomprbuf)); in jffs2_read_dnode()
131 …ret = jffs2_decompress(c, f, ri->compr | (ri->usercompr << 8), readbuf, decomprbuf, je32_to_cpu(ri… in jffs2_read_dnode()
[all …]
/linux-2.6.39/drivers/mtd/tests/
Dmtd_subpagetest.c38 static unsigned char *readbuf; variable
197 clear_data(readbuf, subpgsize); in verify_eraseblock()
199 err = mtd->read(mtd, addr, subpgsize, &read, readbuf); in verify_eraseblock()
211 if (unlikely(memcmp(readbuf, writebuf, subpgsize))) { in verify_eraseblock()
217 print_subpage(readbuf); in verify_eraseblock()
225 clear_data(readbuf, subpgsize); in verify_eraseblock()
227 err = mtd->read(mtd, addr, subpgsize, &read, readbuf); in verify_eraseblock()
239 if (unlikely(memcmp(readbuf, writebuf, subpgsize))) { in verify_eraseblock()
245 print_subpage(readbuf); in verify_eraseblock()
263 clear_data(readbuf, subpgsize * k); in verify_eraseblock2()
[all …]
Dmtd_oobtest.c38 static unsigned char *readbuf; variable
194 ops.oobbuf = readbuf; in verify_eraseblock()
202 if (memcmp(readbuf, writebuf, use_len)) { in verify_eraseblock()
221 ops.oobbuf = readbuf; in verify_eraseblock()
229 if (memcmp(readbuf + use_offset, writebuf, use_len)) { in verify_eraseblock()
240 if (readbuf[k] != 0xff) { in verify_eraseblock()
253 if (readbuf[k] != 0xff) { in verify_eraseblock()
286 ops.oobbuf = readbuf; in verify_eraseblock_in_one_go()
294 if (memcmp(readbuf, writebuf, len)) { in verify_eraseblock_in_one_go()
395 readbuf = kmalloc(mtd->erasesize, GFP_KERNEL); in mtd_oobtest_init()
[all …]
Dmtd_stresstest.c43 static unsigned char *readbuf; variable
156 err = mtd->read(mtd, addr, len, &read, readbuf); in do_read()
284 readbuf = vmalloc(bufsize); in mtd_stresstest_init()
287 if (!readbuf || !writebuf || !offsets) { in mtd_stresstest_init()
317 vfree(readbuf); in mtd_stresstest_init()
Dmtd_pagetest.c315 char *readbuf = twopages; in erasecrosstest() local
346 memset(readbuf, 0, pgsize); in erasecrosstest()
347 err = mtd->read(mtd, addr0, pgsize, &read, readbuf); in erasecrosstest()
357 if (memcmp(writebuf, readbuf, pgsize)) { in erasecrosstest()
384 memset(readbuf, 0, pgsize); in erasecrosstest()
385 err = mtd->read(mtd, addr0, pgsize, &read, readbuf); in erasecrosstest()
395 if (memcmp(writebuf, readbuf, pgsize)) { in erasecrosstest()
/linux-2.6.39/drivers/net/wireless/hostap/
Dhostap_download.c341 u8 readbuf[4]; in prism2_enable_genesis() local
350 hfa384x_from_aux(dev, 0x7e0038, sizeof(readbuf), readbuf); in prism2_enable_genesis()
352 hfa384x_from_aux(dev, 0x7e0038, sizeof(readbuf), readbuf); in prism2_enable_genesis()
354 if (memcmp(initseq, readbuf, sizeof(initseq)) == 0) { in prism2_enable_genesis()
362 readbuf[0], readbuf[1], readbuf[2], readbuf[3]); in prism2_enable_genesis()
/linux-2.6.39/drivers/net/wireless/ath/ar9170/
Dusb.h76 u8 *readbuf; member
Dusb.c426 aru->readbuf = (u8 *)out; in ar9170_usb_exec_cmd()
471 aru->readbuf = NULL; in ar9170_usb_exec_cmd()
552 if (aru->readbuf && len > 0) { in ar9170_usb_callback_cmd()
553 memcpy(aru->readbuf, buffer + 4, len - 4); in ar9170_usb_callback_cmd()
554 aru->readbuf = NULL; in ar9170_usb_callback_cmd()
/linux-2.6.39/drivers/usb/class/
Dusblp.c142 char *readbuf; /* read transfer_buffer */ member
179 dbg("readbuf=0x%p", usblp->readbuf); in usblp_dump()
443 kfree(usblp->readbuf); in usblp_cleanup()
827 copy_to_user(buffer, usblp->readbuf + usblp->readcount, count)) { in usblp_read()
982 usblp->readbuf, USBLP_BUF_SIZE_IN, in usblp_submit_read()
1113 if (!(usblp->readbuf = kmalloc(USBLP_BUF_SIZE_IN, GFP_KERNEL))) { in usblp_probe()
1183 kfree(usblp->readbuf); in usblp_probe()
/linux-2.6.39/drivers/media/radio/
Dradio-cadet.c328 unsigned char readbuf[RDS_BUFFER]; in cadet_read() local
349 readbuf[i++] = dev->rdsbuf[dev->rdsout++]; in cadet_read()
352 if (copy_to_user(data, readbuf, i)) in cadet_read()
/linux-2.6.39/drivers/net/wireless/ath/carl9170/
Drx.c152 if (ar->readbuf) { in carl9170_cmd_callback()
154 memcpy(ar->readbuf, buffer + 4, len - 4); in carl9170_cmd_callback()
156 ar->readbuf = NULL; in carl9170_cmd_callback()
Dusb.c652 ar->readbuf = (u8 *)out; in carl9170_exec_cmd()
688 ar->readbuf = NULL; in carl9170_exec_cmd()
Dcarl9170.h358 u8 *readbuf; member