/drivers/s390/char/ |
D | hmcdrv_dev.c | 201 ssize_t retlen; in hmcdrv_dev_transfer() local 205 retlen = hmcdrv_ftp_cmd(cmd, offset, buf, len); in hmcdrv_dev_transfer() 207 if (retlen != -EBUSY) in hmcdrv_dev_transfer() 214 return retlen; in hmcdrv_dev_transfer() 223 ssize_t retlen; in hmcdrv_dev_read() local 230 retlen = hmcdrv_dev_transfer((char *) fp->private_data, in hmcdrv_dev_read() 234 fp, (long long) *pos, retlen, len); in hmcdrv_dev_read() 236 if (retlen > 0) in hmcdrv_dev_read() 237 *pos += retlen; in hmcdrv_dev_read() 239 return retlen; in hmcdrv_dev_read() [all …]
|
D | hmcdrv_ftp.c | 242 ssize_t retlen = hmcdrv_ftp_parse(cmd, &ftp); in hmcdrv_ftp_cmd() local 244 if (retlen) in hmcdrv_ftp_cmd() 245 return retlen; in hmcdrv_ftp_cmd() 257 retlen = hmcdrv_ftp_do(&ftp); in hmcdrv_ftp_cmd() 259 if ((retlen >= 0) && in hmcdrv_ftp_cmd() 260 copy_to_user(buf, ftp.buf, retlen)) in hmcdrv_ftp_cmd() 261 retlen = -EFAULT; in hmcdrv_ftp_cmd() 267 retlen = hmcdrv_ftp_do(&ftp); in hmcdrv_ftp_cmd() 269 retlen = -EFAULT; in hmcdrv_ftp_cmd() 273 retlen = hmcdrv_ftp_do(&ftp); in hmcdrv_ftp_cmd() [all …]
|
/drivers/mtd/ |
D | nftlcore.c | 137 size_t *retlen, uint8_t *buf) in nftl_read_oob() argument 150 *retlen = ops.oobretlen; in nftl_read_oob() 158 size_t *retlen, uint8_t *buf) in nftl_write_oob() argument 171 *retlen = ops.oobretlen; in nftl_write_oob() 181 size_t *retlen, uint8_t *buf, uint8_t *oob) in nftl_write() argument 195 *retlen = ops.retlen; in nftl_write() 256 size_t retlen; in NFTL_foldchain() local 280 (block * 512), 16 , &retlen, in NFTL_foldchain() 396 8, &retlen, (char *)&oob.u); in NFTL_foldchain() 422 &retlen, in NFTL_foldchain() [all …]
|
D | inftlcore.c | 150 size_t *retlen, uint8_t *buf) in inftl_read_oob() argument 162 *retlen = ops.oobretlen; in inftl_read_oob() 170 size_t *retlen, uint8_t *buf) in inftl_write_oob() argument 182 *retlen = ops.oobretlen; in inftl_write_oob() 190 size_t *retlen, uint8_t *buf, uint8_t *oob) in inftl_write() argument 203 *retlen = ops.retlen; in inftl_write() 258 size_t retlen; in INFTL_foldchain() local 286 + (block * SECTORSIZE), 16, &retlen, in INFTL_foldchain() 349 &retlen, in INFTL_foldchain() 355 &retlen, in INFTL_foldchain() [all …]
|
D | nftlmount.c | 42 size_t retlen; in find_boot_record() local 67 &retlen, buf); in find_boot_record() 70 if (retlen != SECTORSIZE) { in find_boot_record() 82 if (retlen < 6 || memcmp(buf, "ANAND", 6)) { in find_boot_record() 93 SECTORSIZE + 8, 8, &retlen, in find_boot_record() 114 &retlen, buf); in find_boot_record() 236 &retlen, buf); in find_boot_record() 278 size_t retlen; in check_free_sectors() local 282 if (mtd_read(mtd, address, SECTORSIZE, &retlen, buf)) in check_free_sectors() 289 &retlen, &buf[SECTORSIZE]) < 0) in check_free_sectors() [all …]
|
D | mtdchar.c | 154 size_t retlen; in mtdchar_read() local 179 &retlen, kbuf); in mtdchar_read() 183 &retlen, kbuf); in mtdchar_read() 195 retlen = ops.retlen; in mtdchar_read() 199 ret = mtd_read(mtd, *ppos, len, &retlen, kbuf); in mtdchar_read() 211 *ppos += retlen; in mtdchar_read() 212 if (copy_to_user(buf, kbuf, retlen)) { in mtdchar_read() 217 total_retlen += retlen; in mtdchar_read() 219 count -= retlen; in mtdchar_read() 220 buf += retlen; in mtdchar_read() [all …]
|
D | rfd_ftl.c | 155 size_t retlen; in scan_header() local 204 part->header_size, &retlen, in scan_header() 207 if (!rc && retlen != part->header_size) in scan_header() 245 size_t retlen; in rfd_ftl_readsect() local 253 rc = mtd_read(part->mbd.mtd, addr, SECTOR_SIZE, &retlen, in rfd_ftl_readsect() 255 if (!rc && retlen != SECTOR_SIZE) in rfd_ftl_readsect() 274 size_t retlen; in erase_callback() local 308 &retlen, (u_char *)&magic); in erase_callback() 310 if (!rc && retlen != sizeof(magic)) in erase_callback() 361 size_t retlen; in move_block_contents() local [all …]
|
D | mtdcore.c | 977 int mtd_point(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, in mtd_point() argument 980 *retlen = 0; in mtd_point() 990 return mtd->_point(mtd, from, len, retlen, virt, phys); in mtd_point() 1023 int mtd_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, in mtd_read() argument 1027 *retlen = 0; in mtd_read() 1039 ret_code = mtd->_read(mtd, from, len, retlen, buf); in mtd_read() 1048 int mtd_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, in mtd_write() argument 1051 *retlen = 0; in mtd_write() 1059 return mtd->_write(mtd, to, len, retlen, buf); in mtd_write() 1070 int mtd_panic_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, in mtd_panic_write() argument [all …]
|
D | mtdblock.c | 70 size_t retlen; in erase_write() local 104 ret = mtd_write(mtd, pos, len, &retlen, buf); in erase_write() 107 if (retlen != len) in erase_write() 147 size_t retlen; in do_cached_write() local 154 return mtd_write(mtd, pos, len, &retlen, buf); in do_cached_write() 187 &retlen, mtdblk->cache_data); in do_cached_write() 190 if (retlen != sect_size) in do_cached_write() 217 size_t retlen; in do_cached_read() local 224 return mtd_read(mtd, pos, len, &retlen, buf); in do_cached_read() 243 ret = mtd_read(mtd, pos, size, &retlen, buf); in do_cached_read() [all …]
|
D | bcm63xxpart.c | 52 size_t retlen; in bcm63xx_detect_cfe() local 54 ret = mtd_read(master, BCM963XX_CFE_VERSION_OFFSET, 5, &retlen, in bcm63xx_detect_cfe() 56 buf[retlen] = 0; in bcm63xx_detect_cfe() 65 ret = mtd_read(master, BCM963XX_CFE_MAGIC_OFFSET, 8, &retlen, in bcm63xx_detect_cfe() 67 buf[retlen] = 0; in bcm63xx_detect_cfe() 76 size_t retlen; in bcm63xx_read_nvram() local 81 &retlen, (void *)nvram); in bcm63xx_read_nvram() 100 size_t retlen; in bcm63xx_read_image_tag() local 103 ret = mtd_read(master, tag_offset, sizeof(*buf), &retlen, (void *)buf); in bcm63xx_read_image_tag() 107 if (retlen != sizeof(*buf)) in bcm63xx_read_image_tag()
|
D | inftlmount.c | 53 size_t retlen; in find_boot_record() local 76 &retlen, buf); in find_boot_record() 79 if (retlen != SECTORSIZE) { in find_boot_record() 95 if (retlen < 6 || memcmp(buf, "BNAND", 6)) { in find_boot_record() 103 8, &retlen,(char *)&h1); in find_boot_record() 121 &retlen, buf); in find_boot_record() 122 if (retlen != SECTORSIZE) { in find_boot_record() 341 size_t retlen; in check_free_sectors() local 345 if (mtd_read(mtd, address, SECTORSIZE, &retlen, buf)) in check_free_sectors() 352 &retlen, &buf[SECTORSIZE]) < 0) in check_free_sectors() [all …]
|
D | mtdblock_ro.c | 32 size_t retlen; in mtdblock_readsect() local 34 if (mtd_read(dev->mtd, (block * 512), 512, &retlen, buf)) in mtdblock_readsect() 42 size_t retlen; in mtdblock_writesect() local 44 if (mtd_write(dev->mtd, (block * 512), 512, &retlen, buf)) in mtdblock_writesect()
|
D | mtdpart.c | 64 size_t *retlen, u_char *buf) in part_read() argument 72 retlen, buf); in part_read() 83 size_t *retlen, void **virt, resource_size_t *phys) in part_point() argument 88 retlen, virt, phys); in part_point() 146 size_t len, size_t *retlen, u_char *buf) in part_read_user_prot_reg() argument 150 retlen, buf); in part_read_user_prot_reg() 154 size_t *retlen, struct otp_info *buf) in part_get_user_prot_info() argument 157 return part->master->_get_user_prot_info(part->master, len, retlen, in part_get_user_prot_info() 162 size_t len, size_t *retlen, u_char *buf) in part_read_fact_prot_reg() argument 166 retlen, buf); in part_read_fact_prot_reg() [all …]
|
D | ftl.c | 411 ssize_t retlen; in prepare_xfer() local 424 ret = mtd_write(part->mbd.mtd, xfer->Offset, sizeof(header), &retlen, in prepare_xfer() 440 ret = mtd_write(part->mbd.mtd, offset, sizeof(uint32_t), &retlen, in prepare_xfer() 472 ssize_t retlen; in copy_erase_unit() local 488 part->BlocksPerUnit * sizeof(uint32_t), &retlen, in copy_erase_unit() 505 ret = mtd_write(part->mbd.mtd, offset, sizeof(uint16_t), &retlen, in copy_erase_unit() 525 ret = mtd_read(part->mbd.mtd, src, SECTOR_SIZE, &retlen, in copy_erase_unit() 533 ret = mtd_write(part->mbd.mtd, dest, SECTOR_SIZE, &retlen, in copy_erase_unit() 555 &retlen, in copy_erase_unit() 565 &retlen, (u_char *)&srcunitswap); in copy_erase_unit() [all …]
|
D | mtdoops.c | 213 size_t retlen; in mtdoops_write() local 224 record_size, &retlen, cxt->oops_buf); in mtdoops_write() 231 record_size, &retlen, cxt->oops_buf); in mtdoops_write() 233 if (retlen != record_size || ret < 0) in mtdoops_write() 235 cxt->nextpage * record_size, retlen, record_size, ret); in mtdoops_write() 255 size_t retlen; in find_next_position() local 263 &retlen, (u_char *)&count[0]); in find_next_position() 264 if (retlen != MTDOOPS_HEADER_SIZE || in find_next_position() 267 page * record_size, retlen, in find_next_position()
|
D | mtdconcat.c | 69 size_t * retlen, u_char * buf) in concat_read() argument 108 *retlen += retsize; in concat_read() 121 size_t * retlen, const u_char * buf) in concat_write() argument 145 *retlen += retsize; in concat_write() 159 unsigned long count, loff_t to, size_t * retlen) in concat_writev() argument 218 *retlen += retsize; in concat_writev() 239 ops->retlen = ops->oobretlen = 0; in concat_read_oob() 254 ops->retlen += devops.retlen; in concat_read_oob() 272 devops.len = ops->len - ops->retlen; in concat_read_oob() 275 devops.datbuf += devops.retlen; in concat_read_oob() [all …]
|
/drivers/mtd/devices/ |
D | powernv_flash.c | 51 loff_t offset, size_t len, size_t *retlen, u_char *buf) in powernv_flash_async_op() argument 101 if (retlen) in powernv_flash_async_op() 102 *retlen = len; in powernv_flash_async_op() 120 size_t *retlen, u_char *buf) in powernv_flash_read() argument 123 len, retlen, buf); in powernv_flash_read() 136 size_t *retlen, const u_char *buf) in powernv_flash_write() argument 139 len, retlen, (u_char *)buf); in powernv_flash_write()
|
D | mtdram.c | 68 size_t *retlen, void **virt, resource_size_t *phys) in ram_point() argument 71 *retlen = len; in ram_point() 94 size_t *retlen, u_char *buf) in ram_read() argument 97 *retlen = len; in ram_read() 102 size_t *retlen, const u_char *buf) in ram_write() argument 105 *retlen = len; in ram_write()
|
D | pmc551.c | 137 size_t *retlen, void **virt, resource_size_t *phys); 146 size_t retlen; in pmc551_erase() local 159 pmc551_point(mtd, instr->addr, instr->len, &retlen, in pmc551_erase() 180 priv->asize, &retlen, in pmc551_erase() 197 size_t *retlen, void **virt, resource_size_t *phys) in pmc551_point() argument 218 *retlen = len; in pmc551_point() 231 size_t * retlen, u_char * buf) in pmc551_read() argument 251 pmc551_point(mtd, from, len, retlen, (void **)&ptr, NULL); in pmc551_read() 272 pmc551_point(mtd, soff_hi, priv->asize, retlen, in pmc551_read() 283 *retlen = copyto - buf; in pmc551_read() [all …]
|
D | mtd_dataflash.c | 236 size_t *retlen, u_char *buf) in dataflash_read() argument 283 *retlen = msg.actual_length - 8; in dataflash_read() 301 size_t * retlen, const u_char * buf) in dataflash_write() argument 427 *retlen += writelen; in dataflash_write() 444 size_t *retlen, struct otp_info *info) in dataflash_get_otp_info() argument 453 *retlen = sizeof(*info); in dataflash_get_otp_info() 503 loff_t from, size_t len, size_t *retlen, u_char *buf) in dataflash_read_fact_otp() argument 515 *retlen = status; in dataflash_read_fact_otp() 520 loff_t from, size_t len, size_t *retlen, u_char *buf) in dataflash_read_user_otp() argument 532 *retlen = status; in dataflash_read_user_otp() [all …]
|
D | phram.c | 53 size_t *retlen, void **virt, resource_size_t *phys) in phram_point() argument 56 *retlen = len; in phram_point() 66 size_t *retlen, u_char *buf) in phram_read() argument 71 *retlen = len; in phram_read() 76 size_t *retlen, const u_char *buf) in phram_write() argument 81 *retlen = len; in phram_write()
|
D | block2mtd.c | 107 size_t *retlen, u_char *buf) in block2mtd_read() argument 129 if (retlen) in block2mtd_read() 130 *retlen += cpylen; in block2mtd_read() 141 loff_t to, size_t len, size_t *retlen) in _block2mtd_write() argument 169 if (retlen) in _block2mtd_write() 170 *retlen += cpylen; in _block2mtd_write() 181 size_t *retlen, const u_char *buf) in block2mtd_write() argument 187 err = _block2mtd_write(dev, buf, to, len, retlen); in block2mtd_write()
|
D | slram.c | 97 size_t *retlen, void **virt, resource_size_t *phys) in slram_point() argument 102 *retlen = len; in slram_point() 112 size_t *retlen, u_char *buf) in slram_read() argument 117 *retlen = len; in slram_read() 122 size_t *retlen, const u_char *buf) in slram_write() argument 127 *retlen = len; in slram_write()
|
/drivers/mtd/tests/ |
D | oobtest.c | 79 ops.retlen = 0; in write_eraseblock() 189 ops.retlen = 0; in verify_eraseblock() 226 ops.retlen = 0; in verify_eraseblock() 286 ops.retlen = 0; in verify_eraseblock_in_one_go() 510 ops.retlen = 0; in mtd_oobtest_init() 530 ops.retlen = 0; in mtd_oobtest_init() 557 ops.retlen = 0; in mtd_oobtest_init() 577 ops.retlen = 0; in mtd_oobtest_init() 604 ops.retlen = 0; in mtd_oobtest_init() 624 ops.retlen = 0; in mtd_oobtest_init() [all …]
|
/drivers/mtd/chips/ |
D | map_ram.c | 99 static int mapram_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) in mapram_read() argument 104 *retlen = len; in mapram_read() 108 static int mapram_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char … in mapram_write() argument 113 *retlen = len; in mapram_write()
|