Searched refs:c1 (Results 1 – 3 of 3) sorted by relevance
97 static inline int mls_context_cmp(struct context *c1, struct context *c2) in mls_context_cmp() argument99 return ((c1->range.level[0].sens == c2->range.level[0].sens) && in mls_context_cmp()100 ebitmap_cmp(&c1->range.level[0].cat, &c2->range.level[0].cat) && in mls_context_cmp()101 (c1->range.level[1].sens == c2->range.level[1].sens) && in mls_context_cmp()102 ebitmap_cmp(&c1->range.level[1].cat, &c2->range.level[1].cat)); in mls_context_cmp()150 static inline int context_cmp(struct context *c1, struct context *c2) in context_cmp() argument152 if (c1->len && c2->len) in context_cmp()153 return (c1->len == c2->len && !strcmp(c1->str, c2->str)); in context_cmp()154 if (c1->len || c2->len) in context_cmp()156 return ((c1->user == c2->user) && in context_cmp()[all …]
796 int c1, c2; in sel_write_create() local800 c1 = *r++; in sel_write_create()801 if (c1 == '+') in sel_write_create()802 c1 = ' '; in sel_write_create()803 else if (c1 == '%') { in sel_write_create()804 c1 = hex_to_bin(*r++); in sel_write_create()805 if (c1 < 0) in sel_write_create()810 c1 = (c1 << 4) | c2; in sel_write_create()812 *w++ = c1; in sel_write_create()813 } while (c1 != '\0'); in sel_write_create()
352 static inline u8 tomoyo_make_byte(const u8 c1, const u8 c2, const u8 c3) in tomoyo_make_byte() argument354 return ((c1 - '0') << 6) + ((c2 - '0') << 3) + (c3 - '0'); in tomoyo_make_byte()