Lines Matching refs:type
34 short type; member
97 if (walk->type != ex->type) in dev_exception_add()
125 if (walk->type != ex->type) in dev_exception_rm()
248 static char type_to_char(short type) in type_to_char() argument
250 if (type == DEVCG_DEV_ALL) in type_to_char()
252 if (type == DEVCG_DEV_CHAR) in type_to_char()
254 if (type == DEVCG_DEV_BLOCK) in type_to_char()
291 seq_printf(m, "%c %s:%s %s\n", type_to_char(ex->type), in devcgroup_seq_show()
313 static bool match_exception(struct list_head *exceptions, short type, in match_exception() argument
319 if ((type & DEVCG_DEV_BLOCK) && !(ex->type & DEVCG_DEV_BLOCK)) in match_exception()
321 if ((type & DEVCG_DEV_CHAR) && !(ex->type & DEVCG_DEV_CHAR)) in match_exception()
350 static bool match_exception_partial(struct list_head *exceptions, short type, in match_exception_partial() argument
356 if ((type & DEVCG_DEV_BLOCK) && !(ex->type & DEVCG_DEV_BLOCK)) in match_exception_partial()
358 if ((type & DEVCG_DEV_CHAR) && !(ex->type & DEVCG_DEV_CHAR)) in match_exception_partial()
413 refex->type, in verify_new_ex()
429 match = match_exception(&dev_cgroup->exceptions, refex->type, in verify_new_ex()
484 return !match_exception_partial(&parent->exceptions, ex->type, in parent_allows_removal()
641 ex.type = DEVCG_DEV_BLOCK; in devcgroup_update_access()
644 ex.type = DEVCG_DEV_CHAR; in devcgroup_update_access()
804 int __devcgroup_check_permission(short type, u32 major, u32 minor, in __devcgroup_check_permission() argument
815 type, major, minor, access); in __devcgroup_check_permission()
818 rc = match_exception(&dev_cgroup->exceptions, type, major, in __devcgroup_check_permission()