Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/mtd/tests/
Dsubpagetest.c28 static unsigned char *readbuf; variable
124 clear_data(readbuf, subpgsize); in verify_eraseblock()
125 err = mtd_read(mtd, addr, subpgsize, &read, readbuf); in verify_eraseblock()
137 if (unlikely(memcmp(readbuf, writebuf, subpgsize))) { in verify_eraseblock()
143 print_subpage(readbuf); in verify_eraseblock()
151 clear_data(readbuf, subpgsize); in verify_eraseblock()
152 err = mtd_read(mtd, addr, subpgsize, &read, readbuf); in verify_eraseblock()
164 if (unlikely(memcmp(readbuf, writebuf, subpgsize))) { in verify_eraseblock()
170 print_subpage(readbuf); in verify_eraseblock()
188 clear_data(readbuf, subpgsize * k); in verify_eraseblock2()
[all …]
Doobtest.c32 static unsigned char *readbuf; variable
182 ops.oobbuf = readbuf; in verify_eraseblock()
194 bitflips = memcmpshow(addr, readbuf, in verify_eraseblock()
219 ops.oobbuf = readbuf; in verify_eraseblock()
231 readbuf + use_offset, in verify_eraseblock()
236 bitflips += memffshow(addr, 0, readbuf, use_offset); in verify_eraseblock()
240 bitflips += memffshow(addr, k, readbuf + k, in verify_eraseblock()
279 ops.oobbuf = readbuf; in verify_eraseblock_in_one_go()
295 bitflips = memcmpshow(addr, readbuf + (i * oobavail), in verify_eraseblock_in_one_go()
379 readbuf = kmalloc(mtd->erasesize, GFP_KERNEL); in mtd_oobtest_init()
[all …]
Dstresstest.c34 static unsigned char *readbuf; variable
79 return mtdtest_read(mtd, addr, len, readbuf); in do_read()
179 readbuf = vmalloc(bufsize); in mtd_stresstest_init()
182 if (!readbuf || !writebuf || !offsets) in mtd_stresstest_init()
214 vfree(readbuf); in mtd_stresstest_init()
Dpagetest.c192 char *readbuf = twopages; in erasecrosstest() local
220 memset(readbuf, 0, pgsize); in erasecrosstest()
221 err = mtdtest_read(mtd, addr0, pgsize, readbuf); in erasecrosstest()
226 if (memcmp(writebuf, readbuf, pgsize)) { in erasecrosstest()
250 memset(readbuf, 0, pgsize); in erasecrosstest()
251 err = mtdtest_read(mtd, addr0, pgsize, readbuf); in erasecrosstest()
256 if (memcmp(writebuf, readbuf, pgsize)) { in erasecrosstest()
/linux-6.1.9/fs/jffs2/
Dread.c31 unsigned char *readbuf = NULL; in jffs2_read_dnode() local
91 readbuf = buf; in jffs2_read_dnode()
93 readbuf = kmalloc(je32_to_cpu(ri->csize), GFP_KERNEL); in jffs2_read_dnode()
94 if (!readbuf) { in jffs2_read_dnode()
110 decomprbuf = readbuf; in jffs2_read_dnode()
114 readbuf); in jffs2_read_dnode()
116 je32_to_cpu(ri->csize), &readlen, readbuf); in jffs2_read_dnode()
123 crc = crc32(0, readbuf, je32_to_cpu(ri->csize)); in jffs2_read_dnode()
133 je32_to_cpu(ri->csize), readbuf, in jffs2_read_dnode()
135 …ret = jffs2_decompress(c, f, ri->compr | (ri->usercompr << 8), readbuf, decomprbuf, je32_to_cpu(ri… in jffs2_read_dnode()
[all …]
/linux-6.1.9/drivers/hid/
Dhid-alps.c171 u8 *readbuf = NULL; in t4_read_write_register() local
205 readbuf = kzalloc(T4_FEATURE_REPORT_LEN, GFP_KERNEL); in t4_read_write_register()
206 if (!readbuf) { in t4_read_write_register()
211 ret = hid_hw_raw_request(hdev, T4_FEATURE_REPORT_ID, readbuf, in t4_read_write_register()
221 if (*(u32 *)&readbuf[6] != address) { in t4_read_write_register()
223 *(u32 *)&readbuf[6], address); in t4_read_write_register()
227 if (*(u16 *)&readbuf[10] != 1) { in t4_read_write_register()
229 *(u16 *)&readbuf[10]); in t4_read_write_register()
233 check_sum = t4_calc_check_sum(readbuf, 6, 7); in t4_read_write_register()
234 if (*(u16 *)&readbuf[13] != check_sum) { in t4_read_write_register()
[all …]
Dhid-asus.c420 u8 *readbuf; in asus_kbd_get_functions() local
429 readbuf = kzalloc(FEATURE_KBD_REPORT_SIZE, GFP_KERNEL); in asus_kbd_get_functions()
430 if (!readbuf) in asus_kbd_get_functions()
433 ret = hid_hw_raw_request(hdev, FEATURE_KBD_REPORT_ID, readbuf, in asus_kbd_get_functions()
438 kfree(readbuf); in asus_kbd_get_functions()
442 *kbd_func = readbuf[6]; in asus_kbd_get_functions()
444 kfree(readbuf); in asus_kbd_get_functions()
/linux-6.1.9/drivers/gpu/drm/bridge/
Dlontium-lt9611uxc.c713 char *readbuf; in lt9611uxc_firmware_read() local
716 readbuf = kzalloc(ALIGN(size, 32), GFP_KERNEL); in lt9611uxc_firmware_read()
717 if (!readbuf) in lt9611uxc_firmware_read()
725 lt9611uxc_firmware_read_page(lt9611uxc, offset, &readbuf[offset]); in lt9611uxc_firmware_read()
727 return readbuf; in lt9611uxc_firmware_read()
735 char *readbuf; in lt9611uxc_firmware_update() local
789 readbuf = lt9611uxc_firmware_read(lt9611uxc, fw->size); in lt9611uxc_firmware_update()
790 if (!readbuf) { in lt9611uxc_firmware_update()
795 if (!memcmp(readbuf, fw->data, fw->size)) { in lt9611uxc_firmware_update()
797 print_hex_dump(KERN_ERR, "fw: ", DUMP_PREFIX_OFFSET, 16, 1, readbuf, fw->size, false); in lt9611uxc_firmware_update()
[all …]
/linux-6.1.9/drivers/net/wireless/intersil/hostap/
Dhostap_download.c392 u8 readbuf[4]; in prism2_enable_genesis() local
401 hfa384x_from_aux(dev, 0x7e0038, sizeof(readbuf), readbuf); in prism2_enable_genesis()
403 hfa384x_from_aux(dev, 0x7e0038, sizeof(readbuf), readbuf); in prism2_enable_genesis()
405 if (memcmp(initseq, readbuf, sizeof(initseq)) == 0) { in prism2_enable_genesis()
411 hcr, initseq, readbuf); in prism2_enable_genesis()
/linux-6.1.9/drivers/char/xillybus/
Dxillyusb.c80 unsigned int readbuf; member
276 unsigned int readbuf = fifo->readbuf; in fifo_read() local
302 fifo->readbuf = readbuf; in fifo_read()
310 rc = (*copier)(data + done, fifo->mem[readbuf] + readpos, n); in fifo_read()
323 readbuf++; in fifo_read()
325 if (readbuf == fifo->bufnum) in fifo_read()
326 readbuf = 0; in fifo_read()
402 fifo->readbuf = 0; in fifo_init()
/linux-6.1.9/drivers/usb/class/
Dusblp.c136 char *readbuf; /* read transfer_buffer */ member
176 dev_dbg(dev, "readbuf=0x%p\n", usblp->readbuf); in usblp_dump()
462 kfree(usblp->readbuf); in usblp_cleanup()
870 copy_to_user(buffer, usblp->readbuf + usblp->readcount, count)) { in usblp_read()
1026 usblp->readbuf, USBLP_BUF_SIZE_IN, in usblp_submit_read()
1163 if (!(usblp->readbuf = kmalloc(USBLP_BUF_SIZE_IN, GFP_KERNEL))) { in usblp_probe()
1230 kfree(usblp->readbuf); in usblp_probe()
/linux-6.1.9/drivers/media/radio/
Dradio-cadet.c329 unsigned char readbuf[RDS_BUFFER]; in cadet_read() local
345 readbuf[i++] = dev->rdsbuf[dev->rdsout++]; in cadet_read()
348 if (i && copy_to_user(data, readbuf, i)) in cadet_read()
/linux-6.1.9/drivers/net/wireless/ath/carl9170/
Drx.c151 if (ar->readbuf) { in carl9170_cmd_callback()
153 memcpy(ar->readbuf, buffer + 4, len - 4); in carl9170_cmd_callback()
155 ar->readbuf = NULL; in carl9170_cmd_callback()
Dusb.c671 ar->readbuf = (u8 *)out; in carl9170_exec_cmd()
708 ar->readbuf = NULL; in carl9170_exec_cmd()
Dcarl9170.h375 u8 *readbuf; member
/linux-6.1.9/drivers/staging/rtl8723bs/hal/
Dsdio_ops.c791 u8 *readbuf; in sd_recv_rxfifo() local
825 readbuf = recvbuf->pskb->data; in sd_recv_rxfifo()
826 ret = sdio_read_port(&adapter->iopriv.intf, WLAN_RX0FF_DEVICE_ID, readsize, readbuf); in sd_recv_rxfifo()