Lines Matching refs:ptr
248 struct tomoyo_name_union *ptr) in tomoyo_parse_name_union() argument
254 ptr->group = tomoyo_get_group(param, TOMOYO_PATH_GROUP); in tomoyo_parse_name_union()
255 return ptr->group != NULL; in tomoyo_parse_name_union()
260 ptr->filename = tomoyo_get_name(filename); in tomoyo_parse_name_union()
261 return ptr->filename != NULL; in tomoyo_parse_name_union()
273 struct tomoyo_number_union *ptr) in tomoyo_parse_number_union() argument
279 memset(ptr, 0, sizeof(*ptr)); in tomoyo_parse_number_union()
282 ptr->group = tomoyo_get_group(param, TOMOYO_NUMBER_GROUP); in tomoyo_parse_number_union()
283 return ptr->group != NULL; in tomoyo_parse_number_union()
289 ptr->values[0] = v; in tomoyo_parse_number_union()
290 ptr->value_type[0] = type; in tomoyo_parse_number_union()
292 ptr->values[1] = v; in tomoyo_parse_number_union()
293 ptr->value_type[1] = type; in tomoyo_parse_number_union()
299 if (type == TOMOYO_VALUE_TYPE_INVALID || *data || ptr->values[0] > v) in tomoyo_parse_number_union()
301 ptr->values[1] = v; in tomoyo_parse_number_union()
302 ptr->value_type[1] = type; in tomoyo_parse_number_union()
677 void tomoyo_fill_path_info(struct tomoyo_path_info *ptr) in tomoyo_fill_path_info() argument
679 const char *name = ptr->name; in tomoyo_fill_path_info()
682 ptr->const_len = tomoyo_const_part_length(name); in tomoyo_fill_path_info()
683 ptr->is_dir = len && (name[len - 1] == '/'); in tomoyo_fill_path_info()
684 ptr->is_patterned = (ptr->const_len < len); in tomoyo_fill_path_info()
685 ptr->hash = full_name_hash(NULL, name, len); in tomoyo_fill_path_info()
1048 struct tomoyo_acl_info *ptr; in tomoyo_domain_quota_is_ok() local
1056 list_for_each_entry_rcu(ptr, &domain->acl_info_list, list, in tomoyo_domain_quota_is_ok()
1060 if (ptr->is_deleted) in tomoyo_domain_quota_is_ok()
1067 switch (ptr->type) { in tomoyo_domain_quota_is_ok()
1069 perm = data_race(container_of(ptr, struct tomoyo_path_acl, head)->perm); in tomoyo_domain_quota_is_ok()
1072 perm = data_race(container_of(ptr, struct tomoyo_path2_acl, head)->perm); in tomoyo_domain_quota_is_ok()
1075 perm = data_race(container_of(ptr, struct tomoyo_path_number_acl, head) in tomoyo_domain_quota_is_ok()
1079 perm = data_race(container_of(ptr, struct tomoyo_mkdev_acl, head)->perm); in tomoyo_domain_quota_is_ok()
1082 perm = data_race(container_of(ptr, struct tomoyo_inet_acl, head)->perm); in tomoyo_domain_quota_is_ok()
1085 perm = data_race(container_of(ptr, struct tomoyo_unix_acl, head)->perm); in tomoyo_domain_quota_is_ok()