Lines Matching refs:ent
189 struct log_entry *ent) in btt_log_read_pair() argument
191 WARN_ON(!ent); in btt_log_read_pair()
193 arena->logoff + (2 * lane * LOG_ENT_SIZE), ent, in btt_log_read_pair()
261 static int btt_log_get_old(struct log_entry *ent) in btt_log_get_old() argument
270 if (ent[0].seq == 0) { in btt_log_get_old()
271 ent[0].seq = cpu_to_le32(1); in btt_log_get_old()
275 if (ent[0].seq == ent[1].seq) in btt_log_get_old()
277 if (le32_to_cpu(ent[0].seq) + le32_to_cpu(ent[1].seq) > 5) in btt_log_get_old()
280 if (le32_to_cpu(ent[0].seq) < le32_to_cpu(ent[1].seq)) { in btt_log_get_old()
281 if (le32_to_cpu(ent[1].seq) - le32_to_cpu(ent[0].seq) == 1) in btt_log_get_old()
286 if (le32_to_cpu(ent[0].seq) - le32_to_cpu(ent[1].seq) == 1) in btt_log_get_old()
307 struct log_entry *ent, int old_flag) in btt_log_read() argument
328 if (ent != NULL) in btt_log_read()
329 memcpy(ent, &log[ret_ent], LOG_ENT_SIZE); in btt_log_read()
340 u32 sub, struct log_entry *ent) in __btt_log_write() argument
352 void *src = ent; in __btt_log_write()
365 struct log_entry *ent) in btt_flog_write() argument
369 ret = __btt_log_write(arena, lane, sub, ent); in btt_flog_write()
377 arena->freelist[lane].block = le32_to_cpu(ent->old_map); in btt_flog_write()