Lines Matching refs:s2
1634 static inline void double_down(struct semaphore *s1, struct semaphore *s2) in double_down() argument
1636 if (s1 != s2) { in double_down()
1637 if ((unsigned long) s1 < (unsigned long) s2) { in double_down()
1638 struct semaphore *tmp = s2; in double_down()
1639 s2 = s1; s1 = tmp; in double_down()
1643 down(s2); in double_down()
1656 struct semaphore *s2, in triple_down() argument
1659 if (s1 != s2) { in triple_down()
1660 if ((unsigned long) s1 < (unsigned long) s2) { in triple_down()
1665 if ((unsigned long) s1 < (unsigned long) s2) { in triple_down()
1666 struct semaphore *tmp = s2; in triple_down()
1667 s2 = s1; s1 = tmp; in triple_down()
1674 if ((unsigned long) s2 < (unsigned long) s3) { in triple_down()
1676 s3 = s2; s2 = tmp; in triple_down()
1680 } else if ((unsigned long) s2 < (unsigned long) s3) { in triple_down()
1682 s3 = s2; s2 = tmp; in triple_down()
1684 down(s2); in triple_down()
1688 static inline void double_up(struct semaphore *s1, struct semaphore *s2) in double_up() argument
1691 if (s1 != s2) in double_up()
1692 up(s2); in double_up()
1696 struct semaphore *s2, in triple_up() argument
1700 if (s1 != s2) in triple_up()
1701 up(s2); in triple_up()