Lines Matching refs:c
35 static inline void mls_context_init(struct context *c) in mls_context_init() argument
37 memset(&c->range, 0, sizeof(c->range)); in mls_context_init()
105 static inline void mls_context_destroy(struct context *c) in mls_context_destroy() argument
107 ebitmap_destroy(&c->range.level[0].cat); in mls_context_destroy()
108 ebitmap_destroy(&c->range.level[1].cat); in mls_context_destroy()
109 mls_context_init(c); in mls_context_destroy()
112 static inline void context_init(struct context *c) in context_init() argument
114 memset(c, 0, sizeof(*c)); in context_init()
141 static inline void context_destroy(struct context *c) in context_destroy() argument
143 c->user = c->role = c->type = 0; in context_destroy()
144 kfree(c->str); in context_destroy()
145 c->str = NULL; in context_destroy()
146 c->len = 0; in context_destroy()
147 mls_context_destroy(c); in context_destroy()