Lines Matching full:level
47 dst->range.level[0].sens = src->range.level[0].sens; in mls_context_cpy()
48 rc = ebitmap_cpy(&dst->range.level[0].cat, &src->range.level[0].cat); in mls_context_cpy()
52 dst->range.level[1].sens = src->range.level[1].sens; in mls_context_cpy()
53 rc = ebitmap_cpy(&dst->range.level[1].cat, &src->range.level[1].cat); in mls_context_cpy()
55 ebitmap_destroy(&dst->range.level[0].cat); in mls_context_cpy()
61 * Sets both levels in the MLS range of 'dst' to the low level of 'src'.
68 dst->range.level[0].sens = src->range.level[0].sens; in mls_context_cpy_low()
69 rc = ebitmap_cpy(&dst->range.level[0].cat, &src->range.level[0].cat); in mls_context_cpy_low()
73 dst->range.level[1].sens = src->range.level[0].sens; in mls_context_cpy_low()
74 rc = ebitmap_cpy(&dst->range.level[1].cat, &src->range.level[0].cat); in mls_context_cpy_low()
76 ebitmap_destroy(&dst->range.level[0].cat); in mls_context_cpy_low()
82 * Sets both levels in the MLS range of 'dst' to the high level of 'src'.
89 dst->range.level[0].sens = src->range.level[1].sens; in mls_context_cpy_high()
90 rc = ebitmap_cpy(&dst->range.level[0].cat, &src->range.level[1].cat); in mls_context_cpy_high()
94 dst->range.level[1].sens = src->range.level[1].sens; in mls_context_cpy_high()
95 rc = ebitmap_cpy(&dst->range.level[1].cat, &src->range.level[1].cat); in mls_context_cpy_high()
97 ebitmap_destroy(&dst->range.level[0].cat); in mls_context_cpy_high()
110 if (r1->level[1].sens < r2->level[0].sens || in mls_context_glblub()
111 r2->level[1].sens < r1->level[0].sens) in mls_context_glblub()
116 dr->level[0].sens = max(r1->level[0].sens, r2->level[0].sens); in mls_context_glblub()
119 dr->level[1].sens = min(r1->level[1].sens, r2->level[1].sens); in mls_context_glblub()
121 rc = ebitmap_and(&dr->level[0].cat, &r1->level[0].cat, in mls_context_glblub()
122 &r2->level[0].cat); in mls_context_glblub()
126 rc = ebitmap_and(&dr->level[1].cat, &r1->level[1].cat, in mls_context_glblub()
127 &r2->level[1].cat); in mls_context_glblub()
138 return ((c1->range.level[0].sens == c2->range.level[0].sens) && in mls_context_cmp()
139 ebitmap_cmp(&c1->range.level[0].cat, &c2->range.level[0].cat) && in mls_context_cmp()
140 (c1->range.level[1].sens == c2->range.level[1].sens) && in mls_context_cmp()
141 ebitmap_cmp(&c1->range.level[1].cat, &c2->range.level[1].cat)); in mls_context_cmp()
146 ebitmap_destroy(&c->range.level[0].cat); in mls_context_destroy()
147 ebitmap_destroy(&c->range.level[1].cat); in mls_context_destroy()