Searched refs:elements (Results 1 – 12 of 12) sorted by relevance
/net/netfilter/ipset/ |
D | ip_set_bitmap_ip.c | 43 u32 elements; /* number of max elements in the set */ member 221 u32 elements, u32 hosts, u8 netmask) in init_map_ip() argument 223 map->members = bitmap_zalloc(elements, GFP_KERNEL | __GFP_NOWARN); in init_map_ip() 228 map->elements = elements; in init_map_ip() 258 u64 elements; in bitmap_ip_create() local 299 elements = (u64)last_ip - first_ip + 1; in bitmap_ip_create() 312 elements = 2UL << (netmask - mask_bits - 1); in bitmap_ip_create() 314 if (elements > IPSET_BITMAP_MAX_RANGE + 1) in bitmap_ip_create() 318 hosts, (unsigned long long)elements); in bitmap_ip_create() 321 map = ip_set_alloc(sizeof(*map) + elements * set->dsize); in bitmap_ip_create() [all …]
|
D | ip_set_bitmap_gen.h | 51 for (id = 0; id < map->elements; id++) in mtype_ext_cleanup() 76 bitmap_zero(map->members, map->elements); in mtype_flush() 77 set->elements = 0; in mtype_flush() 86 map->elements * dsize; in mtype_memsize() 102 nla_put_net32(skb, IPSET_ATTR_ELEMENTS, htonl(set->elements))) in mtype_head() 139 set->elements--; in mtype_add() 149 set->elements--; in mtype_add() 167 set->elements++; in mtype_add() 184 set->elements--; in mtype_del() 215 for (; cb->args[IPSET_CB_ARG0] < map->elements; in mtype_list() [all …]
|
D | ip_set_bitmap_ipmac.c | 48 u32 elements; /* number of max elements in the set */ member 300 u32 first_ip, u32 last_ip, u32 elements) in init_map_ipmac() argument 302 map->members = bitmap_zalloc(elements, GFP_KERNEL | __GFP_NOWARN); in init_map_ipmac() 307 map->elements = elements; in init_map_ipmac() 322 u64 elements; in bitmap_ipmac_create() local 351 elements = (u64)last_ip - first_ip + 1; in bitmap_ipmac_create() 353 if (elements > IPSET_BITMAP_MAX_RANGE + 1) in bitmap_ipmac_create() 359 map = ip_set_alloc(sizeof(*map) + elements * set->dsize); in bitmap_ipmac_create() 363 map->memsize = BITS_TO_LONGS(elements) * sizeof(unsigned long); in bitmap_ipmac_create() 365 if (!init_map_ipmac(set, map, first_ip, last_ip, elements)) { in bitmap_ipmac_create()
|
D | ip_set_bitmap_port.c | 36 u32 elements; /* number of max elements in the set */ member 234 map->members = bitmap_zalloc(map->elements, GFP_KERNEL | __GFP_NOWARN); in init_map_port() 254 u32 elements; in bitmap_port_create() local 267 elements = last_port - first_port + 1; in bitmap_port_create() 269 map = ip_set_alloc(sizeof(*map) + elements * set->dsize); in bitmap_port_create() 273 map->elements = elements; in bitmap_port_create() 274 map->memsize = BITS_TO_LONGS(elements) * sizeof(unsigned long); in bitmap_port_create()
|
D | ip_set_hash_gen.h | 418 t->hregion[r].elements = 0; in mtype_flush() 517 t->hregion[r].elements--; in mtype_gc_do() 746 t->hregion[nr].elements++; in mtype_resize() 807 mtype_ext_size(struct ip_set *set, u32 *elements, size_t *ext_size) in mtype_ext_size() argument 827 (*elements)++; in mtype_ext_size() 849 u32 r, key, multi = 0, elements, maxelem; in mtype_add() local 856 elements = t->hregion[r].elements; in mtype_add() 858 if (elements >= maxelem) { in mtype_add() 866 elements = 0; in mtype_add() 868 elements += t->hregion[e].elements; in mtype_add() [all …]
|
D | Kconfig | 117 one can store MAC (ethernet address) elements in a set. 135 one can store IPv4/IPv6 network address/prefix elements in a set. 154 protocol/port pairs as elements in a set. 164 interface name pairs as elements in a set.
|
D | ip_set_list_set.c | 157 set->elements--; in list_set_del() 312 set->elements++; in list_set_uadd() 423 set->elements = 0; in list_set_flush() 466 nla_put_net32(skb, IPSET_ATTR_ELEMENTS, htonl(set->elements))) in list_set_head()
|
/net/sunrpc/auth_gss/ |
D | gss_rpc_xdr.h | 92 struct gssx_cred_element_array elements; member
|
D | gss_rpc_xdr.c | 560 err = dummy_enc_credel_array(xdr, &cred->elements); in gssx_enc_cred()
|
/net/ipv4/ |
D | Kconfig | 612 keeping network elements load as low as possible.
|
/net/wireless/ |
D | trace.h | 1275 __dynamic_array(u8, elements, req->ie_len) 1295 memcpy(__get_dynamic_array(elements),
|
/net/netfilter/ |
D | Kconfig | 801 elements in the sets created by ipset(8).
|