/openbmc/linux/drivers/s390/char/ |
H A D | hmcdrv_dev.c | 202 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 …]
|
H A D | hmcdrv_ftp.c | 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() 278 retlen = -EOPNOTSUPP; in hmcdrv_ftp_cmd() [all …]
|
/openbmc/linux/drivers/mtd/ |
H A D | nftlcore.c | 137 *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 …]
|
H A 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() 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 …]
|
H A D | mtdpstore.c | 278 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 …]
|
H A D | inftlcore.c | 149 *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 …]
|
H A D | mtdchar.c | 132 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 …]
|
H A D | rfd_ftl.c | 156 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 …]
|
H A 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 ret = mtd_read(mtd, pos, len, &retlen, buf); in do_cached_read() 215 ret = mtd_read(mtd, pos, size, &retlen, buf); in do_cached_read() [all …]
|
H A D | mtdcore.c | 536 size_t retlen; in mtd_nvmem_reg_read() local 858 size_t retlen; in mtd_otp_size() local 1427 *retlen = 0; in mtd_point() 1510 *retlen = ops.retlen; in mtd_read() 1526 *retlen = ops.retlen; in mtd_write() 1544 *retlen = 0; in mtd_panic_write() 1677 ops->retlen += adjops.retlen; in mtd_io_emulated_slc() 2148 *retlen = 0; in mtd_read_fact_prot_reg() 2175 *retlen = 0; in mtd_read_user_prot_reg() 2190 *retlen = 0; in mtd_write_user_prot_reg() [all …]
|
H A D | mtdblock_ro.c | 18 size_t retlen; in mtdblock_readsect() local 21 err = mtd_read(dev->mtd, (block * 512), 512, &retlen, buf); in mtdblock_readsect() 30 size_t retlen; in mtdblock_writesect() local 32 if (mtd_write(dev->mtd, (block * 512), 512, &retlen, buf)) in mtdblock_writesect()
|
/openbmc/u-boot/cmd/ |
H A D | onenand.c | 69 .retlen = 0, in onenand_block_read() 92 ops.retlen = 0; in onenand_block_read() 102 *retlen += ops.retlen; in onenand_block_read() 109 size_t *retlen) in onenand_write_oneblock_withoob() argument 128 *retlen = (ret) ? 0 : mtd->erasesize; in onenand_write_oneblock_withoob() 144 *retlen = 0; in onenand_block_write() 178 *retlen += _retlen; in onenand_block_write() 231 size_t retlen; in onenand_block_test() local 325 ops.retlen = 0; in onenand_dump() 389 size_t retlen = 0; in do_onenand_read() local [all …]
|
/openbmc/u-boot/include/linux/mtd/ |
H A D | mtd.h | 86 size_t retlen; member 244 size_t *retlen, u_char *buf); 246 size_t *retlen, const u_char *buf); 248 size_t *retlen, const u_char *buf); 254 size_t *retlen, struct otp_info *buf); 256 size_t len, size_t *retlen, u_char *buf); 258 size_t *retlen, struct otp_info *buf); 260 size_t len, size_t *retlen, u_char *buf); 421 size_t *retlen, u_char *buf); 425 size_t *retlen, u_char *buf); [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/progs/ |
H A D | bpf_iter_task_stack.c | 17 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()
|
/openbmc/linux/include/linux/mtd/ |
H A D | mtd.h | 73 size_t retlen; member 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); 339 size_t len, size_t *retlen, 518 size_t *retlen, u_char *buf); 522 size_t *retlen, u_char *buf); [all …]
|
/openbmc/linux/fs/jffs2/ |
H A D | erase.c | 315 size_t retlen; in jffs2_block_check_erase() local 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() 372 if (retlen != readlen) { in jffs2_block_check_erase() 374 ofs, readlen, retlen); in jffs2_block_check_erase() 400 size_t retlen; in jffs2_mark_erased_block() local [all …]
|
H A 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()
|
H A D | wbuf.c | 234 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 …]
|
H A 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);
|
/openbmc/u-boot/drivers/mtd/ |
H A D | mtdcore.c | 904 *retlen = 0; in mtd_point() 952 *retlen = 0; in mtd_read() 972 *retlen = ops.retlen; in mtd_read() 988 *retlen = 0; in mtd_write() 1005 *retlen = ops.retlen; in mtd_write() 1023 *retlen = 0; in mtd_panic_write() 1507 *retlen = 0; in mtd_read_fact_prot_reg() 1530 *retlen = 0; in mtd_read_user_prot_reg() 1544 *retlen = 0; in mtd_write_user_prot_reg() 1669 *retlen = totlen; in default_mtd_writev() [all …]
|
/openbmc/linux/drivers/mtd/devices/ |
H A 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()
|
H A 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() 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()
|
/openbmc/linux/drivers/mtd/chips/ |
H A D | map_ram.c | 25 size_t *retlen, void **virt, resource_size_t *phys); 88 size_t *retlen, void **virt, resource_size_t *phys) in mapram_point() argument 97 *retlen = len; in mapram_point() 106 static int mapram_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) in mapram_read() argument 111 *retlen = len; in mapram_read() 115 static int mapram_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char … in mapram_write() argument 120 *retlen = len; in mapram_write()
|
H A D | map_rom.c | 25 size_t *retlen, void **virt, resource_size_t *phys); 74 size_t *retlen, void **virt, resource_size_t *phys) in maprom_point() argument 83 *retlen = len; in maprom_point() 92 static int maprom_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) in maprom_read() argument 97 *retlen = len; in maprom_read() 106 static int maprom_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char … in maprom_write() argument
|
/openbmc/u-boot/env/ |
H A D | onenand.c | 35 size_t retlen; in env_onenand_load() local 53 &retlen, (u_char *)buf); in env_onenand_load() 74 size_t retlen; in env_onenand_save() local 99 if (mtd_write(mtd, env_addr, ONENAND_MAX_ENV_SIZE, &retlen, in env_onenand_save()
|