Home
last modified time | relevance | path

Searched refs:h (Results 1 – 25 of 108) sorted by relevance

12345

/net/xfrm/
A Dxfrm_hash.h98 return (h ^ (h >> 16)) & hmask; in __xfrm_dst_hash()
115 return (h ^ (h >> 16)) & hmask; in __xfrm_src_hash()
131 return (h ^ (h >> 10) ^ (h >> 20)) & hmask; in __xfrm_spi_hash()
137 unsigned int h = seq; in __xfrm_seq_hash() local
138 return (h ^ (h >> 10) ^ (h >> 20)) & hmask; in __xfrm_seq_hash()
152 unsigned int h = 0; in __sel_hash() local
171 h ^= (h >> 16); in __sel_hash()
172 return h & hmask; in __sel_hash()
181 unsigned int h = 0; in __addr_hash() local
192 h ^= (h >> 16); in __addr_hash()
[all …]
/net/sunrpc/
A Dsvcauth_unix.c35 struct auth_domain h; member
148 return &i->h; in ip_map_alloc()
163 struct ip_map *im = container_of(h, struct ip_map, h); in ip_map_request()
268 if (h == NULL) { in ip_map_show()
272 im = container_of(h, struct ip_map, h); in ip_map_show()
315 ip.h.flags = 0; in __ip_map_update()
319 ch = sunrpc_cache_update(cd, &ip.h, &ipm->h, in __ip_map_update()
463 return &g->h; in unix_gid_alloc()
478 struct unix_gid *ug = container_of(h, struct unix_gid, h); in unix_gid_request()
542 &ug.h, &ugp->h, in unix_gid_parse()
[all …]
A Dcache.c49 h->flags = 0; in cache_init()
50 kref_init(&h->ref); in cache_init()
55 h->last_refresh = now; in cache_init()
186 struct cache_head *h) in cache_make_negative() argument
197 detail->update(h, new); in cache_entry_update()
274 rv = cache_is_valid(h); in try_to_negate_entry()
293 rv = cache_is_valid(h); in cache_check_rcu()
296 refresh_age = (h->expiry_time - h->last_refresh); in cache_check_rcu()
353 cache_put(h, detail); in cache_check()
1298 int h, l; in qword_get() local
[all …]
/net/netfilter/ipset/
A Dip_set_hash_gen.h46 #define AHASH_MAX(h) ((h)->bucketsize) argument
91 #define hbucket(h, i) ((h)->bucket[i]) argument
344 h->nets[i].cidr[n] = h->nets[i - 1].cidr[n]; in mtype_add_cidr()
365 h->nets[j].cidr[n] = h->nets[j + 1].cidr[n]; in mtype_del_cidr()
423 memset(h->nets, 0, sizeof(h->nets)); in mtype_flush()
460 kfree(h); in mtype_destroy()
1555 if (!h) in IPSET_TOKEN()
1565 kfree(h); in IPSET_TOKEN()
1570 kfree(h); in IPSET_TOKEN()
1576 kfree(h); in IPSET_TOKEN()
[all …]
A Dip_set_hash_netnet.c147 const struct hash_netnet4 *h = set->data; in hash_netnet4_kadt() local
169 struct hash_netnet4 *h = set->data; in hash_netnet4_uadt() local
252 ip = ntohl(h->next.ip[0]); in hash_netnet4_uadt()
253 ip2 = ntohl(h->next.ip[1]); in hash_netnet4_uadt()
265 hash_netnet4_data_next(&h->next, &e); in hash_netnet4_uadt()
386 const struct hash_netnet6 *h = set->data; in hash_netnet6_kadt() local
401 nf_inet_addr_mask_inplace(&e.ip[0], &h->bitmask); in hash_netnet6_kadt()
402 nf_inet_addr_mask_inplace(&e.ip[1], &h->bitmask); in hash_netnet6_kadt()
416 const struct hash_netnet6 *h = set->data; in hash_netnet6_uadt() local
456 nf_inet_addr_mask_inplace(&e.ip[0], &h->bitmask); in hash_netnet6_uadt()
[all …]
A Dip_set_hash_ip.c84 const struct hash_ip4 *h = set->data; in hash_ip4_kadt() local
91 ip &= h->bitmask.ip; in hash_ip4_kadt()
103 struct hash_ip4 *h = set->data; in hash_ip4_uadt() local
124 ip &= ntohl(h->bitmask.ip); in hash_ip4_uadt()
150 hosts = h->netmask == 32 ? 1 : 2 << (32 - h->netmask - 1); in hash_ip4_uadt()
153 ip = ntohl(h->next.ip); in hash_ip4_uadt()
157 hash_ip4_data_next(&h->next, &e); in hash_ip4_uadt()
220 const struct hash_ip6 *h = set->data; in hash_ip6_kadt() local
226 nf_inet_addr_mask_inplace(&e.ip, &h->bitmask); in hash_ip6_kadt()
237 const struct hash_ip6 *h = set->data; in hash_ip6_uadt() local
[all …]
A Dip_set_hash_ipport.c98 const struct MTYPE *h = set->data; in hash_ipport4_kadt() local
105 e.ip &= h->bitmask.ip; in hash_ipport4_kadt()
115 struct hash_ipport4 *h = set->data; in hash_ipport4_uadt() local
139 e.ip &= h->bitmask.ip; in hash_ipport4_uadt()
188 ip = ntohl(h->next.ip); in hash_ipport4_uadt()
190 p = retried && ip == ntohl(h->next.ip) ? ntohs(h->next.port) in hash_ipport4_uadt()
196 hash_ipport4_data_next(&h->next, &e); in hash_ipport4_uadt()
268 const struct MTYPE *h = set->data; in hash_ipport6_kadt() local
275 nf_inet_addr_mask_inplace(&e.ip, &h->bitmask); in hash_ipport6_kadt()
286 const struct hash_ipport6 *h = set->data; in hash_ipport6_uadt() local
[all …]
A Dip_set_hash_ipmark.c84 const struct hash_ipmark4 *h = set->data; in hash_ipmark4_kadt() local
90 e.mark &= h->markmask; in hash_ipmark4_kadt()
100 struct hash_ipmark4 *h = set->data; in hash_ipmark4_uadt() local
123 e.mark &= h->markmask; in hash_ipmark4_uadt()
152 ip = ntohl(h->next.ip); in hash_ipmark4_uadt()
156 hash_ipmark4_data_next(&h->next, &e); in hash_ipmark4_uadt()
219 const struct hash_ipmark6 *h = set->data; in hash_ipmark6_kadt() local
225 e.mark &= h->markmask; in hash_ipmark6_kadt()
235 const struct hash_ipmark6 *h = set->data; in hash_ipmark6_uadt() local
265 e.mark &= h->markmask; in hash_ipmark6_uadt()
/net/ncsi/
A Dncsi-aen.c27 if (ntohs(h->common.length) != payload) in ncsi_validate_aen_pkt()
39 sizeof(*h) + payload - 4); in ncsi_validate_aen_pkt()
47 struct ncsi_aen_pkt_hdr *h) in ncsi_aen_handler_lsc() argument
65 lsc = (struct ncsi_aen_lsc_pkt *)h; in ncsi_aen_handler_lsc()
174 struct ncsi_aen_pkt_hdr *h) in ncsi_aen_handler_hncdsc() argument
202 struct ncsi_aen_pkt_hdr *h);
211 struct ncsi_aen_pkt_hdr *h; in ncsi_aen_handler() local
226 h->type); in ncsi_aen_handler()
234 h->type); in ncsi_aen_handler()
238 ret = nah->handler(ndp, h); in ncsi_aen_handler()
[all …]
A Dncsi-cmd.c44 h->mc_id = 0; in ncsi_cmd_build_header()
45 h->revision = NCSI_PKT_REVISION; in ncsi_cmd_build_header()
46 h->reserved = 0; in ncsi_cmd_build_header()
47 h->id = nca->id; in ncsi_cmd_build_header()
48 h->type = nca->type; in ncsi_cmd_build_header()
49 h->channel = NCSI_TO_CHANNEL(nca->package, in ncsi_cmd_build_header()
51 h->length = htons(nca->payload); in ncsi_cmd_build_header()
52 h->reserved1[0] = 0; in ncsi_cmd_build_header()
53 h->reserved1[1] = 0; in ncsi_cmd_build_header()
56 checksum = ncsi_calculate_checksum((unsigned char *)h, in ncsi_cmd_build_header()
[all …]
/net/netfilter/
A Dnf_conntrack_helper.c59 if (strcmp(h->name, name)) in __nf_conntrack_helper_find()
67 return h; in __nf_conntrack_helper_find()
83 if (h == NULL) { in nf_conntrack_helper_try_module_get()
89 return h; in nf_conntrack_helper_try_module_get()
93 if (h != NULL && !try_module_get(h->me)) in nf_conntrack_helper_try_module_get()
94 h = NULL; in nf_conntrack_helper_try_module_get()
95 if (h != NULL && !refcount_inc_not_zero(&h->refcnt)) { in nf_conntrack_helper_try_module_get()
96 module_put(h->me); in nf_conntrack_helper_try_module_get()
97 h = NULL; in nf_conntrack_helper_try_module_get()
102 return h; in nf_conntrack_helper_try_module_get()
[all …]
A Dnf_conntrack_timeout.c58 const struct nf_ct_timeout_hooks *h = rcu_dereference(nf_ct_timeout_hook); in __nf_ct_timeout_put() local
60 if (h) in __nf_ct_timeout_put()
61 h->timeout_put(timeout); in __nf_ct_timeout_put()
67 const struct nf_ct_timeout_hooks *h; in nf_ct_set_timeout() local
74 h = rcu_dereference(nf_ct_timeout_hook); in nf_ct_set_timeout()
75 if (!h) { in nf_ct_set_timeout()
81 timeout = h->timeout_find_get(net, timeout_name); in nf_ct_set_timeout()
128 const struct nf_ct_timeout_hooks *h; in nf_ct_destroy_timeout() local
131 h = rcu_dereference(nf_ct_timeout_hook); in nf_ct_destroy_timeout()
133 if (h) { in nf_ct_destroy_timeout()
[all …]
A Dnf_conntrack_core.c757 return h; in ____nf_conntrack_find()
781 if (h) { in __nf_conntrack_find_get()
791 return h; in __nf_conntrack_find_get()
797 h = NULL; in __nf_conntrack_find_get()
800 return h; in __nf_conntrack_find_get()
1098 if (nf_ct_key_equal(h, in nf_ct_resolve_clash_harder()
1890 if (!h) { in resolve_normal_ct()
1899 if (!h) { in resolve_normal_ct()
1902 if (!h) in resolve_normal_ct()
1904 if (IS_ERR(h)) in resolve_normal_ct()
[all …]
/net/netfilter/ipvs/
A Dip_vs_ovf.c28 struct ip_vs_dest *dest, *h = NULL; in ip_vs_ovf_schedule() local
41 if (!h || w > hw) { in ip_vs_ovf_schedule()
42 h = dest; in ip_vs_ovf_schedule()
47 if (h) { in ip_vs_ovf_schedule()
49 IP_VS_DBG_ADDR(h->af, &h->addr), in ip_vs_ovf_schedule()
50 ntohs(h->port), in ip_vs_ovf_schedule()
51 atomic_read(&h->activeconns), in ip_vs_ovf_schedule()
52 atomic_read(&h->weight)); in ip_vs_ovf_schedule()
53 return h; in ip_vs_ovf_schedule()
/net/sched/
A Dcls_route.c133 u32 id, h; in route4_classify() local
183 if (h < 256) { in route4_classify()
184 h = 256; in route4_classify()
197 u32 h = id & 0xFF; in to_hash() local
200 h += 256; in to_hash()
201 return h; in to_hash()
321 unsigned int h = 0; in route4_delete() local
327 h = f->handle; in route4_delete()
486 unsigned int h, th; in route4_change() local
550 fp = &b->ht[h]; in route4_change()
[all …]
A Dcls_fw.c137 int h; in fw_destroy() local
142 for (h = 0; h < HTSIZE; h++) { in fw_destroy()
143 while ((f = rtnl_dereference(head->ht[h])) != NULL) { in fw_destroy()
144 RCU_INIT_POINTER(head->ht[h], in fw_destroy()
164 int h; in fw_delete() local
184 for (h = 0; h < HTSIZE; h++) { in fw_delete()
185 if (rcu_access_pointer(head->ht[h])) { in fw_delete()
349 int h; in fw_walk() local
357 for (h = 0; h < HTSIZE; h++) { in fw_walk()
360 for (f = rtnl_dereference(head->ht[h]); f; in fw_walk()
A Dcls_u32.c95 static u32 handle2id(u32 h) in handle2id() argument
97 return ((h & 0x80000000) ? ((h >> 20) & 0x7FF) : h); in handle2id()
111 return h; in u32_hash_fold()
499 cls_u32.hnode.prio = h->prio; in u32_clear_hw_hnode()
517 cls_u32.hnode.prio = h->prio; in u32_replace_hw_hnode()
591 unsigned int h; in u32_clear_hnode() local
593 for (h = 0; h <= ht->divisor; h++) { in u32_clear_hnode()
1209 unsigned int h; in u32_walk() local
1223 for (h = 0; h <= ht->divisor; h++) { in u32_walk()
1294 unsigned int h; in u32_reoffload() local
[all …]
/net/sunrpc/auth_gss/
A Dsvcauth_gss.c99 struct cache_head h; member
202 return &rsii->h; in rsi_alloc()
216 struct rsi *rsii = container_of(h, struct rsi, h); in rsi_request()
258 rsii.h.flags = 0; in rsi_parse()
339 &old->h, hash); in rsi_update()
369 struct cache_head h; member
454 return &rsci->h; in rsc_alloc()
484 rsci.h.flags = 0; in rsc_parse()
616 &old->h, hash); in rsc_update()
822 if (!new->h.name) in svcauth_gss_register_pseudoflavor()
[all …]
/net/ceph/crush/
A Dmapper.c148 __u64 w = crush_hash32_4(bucket->h.hash, x, bucket->h.items[i], in bucket_list_choose()
149 r, bucket->h.id); in bucket_list_choose()
171 int h = 0; in height() local
173 h++; in height()
176 return h; in height()
181 int h = height(x); in left() local
182 return x - (1 << (h-1)); in left()
187 int h = height(x); in right() local
188 return x + (1 << (h-1)); in right()
237 draw = crush_hash32_3(bucket->h.hash, x, bucket->h.items[i], r); in bucket_straw_choose()
[all …]
A Dcrush.c49 kfree(b->h.items); in crush_destroy_bucket_uniform()
57 kfree(b->h.items); in crush_destroy_bucket_list()
63 kfree(b->h.items); in crush_destroy_bucket_tree()
72 kfree(b->h.items); in crush_destroy_bucket_straw()
79 kfree(b->h.items); in crush_destroy_bucket_straw2()
/net/netlabel/
A Dnetlabel_addrlist.h59 struct list_head *h) in __af4list_valid() argument
63 while (i != h && !n->valid) { in __af4list_valid()
71 struct list_head *h) in __af4list_valid_rcu() argument
75 while (i != h && !n->valid) { in __af4list_valid_rcu()
126 struct list_head *h) in __af6list_valid() argument
130 while (i != h && !n->valid) { in __af6list_valid()
138 struct list_head *h) in __af6list_valid_rcu() argument
142 while (i != h && !n->valid) { in __af6list_valid_rcu()
/net/9p/
A Dtrans_xen.c175 struct xen_9pfs_header h; in p9_xen_response() local
188 sizeof(h)) { in p9_xen_response()
197 xen_9pfs_read_packet(&h, ring->data.in, sizeof(h), in p9_xen_response()
201 req = p9_tag_lookup(priv->client, h.tag); in p9_xen_response()
204 cons += h.size; in p9_xen_response()
210 if (h.size > req->rc.capacity) { in p9_xen_response()
213 h.size, h.tag, req->rc.capacity); in p9_xen_response()
218 req->rc.size = h.size; in p9_xen_response()
219 req->rc.id = h.id; in p9_xen_response()
220 req->rc.tag = h.tag; in p9_xen_response()
[all …]
/net/rxrpc/
A Drxkad.c822 } h; in rxkad_insert_response_header() local
826 h.whdr.cid = htonl(conn->proto.cid); in rxkad_insert_response_header()
827 h.whdr.callNumber = 0; in rxkad_insert_response_header()
828 h.whdr.serial = 0; in rxkad_insert_response_header()
829 h.whdr.seq = 0; in rxkad_insert_response_header()
832 h.whdr.userStatus = 0; in rxkad_insert_response_header()
834 h.whdr.cksum = 0; in rxkad_insert_response_header()
837 h.resp.__pad = 0; in rxkad_insert_response_header()
840 h.resp.encrypted.checksum = 0; in rxkad_insert_response_header()
853 ret = skb_store_bits(response, *offset, &h, sizeof(h)); in rxkad_insert_response_header()
[all …]
/net/ipv4/
A Dipconfig.c828 struct iphdr *h; in ic_bootp_send_if() local
842 h = ip_hdr(skb); in ic_bootp_send_if()
843 h->version = 4; in ic_bootp_send_if()
844 h->ihl = 5; in ic_bootp_send_if()
847 h->ttl = 64; in ic_bootp_send_if()
850 h->check = ip_fast_csum((unsigned char *) h, h->ihl); in ic_bootp_send_if()
992 struct iphdr *h; in ic_bootp_recv() local
1013 h = &b->iph; in ic_bootp_recv()
1015 if (h->ihl != 5 || h->version != 4 || h->protocol != IPPROTO_UDP) in ic_bootp_recv()
1027 if (ip_fast_csum((char *) h, h->ihl)) in ic_bootp_recv()
[all …]
/net/ipv6/
A Dxfrm6_tunnel.c59 unsigned int h; in xfrm6_tunnel_spi_hash_byaddr() local
61 h = ipv6_addr_hash((const struct in6_addr *)addr); in xfrm6_tunnel_spi_hash_byaddr()
62 h ^= h >> 16; in xfrm6_tunnel_spi_hash_byaddr()
63 h ^= h >> 8; in xfrm6_tunnel_spi_hash_byaddr()
64 h &= XFRM6_TUNNEL_SPI_BYADDR_HSIZE - 1; in xfrm6_tunnel_spi_hash_byaddr()
66 return h; in xfrm6_tunnel_spi_hash_byaddr()

Completed in 72 milliseconds

12345