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()
677 req.start += ops.retlen; in mtdchar_write_ioctl()
678 req.len -= ops.retlen; in mtdchar_write_ioctl()
679 usr_data += ops.retlen; in mtdchar_write_ioctl()
782 if (copy_to_user(usr_data, ops.datbuf, ops.retlen) || in mtdchar_read_ioctl()
788 req.start += ops.retlen; in mtdchar_read_ioctl()
789 req.len -= ops.retlen; in mtdchar_read_ioctl()
790 usr_data += ops.retlen; in mtdchar_read_ioctl()
1112 size_t retlen; in mtdchar_ioctl() local
1117 ret = mtd_get_fact_prot_info(mtd, 4096, &retlen, buf); in mtdchar_ioctl()
1120 ret = mtd_get_user_prot_info(mtd, 4096, &retlen, buf); in mtdchar_ioctl()
1128 int nbr = retlen / sizeof(struct otp_info); in mtdchar_ioctl()
1131 ret = copy_to_user(argp, buf, retlen); in mtdchar_ioctl()