Searched refs:elements (Results 1 – 13 of 13) 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 | 406 t->hregion[r].elements = 0; in mtype_flush() 505 t->hregion[r].elements--; in mtype_gc_do() 734 t->hregion[nr].elements++; in mtype_resize() 795 mtype_ext_size(struct ip_set *set, u32 *elements, size_t *ext_size) in mtype_ext_size() argument 815 (*elements)++; in mtype_ext_size() 837 u32 r, key, multi = 0, elements, maxelem; in mtype_add() local 844 elements = t->hregion[r].elements; in mtype_add() 846 if (elements >= maxelem) { in mtype_add() 854 elements = 0; in mtype_add() 856 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() 308 set->elements++; in list_set_uadd() 419 set->elements = 0; in list_set_flush() 468 nla_put_net32(skb, IPSET_ATTR_ELEMENTS, htonl(set->elements))) in list_set_head()
|
/net/mac80211/ |
D | scan.c | 160 u8 *elements; in ieee80211_bss_info_update() local 196 elements = mgmt->u.probe_resp.variable; in ieee80211_bss_info_update() 203 elements = ext->u.s1g_beacon.variable; in ieee80211_bss_info_update() 206 elements = mgmt->u.beacon.variable; in ieee80211_bss_info_update() 212 elems = ieee802_11_parse_elems(elements, len - baselen, false, in ieee80211_bss_info_update()
|
/net/sunrpc/auth_gss/ |
D | gss_rpc_xdr.h | 92 struct gssx_cred_element_array elements; member
|
D | gss_rpc_xdr.c | 549 err = dummy_enc_credel_array(xdr, &cred->elements); in gssx_enc_cred()
|
/net/ipv4/ |
D | Kconfig | 613 keeping network elements load as low as possible.
|
/net/wireless/ |
D | trace.h | 1262 __dynamic_array(u8, elements, req->ie_len) 1282 memcpy(__get_dynamic_array(elements),
|
/net/netfilter/ |
D | Kconfig | 786 elements in the sets created by ipset(8).
|