Lines Matching refs:retlen

132 	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()
203 if (retlen == 0) in mtdchar_read()
224 size_t retlen; in mtdchar_write() local
258 &retlen, kbuf); in mtdchar_write()
272 retlen = ops.retlen; in mtdchar_write()
277 ret = mtd_write(mtd, *ppos, len, &retlen, kbuf); in mtdchar_write()
289 *ppos += retlen; in mtdchar_write()
290 total_retlen += retlen; in mtdchar_write()
291 count -= retlen; in mtdchar_write()
292 buf += retlen; in mtdchar_write()
313 size_t retlen; in otp_select_filemode() local
317 if (mtd_read_fact_prot_reg(mtd, -1, 0, &retlen, NULL) == in otp_select_filemode()
324 if (mtd_read_user_prot_reg(mtd, -1, 0, &retlen, NULL) == in otp_select_filemode()
347 uint32_t retlen; in mtdchar_writeoob() local
374 retlen = ops.oobretlen; in mtdchar_writeoob()
375 if (copy_to_user(retp, &retlen, sizeof(length))) in mtdchar_writeoob()
906 size_t retlen; in mtdchar_ioctl() local
911 ret = mtd_get_fact_prot_info(mtd, 4096, &retlen, buf); in mtdchar_ioctl()
914 ret = mtd_get_user_prot_info(mtd, 4096, &retlen, buf); in mtdchar_ioctl()
922 int nbr = retlen / sizeof(struct otp_info); in mtdchar_ioctl()
925 ret = copy_to_user(argp, buf, retlen); in mtdchar_ioctl()