Home
last modified time | relevance | path

Searched refs:nh (Results 1 – 25 of 34) sorted by relevance

12

/linux-3.4.99/kernel/
Dnotifier.c120 int atomic_notifier_chain_register(struct atomic_notifier_head *nh, in atomic_notifier_chain_register() argument
126 spin_lock_irqsave(&nh->lock, flags); in atomic_notifier_chain_register()
127 ret = notifier_chain_register(&nh->head, n); in atomic_notifier_chain_register()
128 spin_unlock_irqrestore(&nh->lock, flags); in atomic_notifier_chain_register()
142 int atomic_notifier_chain_unregister(struct atomic_notifier_head *nh, in atomic_notifier_chain_unregister() argument
148 spin_lock_irqsave(&nh->lock, flags); in atomic_notifier_chain_unregister()
149 ret = notifier_chain_unregister(&nh->head, n); in atomic_notifier_chain_unregister()
150 spin_unlock_irqrestore(&nh->lock, flags); in atomic_notifier_chain_unregister()
175 int __kprobes __atomic_notifier_call_chain(struct atomic_notifier_head *nh, in __atomic_notifier_call_chain() argument
182 ret = notifier_call_chain(&nh->head, val, v, nr_to_call, nr_calls); in __atomic_notifier_call_chain()
[all …]
/linux-3.4.99/net/decnet/
Ddn_fib.c51 #define for_nexthops(fi) { int nhsel; const struct dn_fib_nh *nh;\
52 for(nhsel = 0, nh = (fi)->fib_nh; nhsel < (fi)->fib_nhs; nh++, nhsel++)
54 #define change_nexthops(fi) { int nhsel; struct dn_fib_nh *nh;\
55 for(nhsel = 0, nh = (struct dn_fib_nh *)((fi)->fib_nh); nhsel < (fi)->fib_nhs; nh++, nhsel++)
93 if (nh->nh_dev) in dn_fib_free_info()
94 dev_put(nh->nh_dev); in dn_fib_free_info()
95 nh->nh_dev = NULL; in dn_fib_free_info()
121 if (nh->nh_oif != onh->nh_oif || in dn_fib_nh_comp()
122 nh->nh_gw != onh->nh_gw || in dn_fib_nh_comp()
123 nh->nh_scope != onh->nh_scope || in dn_fib_nh_comp()
[all …]
Ddn_table.c63 #define for_nexthops(fi) { int nhsel; const struct dn_fib_nh *nh;\
64 for(nhsel = 0, nh = (fi)->fib_nh; nhsel < (fi)->fib_nhs; nh++, nhsel++)
254 if (nhp->rtnh_ifindex && nhp->rtnh_ifindex != nh->nh_oif) in dn_fib_nh_match()
259 if (gw && gw != nh->nh_gw) in dn_fib_nh_match()
337 nhp->rtnh_flags = nh->nh_flags & 0xFF; in dn_fib_dump_info()
338 nhp->rtnh_hops = nh->nh_weight - 1; in dn_fib_dump_info()
339 nhp->rtnh_ifindex = nh->nh_oif; in dn_fib_dump_info()
340 if (nh->nh_gw) in dn_fib_dump_info()
341 RTA_PUT(skb, RTA_GATEWAY, 2, &nh->nh_gw); in dn_fib_dump_info()
/linux-3.4.99/include/linux/
Dnotifier.h89 extern void srcu_init_notifier_head(struct srcu_notifier_head *nh);
115 extern int atomic_notifier_chain_register(struct atomic_notifier_head *nh,
117 extern int blocking_notifier_chain_register(struct blocking_notifier_head *nh,
119 extern int raw_notifier_chain_register(struct raw_notifier_head *nh,
121 extern int srcu_notifier_chain_register(struct srcu_notifier_head *nh,
125 struct blocking_notifier_head *nh,
128 extern int atomic_notifier_chain_unregister(struct atomic_notifier_head *nh,
130 extern int blocking_notifier_chain_unregister(struct blocking_notifier_head *nh,
132 extern int raw_notifier_chain_unregister(struct raw_notifier_head *nh,
134 extern int srcu_notifier_chain_unregister(struct srcu_notifier_head *nh,
[all …]
/linux-3.4.99/net/ipv4/
Dfib_semantics.c63 int nhsel; const struct fib_nh *nh; \
64 for (nhsel = 0, nh = (fi)->fib_nh; \
66 nh++, nhsel++)
79 int nhsel; const struct fib_nh *nh = (fi)->fib_nh; \
192 if (nh->nh_oif != onh->nh_oif || in nh_comp()
193 nh->nh_gw != onh->nh_gw || in nh_comp()
194 nh->nh_scope != onh->nh_scope || in nh_comp()
196 nh->nh_weight != onh->nh_weight || in nh_comp()
199 nh->nh_tclassid != onh->nh_tclassid || in nh_comp()
201 ((nh->nh_flags ^ onh->nh_flags) & ~RTNH_F_DEAD)) in nh_comp()
[all …]
/linux-3.4.99/arch/alpha/boot/
DMakefile13 vmlinux.nh tools/lxboot tools/bootlx tools/bootph \
18 $(obj)/bootimage: $(addprefix $(obj)/tools/,mkbb lxboot bootlx) $(obj)/vmlinux.nh
19 ( cat $(obj)/tools/lxboot $(obj)/tools/bootlx $(obj)/vmlinux.nh ) > $@
24 $(obj)/bootpfile: $(obj)/tools/bootph $(obj)/vmlinux.nh
25 cat $(obj)/tools/bootph $(obj)/vmlinux.nh > $@
32 $(obj)/bootpzfile: $(obj)/tools/bootpzh $(obj)/vmlinux.nh.gz
33 cat $(obj)/tools/bootpzh $(obj)/vmlinux.nh.gz > $@
47 $(obj)/ksize.h: $(obj)/vmlinux.nh FORCE
56 $(obj)/kzsize.h: $(obj)/vmlinux.nh.gz FORCE
75 OSFLAGS_vmlinux.nh := -v
[all …]
/linux-3.4.99/net/openvswitch/
Dactions.c138 static void set_ip_addr(struct sk_buff *skb, struct iphdr *nh, in set_ip_addr() argument
143 if (nh->protocol == IPPROTO_TCP) { in set_ip_addr()
147 } else if (nh->protocol == IPPROTO_UDP) { in set_ip_addr()
160 csum_replace4(&nh->check, *addr, new_addr); in set_ip_addr()
165 static void set_ip_ttl(struct sk_buff *skb, struct iphdr *nh, u8 new_ttl) in set_ip_ttl() argument
167 csum_replace2(&nh->check, htons(nh->ttl << 8), htons(new_ttl << 8)); in set_ip_ttl()
168 nh->ttl = new_ttl; in set_ip_ttl()
173 struct iphdr *nh; in set_ipv4() local
181 nh = ip_hdr(skb); in set_ipv4()
183 if (ipv4_key->ipv4_src != nh->saddr) in set_ipv4()
[all …]
Dflow.c133 struct ipv6hdr *nh; in parse_ipv6hdr() local
140 err = check_header(skb, nh_ofs + sizeof(*nh)); in parse_ipv6hdr()
144 nh = ipv6_hdr(skb); in parse_ipv6hdr()
145 nexthdr = nh->nexthdr; in parse_ipv6hdr()
146 payload_ofs = (u8 *)(nh + 1) - skb->data; in parse_ipv6hdr()
149 key->ip.tos = ipv6_get_dsfield(nh); in parse_ipv6hdr()
150 key->ip.ttl = nh->hop_limit; in parse_ipv6hdr()
151 key->ipv6.label = *(__be32 *)nh & htonl(IPV6_FLOWINFO_FLOWLABEL); in parse_ipv6hdr()
152 key->ipv6.addr.src = nh->saddr; in parse_ipv6hdr()
153 key->ipv6.addr.dst = nh->daddr; in parse_ipv6hdr()
[all …]
/linux-3.4.99/arch/arm/vfp/
Dvfp.h47 static inline void add128(u64 *resh, u64 *resl, u64 nh, u64 nl, u64 mh, u64 ml) in add128() argument
53 : "=r" (nl), "=r" (nh) in add128()
54 : "0" (nl), "1" (nh), "r" (ml), "r" (mh) in add128()
56 *resh = nh; in add128()
60 static inline void sub128(u64 *resh, u64 *resl, u64 nh, u64 nl, u64 mh, u64 ml) in sub128() argument
66 : "=r" (nl), "=r" (nh) in sub128()
67 : "0" (nl), "1" (nh), "r" (ml), "r" (mh) in sub128()
69 *resh = nh; in sub128()
75 u32 nh, nl, mh, ml; in mul64to128() local
82 nh = n >> 32; in mul64to128()
[all …]
/linux-3.4.99/net/ipv6/
Dxfrm6_policy.c131 const unsigned char *nh = skb_network_header(skb); in _decode_session6() local
132 u8 nexthdr = nh[IP6CB(skb)->nhoff]; in _decode_session6()
140 while (nh + offset + 1 < skb->data || in _decode_session6()
141 pskb_may_pull(skb, nh + offset + 1 - skb->data)) { in _decode_session6()
142 nh = skb_network_header(skb); in _decode_session6()
143 exthdr = (struct ipv6_opt_hdr *)(nh + offset); in _decode_session6()
153 exthdr = (struct ipv6_opt_hdr *)(nh + offset); in _decode_session6()
161 if (!onlyproto && (nh + offset + 4 < skb->data || in _decode_session6()
162 pskb_may_pull(skb, nh + offset + 4 - skb->data))) { in _decode_session6()
172 if (!onlyproto && pskb_may_pull(skb, nh + offset + 2 - skb->data)) { in _decode_session6()
[all …]
Dexthdrs.c54 const unsigned char *nh = skb_network_header(skb); in ipv6_find_tlv() local
61 hdr = (struct ipv6_opt_hdr *)(nh + offset); in ipv6_find_tlv()
71 int opttype = nh[offset]; in ipv6_find_tlv()
82 optlen = nh[offset + 1] + 2; in ipv6_find_tlv()
144 const unsigned char *nh = skb_network_header(skb); in ip6_parse_tlv() local
155 int optlen = nh[off + 1] + 2; in ip6_parse_tlv()
157 switch (nh[off]) { in ip6_parse_tlv()
169 if (curr->type == nh[off]) { in ip6_parse_tlv()
568 const unsigned char *nh = skb_network_header(skb); in ipv6_hop_ra() local
570 if (nh[optoff + 1] == 2) { in ipv6_hop_ra()
[all …]
Ddatagram.c351 const unsigned char *nh = skb_network_header(skb); in ipv6_recv_error() local
358 *(struct in6_addr *)(nh + serr->addr_offset); in ipv6_recv_error()
361 (*(__be32 *)(nh + serr->addr_offset - 24) & in ipv6_recv_error()
366 ipv6_addr_set_v4mapped(*(__be32 *)(nh + serr->addr_offset), in ipv6_recv_error()
476 unsigned char *nh = skb_network_header(skb); in datagram_recv_ctl() local
496 if (np->rxopt.bits.rxflow && (*(__be32 *)nh & IPV6_FLOWINFO_MASK)) { in datagram_recv_ctl()
497 __be32 flowinfo = *(__be32 *)nh & IPV6_FLOWINFO_MASK; in datagram_recv_ctl()
503 u8 *ptr = nh + opt->hop; in datagram_recv_ctl()
523 u8 *ptr = nh + off; in datagram_recv_ctl()
565 u8 *ptr = nh + opt->hop; in datagram_recv_ctl()
[all …]
Dmip6.c268 const unsigned char *nh = skb_network_header(skb); in mip6_destopt_offset() local
303 exthdr = (struct ipv6_opt_hdr *)(nh + offset); in mip6_destopt_offset()
405 const unsigned char *nh = skb_network_header(skb); in mip6_rthdr_offset() local
419 rt = (struct ipv6_rt_hdr *)(nh + offset); in mip6_rthdr_offset()
439 exthdr = (struct ipv6_opt_hdr *)(nh + offset); in mip6_rthdr_offset()
Dicmp.c656 int nh; in icmpv6_rcv() local
665 nh = skb_network_offset(skb); in icmpv6_rcv()
671 skb_set_network_header(skb, nh); in icmpv6_rcv()
Dreassembly.c278 const unsigned char *nh = skb_network_header(skb); in ip6_frag_queue() local
280 csum_partial(nh, (u8 *)(fhdr + 1) - nh, in ip6_frag_queue()
/linux-3.4.99/scripts/dtc/libfdt/
Dfdt_sw.c140 struct fdt_node_header *nh; in fdt_begin_node() local
145 nh = _fdt_grab_space(fdt, sizeof(*nh) + FDT_TAGALIGN(namelen)); in fdt_begin_node()
146 if (! nh) in fdt_begin_node()
149 nh->tag = cpu_to_fdt32(FDT_BEGIN_NODE); in fdt_begin_node()
150 memcpy(nh->name, name, namelen); in fdt_begin_node()
Dfdt_rw.c310 struct fdt_node_header *nh; in fdt_add_subnode_namelen() local
332 nh = _fdt_offset_ptr_w(fdt, offset); in fdt_add_subnode_namelen()
333 nodelen = sizeof(*nh) + FDT_TAGALIGN(namelen+1) + FDT_TAGSIZE; in fdt_add_subnode_namelen()
335 err = _fdt_splice_struct(fdt, nh, 0, nodelen); in fdt_add_subnode_namelen()
339 nh->tag = cpu_to_fdt32(FDT_BEGIN_NODE); in fdt_add_subnode_namelen()
340 memset(nh->name, 0, FDT_TAGALIGN(namelen+1)); in fdt_add_subnode_namelen()
341 memcpy(nh->name, name, namelen); in fdt_add_subnode_namelen()
342 endtag = (uint32_t *)((char *)nh + nodelen - FDT_TAGSIZE); in fdt_add_subnode_namelen()
Dfdt_ro.c163 const struct fdt_node_header *nh = _fdt_offset_ptr(fdt, nodeoffset); in fdt_get_name() local
171 *len = strlen(nh->name); in fdt_get_name()
173 return nh->name; in fdt_get_name()
/linux-3.4.99/drivers/devfreq/
Ddevfreq.c682 struct srcu_notifier_head *nh = opp_get_notifier(dev); in devfreq_register_opp_notifier() local
684 if (IS_ERR(nh)) in devfreq_register_opp_notifier()
685 return PTR_ERR(nh); in devfreq_register_opp_notifier()
686 return srcu_notifier_chain_register(nh, &devfreq->nb); in devfreq_register_opp_notifier()
701 struct srcu_notifier_head *nh = opp_get_notifier(dev); in devfreq_unregister_opp_notifier() local
703 if (IS_ERR(nh)) in devfreq_unregister_opp_notifier()
704 return PTR_ERR(nh); in devfreq_unregister_opp_notifier()
705 return srcu_notifier_chain_unregister(nh, &devfreq->nb); in devfreq_unregister_opp_notifier()
/linux-3.4.99/lib/mpi/
Dmpi-internal.h141 #define UDIV_QRNND_PREINV(q, r, nh, nl, d, di) \ argument
145 umul_ppmm(_q, _ql, (nh), (di)); \
146 _q += (nh); /* DI is 2**BITS_PER_MPI_LIMB too small */ \
148 sub_ddmmss(_xh, _r, (nh), (nl), _xh, _xl); \
Dlonglong.h294 #define udiv_qrnnd(q, r, nh, nl, d) \ argument
298 : "1" ((USItype)(nh)), \
527 #define udiv_qrnnd(q, r, nh, nl, d) \ argument
532 __nn.__i.__h = (nh); __nn.__i.__l = (nl); \
920 #define sdiv_qrnnd(q, r, nh, nl, d) \ argument
923 : "r" ((SItype)(nh)), "1" ((SItype)(nl)), "r" ((SItype)(d)))
1458 #define udiv_qrnnd(q, r, nh, nl, d) \ argument
1461 (q) = __MPN(udiv_w_sdiv) (&__r, nh, nl, d); \
/linux-3.4.99/arch/sh/kernel/cpu/sh2a/
Dfpu.c167 unsigned long long mh, ml, nh, nl; in denormal_muld() local
179 nh = mh; in denormal_muld()
182 if (nh) { in denormal_muld()
183 while (nh) { nh >>= 1; w++;} in denormal_muld()
/linux-3.4.99/net/ipv4/netfilter/
Dipt_rpfilter.c53 struct fib_nh *nh = &res.fi->fib_nh[ret]; in rpfilter_lookup_reverse() local
55 if (nh->nh_dev == dev) { in rpfilter_lookup_reverse()
/linux-3.4.99/net/bridge/
Dbr_netfilter.c535 const unsigned char *nh = skb_network_header(skb); in check_hbh_len() local
536 int off = raw - nh; in check_hbh_len()
546 int optlen = nh[off + 1] + 2; in check_hbh_len()
548 switch (nh[off]) { in check_hbh_len()
557 if (nh[off + 1] != 4 || (off & 3) != 2) in check_hbh_len()
559 pkt_len = ntohl(*(__be32 *) (nh + off + 2)); in check_hbh_len()
568 nh = skb_network_header(skb); in check_hbh_len()
/linux-3.4.99/net/ipv6/netfilter/
Dnf_conntrack_reasm.c211 const unsigned char *nh = skb_network_header(skb); in nf_ct_frag6_queue() local
213 csum_partial(nh, (u8 *)(fhdr + 1) - nh, in nf_ct_frag6_queue()

12