Lines Matching refs:retlen
852 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
1707 *retlen = ops.retlen; in onenand_write()
2138 size_t *retlen, u_char *buf);
2151 size_t *retlen, u_char *buf) in do_otp_read() argument
2186 size_t *retlen, u_char *buf) in do_otp_write() argument
2210 *retlen = ops.retlen; in do_otp_write()
2230 size_t *retlen, u_char *buf) in do_otp_lock() argument
2247 *retlen = ops.oobretlen; in do_otp_lock()
2269 size_t *retlen, u_char *buf, in onenand_otp_walk() argument
2277 *retlen = 0; in onenand_otp_walk()
2312 *retlen += sizeof(struct otp_info); in onenand_otp_walk()
2321 *retlen += size; in onenand_otp_walk()
2344 size_t retlen; in onenand_get_fact_prot_info() local
2347 ret = onenand_otp_walk(mtd, 0, len, &retlen, (u_char *) buf, NULL, MTD_OTP_FACTORY); in onenand_get_fact_prot_info()
2349 return ret ? : retlen; in onenand_get_fact_prot_info()
2363 size_t len, size_t *retlen, u_char *buf) in onenand_read_fact_prot_reg() argument
2365 return onenand_otp_walk(mtd, from, len, retlen, buf, do_otp_read, MTD_OTP_FACTORY); in onenand_read_fact_prot_reg()
2379 size_t retlen; in onenand_get_user_prot_info() local
2382 ret = onenand_otp_walk(mtd, 0, len, &retlen, (u_char *) buf, NULL, MTD_OTP_USER); in onenand_get_user_prot_info()
2384 return ret ? : retlen; in onenand_get_user_prot_info()
2398 size_t len, size_t *retlen, u_char *buf) in onenand_read_user_prot_reg() argument
2400 return onenand_otp_walk(mtd, from, len, retlen, buf, do_otp_read, MTD_OTP_USER); in onenand_read_user_prot_reg()
2414 size_t len, size_t *retlen, u_char *buf) in onenand_write_user_prot_reg() argument
2416 return onenand_otp_walk(mtd, from, len, retlen, buf, do_otp_write, MTD_OTP_USER); in onenand_write_user_prot_reg()
2432 size_t retlen; in onenand_lock_user_prot_reg() local
2451 ret = onenand_otp_walk(mtd, from, len, &retlen, oob_buf, do_otp_lock, MTD_OTP_USER); in onenand_lock_user_prot_reg()
2453 return ret ? : retlen; in onenand_lock_user_prot_reg()