Searched refs:c1 (Results 1 – 4 of 4) sorted by relevance
99 static inline int mls_context_cmp(struct context *c1, struct context *c2) in mls_context_cmp() argument101 return ((c1->range.level[0].sens == c2->range.level[0].sens) && in mls_context_cmp()102 ebitmap_cmp(&c1->range.level[0].cat, &c2->range.level[0].cat) && in mls_context_cmp()103 (c1->range.level[1].sens == c2->range.level[1].sens) && in mls_context_cmp()104 ebitmap_cmp(&c1->range.level[1].cat, &c2->range.level[1].cat)); in mls_context_cmp()153 static inline int context_cmp(struct context *c1, struct context *c2) in context_cmp() argument155 if (c1->hash && c2->hash && (c1->hash != c2->hash)) in context_cmp()157 if (c1->len && c2->len) in context_cmp()158 return (c1->len == c2->len && !strcmp(c1->str, c2->str)); in context_cmp()159 if (c1->len || c2->len) in context_cmp()[all …]
34 static const u32 c1 = 0xcc9e2d51; in avtab_hash() local45 v *= c1; \ in avtab_hash()
911 int c1, c2; in sel_write_create() local915 c1 = *r++; in sel_write_create()916 if (c1 == '+') in sel_write_create()917 c1 = ' '; in sel_write_create()918 else if (c1 == '%') { in sel_write_create()919 c1 = hex_to_bin(*r++); in sel_write_create()920 if (c1 < 0) in sel_write_create()925 c1 = (c1 << 4) | c2; in sel_write_create()927 *w++ = c1; in sel_write_create()928 } while (c1 != '\0'); in sel_write_create()
342 static inline u8 tomoyo_make_byte(const u8 c1, const u8 c2, const u8 c3) in tomoyo_make_byte() argument344 return ((c1 - '0') << 6) + ((c2 - '0') << 3) + (c3 - '0'); in tomoyo_make_byte()