• Home
  • Raw
  • Download

Lines Matching refs:b

12 static int __dso_id__cmp(struct dso_id *a, struct dso_id *b)  in __dso_id__cmp()  argument
14 if (a->maj > b->maj) return -1; in __dso_id__cmp()
15 if (a->maj < b->maj) return 1; in __dso_id__cmp()
17 if (a->min > b->min) return -1; in __dso_id__cmp()
18 if (a->min < b->min) return 1; in __dso_id__cmp()
20 if (a->ino > b->ino) return -1; in __dso_id__cmp()
21 if (a->ino < b->ino) return 1; in __dso_id__cmp()
32 if (a->ino_generation && b->ino_generation) { in __dso_id__cmp()
33 if (a->ino_generation > b->ino_generation) return -1; in __dso_id__cmp()
34 if (a->ino_generation < b->ino_generation) return 1; in __dso_id__cmp()
56 static int dso_id__cmp(struct dso_id *a, struct dso_id *b) in dso_id__cmp() argument
62 if (dso_id__empty(a) || dso_id__empty(b)) in dso_id__cmp()
65 return __dso_id__cmp(a, b); in dso_id__cmp()
68 int dso__cmp_id(struct dso *a, struct dso *b) in dso__cmp_id() argument
70 return __dso_id__cmp(&a->id, &b->id); in dso__cmp_id()
97 static int __dso__cmp_long_name(const char *long_name, struct dso_id *id, struct dso *b) in __dso__cmp_long_name() argument
99 int rc = strcmp(long_name, b->long_name); in __dso__cmp_long_name()
100 return rc ?: dso_id__cmp(id, &b->id); in __dso__cmp_long_name()
103 static int __dso__cmp_short_name(const char *short_name, struct dso_id *id, struct dso *b) in __dso__cmp_short_name() argument
105 int rc = strcmp(short_name, b->short_name); in __dso__cmp_short_name()
106 return rc ?: dso_id__cmp(id, &b->id); in __dso__cmp_short_name()
109 static int dso__cmp_short_name(struct dso *a, struct dso *b) in dso__cmp_short_name() argument
111 return __dso__cmp_short_name(a->short_name, &a->id, b); in dso__cmp_short_name()