/Linux-v5.10/drivers/s390/char/ |
D | hmcdrv_dev.c | 202 ssize_t retlen; in hmcdrv_dev_transfer() local 206 retlen = hmcdrv_ftp_cmd(cmd, offset, buf, len); in hmcdrv_dev_transfer() 208 if (retlen != -EBUSY) in hmcdrv_dev_transfer() 215 return retlen; in hmcdrv_dev_transfer() 224 ssize_t retlen; in hmcdrv_dev_read() local 231 retlen = hmcdrv_dev_transfer((char *) fp->private_data, in hmcdrv_dev_read() 235 fp, (long long) *pos, retlen, len); in hmcdrv_dev_read() 237 if (retlen > 0) in hmcdrv_dev_read() 238 *pos += retlen; in hmcdrv_dev_read() 240 return retlen; in hmcdrv_dev_read() [all …]
|
D | hmcdrv_ftp.c | 243 ssize_t retlen = hmcdrv_ftp_parse(cmd, &ftp); in hmcdrv_ftp_cmd() local 245 if (retlen) in hmcdrv_ftp_cmd() 246 return retlen; in hmcdrv_ftp_cmd() 258 retlen = hmcdrv_ftp_do(&ftp); in hmcdrv_ftp_cmd() 260 if ((retlen >= 0) && in hmcdrv_ftp_cmd() 261 copy_to_user(buf, ftp.buf, retlen)) in hmcdrv_ftp_cmd() 262 retlen = -EFAULT; in hmcdrv_ftp_cmd() 268 retlen = hmcdrv_ftp_do(&ftp); in hmcdrv_ftp_cmd() 270 retlen = -EFAULT; in hmcdrv_ftp_cmd() 274 retlen = hmcdrv_ftp_do(&ftp); in hmcdrv_ftp_cmd() [all …]
|
/Linux-v5.10/drivers/mtd/ |
D | nftlcore.c | 124 size_t *retlen, uint8_t *buf) in nftl_read_oob() argument 137 *retlen = ops.oobretlen; in nftl_read_oob() 145 size_t *retlen, uint8_t *buf) in nftl_write_oob() argument 158 *retlen = ops.oobretlen; in nftl_write_oob() 168 size_t *retlen, uint8_t *buf, uint8_t *oob) in nftl_write() argument 182 *retlen = ops.retlen; in nftl_write() 243 size_t retlen; in NFTL_foldchain() local 267 (block * 512), 16 , &retlen, in NFTL_foldchain() 383 8, &retlen, (char *)&oob.u); in NFTL_foldchain() 409 &retlen, in NFTL_foldchain() [all …]
|
D | mtdpstore.c | 278 size_t retlen; in mtdpstore_write() local 289 ret = mtd_write(cxt->mtd, off, size, &retlen, (u_char *)buf); in mtdpstore_write() 290 if (ret < 0 || retlen != size) { in mtdpstore_write() 292 off, retlen, size, ret); in mtdpstore_write() 298 return retlen; in mtdpstore_write() 314 size_t retlen, done; in mtdpstore_read() local 321 for (done = 0, retlen = 0; done < size; done += retlen) { in mtdpstore_read() 322 retlen = 0; in mtdpstore_read() 324 ret = mtd_read(cxt->mtd, off + done, size - done, &retlen, in mtdpstore_read() 328 off + done, retlen, size - done, ret); in mtdpstore_read() [all …]
|
D | nftlmount.c | 29 size_t retlen; in find_boot_record() local 54 &retlen, buf); in find_boot_record() 57 if (retlen != SECTORSIZE) { in find_boot_record() 69 if (retlen < 6 || memcmp(buf, "ANAND", 6)) { in find_boot_record() 80 SECTORSIZE + 8, 8, &retlen, in find_boot_record() 101 &retlen, buf); in find_boot_record() 225 &retlen, buf); in find_boot_record() 266 size_t retlen; in check_free_sectors() local 276 if (mtd_read(mtd, address, SECTORSIZE, &retlen, buf)) in check_free_sectors() 283 &retlen, &buf[SECTORSIZE]) < 0) in check_free_sectors() [all …]
|
D | inftlcore.c | 137 size_t *retlen, uint8_t *buf) in inftl_read_oob() argument 149 *retlen = ops.oobretlen; in inftl_read_oob() 157 size_t *retlen, uint8_t *buf) in inftl_write_oob() argument 169 *retlen = ops.oobretlen; in inftl_write_oob() 177 size_t *retlen, uint8_t *buf, uint8_t *oob) in inftl_write() argument 190 *retlen = ops.retlen; in inftl_write() 245 size_t retlen; in INFTL_foldchain() local 273 + (block * SECTORSIZE), 16, &retlen, in INFTL_foldchain() 336 &retlen, in INFTL_foldchain() 342 &retlen, in INFTL_foldchain() [all …]
|
D | mtdchar.c | 140 size_t retlen; in mtdchar_read() local 169 &retlen, kbuf); in mtdchar_read() 173 &retlen, kbuf); in mtdchar_read() 185 retlen = ops.retlen; in mtdchar_read() 189 ret = mtd_read(mtd, *ppos, len, &retlen, kbuf); in mtdchar_read() 201 *ppos += retlen; in mtdchar_read() 202 if (copy_to_user(buf, kbuf, retlen)) { in mtdchar_read() 207 total_retlen += retlen; in mtdchar_read() 209 count -= retlen; in mtdchar_read() 210 buf += retlen; in mtdchar_read() [all …]
|
D | rfd_ftl.c | 156 size_t retlen; in scan_header() local 206 part->header_size, &retlen, in scan_header() 209 if (!rc && retlen != part->header_size) in scan_header() 247 size_t retlen; in rfd_ftl_readsect() local 255 rc = mtd_read(part->mbd.mtd, addr, SECTOR_SIZE, &retlen, in rfd_ftl_readsect() 257 if (!rc && retlen != SECTOR_SIZE) in rfd_ftl_readsect() 296 size_t retlen; in erase_block() local 304 sizeof(magic), &retlen, (u_char *)&magic); in erase_block() 305 if (!rc && retlen != sizeof(magic)) in erase_block() 326 size_t retlen; in move_block_contents() local [all …]
|
D | mtdblock.c | 48 size_t retlen; in erase_write() local 69 ret = mtd_write(mtd, pos, len, &retlen, buf); in erase_write() 72 if (retlen != len) in erase_write() 115 size_t retlen; in do_cached_write() local 122 return mtd_write(mtd, pos, len, &retlen, buf); in do_cached_write() 155 &retlen, mtdblk->cache_data); in do_cached_write() 158 if (retlen != sect_size) in do_cached_write() 185 size_t retlen; in do_cached_read() local 192 return mtd_read(mtd, pos, len, &retlen, buf); in do_cached_read() 211 ret = mtd_read(mtd, pos, size, &retlen, buf); in do_cached_read() [all …]
|
D | mtdcore.c | 522 size_t retlen; in mtd_nvmem_reg_read() local 525 err = mtd_read(mtd, offset, bytes, &retlen, val); in mtd_nvmem_reg_read() 529 return retlen == bytes ? 0 : -EIO; in mtd_nvmem_reg_read() 1125 int mtd_point(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, in mtd_point() argument 1130 *retlen = 0; in mtd_point() 1142 return master->_point(master, from, len, retlen, virt, phys); in mtd_point() 1169 size_t retlen; in mtd_get_unmapped_area() local 1173 ret = mtd_point(mtd, offset, len, &retlen, &virt, NULL); in mtd_get_unmapped_area() 1176 if (retlen != len) { in mtd_get_unmapped_area() 1177 mtd_unpoint(mtd, offset, retlen); in mtd_get_unmapped_area() [all …]
|
D | mtdblock_ro.c | 18 size_t retlen; in mtdblock_readsect() local 20 if (mtd_read(dev->mtd, (block * 512), 512, &retlen, buf)) in mtdblock_readsect() 28 size_t retlen; in mtdblock_writesect() local 30 if (mtd_write(dev->mtd, (block * 512), 512, &retlen, buf)) in mtdblock_writesect()
|
D | inftlmount.c | 40 size_t retlen; in find_boot_record() local 63 &retlen, buf); in find_boot_record() 66 if (retlen != SECTORSIZE) { in find_boot_record() 82 if (retlen < 6 || memcmp(buf, "BNAND", 6)) { in find_boot_record() 90 8, &retlen,(char *)&h1); in find_boot_record() 108 &retlen, buf); in find_boot_record() 109 if (retlen != SECTORSIZE) { in find_boot_record() 327 size_t retlen; in check_free_sectors() local 337 if (mtd_read(mtd, address, SECTORSIZE, &retlen, buf)) in check_free_sectors() 344 &retlen, &buf[SECTORSIZE]) < 0) in check_free_sectors() [all …]
|
D | mtdoops.c | 179 size_t retlen; in mtdoops_write() local 190 record_size, &retlen, cxt->oops_buf); in mtdoops_write() 197 record_size, &retlen, cxt->oops_buf); in mtdoops_write() 199 if (retlen != record_size || ret < 0) in mtdoops_write() 201 cxt->nextpage * record_size, retlen, record_size, ret); in mtdoops_write() 221 size_t retlen; in find_next_position() local 229 &retlen, (u_char *)&count[0]); in find_next_position() 230 if (retlen != MTDOOPS_HEADER_SIZE || in find_next_position() 233 page * record_size, retlen, in find_next_position()
|
D | mtdconcat.c | 55 size_t * retlen, u_char * buf) in concat_read() argument 94 *retlen += retsize; in concat_read() 107 size_t * retlen, const u_char * buf) in concat_panic_write() argument 133 *retlen += retsize; in concat_panic_write() 148 size_t * retlen, const u_char * buf) in concat_write() argument 172 *retlen += retsize; in concat_write() 186 unsigned long count, loff_t to, size_t * retlen) in concat_writev() argument 245 *retlen += retsize; in concat_writev() 266 ops->retlen = ops->oobretlen = 0; in concat_read_oob() 281 ops->retlen += devops.retlen; in concat_read_oob() [all …]
|
/Linux-v5.10/tools/testing/selftests/bpf/progs/ |
D | bpf_iter_task_stack.c | 18 long i, retlen; in dump_task_stack() local 23 retlen = bpf_get_task_stack(task, entries, in dump_task_stack() 25 if (retlen < 0) in dump_task_stack() 29 retlen / SIZE_OF_ULONG); in dump_task_stack() 31 if (retlen > i * SIZE_OF_ULONG) in dump_task_stack()
|
/Linux-v5.10/include/linux/mtd/ |
D | mtd.h | 67 size_t retlen; member 315 size_t *retlen, void **virt, resource_size_t *phys); 318 size_t *retlen, u_char *buf); 320 size_t *retlen, const u_char *buf); 322 size_t *retlen, const u_char *buf); 328 size_t *retlen, struct otp_info *buf); 330 size_t len, size_t *retlen, u_char *buf); 332 size_t *retlen, struct otp_info *buf); 334 size_t len, size_t *retlen, u_char *buf); 336 size_t len, size_t *retlen, u_char *buf); [all …]
|
/Linux-v5.10/fs/jffs2/ |
D | erase.c | 317 size_t retlen; in jffs2_block_check_erase() local 321 ret = mtd_point(c->mtd, jeb->offset, c->sector_size, &retlen, in jffs2_block_check_erase() 328 if (retlen < c->sector_size) { in jffs2_block_check_erase() 331 retlen); in jffs2_block_check_erase() 332 mtd_unpoint(c->mtd, jeb->offset, retlen); in jffs2_block_check_erase() 336 retlen /= sizeof(*wordebuf); in jffs2_block_check_erase() 340 } while(--retlen); in jffs2_block_check_erase() 342 if (retlen) { in jffs2_block_check_erase() 346 c->sector_size-retlen * sizeof(*wordebuf)); in jffs2_block_check_erase() 367 ret = mtd_read(c->mtd, ofs, readlen, &retlen, ebuf); in jffs2_block_check_erase() [all …]
|
D | writev.c | 17 unsigned long count, loff_t to, size_t *retlen) in jffs2_flash_direct_writev() argument 29 return mtd_writev(c->mtd, vecs, count, to, retlen); in jffs2_flash_direct_writev() 33 size_t *retlen, const u_char *buf) in jffs2_flash_direct_write() argument 36 ret = mtd_write(c->mtd, ofs, len, retlen, buf); in jffs2_flash_direct_write()
|
D | wbuf.c | 234 size_t retlen; in jffs2_verify_write() local 237 ret = mtd_read(c->mtd, ofs, c->wbuf_pagesize, &retlen, c->wbuf_verify); in jffs2_verify_write() 242 } else if (retlen != c->wbuf_pagesize) { in jffs2_verify_write() 244 __func__, ofs, retlen, c->wbuf_pagesize); in jffs2_verify_write() 279 size_t retlen; in jffs2_wbuf_recover() local 348 ret = mtd_read(c->mtd, start, c->wbuf_ofs - start, &retlen, in jffs2_wbuf_recover() 353 (retlen == c->wbuf_ofs - start)) in jffs2_wbuf_recover() 356 if (ret || retlen != c->wbuf_ofs - start) { in jffs2_wbuf_recover() 425 mtd_write(c->mtd, ofs, towrite, &retlen, brokenbuf); in jffs2_wbuf_recover() 429 ret = mtd_write(c->mtd, ofs, towrite, &retlen, in jffs2_wbuf_recover() [all …]
|
D | os-linux.h | 79 #define jffs2_flash_write(c, ofs, len, retlen, buf) jffs2_flash_direct_write(c, ofs, len, retlen, b… argument 80 #define jffs2_flash_read(c, ofs, len, retlen, buf) (mtd_read((c)->mtd, ofs, len, retlen, buf)) argument 116 …sb_info *c, const struct kvec *vecs, unsigned long count, loff_t to, size_t *retlen, uint32_t ino); 117 int jffs2_flash_write(struct jffs2_sb_info *c, loff_t ofs, size_t len, size_t *retlen, const u_char… 118 int jffs2_flash_read(struct jffs2_sb_info *c, loff_t ofs, size_t len, size_t *retlen, u_char *buf); 191 unsigned long count, loff_t to, size_t *retlen); 193 size_t *retlen, const u_char *buf);
|
/Linux-v5.10/drivers/mtd/devices/ |
D | mtdram.c | 66 size_t *retlen, void **virt, resource_size_t *phys) in ram_point() argument 69 *retlen = len; in ram_point() 85 *retlen = addr - *virt; in ram_point() 100 size_t *retlen, u_char *buf) in ram_read() argument 103 *retlen = len; in ram_read() 108 size_t *retlen, const u_char *buf) in ram_write() argument 111 *retlen = len; in ram_write()
|
D | powernv_flash.c | 47 loff_t offset, size_t len, size_t *retlen, u_char *buf) in powernv_flash_async_op() argument 119 if (rc == OPAL_SUCCESS && retlen) in powernv_flash_async_op() 120 *retlen = len; in powernv_flash_async_op() 138 size_t *retlen, u_char *buf) in powernv_flash_read() argument 141 len, retlen, buf); in powernv_flash_read() 154 size_t *retlen, const u_char *buf) in powernv_flash_write() argument 157 len, retlen, (u_char *)buf); in powernv_flash_write()
|
D | pmc551.c | 133 size_t *retlen, void **virt, resource_size_t *phys); 142 size_t retlen; in pmc551_erase() local 154 pmc551_point(mtd, instr->addr, instr->len, &retlen, in pmc551_erase() 175 priv->asize, &retlen, in pmc551_erase() 190 size_t *retlen, void **virt, resource_size_t *phys) in pmc551_point() argument 211 *retlen = len; in pmc551_point() 224 size_t * retlen, u_char * buf) in pmc551_read() argument 243 pmc551_point(mtd, from, len, retlen, (void **)&ptr, NULL); in pmc551_read() 264 pmc551_point(mtd, soff_hi, priv->asize, retlen, in pmc551_read() 275 *retlen = copyto - buf; in pmc551_read() [all …]
|
/Linux-v5.10/drivers/mtd/chips/ |
D | map_ram.c | 24 size_t *retlen, void **virt, resource_size_t *phys); 87 size_t *retlen, void **virt, resource_size_t *phys) in mapram_point() argument 96 *retlen = len; in mapram_point() 105 static int mapram_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) in mapram_read() argument 110 *retlen = len; in mapram_read() 114 static int mapram_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char … in mapram_write() argument 119 *retlen = len; in mapram_write()
|
D | map_rom.c | 24 size_t *retlen, void **virt, resource_size_t *phys); 73 size_t *retlen, void **virt, resource_size_t *phys) in maprom_point() argument 82 *retlen = len; in maprom_point() 91 static int maprom_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) in maprom_read() argument 96 *retlen = len; in maprom_read() 105 static int maprom_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char … in maprom_write() argument
|