/Linux-v5.15/drivers/mtd/tests/ |
D | subpagetest.c | 28 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 …]
|
D | oobtest.c | 32 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 …]
|
D | stresstest.c | 34 static unsigned char *readbuf; variable 88 return mtdtest_read(mtd, addr, len, readbuf); in do_read() 188 readbuf = vmalloc(bufsize); in mtd_stresstest_init() 191 if (!readbuf || !writebuf || !offsets) in mtd_stresstest_init() 223 vfree(readbuf); in mtd_stresstest_init()
|
D | pagetest.c | 192 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-v5.15/fs/jffs2/ |
D | read.c | 31 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-v5.15/drivers/hid/ |
D | hid-alps.c | 171 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 …]
|
D | hid-asus.c | 422 u8 *readbuf; in asus_kbd_get_functions() local 431 readbuf = kzalloc(FEATURE_KBD_REPORT_SIZE, GFP_KERNEL); in asus_kbd_get_functions() 432 if (!readbuf) in asus_kbd_get_functions() 435 ret = hid_hw_raw_request(hdev, FEATURE_KBD_REPORT_ID, readbuf, in asus_kbd_get_functions() 440 kfree(readbuf); in asus_kbd_get_functions() 444 *kbd_func = readbuf[6]; in asus_kbd_get_functions() 446 kfree(readbuf); in asus_kbd_get_functions()
|
/Linux-v5.15/drivers/gpu/drm/bridge/ |
D | lontium-lt9611uxc.c | 743 char *readbuf; in lt9611uxc_firmware_read() local 746 readbuf = kzalloc(ALIGN(size, 32), GFP_KERNEL); in lt9611uxc_firmware_read() 747 if (!readbuf) in lt9611uxc_firmware_read() 755 lt9611uxc_firmware_read_page(lt9611uxc, offset, &readbuf[offset]); in lt9611uxc_firmware_read() 757 return readbuf; in lt9611uxc_firmware_read() 765 char *readbuf; in lt9611uxc_firmware_update() local 819 readbuf = lt9611uxc_firmware_read(lt9611uxc, fw->size); in lt9611uxc_firmware_update() 820 if (!readbuf) { in lt9611uxc_firmware_update() 825 if (!memcmp(readbuf, fw->data, fw->size)) { in lt9611uxc_firmware_update() 827 print_hex_dump(KERN_ERR, "fw: ", DUMP_PREFIX_OFFSET, 16, 1, readbuf, fw->size, false); in lt9611uxc_firmware_update() [all …]
|
/Linux-v5.15/drivers/net/wireless/intersil/hostap/ |
D | hostap_download.c | 392 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-v5.15/drivers/char/xillybus/ |
D | xillyusb.c | 80 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-v5.15/drivers/usb/class/ |
D | usblp.c | 136 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-v5.15/drivers/media/radio/ |
D | radio-cadet.c | 329 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-v5.15/drivers/net/wireless/ath/carl9170/ |
D | rx.c | 151 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()
|
D | usb.c | 671 ar->readbuf = (u8 *)out; in carl9170_exec_cmd() 708 ar->readbuf = NULL; in carl9170_exec_cmd()
|
D | carl9170.h | 375 u8 *readbuf; member
|
/Linux-v5.15/drivers/staging/rtl8723bs/hal/ |
D | sdio_ops.c | 791 u8 *readbuf; in sd_recv_rxfifo() local 828 readbuf = recvbuf->pskb->data; in sd_recv_rxfifo() 829 ret = sdio_read_port(&adapter->iopriv.intf, WLAN_RX0FF_DEVICE_ID, readsize, readbuf); in sd_recv_rxfifo()
|