Home
last modified time | relevance | path

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

1234

/linux/drivers/s390/char/
A Dhmcdrv_dev.c202 ssize_t retlen; in hmcdrv_dev_transfer() local
208 if (retlen != -EBUSY) in hmcdrv_dev_transfer()
215 return retlen; in hmcdrv_dev_transfer()
224 ssize_t retlen; in hmcdrv_dev_read() local
237 if (retlen > 0) in hmcdrv_dev_read()
238 *pos += retlen; in hmcdrv_dev_read()
240 return retlen; in hmcdrv_dev_read()
249 ssize_t retlen; in hmcdrv_dev_write() local
272 if (retlen > 0) in hmcdrv_dev_write()
273 *pos += retlen; in hmcdrv_dev_write()
[all …]
A Dhmcdrv_ftp.c245 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()
278 retlen = -EOPNOTSUPP; in hmcdrv_ftp_cmd()
[all …]
/linux/drivers/mtd/
A Dnftlcore.c137 *retlen = ops.oobretlen; in nftl_read_oob()
158 *retlen = ops.oobretlen; in nftl_write_oob()
182 *retlen = ops.retlen; in nftl_write()
243 size_t retlen; in NFTL_foldchain() local
409 &retlen, in NFTL_foldchain()
415 &retlen, in NFTL_foldchain()
529 size_t retlen; in NFTL_findwriteunit() local
546 size_t retlen; in NFTL_findwriteunit() local
679 size_t retlen; in nftl_writeblock() local
710 size_t retlen; in nftl_readblock() local
[all …]
A Dmtdpstore.c278 size_t retlen; in mtdpstore_write() local
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()
343 retlen = retlen == 0 ? size - done : retlen; in mtdpstore_read()
353 return retlen; in mtdpstore_read()
360 size_t retlen; in mtdpstore_panic_write() local
378 return retlen; in mtdpstore_panic_write()
[all …]
A 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()
101 &retlen, buf); in find_boot_record()
222 &retlen, buf); in find_boot_record()
263 size_t retlen; in check_free_sectors() local
304 size_t retlen; in NFTL_formatblock() local
375 size_t retlen; in check_sectors_in_chain() local
493 size_t retlen; in check_and_mark_free_block() local
553 size_t retlen; in get_fold_mark() local
[all …]
A Dinftlcore.c149 *retlen = ops.oobretlen; in inftl_read_oob()
190 *retlen = ops.retlen; in inftl_write()
245 size_t retlen; in INFTL_foldchain() local
336 &retlen, in INFTL_foldchain()
342 &retlen, in INFTL_foldchain()
469 size_t retlen; in INFTL_findwriteunit() local
633 size_t retlen; in INFTL_trydeletechain() local
752 size_t retlen; in INFTL_deleteblock() local
810 size_t retlen; in inftl_writeblock() local
862 size_t retlen; in inftl_readblock() local
[all …]
A Dmtdchar.c132 size_t retlen; in mtdchar_read() local
177 retlen = ops.retlen; in mtdchar_read()
193 *ppos += retlen; in mtdchar_read()
201 count -= retlen; in mtdchar_read()
202 buf += retlen; in mtdchar_read()
224 size_t retlen; in mtdchar_write() local
272 retlen = ops.retlen; in mtdchar_write()
292 buf += retlen; in mtdchar_write()
313 size_t retlen; in otp_select_filemode() local
347 uint32_t retlen; in mtdchar_writeoob() local
[all …]
A Dmtdcore.c524 size_t retlen; in mtd_nvmem_reg_read() local
787 size_t retlen; in mtd_otp_size() local
1293 *retlen = 0; in mtd_point()
1376 *retlen = ops.retlen; in mtd_read()
1392 *retlen = ops.retlen; in mtd_write()
1410 *retlen = 0; in mtd_panic_write()
1543 ops->retlen += adjops.retlen; in mtd_io_emulated_slc()
2009 *retlen = 0; in mtd_read_fact_prot_reg()
2036 *retlen = 0; in mtd_read_user_prot_reg()
2051 *retlen = 0; in mtd_write_user_prot_reg()
[all …]
A Drfd_ftl.c156 size_t retlen; in scan_header() local
203 part->header_size, &retlen, in scan_header()
244 size_t retlen; in rfd_ftl_readsect() local
254 if (!rc && retlen != SECTOR_SIZE) in rfd_ftl_readsect()
293 size_t retlen; in erase_block() local
323 size_t retlen; in move_block_contents() local
506 size_t retlen; in find_writable_block() local
549 size_t retlen; in mark_sector_deleted() local
561 if (!rc && retlen != sizeof(del)) in mark_sector_deleted()
608 size_t retlen; in do_writesect() local
[all …]
A 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 …]
A 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()
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
337 &retlen, &buf[SECTORSIZE]) < 0) in check_free_sectors()
363 size_t retlen; in INFTL_formatblock() local
534 size_t retlen; in INFTL_mount() local
[all …]
A 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()
A Dmtdconcat.c55 size_t * retlen, u_char * buf) in concat_read() argument
94 *retlen += retsize; in concat_read()
133 *retlen += retsize; in concat_panic_write()
172 *retlen += retsize; in concat_write()
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()
302 devops.datbuf += devops.retlen; in concat_read_oob()
326 ops->retlen = ops->oobretlen = 0; in concat_write_oob()
341 ops->retlen += devops.retlen; in concat_write_oob()
[all …]
A Dftl.c376 ssize_t retlen; in prepare_xfer() local
437 ssize_t retlen; in copy_erase_unit() local
490 ret = mtd_read(part->mbd.mtd, src, SECTOR_SIZE, &retlen, in copy_erase_unit()
498 ret = mtd_write(part->mbd.mtd, dest, SECTOR_SIZE, &retlen, in copy_erase_unit()
520 &retlen, in copy_erase_unit()
530 &retlen, (u_char *)&srcunitswap); in copy_erase_unit()
691 size_t retlen; in find_free() local
714 &retlen, in find_free()
754 size_t offset, retlen; in ftl_read() local
803 size_t retlen, offset; in set_bam_entry() local
[all …]
/linux/include/linux/mtd/
A Dmtd.h67 size_t retlen; member
317 size_t *retlen, u_char *buf);
319 size_t *retlen, const u_char *buf);
321 size_t *retlen, const u_char *buf);
327 size_t *retlen, struct otp_info *buf);
329 size_t len, size_t *retlen, u_char *buf);
331 size_t *retlen, struct otp_info *buf);
335 size_t len, size_t *retlen,
516 size_t *retlen, u_char *buf);
520 size_t *retlen, u_char *buf);
[all …]
/linux/fs/jffs2/
A Derase.c317 size_t retlen; in jffs2_block_check_erase() local
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()
374 if (retlen != readlen) { in jffs2_block_check_erase()
376 ofs, readlen, retlen); in jffs2_block_check_erase()
402 size_t retlen; in jffs2_mark_erased_block() local
[all …]
A Dwbuf.c234 size_t retlen; in jffs2_verify_write() local
242 } else if (retlen != c->wbuf_pagesize) { in jffs2_verify_write()
279 size_t retlen; in jffs2_wbuf_recover() local
353 (retlen == c->wbuf_ofs - start)) in jffs2_wbuf_recover()
437 if (retlen) in jffs2_wbuf_recover()
584 size_t retlen; in __jffs2_flush_wbuf() local
639 &retlen, c->wbuf); in __jffs2_flush_wbuf()
644 } else if (retlen != c->wbuf_pagesize) { in __jffs2_flush_wbuf()
646 retlen, c->wbuf_pagesize); in __jffs2_flush_wbuf()
903 *retlen = donelen; in jffs2_flash_writev()
[all …]
A 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);
A 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()
/linux/tools/testing/selftests/bpf/progs/
A 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/drivers/mtd/chips/
A 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()
A 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/drivers/mtd/devices/
A 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()
A 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()
A Dpmc551.c142 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
264 pmc551_point(mtd, soff_hi, priv->asize, retlen, in pmc551_read()
275 *retlen = copyto - buf; in pmc551_read()
280 size_t * retlen, const u_char * buf) in pmc551_write() argument
320 pmc551_point(mtd, soff_hi, priv->asize, retlen, in pmc551_write()
[all …]

Completed in 51 milliseconds

1234