Lines Matching refs:ptr
62 * @ptr: Pointer to "struct tomoyo_name_union".
66 void tomoyo_put_name_union(struct tomoyo_name_union *ptr)
68 tomoyo_put_group(ptr->group);
69 tomoyo_put_name(ptr->filename);
76 * @ptr: Pointer to "struct tomoyo_name_union".
78 * Returns "struct tomoyo_path_info" if @name matches @ptr, NULL otherwise.
82 const struct tomoyo_name_union *ptr)
84 if (ptr->group)
85 return tomoyo_path_matches_group(name, ptr->group);
86 if (tomoyo_path_matches_pattern(name, ptr->filename))
87 return ptr->filename;
94 * @ptr: Pointer to "struct tomoyo_number_union".
98 void tomoyo_put_number_union(struct tomoyo_number_union *ptr)
100 tomoyo_put_group(ptr->group);
107 * @ptr: Pointer to "struct tomoyo_number_union".
109 * Returns true if @value matches @ptr, false otherwise.
112 const struct tomoyo_number_union *ptr)
114 if (ptr->group)
115 return tomoyo_number_matches_group(value, value, ptr->group);
116 return value >= ptr->values[0] && value <= ptr->values[1];
242 * @ptr: Pointer to "struct tomoyo_acl_info".
251 const struct tomoyo_acl_info *ptr)
253 const struct tomoyo_path_acl *acl = container_of(ptr, typeof(*acl),
268 * @ptr: Pointer to "struct tomoyo_acl_info".
273 const struct tomoyo_acl_info *ptr)
276 container_of(ptr, typeof(*acl), head);
288 * @ptr: Pointer to "struct tomoyo_acl_info".
293 const struct tomoyo_acl_info *ptr)
296 container_of(ptr, typeof(*acl), head);
307 * @ptr: Pointer to "struct tomoyo_acl_info".
312 const struct tomoyo_acl_info *ptr)
315 container_of(ptr, typeof(*acl), head);