Searched refs:readbuf (Results 1 - 15 of 15) sorted by relevance

/linux-master/fs/jffs2/
H A Dread.c31 unsigned char *readbuf = NULL; local
87 Reading partial node and it's uncompressed - read into readbuf, check CRC, and copy
88 Reading partial node and it's compressed - read into readbuf, check checksum, decompress to decomprbuf and copy
91 readbuf = buf;
93 readbuf = kmalloc(je32_to_cpu(ri->csize), GFP_KERNEL);
94 if (!readbuf) {
110 decomprbuf = readbuf;
114 readbuf);
116 je32_to_cpu(ri->csize), &readlen, readbuf);
123 crc = crc32(0, readbuf, je32_to_cp
[all...]
/linux-master/drivers/mtd/tests/
H A Dsubpagetest.c28 static unsigned char *readbuf; variable
124 clear_data(readbuf, subpgsize);
125 err = mtd_read(mtd, addr, subpgsize, &read, readbuf);
137 if (unlikely(memcmp(readbuf, writebuf, subpgsize))) {
143 print_subpage(readbuf);
151 clear_data(readbuf, subpgsize);
152 err = mtd_read(mtd, addr, subpgsize, &read, readbuf);
164 if (unlikely(memcmp(readbuf, writebuf, subpgsize))) {
170 print_subpage(readbuf);
188 clear_data(readbuf, subpgsiz
[all...]
H A Doobtest.c32 static unsigned char *readbuf; variable
182 ops.oobbuf = readbuf;
194 bitflips = memcmpshow(addr, readbuf,
219 ops.oobbuf = readbuf;
231 readbuf + use_offset,
236 bitflips += memffshow(addr, 0, readbuf, use_offset);
240 bitflips += memffshow(addr, k, readbuf + k,
279 ops.oobbuf = readbuf;
295 bitflips = memcmpshow(addr, readbuf + (i * oobavail),
379 readbuf
[all...]
H A Dstresstest.c34 static unsigned char *readbuf; variable
79 return mtdtest_read(mtd, addr, len, readbuf);
179 readbuf = vmalloc(bufsize);
182 if (!readbuf || !writebuf || !offsets)
214 vfree(readbuf);
H A Dpagetest.c192 char *readbuf = twopages; local
220 memset(readbuf, 0, pgsize);
221 err = mtdtest_read(mtd, addr0, pgsize, readbuf);
226 if (memcmp(writebuf, readbuf, pgsize)) {
250 memset(readbuf, 0, pgsize);
251 err = mtdtest_read(mtd, addr0, pgsize, readbuf);
256 if (memcmp(writebuf, readbuf, pgsize)) {
/linux-master/drivers/hid/
H A Dhid-alps.c171 u8 *readbuf = NULL; local
205 readbuf = kzalloc(T4_FEATURE_REPORT_LEN, GFP_KERNEL);
206 if (!readbuf) {
211 ret = hid_hw_raw_request(hdev, T4_FEATURE_REPORT_ID, readbuf,
221 if (*(u32 *)&readbuf[6] != address) {
223 *(u32 *)&readbuf[6], address);
227 if (*(u16 *)&readbuf[10] != 1) {
229 *(u16 *)&readbuf[10]);
233 check_sum = t4_calc_check_sum(readbuf, 6, 7);
234 if (*(u16 *)&readbuf[1
258 u8 *readbuf; local
[all...]
H A Dhid-asus.c422 u8 *readbuf; local
431 readbuf = kzalloc(FEATURE_KBD_REPORT_SIZE, GFP_KERNEL);
432 if (!readbuf)
435 ret = hid_hw_raw_request(hdev, FEATURE_KBD_REPORT_ID, readbuf,
440 kfree(readbuf);
444 *kbd_func = readbuf[6];
446 kfree(readbuf);
/linux-master/drivers/gpu/drm/bridge/
H A Dlontium-lt9611uxc.c716 char *readbuf; local
719 readbuf = kzalloc(ALIGN(size, 32), GFP_KERNEL);
720 if (!readbuf)
728 lt9611uxc_firmware_read_page(lt9611uxc, offset, &readbuf[offset]);
730 return readbuf;
738 char *readbuf; local
792 readbuf = lt9611uxc_firmware_read(lt9611uxc, fw->size);
793 if (!readbuf) {
798 if (!memcmp(readbuf, fw->data, fw->size)) {
800 print_hex_dump(KERN_ERR, "fw: ", DUMP_PREFIX_OFFSET, 16, 1, readbuf, f
[all...]
/linux-master/drivers/char/xillybus/
H A Dxillyusb.c80 unsigned int readbuf; member in struct:xillyfifo
284 unsigned int readbuf = fifo->readbuf; local
310 fifo->readbuf = readbuf;
318 rc = (*copier)(data + done, fifo->mem[readbuf] + readpos, n);
331 readbuf++;
333 if (readbuf == fifo->bufnum)
334 readbuf = 0;
410 fifo->readbuf
[all...]
/linux-master/drivers/usb/class/
H A Dusblp.c136 char *readbuf; /* read transfer_buffer */ member in struct:usblp
176 dev_dbg(dev, "readbuf=0x%p\n", usblp->readbuf);
462 kfree(usblp->readbuf);
870 copy_to_user(buffer, usblp->readbuf + usblp->readcount, count)) {
1026 usblp->readbuf, USBLP_BUF_SIZE_IN,
1163 if (!(usblp->readbuf = kmalloc(USBLP_BUF_SIZE_IN, GFP_KERNEL))) {
1230 kfree(usblp->readbuf);
/linux-master/drivers/media/radio/
H A Dradio-cadet.c329 unsigned char readbuf[RDS_BUFFER]; local
345 readbuf[i++] = dev->rdsbuf[dev->rdsout++];
348 if (i && copy_to_user(data, readbuf, i))
/linux-master/drivers/net/wireless/ath/carl9170/
H A Drx.c151 if (ar->readbuf) {
153 memcpy(ar->readbuf, buffer + 4, len - 4);
155 ar->readbuf = NULL;
H A Dcarl9170.h375 u8 *readbuf; member in struct:ar9170
H A Dusb.c671 ar->readbuf = out;
708 ar->readbuf = NULL;
/linux-master/drivers/staging/rtl8723bs/hal/
H A Dsdio_ops.c791 u8 *readbuf; local
825 readbuf = recvbuf->pskb->data;
826 ret = sdio_read_port(&adapter->iopriv.intf, WLAN_RX0FF_DEVICE_ID, readsize, readbuf);

Completed in 189 milliseconds