Home
last modified time | relevance | path

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

123

/drivers/mtd/
Dnftlcore.c136 size_t *retlen, uint8_t *buf) in nftl_read_oob() argument
148 *retlen = ops.oobretlen; in nftl_read_oob()
156 size_t *retlen, uint8_t *buf) in nftl_write_oob() argument
168 *retlen = ops.oobretlen; in nftl_write_oob()
178 size_t *retlen, uint8_t *buf, uint8_t *oob) in nftl_write() argument
191 *retlen = ops.retlen; in nftl_write()
252 size_t retlen; in NFTL_foldchain() local
276 (block * 512), 16 , &retlen, in NFTL_foldchain()
393 8, &retlen, (char *)&oob.u); in NFTL_foldchain()
417 512, &retlen, movebuf); in NFTL_foldchain()
[all …]
Dinftlcore.c153 size_t *retlen, uint8_t *buf) in inftl_read_oob() argument
165 *retlen = ops.oobretlen; in inftl_read_oob()
173 size_t *retlen, uint8_t *buf) in inftl_write_oob() argument
185 *retlen = ops.oobretlen; in inftl_write_oob()
193 size_t *retlen, uint8_t *buf, uint8_t *oob) in inftl_write() argument
206 *retlen = ops.retlen; in inftl_write()
261 size_t retlen; in INFTL_foldchain() local
288 + (block * SECTORSIZE), 16, &retlen, in INFTL_foldchain()
350 (block * SECTORSIZE), SECTORSIZE, &retlen, in INFTL_foldchain()
356 &retlen, movebuf); in INFTL_foldchain()
[all …]
Dnftlmount.c41 size_t retlen; in find_boot_record() local
66 &retlen, buf); in find_boot_record()
69 if (retlen != SECTORSIZE) { in find_boot_record()
81 if (retlen < 6 || memcmp(buf, "ANAND", 6)) { in find_boot_record()
92 SECTORSIZE + 8, 8, &retlen, in find_boot_record()
112 &retlen, buf) < 0)) { in find_boot_record()
231 i + SECTORSIZE, SECTORSIZE, &retlen, in find_boot_record()
272 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 …]
Dmtdchar.c166 size_t retlen=0; in mtd_read() local
200 ret = mtd->read_fact_prot_reg(mtd, *ppos, len, &retlen, kbuf); in mtd_read()
203 ret = mtd->read_user_prot_reg(mtd, *ppos, len, &retlen, kbuf); in mtd_read()
215 retlen = ops.retlen; in mtd_read()
219 ret = mtd->read(mtd, *ppos, len, &retlen, kbuf); in mtd_read()
231 *ppos += retlen; in mtd_read()
232 if (copy_to_user(buf, kbuf, retlen)) { in mtd_read()
237 total_retlen += retlen; in mtd_read()
239 count -= retlen; in mtd_read()
240 buf += retlen; in mtd_read()
[all …]
Drfd_ftl.c154 size_t retlen; in scan_header() local
204 &retlen, (u_char*)part->header_cache); in scan_header()
206 if (!rc && retlen != part->header_size) in scan_header()
244 size_t retlen; in rfd_ftl_readsect() local
253 &retlen, (u_char*)buf); in rfd_ftl_readsect()
254 if (!rc && retlen != SECTOR_SIZE) in rfd_ftl_readsect()
273 size_t retlen; in erase_callback() local
307 part->blocks[i].offset, sizeof(magic), &retlen, in erase_callback()
310 if (!rc && retlen != sizeof(magic)) in erase_callback()
361 size_t retlen; in move_block_contents() local
[all …]
Dmtdoops.c98 size_t retlen; in mtdoops_inc_counter() local
110 &retlen, (u_char *) &count); in mtdoops_inc_counter()
111 if ((retlen != 4) || ((ret < 0) && (ret != -EUCLEAN))) { in mtdoops_inc_counter()
114 retlen, ret); in mtdoops_inc_counter()
192 size_t retlen; in mtdoops_write() local
201 OOPS_PAGE_SIZE, &retlen, cxt->oops_buf); in mtdoops_write()
204 OOPS_PAGE_SIZE, &retlen, cxt->oops_buf); in mtdoops_write()
208 if ((retlen != OOPS_PAGE_SIZE) || (ret < 0)) in mtdoops_write()
210 cxt->nextpage * OOPS_PAGE_SIZE, retlen, OOPS_PAGE_SIZE, ret); in mtdoops_write()
229 size_t retlen; in find_next_position() local
[all …]
Dmtdblock.c54 size_t retlen; in erase_write() local
88 ret = mtd->write(mtd, pos, len, &retlen, buf); in erase_write()
91 if (retlen != len) in erase_write()
131 size_t retlen; in do_cached_write() local
138 return mtd->write(mtd, pos, len, &retlen, buf); in do_cached_write()
171 &retlen, mtdblk->cache_data); in do_cached_write()
174 if (retlen != sect_size) in do_cached_write()
201 size_t retlen; in do_cached_read() local
208 return mtd->read(mtd, pos, len, &retlen, buf); in do_cached_read()
227 ret = mtd->read(mtd, pos, size, &retlen, buf); in do_cached_read()
[all …]
Dinftlmount.c56 size_t retlen; in find_boot_record() local
79 SECTORSIZE, &retlen, buf); in find_boot_record()
82 if (retlen != SECTORSIZE) { in find_boot_record()
98 if (retlen < 6 || memcmp(buf, "BNAND", 6)) { in find_boot_record()
105 SECTORSIZE + 8, 8, &retlen, in find_boot_record()
123 SECTORSIZE, &retlen, buf); in find_boot_record()
124 if (retlen != SECTORSIZE) { in find_boot_record()
350 size_t retlen; in check_free_sectors() local
354 if (mtd->read(mtd, address, SECTORSIZE, &retlen, buf)) in check_free_sectors()
361 &retlen, &buf[SECTORSIZE]) < 0) in check_free_sectors()
[all …]
Dmtdconcat.c54 size_t * retlen, u_char * buf) in concat_read() argument
60 *retlen = 0; in concat_read()
95 *retlen += retsize; in concat_read()
108 size_t * retlen, const u_char * buf) in concat_write() argument
117 *retlen = 0; in concat_write()
141 *retlen += retsize; in concat_write()
155 unsigned long count, loff_t to, size_t * retlen) in concat_writev() argument
167 *retlen = 0; in concat_writev()
227 *retlen += retsize; in concat_writev()
248 ops->retlen = ops->oobretlen = 0; in concat_read_oob()
[all …]
Dmtdpart.c48 size_t *retlen, u_char *buf) in part_read() argument
58 len, retlen, buf); in part_read()
69 size_t *retlen, void **virt, resource_size_t *phys) in part_point() argument
77 len, retlen, virt, phys); in part_point()
109 size_t len, size_t *retlen, u_char *buf) in part_read_user_prot_reg() argument
113 len, retlen, buf); in part_read_user_prot_reg()
124 size_t len, size_t *retlen, u_char *buf) in part_read_fact_prot_reg() argument
128 len, retlen, buf); in part_read_fact_prot_reg()
139 size_t *retlen, const u_char *buf) in part_write() argument
149 len, retlen, buf); in part_write()
[all …]
Dmtdblock_ro.c15 size_t retlen; in mtdblock_readsect() local
17 if (dev->mtd->read(dev->mtd, (block * 512), 512, &retlen, buf)) in mtdblock_readsect()
25 size_t retlen; in mtdblock_writesect() local
27 if (dev->mtd->write(dev->mtd, (block * 512), 512, &retlen, buf)) in mtdblock_writesect()
Dftl.c412 ssize_t retlen; in prepare_xfer() local
426 &retlen, (u_char *)&header); in prepare_xfer()
442 &retlen, (u_char *)&ctl); in prepare_xfer()
473 ssize_t retlen; in copy_erase_unit() local
490 &retlen, (u_char *) (part->bam_cache)); in copy_erase_unit()
507 &retlen, (u_char *) &unit); in copy_erase_unit()
527 &retlen, (u_char *) buf); in copy_erase_unit()
535 &retlen, (u_char *) buf); in copy_erase_unit()
554 part->BlocksPerUnit * sizeof(int32_t), &retlen, in copy_erase_unit()
564 &retlen, (u_char *)&srcunitswap); in copy_erase_unit()
[all …]
/drivers/mtd/devices/
Dblock2mtd.c100 size_t *retlen, u_char *buf) in block2mtd_read() argument
113 if (retlen) in block2mtd_read()
114 *retlen = 0; in block2mtd_read()
132 if (retlen) in block2mtd_read()
133 *retlen += cpylen; in block2mtd_read()
144 loff_t to, size_t len, size_t *retlen) in _block2mtd_write() argument
152 if (retlen) in _block2mtd_write()
153 *retlen = 0; in _block2mtd_write()
175 if (retlen) in _block2mtd_write()
176 *retlen += cpylen; in _block2mtd_write()
[all …]
Dmtdram.c50 size_t *retlen, void **virt, resource_size_t *phys) in ram_point() argument
60 *retlen = len; in ram_point()
69 size_t *retlen, u_char *buf) in ram_read() argument
76 *retlen = len; in ram_read()
81 size_t *retlen, const u_char *buf) in ram_write() argument
88 *retlen = len; in ram_write()
Dpmc551.c112 size_t retlen; in pmc551_erase() local
135 pmc551_point(mtd, instr->addr, instr->len, &retlen, in pmc551_erase()
156 priv->asize, &retlen, in pmc551_erase()
173 size_t *retlen, void **virt, resource_size_t *phys) in pmc551_point() argument
206 *retlen = len; in pmc551_point()
218 size_t * retlen, u_char * buf) in pmc551_read() argument
248 pmc551_point(mtd, from, len, retlen, (void **)&ptr, NULL); in pmc551_read()
269 pmc551_point(mtd, soff_hi, priv->asize, retlen, in pmc551_read()
280 *retlen = copyto - buf; in pmc551_read()
285 size_t * retlen, const u_char * buf) in pmc551_write() argument
[all …]
Dm25p80.c292 size_t *retlen, u_char *buf) in m25p80_read() argument
325 if (retlen) in m25p80_read()
326 *retlen = 0; in m25p80_read()
350 *retlen = m.actual_length - CMD_SIZE - FAST_READ_DUMMY_BYTE; in m25p80_read()
363 size_t *retlen, const u_char *buf) in m25p80_write() argument
374 if (retlen) in m25p80_write()
375 *retlen = 0; in m25p80_write()
419 *retlen = m.actual_length - CMD_SIZE; in m25p80_write()
429 *retlen = m.actual_length - CMD_SIZE; in m25p80_write()
451 if (retlen) in m25p80_write()
[all …]
Dphram.c58 size_t *retlen, void **virt, resource_size_t *phys) in phram_point() argument
68 *retlen = len; in phram_point()
77 size_t *retlen, u_char *buf) in phram_read() argument
89 *retlen = len; in phram_read()
94 size_t *retlen, const u_char *buf) in phram_write() argument
106 *retlen = len; in phram_write()
Dmtd_dataflash.c238 size_t *retlen, u_char *buf) in dataflash_read() argument
250 *retlen = 0; in dataflash_read()
293 *retlen = msg.actual_length - 8; in dataflash_read()
311 size_t * retlen, const u_char * buf) in dataflash_write() argument
326 *retlen = 0; in dataflash_write()
445 *retlen += writelen; in dataflash_write()
522 loff_t from, size_t len, size_t *retlen, u_char *buf) in dataflash_read_fact_otp() argument
534 *retlen = status; in dataflash_read_fact_otp()
539 loff_t from, size_t len, size_t *retlen, u_char *buf) in dataflash_read_user_otp() argument
551 *retlen = status; in dataflash_read_user_otp()
[all …]
Ddoc2000.c52 size_t *retlen, u_char *buf);
54 size_t *retlen, const u_char *buf);
60 size_t *retlen, const u_char *buf);
608 size_t * retlen, u_char * buf) in doc_read() argument
624 *retlen = 0; in doc_read()
678 *retlen += len; in doc_read()
752 size_t * retlen, const u_char * buf) in doc_write() argument
770 *retlen = 0; in doc_write()
831 *retlen = 0; in doc_write()
889 *retlen = 0; in doc_write()
[all …]
Dslram.c106 size_t *retlen, void **virt, resource_size_t *phys) in slram_point() argument
118 *retlen = len; in slram_point()
127 size_t *retlen, u_char *buf) in slram_read() argument
139 *retlen = len; in slram_read()
144 size_t *retlen, const u_char *buf) in slram_write() argument
153 *retlen = len; in slram_write()
/drivers/mtd/onenand/
Donenand_base.c852 ops->retlen = 0; in onenand_read_ops_nolock()
936 ops->retlen = read; in onenand_read_ops_nolock()
1054 size_t *retlen, u_char *buf) in onenand_read() argument
1068 *retlen = ops.retlen; in onenand_read()
1324 size_t *retlen, const u_char *buf) in onenand_panic_write() argument
1341 *retlen = 0; in onenand_panic_write()
1401 *retlen = written; in onenand_panic_write()
1470 ops->retlen = 0; in onenand_write_ops_nolock()
1567 ops->retlen = written; in onenand_write_ops_nolock()
1693 size_t *retlen, const u_char *buf) in onenand_write() argument
[all …]
/drivers/mtd/chips/
Dmap_absent.c72 static int map_absent_read(struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *b… in map_absent_read() argument
74 *retlen = 0; in map_absent_read()
78 static int map_absent_write(struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_ch… in map_absent_write() argument
80 *retlen = 0; in map_absent_write()
Dmap_ram.c82 static int mapram_read (struct mtd_info *mtd, loff_t from, size_t len, size_t *retlen, u_char *buf) in mapram_read() argument
87 *retlen = len; in mapram_read()
91 static int mapram_write (struct mtd_info *mtd, loff_t to, size_t len, size_t *retlen, const u_char … in mapram_write() argument
96 *retlen = len; in mapram_write()
/drivers/mtd/tests/
Dmtd_oobtest.c135 ops.retlen = 0; in write_eraseblock()
188 ops.retlen = 0; in verify_eraseblock()
215 ops.retlen = 0; in verify_eraseblock()
280 ops.retlen = 0; in verify_eraseblock_in_one_go()
521 ops.retlen = 0; in mtd_oobtest_init()
541 ops.retlen = 0; in mtd_oobtest_init()
565 ops.retlen = 0; in mtd_oobtest_init()
585 ops.retlen = 0; in mtd_oobtest_init()
609 ops.retlen = 0; in mtd_oobtest_init()
629 ops.retlen = 0; in mtd_oobtest_init()
[all …]
/drivers/mtd/lpddr/
Dlpddr_cmds.c31 size_t *retlen, u_char *buf);
33 size_t len, size_t *retlen, const u_char *buf);
35 unsigned long count, loff_t to, size_t *retlen);
40 size_t *retlen, void **mtdbuf, resource_size_t *phys);
512 size_t *retlen, u_char *buf) in lpddr_read() argument
528 *retlen = len; in lpddr_read()
536 size_t *retlen, void **mtdbuf, resource_size_t *phys) in lpddr_point() argument
552 *retlen = 0; in lpddr_point()
579 *retlen += thislen; in lpddr_point()
632 size_t *retlen, const u_char *buf) in lpddr_write_buffers() argument
[all …]

123