Lines Matching refs:ptr
246 struct tomoyo_name_union *ptr) in tomoyo_parse_name_union() argument
252 ptr->group = tomoyo_get_group(param, TOMOYO_PATH_GROUP); in tomoyo_parse_name_union()
253 return ptr->group != NULL; in tomoyo_parse_name_union()
258 ptr->filename = tomoyo_get_name(filename); in tomoyo_parse_name_union()
259 return ptr->filename != NULL; in tomoyo_parse_name_union()
271 struct tomoyo_number_union *ptr) in tomoyo_parse_number_union() argument
277 memset(ptr, 0, sizeof(*ptr)); in tomoyo_parse_number_union()
280 ptr->group = tomoyo_get_group(param, TOMOYO_NUMBER_GROUP); in tomoyo_parse_number_union()
281 return ptr->group != NULL; in tomoyo_parse_number_union()
287 ptr->values[0] = v; in tomoyo_parse_number_union()
288 ptr->value_type[0] = type; in tomoyo_parse_number_union()
290 ptr->values[1] = v; in tomoyo_parse_number_union()
291 ptr->value_type[1] = type; in tomoyo_parse_number_union()
297 if (type == TOMOYO_VALUE_TYPE_INVALID || *data || ptr->values[0] > v) in tomoyo_parse_number_union()
299 ptr->values[1] = v; in tomoyo_parse_number_union()
300 ptr->value_type[1] = type; in tomoyo_parse_number_union()
655 void tomoyo_fill_path_info(struct tomoyo_path_info *ptr) in tomoyo_fill_path_info() argument
657 const char *name = ptr->name; in tomoyo_fill_path_info()
660 ptr->const_len = tomoyo_const_part_length(name); in tomoyo_fill_path_info()
661 ptr->is_dir = len && (name[len - 1] == '/'); in tomoyo_fill_path_info()
662 ptr->is_patterned = (ptr->const_len < len); in tomoyo_fill_path_info()
663 ptr->hash = full_name_hash(NULL, name, len); in tomoyo_fill_path_info()
1026 struct tomoyo_acl_info *ptr; in tomoyo_domain_quota_is_ok() local
1034 list_for_each_entry_rcu(ptr, &domain->acl_info_list, list, in tomoyo_domain_quota_is_ok()
1039 if (ptr->is_deleted) in tomoyo_domain_quota_is_ok()
1041 switch (ptr->type) { in tomoyo_domain_quota_is_ok()
1043 perm = container_of(ptr, struct tomoyo_path_acl, head) in tomoyo_domain_quota_is_ok()
1047 perm = container_of(ptr, struct tomoyo_path2_acl, head) in tomoyo_domain_quota_is_ok()
1051 perm = container_of(ptr, struct tomoyo_path_number_acl, in tomoyo_domain_quota_is_ok()
1055 perm = container_of(ptr, struct tomoyo_mkdev_acl, in tomoyo_domain_quota_is_ok()
1059 perm = container_of(ptr, struct tomoyo_inet_acl, in tomoyo_domain_quota_is_ok()
1063 perm = container_of(ptr, struct tomoyo_unix_acl, in tomoyo_domain_quota_is_ok()