Lines Matching refs:lr
388 static inline u32 lrh_length(const struct LOG_REC_HDR *lr) in lrh_length() argument
390 u16 t16 = le16_to_cpu(lr->lcns_follow); in lrh_length()
392 return struct_size(lr, page_lcns, max_t(u16, 1, t16)); in lrh_length()
670 static bool check_log_rec(const struct LOG_REC_HDR *lr, u32 bytes, u32 tr, in check_log_rec() argument
684 if (le16_to_cpu(lr->redo_off) & 7) in check_log_rec()
687 if (le16_to_cpu(lr->undo_off) & 7) in check_log_rec()
690 if (lr->target_attr) in check_log_rec()
693 if (is_target_required(le16_to_cpu(lr->redo_op))) in check_log_rec()
696 if (is_target_required(le16_to_cpu(lr->undo_op))) in check_log_rec()
700 if (!lr->lcns_follow) in check_log_rec()
703 t16 = le16_to_cpu(lr->target_attr); in check_log_rec()
708 if (bytes < lrh_length(lr)) in check_log_rec()
2408 void *lr = kmalloc(len, GFP_NOFS); in find_log_rec() local
2410 if (!lr) in find_log_rec()
2413 lcb->log_rec = lr; in find_log_rec()
2417 err = read_log_rec_buf(log, rh, lr); in find_log_rec()