Home
last modified time | relevance | path

Searched refs:retlen (Results 1 – 25 of 97) sorted by relevance

1234

/linux-6.1.9/drivers/s390/char/
Dhmcdrv_dev.c202 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 …]
Dhmcdrv_ftp.c243 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-6.1.9/drivers/mtd/
Dnftlcore.c124 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 …]
Dmtdpstore.c278 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 …]
Dnftlmount.c29 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()
222 &retlen, buf); in find_boot_record()
263 size_t retlen; in check_free_sectors() local
273 if (mtd_read(mtd, address, SECTORSIZE, &retlen, buf)) in check_free_sectors()
280 &retlen, &buf[SECTORSIZE]) < 0) in check_free_sectors()
[all …]
Dinftlcore.c137 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 …]
Dmtdchar.c132 size_t retlen; in mtdchar_read() local
161 &retlen, kbuf); in mtdchar_read()
165 &retlen, kbuf); in mtdchar_read()
177 retlen = ops.retlen; in mtdchar_read()
181 ret = mtd_read(mtd, *ppos, len, &retlen, kbuf); in mtdchar_read()
193 *ppos += retlen; in mtdchar_read()
194 if (copy_to_user(buf, kbuf, retlen)) { in mtdchar_read()
199 total_retlen += retlen; in mtdchar_read()
201 count -= retlen; in mtdchar_read()
202 buf += retlen; in mtdchar_read()
[all …]
Drfd_ftl.c156 size_t retlen; in scan_header() local
203 part->header_size, &retlen, in scan_header()
206 if (!rc && retlen != part->header_size) in scan_header()
244 size_t retlen; in rfd_ftl_readsect() local
252 rc = mtd_read(part->mbd.mtd, addr, SECTOR_SIZE, &retlen, in rfd_ftl_readsect()
254 if (!rc && retlen != SECTOR_SIZE) in rfd_ftl_readsect()
293 size_t retlen; in erase_block() local
301 sizeof(magic), &retlen, (u_char *)&magic); in erase_block()
302 if (!rc && retlen != sizeof(magic)) in erase_block()
323 size_t retlen; in move_block_contents() local
[all …]
Dmtdcore.c506 size_t retlen; in mtd_nvmem_reg_read() local
509 err = mtd_read(mtd, offset, bytes, &retlen, val); in mtd_nvmem_reg_read()
513 return retlen == bytes ? 0 : -EIO; in mtd_nvmem_reg_read()
846 size_t retlen; in mtd_otp_size() local
854 ret = mtd_get_user_prot_info(mtd, PAGE_SIZE, &retlen, info); in mtd_otp_size()
856 ret = mtd_get_fact_prot_info(mtd, PAGE_SIZE, &retlen, info); in mtd_otp_size()
860 for (i = 0; i < retlen / sizeof(*info); i++) in mtd_otp_size()
913 size_t retlen; in mtd_nvmem_user_otp_reg_read() local
916 ret = mtd_read_user_prot_reg(mtd, offset, bytes, &retlen, val); in mtd_nvmem_user_otp_reg_read()
920 return retlen == bytes ? 0 : -EIO; in mtd_nvmem_user_otp_reg_read()
[all …]
Dmtdblock.c48 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 …]
Dmtdblock_ro.c18 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()
Dinftlmount.c40 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()
320 size_t retlen; in check_free_sectors() local
330 if (mtd_read(mtd, address, SECTORSIZE, &retlen, buf)) in check_free_sectors()
337 &retlen, &buf[SECTORSIZE]) < 0) in check_free_sectors()
[all …]
Dmtdconcat.c55 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-6.1.9/include/linux/mtd/
Dmtd.h73 size_t retlen; member
318 size_t *retlen, void **virt, resource_size_t *phys);
321 size_t *retlen, u_char *buf);
323 size_t *retlen, const u_char *buf);
325 size_t *retlen, const u_char *buf);
331 size_t *retlen, struct otp_info *buf);
333 size_t len, size_t *retlen, u_char *buf);
335 size_t *retlen, struct otp_info *buf);
337 size_t len, size_t *retlen, u_char *buf);
339 size_t len, size_t *retlen,
[all …]
/linux-6.1.9/tools/testing/selftests/bpf/progs/
Dbpf_iter_task_stack.c17 long i, retlen; in dump_task_stack() local
22 retlen = bpf_get_task_stack(task, entries, in dump_task_stack()
24 if (retlen < 0) in dump_task_stack()
28 retlen / SIZE_OF_ULONG); in dump_task_stack()
30 if (retlen > i * SIZE_OF_ULONG) in dump_task_stack()
/linux-6.1.9/fs/jffs2/
Derase.c315 size_t retlen; in jffs2_block_check_erase() local
319 ret = mtd_point(c->mtd, jeb->offset, c->sector_size, &retlen, in jffs2_block_check_erase()
326 if (retlen < c->sector_size) { in jffs2_block_check_erase()
329 retlen); in jffs2_block_check_erase()
330 mtd_unpoint(c->mtd, jeb->offset, retlen); in jffs2_block_check_erase()
334 retlen /= sizeof(*wordebuf); in jffs2_block_check_erase()
338 } while(--retlen); in jffs2_block_check_erase()
340 if (retlen) { in jffs2_block_check_erase()
344 c->sector_size-retlen * sizeof(*wordebuf)); in jffs2_block_check_erase()
365 ret = mtd_read(c->mtd, ofs, readlen, &retlen, ebuf); in jffs2_block_check_erase()
[all …]
Dwritev.c17 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()
Dwbuf.c234 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 …]
Dos-linux.h79 #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-6.1.9/drivers/mtd/chips/
Dmap_ram.c24 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()
Dmap_rom.c24 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
/linux-6.1.9/drivers/mtd/devices/
Dmtdram.c66 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()
Dpowernv_flash.c47 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()
139 size_t *retlen, u_char *buf) in powernv_flash_read() argument
142 len, retlen, buf); in powernv_flash_read()
156 size_t *retlen, const u_char *buf) in powernv_flash_write() argument
159 len, retlen, (u_char *)buf); in powernv_flash_write()
Dpmc551.c133 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-6.1.9/drivers/mtd/parsers/
Dscpart.c54 size_t retlen; in scpart_scan_partmap() local
65 res2 = mtd_read(master, partmap_offs, master->erasesize, &retlen, buf); in scpart_scan_partmap()
66 if (res2 || retlen != master->erasesize) { in scpart_scan_partmap()
108 size_t retlen; in scpart_find_partmap() local
114 res2 = mtd_read(master, offs, PART_MAGIC_LEN, &retlen, rdbuf); in scpart_find_partmap()
115 if (res2 || retlen != PART_MAGIC_LEN) { in scpart_find_partmap()

1234