Lines Matching refs:ptr

258 			     struct tomoyo_name_union *ptr)  in tomoyo_parse_name_union()  argument
263 ptr->group = tomoyo_get_group(param, TOMOYO_PATH_GROUP); in tomoyo_parse_name_union()
264 return ptr->group != NULL; in tomoyo_parse_name_union()
269 ptr->filename = tomoyo_get_name(filename); in tomoyo_parse_name_union()
270 return ptr->filename != NULL; in tomoyo_parse_name_union()
282 struct tomoyo_number_union *ptr) in tomoyo_parse_number_union() argument
287 memset(ptr, 0, sizeof(*ptr)); in tomoyo_parse_number_union()
290 ptr->group = tomoyo_get_group(param, TOMOYO_NUMBER_GROUP); in tomoyo_parse_number_union()
291 return ptr->group != NULL; in tomoyo_parse_number_union()
297 ptr->values[0] = v; in tomoyo_parse_number_union()
298 ptr->value_type[0] = type; in tomoyo_parse_number_union()
300 ptr->values[1] = v; in tomoyo_parse_number_union()
301 ptr->value_type[1] = type; in tomoyo_parse_number_union()
307 if (type == TOMOYO_VALUE_TYPE_INVALID || *data || ptr->values[0] > v) in tomoyo_parse_number_union()
309 ptr->values[1] = v; in tomoyo_parse_number_union()
310 ptr->value_type[1] = type; in tomoyo_parse_number_union()
661 void tomoyo_fill_path_info(struct tomoyo_path_info *ptr) in tomoyo_fill_path_info() argument
663 const char *name = ptr->name; in tomoyo_fill_path_info()
666 ptr->const_len = tomoyo_const_part_length(name); in tomoyo_fill_path_info()
667 ptr->is_dir = len && (name[len - 1] == '/'); in tomoyo_fill_path_info()
668 ptr->is_patterned = (ptr->const_len < len); in tomoyo_fill_path_info()
669 ptr->hash = full_name_hash(name, len); in tomoyo_fill_path_info()
1030 struct tomoyo_acl_info *ptr; in tomoyo_domain_quota_is_ok() local
1036 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()