Lines Matching defs:cp1
1063 hfs_lockpair(struct cnode *cp1, struct cnode *cp2, enum hfslocktype locktype)
1071 if (cp1 == cp2) {
1072 return hfs_lock(cp1, locktype);
1078 if (cp1 < cp2) {
1079 first = cp1;
1083 last = cp1;
1100 hfs_isordered(struct cnode *cp1, struct cnode *cp2)
1102 if (cp1 == cp2)
1104 if (cp1 == NULL || cp2 == (struct cnode *)0xffffffff)
1106 if (cp2 == NULL || cp1 == (struct cnode *)0xffffffff)
1111 return (cp1 < cp2);
1123 hfs_lockfour(struct cnode *cp1, struct cnode *cp2, struct cnode *cp3,
1133 if (hfs_isordered(cp1, cp2)) {
1134 a[0] = cp1; a[1] = cp2;
1136 a[0] = cp2; a[1] = cp1;
1233 hfs_unlockpair(struct cnode *cp1, struct cnode *cp2)
1235 hfs_unlock(cp1);
1236 if (cp2 != cp1)
1245 hfs_unlockfour(struct cnode *cp1, struct cnode *cp2, struct cnode *cp3, struct cnode *cp4)
1250 if (cp1) {
1251 hfs_unlock(cp1);
1252 list[k++] = cp1;