Lines Matching defs:e2
428 * result: -1 if e1 before e2, or both locks are readers and e1
429 * starts before or at e2
430 * 1 if e1 after e2, or both locks are readers and e1
431 * starts after e2
432 * 0 if e1 and e2 overlap and at least one lock is writer
435 rl_e_compare(const struct rl_q_entry *e1, const struct rl_q_entry *e2)
441 if (e2->rl_q_start >= e1->rl_q_end)
443 rds = rl_e_is_rlock(e1) && rl_e_is_rlock(e2);
444 if (e2->rl_q_start >= e1->rl_q_start && rds)
446 if (e1->rl_q_start >= e2->rl_q_end)
448 if (e1->rl_q_start >= e2->rl_q_start && rds)