Lines Matching refs:diff
42 int addr_a, addr_b, diff; in afs_compare_addrs() local
44 diff = (short)srx_a->transport_type - (short)srx_b->transport_type; in afs_compare_addrs()
45 if (diff) in afs_compare_addrs()
54 diff = addr_a - addr_b; in afs_compare_addrs()
55 if (diff == 0) { in afs_compare_addrs()
58 diff = port_a - port_b; in afs_compare_addrs()
66 diff = memcmp(&a->sin6_addr, &b->sin6_addr, 16); in afs_compare_addrs()
67 if (diff == 0) { in afs_compare_addrs()
70 diff = port_a - port_b; in afs_compare_addrs()
77 diff = 1; in afs_compare_addrs()
81 return diff; in afs_compare_addrs()
99 int diff = afs_compare_addrs(srx_a, srx_b); in afs_compare_fs_alists() local
101 if (diff < 0) { in afs_compare_fs_alists()
103 } else if (diff > 0) { in afs_compare_fs_alists()
135 int diff = memcmp(&server_a->uuid, &server_b->uuid, sizeof(uuid_t)); in afs_compare_volume_slists() local
137 if (diff < 0) { in afs_compare_volume_slists()
139 } else if (diff > 0) { in afs_compare_volume_slists()