Lines Matching defs:ptr
46 * @ptr: Pointer to "struct tomoyo_ipaddr_union".
51 struct tomoyo_ipaddr_union *ptr)
53 u8 * const min = ptr->ip[0].in6_u.u6_addr8;
54 u8 * const max = ptr->ip[1].in6_u.u6_addr8;
60 ptr->is_ipv6 = false;
62 ptr->ip[1].s6_addr32[0] = ptr->ip[0].s6_addr32[0];
69 ptr->is_ipv6 = true;
120 * @ptr: Pointer to "struct ipaddr_union".
125 const struct tomoyo_ipaddr_union *ptr)
127 if (ptr->is_ipv6)
128 tomoyo_print_ipv6(buf, size, &ptr->ip[0], &ptr->ip[1]);
130 tomoyo_print_ipv4(buf, size, &ptr->ip[0].s6_addr32[0],
131 &ptr->ip[1].s6_addr32[0]);
415 * @ptr: Pointer to "struct tomoyo_acl_info".
420 const struct tomoyo_acl_info *ptr)
423 container_of(ptr, typeof(*acl), head);
445 * @ptr: Pointer to "struct tomoyo_acl_info".
450 const struct tomoyo_acl_info *ptr)
453 container_of(ptr, typeof(*acl), head);