Lines Matching full:level

45 	dst->range.level[0].sens = src->range.level[0].sens;  in mls_context_cpy()
46 rc = ebitmap_cpy(&dst->range.level[0].cat, &src->range.level[0].cat); in mls_context_cpy()
50 dst->range.level[1].sens = src->range.level[1].sens; in mls_context_cpy()
51 rc = ebitmap_cpy(&dst->range.level[1].cat, &src->range.level[1].cat); in mls_context_cpy()
53 ebitmap_destroy(&dst->range.level[0].cat); in mls_context_cpy()
59 * Sets both levels in the MLS range of 'dst' to the low level of 'src'.
65 dst->range.level[0].sens = src->range.level[0].sens; in mls_context_cpy_low()
66 rc = ebitmap_cpy(&dst->range.level[0].cat, &src->range.level[0].cat); in mls_context_cpy_low()
70 dst->range.level[1].sens = src->range.level[0].sens; in mls_context_cpy_low()
71 rc = ebitmap_cpy(&dst->range.level[1].cat, &src->range.level[0].cat); in mls_context_cpy_low()
73 ebitmap_destroy(&dst->range.level[0].cat); in mls_context_cpy_low()
79 * Sets both levels in the MLS range of 'dst' to the high level of 'src'.
85 dst->range.level[0].sens = src->range.level[1].sens; in mls_context_cpy_high()
86 rc = ebitmap_cpy(&dst->range.level[0].cat, &src->range.level[1].cat); in mls_context_cpy_high()
90 dst->range.level[1].sens = src->range.level[1].sens; in mls_context_cpy_high()
91 rc = ebitmap_cpy(&dst->range.level[1].cat, &src->range.level[1].cat); in mls_context_cpy_high()
93 ebitmap_destroy(&dst->range.level[0].cat); in mls_context_cpy_high()
106 if (r1->level[1].sens < r2->level[0].sens || in mls_context_glblub()
107 r2->level[1].sens < r1->level[0].sens) in mls_context_glblub()
112 dr->level[0].sens = max(r1->level[0].sens, r2->level[0].sens); in mls_context_glblub()
115 dr->level[1].sens = min(r1->level[1].sens, r2->level[1].sens); in mls_context_glblub()
117 rc = ebitmap_and(&dr->level[0].cat, in mls_context_glblub()
118 &r1->level[0].cat, &r2->level[0].cat); in mls_context_glblub()
122 rc = ebitmap_and(&dr->level[1].cat, in mls_context_glblub()
123 &r1->level[1].cat, &r2->level[1].cat); in mls_context_glblub()
133 return ((c1->range.level[0].sens == c2->range.level[0].sens) && in mls_context_cmp()
134 ebitmap_cmp(&c1->range.level[0].cat, &c2->range.level[0].cat) && in mls_context_cmp()
135 (c1->range.level[1].sens == c2->range.level[1].sens) && in mls_context_cmp()
136 ebitmap_cmp(&c1->range.level[1].cat, &c2->range.level[1].cat)); in mls_context_cmp()
141 ebitmap_destroy(&c->range.level[0].cat); in mls_context_destroy()
142 ebitmap_destroy(&c->range.level[1].cat); in mls_context_destroy()