Home
last modified time | relevance | path

Searched refs:rt (Results 1 – 200 of 279) sorted by relevance

12

/linux-4.1.27/sound/usb/6fire/
Dmidi.c28 struct midi_runtime *rt = urb->context; in usb6fire_midi_out_handler() local
32 spin_lock_irqsave(&rt->out_lock, flags); in usb6fire_midi_out_handler()
34 if (rt->out) { in usb6fire_midi_out_handler()
35 ret = snd_rawmidi_transmit(rt->out, rt->out_buffer + 4, in usb6fire_midi_out_handler()
38 rt->out_buffer[1] = ret + 2; in usb6fire_midi_out_handler()
39 rt->out_buffer[3] = rt->out_serial++; in usb6fire_midi_out_handler()
48 rt->out = NULL; in usb6fire_midi_out_handler()
50 spin_unlock_irqrestore(&rt->out_lock, flags); in usb6fire_midi_out_handler()
54 struct midi_runtime *rt, u8 *data, int length) in usb6fire_midi_in_received() argument
58 spin_lock_irqsave(&rt->in_lock, flags); in usb6fire_midi_in_received()
[all …]
Dpcm.c74 static int usb6fire_pcm_set_rate(struct pcm_runtime *rt) in usb6fire_pcm_set_rate() argument
77 struct control_runtime *ctrl_rt = rt->chip->control; in usb6fire_pcm_set_rate()
82 dev_err(&rt->chip->dev->dev, in usb6fire_pcm_set_rate()
84 rates[rt->rate]); in usb6fire_pcm_set_rate()
88 ret = ctrl_rt->set_rate(ctrl_rt, rt->rate); in usb6fire_pcm_set_rate()
90 dev_err(&rt->chip->dev->dev, in usb6fire_pcm_set_rate()
92 rates[rt->rate]); in usb6fire_pcm_set_rate()
99 dev_err(&rt->chip->dev->dev, in usb6fire_pcm_set_rate()
101 rates[rt->rate]); in usb6fire_pcm_set_rate()
108 dev_err(&rt->chip->dev->dev, in usb6fire_pcm_set_rate()
[all …]
Dcontrol.c64 static void usb6fire_control_output_vol_update(struct control_runtime *rt) in usb6fire_control_output_vol_update() argument
66 struct comm_runtime *comm_rt = rt->chip->comm; in usb6fire_control_output_vol_update()
71 if (!(rt->ovol_updated & (1 << i))) { in usb6fire_control_output_vol_update()
73 180 - rt->output_vol[i]); in usb6fire_control_output_vol_update()
74 rt->ovol_updated |= 1 << i; in usb6fire_control_output_vol_update()
78 static void usb6fire_control_output_mute_update(struct control_runtime *rt) in usb6fire_control_output_mute_update() argument
80 struct comm_runtime *comm_rt = rt->chip->comm; in usb6fire_control_output_mute_update()
83 comm_rt->write8(comm_rt, 0x12, 0x0e, ~rt->output_mute); in usb6fire_control_output_mute_update()
86 static void usb6fire_control_input_vol_update(struct control_runtime *rt) in usb6fire_control_input_vol_update() argument
88 struct comm_runtime *comm_rt = rt->chip->comm; in usb6fire_control_input_vol_update()
[all …]
Dcomm.c25 static void usb6fire_comm_init_urb(struct comm_runtime *rt, struct urb *urb, in usb6fire_comm_init_urb() argument
30 urb->pipe = usb_sndintpipe(rt->chip->dev, COMM_EP); in usb6fire_comm_init_urb()
34 urb->dev = rt->chip->dev; in usb6fire_comm_init_urb()
39 struct comm_runtime *rt = urb->context; in usb6fire_comm_receiver_handler() local
40 struct midi_runtime *midi_rt = rt->chip->midi; in usb6fire_comm_receiver_handler()
43 if (rt->receiver_buffer[0] == 0x10) /* midi in event */ in usb6fire_comm_receiver_handler()
46 rt->receiver_buffer + 2, in usb6fire_comm_receiver_handler()
47 rt->receiver_buffer[1]); in usb6fire_comm_receiver_handler()
50 if (!rt->chip->shutdown) { in usb6fire_comm_receiver_handler()
110 static int usb6fire_comm_write8(struct comm_runtime *rt, u8 request, in usb6fire_comm_write8() argument
[all …]
Dcontrol.h34 int (*update_streaming)(struct control_runtime *rt);
35 int (*set_rate)(struct control_runtime *rt, int rate);
36 int (*set_channels)(struct control_runtime *rt, int n_analog_out,
Dcomm.h31 void (*init_urb)(struct comm_runtime *rt, struct urb *urb, u8 *buffer,
34 int (*write8)(struct comm_runtime *rt, u8 request, u8 reg, u8 value);
35 int (*write16)(struct comm_runtime *rt, u8 request, u8 reg,
Dmidi.h34 void (*in_received)(struct midi_runtime *rt, u8 *data, int length);
/linux-4.1.27/arch/mips/ralink/
Dtimer.c38 static inline void rt_timer_w32(struct rt_timer *rt, u8 reg, u32 val) in rt_timer_w32() argument
40 __raw_writel(val, rt->membase + reg); in rt_timer_w32()
43 static inline u32 rt_timer_r32(struct rt_timer *rt, u8 reg) in rt_timer_r32() argument
45 return __raw_readl(rt->membase + reg); in rt_timer_r32()
50 struct rt_timer *rt = (struct rt_timer *) _rt; in rt_timer_irq() local
52 rt_timer_w32(rt, TIMER_REG_TMR0LOAD, rt->timer_freq / rt->timer_div); in rt_timer_irq()
53 rt_timer_w32(rt, TIMER_REG_TMRSTAT, TMRSTAT_TMR0INT); in rt_timer_irq()
59 static int rt_timer_request(struct rt_timer *rt) in rt_timer_request() argument
61 int err = request_irq(rt->irq, rt_timer_irq, 0, in rt_timer_request()
62 dev_name(rt->dev), rt); in rt_timer_request()
[all …]
/linux-4.1.27/net/x25/
Dx25_route.c34 struct x25_route *rt; in x25_add_route() local
41 rt = list_entry(entry, struct x25_route, node); in x25_add_route()
43 if (!memcmp(&rt->address, address, sigdigits) && in x25_add_route()
44 rt->sigdigits == sigdigits) in x25_add_route()
48 rt = kmalloc(sizeof(*rt), GFP_ATOMIC); in x25_add_route()
50 if (!rt) in x25_add_route()
53 strcpy(rt->address.x25_addr, "000000000000000"); in x25_add_route()
54 memcpy(rt->address.x25_addr, address->x25_addr, sigdigits); in x25_add_route()
56 rt->sigdigits = sigdigits; in x25_add_route()
57 rt->dev = dev; in x25_add_route()
[all …]
Dx25_forward.c25 struct x25_route *rt; in x25_forward_call() local
33 if ((rt = x25_get_route(dest_addr)) == NULL) in x25_forward_call()
36 if ((neigh_new = x25_get_neigh(rt->dev)) == NULL) { in x25_forward_call()
46 if (rt->dev == from->dev) { in x25_forward_call()
71 new_frwd->dev1 = rt->dev; in x25_forward_call()
90 x25_route_put(rt); in x25_forward_call()
Dx25_proc.c50 struct x25_route *rt = list_entry(v, struct x25_route, node); in x25_seq_route_show() local
57 rt = v; in x25_seq_route_show()
59 rt->address.x25_addr, rt->sigdigits, in x25_seq_route_show()
60 rt->dev ? rt->dev->name : "???"); in x25_seq_route_show()
/linux-4.1.27/sound/aoa/core/
Dgpio-pmf.c15 static void pmf_gpio_set_##name(struct gpio_runtime *rt, int on)\
20 if (unlikely(!rt)) return; \
21 rc = pmf_call_function(rt->node, #name "-mute", &args); \
25 rt->implementation_private &= ~(1<<bit); \
26 rt->implementation_private |= (!!on << bit); \
28 static int pmf_gpio_get_##name(struct gpio_runtime *rt) \
30 if (unlikely(!rt)) return 0; \
31 return (rt->implementation_private>>bit)&1; \
38 static void pmf_gpio_set_hw_reset(struct gpio_runtime *rt, int on) in pmf_gpio_set_hw_reset() argument
43 if (unlikely(!rt)) return; in pmf_gpio_set_hw_reset()
[all …]
Dgpio-feature.c131 static void ftr_gpio_set_##name(struct gpio_runtime *rt, int on)\
135 if (unlikely(!rt)) return; \
150 rt->implementation_private &= ~(1<<bit); \
151 rt->implementation_private |= (!!on << bit); \
153 static int ftr_gpio_get_##name(struct gpio_runtime *rt) \
155 if (unlikely(!rt)) return 0; \
156 return (rt->implementation_private>>bit)&1; \
164 static void ftr_gpio_set_hw_reset(struct gpio_runtime *rt, int on) in ftr_gpio_set_hw_reset() argument
168 if (unlikely(!rt)) return; in ftr_gpio_set_hw_reset()
181 static void ftr_gpio_all_amps_off(struct gpio_runtime *rt) in ftr_gpio_all_amps_off() argument
[all …]
/linux-4.1.27/sound/usb/hiface/
Dpcm.c116 static int hiface_pcm_set_rate(struct pcm_runtime *rt, unsigned int rate) in hiface_pcm_set_rate() argument
118 struct usb_device *device = rt->chip->dev; in hiface_pcm_set_rate()
178 struct pcm_runtime *rt = snd_pcm_substream_chip(alsa_sub); in hiface_pcm_get_substream() local
179 struct device *device = &rt->chip->dev->dev; in hiface_pcm_get_substream()
182 return &rt->playback; in hiface_pcm_get_substream()
189 static void hiface_pcm_stream_stop(struct pcm_runtime *rt) in hiface_pcm_stream_stop() argument
193 if (rt->stream_state != STREAM_DISABLED) { in hiface_pcm_stream_stop()
194 rt->stream_state = STREAM_STOPPING; in hiface_pcm_stream_stop()
198 &rt->out_urbs[i].submitted, 100); in hiface_pcm_stream_stop()
201 &rt->out_urbs[i].submitted); in hiface_pcm_stream_stop()
[all …]
/linux-4.1.27/net/ipv6/
Droute.c95 static int rt6_score_route(struct rt6_info *rt, int oif, int strict);
107 static void rt6_bind_peer(struct rt6_info *rt, int create) in rt6_bind_peer() argument
112 base = inetpeer_base_ptr(rt->_rt6i_peer); in rt6_bind_peer()
116 peer = inet_getpeer_v6(base, &rt->rt6i_dst.addr, create); in rt6_bind_peer()
118 if (!rt6_set_peer(rt, peer)) in rt6_bind_peer()
123 static struct inet_peer *__rt6_get_peer(struct rt6_info *rt, int create) in __rt6_get_peer() argument
125 if (rt6_has_peer(rt)) in __rt6_get_peer()
126 return rt6_peer_ptr(rt); in __rt6_get_peer()
128 rt6_bind_peer(rt, create); in __rt6_get_peer()
129 return (rt6_has_peer(rt) ? rt6_peer_ptr(rt) : NULL); in __rt6_get_peer()
[all …]
Dip6_fib.c157 static void rt6_release(struct rt6_info *rt) in rt6_release() argument
159 if (atomic_dec_and_test(&rt->rt6i_ref)) in rt6_release()
160 dst_free(&rt->dst); in rt6_release()
271 struct rt6_info *rt; in fib6_dump_node() local
273 for (rt = w->leaf; rt; rt = rt->dst.rt6_next) { in fib6_dump_node()
274 res = rt6_dump_route(rt, w->args); in fib6_dump_node()
277 w->leaf = rt; in fib6_dump_node()
626 static bool rt6_qualify_for_ecmp(struct rt6_info *rt) in rt6_qualify_for_ecmp() argument
628 return (rt->rt6i_flags & (RTF_GATEWAY|RTF_ADDRCONF|RTF_DYNAMIC)) == in rt6_qualify_for_ecmp()
664 static void fib6_purge_rt(struct rt6_info *rt, struct fib6_node *fn, in fib6_purge_rt() argument
[all …]
Dfib6_rules.c54 struct rt6_info *rt = NULL; in fib6_rule_action() local
65 rt = net->ipv6.ip6_null_entry; in fib6_rule_action()
70 rt = net->ipv6.ip6_blk_hole_entry; in fib6_rule_action()
74 rt = net->ipv6.ip6_prohibit_entry; in fib6_rule_action()
84 rt = lookup(net, table, flp6, flags); in fib6_rule_action()
85 if (rt != net->ipv6.ip6_null_entry) { in fib6_rule_action()
97 ip6_dst_idev(&rt->dst)->dev, in fib6_rule_action()
107 err = rt->dst.error; in fib6_rule_action()
111 ip6_rt_put(rt); in fib6_rule_action()
113 rt = NULL; in fib6_rule_action()
[all …]
Dip6_output.c452 struct rt6_info *rt; in ip6_forward() local
459 rt = (struct rt6_info *) dst; in ip6_forward()
460 if (rt->rt6i_flags & RTF_GATEWAY) in ip6_forward()
461 target = &rt->rt6i_gateway; in ip6_forward()
465 peer = inet_getpeer_v6(net->ipv6.peers, &rt->rt6i_dst.addr, 1); in ip6_forward()
550 struct rt6_info *rt = (struct rt6_info *)skb_dst(skb); in ip6_fragment() local
638 ipv6_select_ident(net, fh, rt); in ip6_fragment()
650 dst_hold(&rt->dst); in ip6_fragment()
678 IP6_INC_STATS(net, ip6_dst_idev(&rt->dst), in ip6_fragment()
692 IP6_INC_STATS(net, ip6_dst_idev(&rt->dst), in ip6_fragment()
[all …]
Dxfrm6_policy.c76 struct rt6_info *rt = (struct rt6_info *)xdst; in xfrm6_init_dst() local
78 rt6_init_peer(rt, net->ipv6.peers); in xfrm6_init_dst()
85 struct rt6_info *rt = (struct rt6_info *)dst; in xfrm6_init_path() local
86 if (rt->rt6i_node) in xfrm6_init_path()
87 path->path_cookie = rt->rt6i_node->fn_sernum; in xfrm6_init_path()
98 struct rt6_info *rt = (struct rt6_info *)xdst->route; in xfrm6_fill_dst() local
109 rt6_transfer_peer(&xdst->u.rt6, rt); in xfrm6_fill_dst()
113 xdst->u.rt6.rt6i_flags = rt->rt6i_flags & (RTF_ANYCAST | in xfrm6_fill_dst()
115 xdst->u.rt6.rt6i_metric = rt->rt6i_metric; in xfrm6_fill_dst()
116 xdst->u.rt6.rt6i_node = rt->rt6i_node; in xfrm6_fill_dst()
[all …]
Danycast.c79 struct rt6_info *rt; in ipv6_sock_ac_join() local
81 rt = rt6_lookup(net, addr, NULL, 0, 0); in ipv6_sock_ac_join()
82 if (rt) { in ipv6_sock_ac_join()
83 dev = rt->dst.dev; in ipv6_sock_ac_join()
84 ip6_rt_put(rt); in ipv6_sock_ac_join()
218 static struct ifacaddr6 *aca_alloc(struct rt6_info *rt, in aca_alloc() argument
221 struct inet6_dev *idev = rt->rt6i_idev; in aca_alloc()
231 aca->aca_rt = rt; in aca_alloc()
246 struct rt6_info *rt; in __ipv6_dev_ac_inc() local
265 rt = addrconf_dst_alloc(idev, addr, true); in __ipv6_dev_ac_inc()
[all …]
Dndisc.c1072 struct rt6_info *rt = NULL; in ndisc_router_discovery() local
1183 rt = rt6_get_dflt_router(&ipv6_hdr(skb)->saddr, skb->dev); in ndisc_router_discovery()
1185 if (rt) { in ndisc_router_discovery()
1186 neigh = dst_neigh_lookup(&rt->dst, &ipv6_hdr(skb)->saddr); in ndisc_router_discovery()
1191 ip6_rt_put(rt); in ndisc_router_discovery()
1195 if (rt && lifetime == 0) { in ndisc_router_discovery()
1196 ip6_del_rt(rt); in ndisc_router_discovery()
1197 rt = NULL; in ndisc_router_discovery()
1201 rt, lifetime, skb->dev->name); in ndisc_router_discovery()
1202 if (!rt && lifetime) { in ndisc_router_discovery()
[all …]
Dip6_tunnel.c153 struct rt6_info *rt = (struct rt6_info *) dst; in ip6_tnl_dst_store() local
154 t->dst_cookie = rt->rt6i_node ? rt->rt6i_node->fn_sernum : 0; in ip6_tnl_dst_store()
578 struct rtable *rt; in ip4ip6_err() local
623 rt = ip_route_output_ports(dev_net(skb->dev), &fl4, NULL, in ip4ip6_err()
627 if (IS_ERR(rt)) in ip4ip6_err()
630 skb2->dev = rt->dst.dev; in ip4ip6_err()
633 if (rt->rt_flags & RTCF_LOCAL) { in ip4ip6_err()
634 ip_rt_put(rt); in ip4ip6_err()
635 rt = NULL; in ip4ip6_err()
636 rt = ip_route_output_ports(dev_net(skb->dev), &fl4, NULL, in ip4ip6_err()
[all …]
Dsit.c488 struct rt6_info *rt; in ipip6_err_gen_icmpv6_unreach() local
503 rt = rt6_lookup(dev_net(skb->dev), &ipv6_hdr(skb2)->saddr, NULL, 0, 0); in ipip6_err_gen_icmpv6_unreach()
505 if (rt && rt->dst.dev) in ipip6_err_gen_icmpv6_unreach()
506 skb2->dev = rt->dst.dev; in ipip6_err_gen_icmpv6_unreach()
510 if (rt) in ipip6_err_gen_icmpv6_unreach()
511 ip6_rt_put(rt); in ipip6_err_gen_icmpv6_unreach()
814 struct rtable *rt; /* Route to the other host */ in ipip6_tunnel_xmit() local
893 rt = ip_route_output_ports(tunnel->net, &fl4, NULL, in ipip6_tunnel_xmit()
898 if (IS_ERR(rt)) { in ipip6_tunnel_xmit()
902 if (rt->rt_type != RTN_UNICAST) { in ipip6_tunnel_xmit()
[all …]
Doutput_core.c64 struct rt6_info *rt) in ipv6_select_ident() argument
71 id = __ipv6_select_ident(net, ip6_idents_hashrnd, &rt->rt6i_dst.addr, in ipv6_select_ident()
72 &rt->rt6i_src.addr); in ipv6_select_ident()
Dping.c92 struct rt6_info *rt; in ping_v6_sendmsg() local
150 rt = (struct rt6_info *) dst; in ping_v6_sendmsg()
175 np->tclass, NULL, &fl6, rt, in ping_v6_sendmsg()
179 ICMP6_INC_STATS(sock_net(sk), rt->rt6i_idev, in ping_v6_sendmsg()
Daddrconf.c795 ip6_rt_put(ifp->rt); in inet6_ifa_finish_destroy()
833 struct rt6_info *rt; in ipv6_add_addr() local
872 rt = addrconf_dst_alloc(idev, addr, false); in ipv6_add_addr()
873 if (IS_ERR(rt)) { in ipv6_add_addr()
874 err = PTR_ERR(rt); in ipv6_add_addr()
895 ifa->rt = rt; in ipv6_add_addr()
999 struct rt6_info *rt; in cleanup_prefix_route() local
1001 rt = addrconf_get_prefix_route(&ifp->addr, in cleanup_prefix_route()
1005 if (rt) { in cleanup_prefix_route()
1007 ip6_del_rt(rt); in cleanup_prefix_route()
[all …]
Draw.c619 struct rt6_info *rt = (struct rt6_info *)*dstp; in rawv6_send_hdrinc() local
620 int hlen = LL_RESERVED_SPACE(rt->dst.dev); in rawv6_send_hdrinc()
621 int tlen = rt->dst.dev->needed_tailroom; in rawv6_send_hdrinc()
623 if (length > rt->dst.dev->mtu) { in rawv6_send_hdrinc()
624 ipv6_local_error(sk, EMSGSIZE, fl6, rt->dst.dev->mtu); in rawv6_send_hdrinc()
640 skb_dst_set(skb, &rt->dst); in rawv6_send_hdrinc()
654 IP6_UPD_PO_STATS(sock_net(sk), rt->rt6i_idev, IPSTATS_MIB_OUT, skb->len); in rawv6_send_hdrinc()
656 NULL, rt->dst.dev, dst_output_sk); in rawv6_send_hdrinc()
668 IP6_INC_STATS(sock_net(sk), rt->rt6i_idev, IPSTATS_MIB_OUTDISCARDS); in rawv6_send_hdrinc()
Dmip6.c420 struct ipv6_rt_hdr *rt; in mip6_rthdr_offset() local
421 rt = (struct ipv6_rt_hdr *)(nh + offset); in mip6_rthdr_offset()
422 if (rt->type != 0) in mip6_rthdr_offset()
Dicmp.c199 struct rt6_info *rt = (struct rt6_info *)dst; in icmpv6_xrlim_allow() local
203 if (rt->rt6i_dst.plen < 128) in icmpv6_xrlim_allow()
204 tmo >>= ((128 - rt->rt6i_dst.plen)>>5); in icmpv6_xrlim_allow()
210 &rt->rt6i_dst.addr, 1); in icmpv6_xrlim_allow()
/linux-4.1.27/drivers/net/appletalk/
Dipddp.c55 static int ipddp_delete(struct ipddp_route *rt);
56 static struct ipddp_route* __ipddp_find_route(struct ipddp_route *rt);
122 struct ipddp_route *rt; in ipddp_xmit() local
130 for(rt = ipddp_route_list; rt != NULL; rt = rt->next) in ipddp_xmit()
132 if(rt->ip == paddr) in ipddp_xmit()
135 if(rt == NULL) { in ipddp_xmit()
140 our_addr = atalk_find_dev_addr(rt->dev); in ipddp_xmit()
159 if(rt->dev->type == ARPHRD_LOCALTLK) in ipddp_xmit()
166 ddp->deh_dnet = rt->at.s_net; /* FIXME more hops?? */ in ipddp_xmit()
169 ddp->deh_dnode = rt->at.s_node; in ipddp_xmit()
[all …]
/linux-4.1.27/net/decnet/
Ddn_route.c156 struct dn_route *rt = (struct dn_route *) dst; in dn_dst_destroy() local
158 if (rt->n) in dn_dst_destroy()
159 neigh_release(rt->n); in dn_dst_destroy()
166 struct dn_route *rt = (struct dn_route *) dst; in dn_dst_ifdown() local
167 struct neighbour *n = rt->n; in dn_dst_ifdown()
186 static inline void dnrt_free(struct dn_route *rt) in dnrt_free() argument
188 call_rcu_bh(&rt->dst.rcu_head, dst_rcu_free); in dnrt_free()
191 static inline void dnrt_drop(struct dn_route *rt) in dnrt_drop() argument
193 dst_release(&rt->dst); in dnrt_drop()
194 call_rcu_bh(&rt->dst.rcu_head, dst_rcu_free); in dnrt_drop()
[all …]
Ddn_neigh.c175 struct dn_route *rt = (struct dn_route *)dst; in dn_neigh_output() local
181 dn_dn2eth(mac_addr, rt->rt_local_src); in dn_neigh_output()
200 struct dn_route *rt = (struct dn_route *)dst; in dn_neigh_output_packet() local
201 struct neighbour *neigh = rt->n; in dn_neigh_output_packet()
337 struct dn_route *rt = (struct dn_route *) dst; in dn_to_neigh_output() local
338 struct neighbour *neigh = rt->n; in dn_to_neigh_output()
/linux-4.1.27/include/net/
Dip6_fib.h132 static inline struct inet_peer *rt6_peer_ptr(struct rt6_info *rt) in rt6_peer_ptr() argument
134 return inetpeer_ptr(rt->_rt6i_peer); in rt6_peer_ptr()
137 static inline bool rt6_has_peer(struct rt6_info *rt) in rt6_has_peer() argument
139 return inetpeer_ptr_is_peer(rt->_rt6i_peer); in rt6_has_peer()
142 static inline void __rt6_set_peer(struct rt6_info *rt, struct inet_peer *peer) in __rt6_set_peer() argument
144 __inetpeer_ptr_set_peer(&rt->_rt6i_peer, peer); in __rt6_set_peer()
147 static inline bool rt6_set_peer(struct rt6_info *rt, struct inet_peer *peer) in rt6_set_peer() argument
149 return inetpeer_ptr_set_peer(&rt->_rt6i_peer, peer); in rt6_set_peer()
152 static inline void rt6_init_peer(struct rt6_info *rt, struct inet_peer_base *base) in rt6_init_peer() argument
154 inetpeer_init_ptr(&rt->_rt6i_peer, base); in rt6_init_peer()
[all …]
Droute.h71 static inline bool rt_is_input_route(const struct rtable *rt) in rt_is_input_route() argument
73 return rt->rt_is_input != 0; in rt_is_input_route()
76 static inline bool rt_is_output_route(const struct rtable *rt) in rt_is_output_route() argument
78 return rt->rt_is_input == 0; in rt_is_output_route()
81 static inline __be32 rt_nexthop(const struct rtable *rt, __be32 daddr) in rt_nexthop() argument
83 if (rt->rt_gateway) in rt_nexthop()
84 return rt->rt_gateway; in rt_nexthop()
195 void ip_rt_get_source(u8 *src, struct sk_buff *skb, struct rtable *rt);
201 static inline void ip_rt_put(struct rtable *rt) in ip_rt_put() argument
207 dst_release(&rt->dst); in ip_rt_put()
[all …]
Dip6_route.h89 int ip6_route_get_saddr(struct net *net, struct rt6_info *rt,
134 int rt6_dump_route(struct rt6_info *rt, void *p_arg);
149 struct rt6_info *rt = (struct rt6_info *) dst; in __ip6_dst_store() local
156 np->dst_cookie = rt->rt6i_node ? rt->rt6i_node->fn_sernum : 0; in __ip6_dst_store()
169 struct rt6_info *rt = (struct rt6_info *) skb_dst(skb); in ipv6_unicast_destination() local
171 return rt->rt6i_flags & RTF_LOCAL; in ipv6_unicast_destination()
176 struct rt6_info *rt = (struct rt6_info *) skb_dst(skb); in ipv6_anycast_destination() local
178 return rt->rt6i_flags & RTF_ANYCAST; in ipv6_anycast_destination()
205 static inline struct in6_addr *rt6_nexthop(struct rt6_info *rt) in rt6_nexthop() argument
207 return &rt->rt6i_gateway; in rt6_nexthop()
Ddn_route.h88 static inline bool dn_is_input_route(struct dn_route *rt) in dn_is_input_route() argument
90 return rt->fld.flowidn_iif != 0; in dn_is_input_route()
93 static inline bool dn_is_output_route(struct dn_route *rt) in dn_is_output_route() argument
95 return rt->fld.flowidn_iif == 0; in dn_is_output_route()
Dipx.h164 static __inline__ void ipxrtr_hold(struct ipx_route *rt) in ipxrtr_hold() argument
166 atomic_inc(&rt->refcnt); in ipxrtr_hold()
169 static __inline__ void ipxrtr_put(struct ipx_route *rt) in ipxrtr_put() argument
171 if (atomic_dec_and_test(&rt->refcnt)) in ipxrtr_put()
172 kfree(rt); in ipxrtr_put()
Dx25.h266 static __inline__ void x25_route_hold(struct x25_route *rt) in x25_route_hold() argument
268 atomic_inc(&rt->refcnt); in x25_route_hold()
271 static __inline__ void x25_route_put(struct x25_route *rt) in x25_route_put() argument
273 if (atomic_dec_and_test(&rt->refcnt)) in x25_route_put()
274 kfree(rt); in x25_route_put()
Dgeneve.h89 int geneve_xmit_skb(struct geneve_sock *gs, struct rtable *rt,
Dudp_tunnel.h80 int udp_tunnel_xmit_skb(struct rtable *rt, struct sock *sk, struct sk_buff *skb,
Dvxlan.h148 int vxlan_xmit_skb(struct rtable *rt, struct sock *sk, struct sk_buff *skb,
/linux-4.1.27/arch/mips/include/asm/
Duasm.h200 # define UASM_i_ADDIU(buf, rs, rt, val) uasm_i_daddiu(buf, rs, rt, val) argument
201 # define UASM_i_ADDU(buf, rs, rt, rd) uasm_i_daddu(buf, rs, rt, rd) argument
202 # define UASM_i_LL(buf, rs, rt, off) uasm_i_lld(buf, rs, rt, off) argument
203 # define UASM_i_LW(buf, rs, rt, off) uasm_i_ld(buf, rs, rt, off) argument
204 # define UASM_i_LWX(buf, rs, rt, rd) uasm_i_ldx(buf, rs, rt, rd) argument
205 # define UASM_i_MFC0(buf, rt, rd...) uasm_i_dmfc0(buf, rt, rd) argument
206 # define UASM_i_MTC0(buf, rt, rd...) uasm_i_dmtc0(buf, rt, rd) argument
207 # define UASM_i_ROTR(buf, rs, rt, sh) uasm_i_drotr(buf, rs, rt, sh) argument
208 # define UASM_i_SC(buf, rs, rt, off) uasm_i_scd(buf, rs, rt, off) argument
209 # define UASM_i_SLL(buf, rs, rt, sh) uasm_i_dsll(buf, rs, rt, sh) argument
[all …]
Dasm.h178 #define MOVN(rd, rs, rt) \ argument
181 beqz rt, 9f; \
185 #define MOVZ(rd, rs, rt) \ argument
188 bnez rt, 9f; \
194 #define MOVN(rd, rs, rt) \ argument
197 bnezl rt, 9f; \
201 #define MOVZ(rd, rs, rt) \ argument
204 beqzl rt, 9f; \
211 #define MOVN(rd, rs, rt) \ argument
212 movn rd, rs, rt
[all …]
Dmipsmtregs.h284 #define mftc0(rt,sel) \ argument
292 " # mftc0 $1, $" #rt ", " #sel " \n" \
293 " .word 0x41000800 | (" #rt " << 16) | " #sel " \n" \
301 #define mftgpr(rt) \ argument
309 " # mftgpr $1," #rt " \n" \
310 " .word 0x41000820 | (" #rt " << 16) \n" \
318 #define mftr(rt, u, sel) \ argument
323 " mftr %0, " #rt ", " #u ", " #sel " \n" \
Dasmmacro.h205 .macro MFTR rt=0, rd=0, u=0, sel=0
206 .word 0x41000000 | (\rt << 16) | (\rd << 11) | (\u << 5) | (\sel)
209 .macro MTTR rt=0, rd=0, u=0, sel=0
210 .word 0x41800000 | (\rt << 16) | (\rd << 11) | (\u << 5) | (\sel)
/linux-4.1.27/sound/aoa/
Daoa-gpio.h26 void (*init)(struct gpio_runtime *rt);
27 void (*exit)(struct gpio_runtime *rt);
30 void (*all_amps_off)(struct gpio_runtime *rt);
32 void (*all_amps_restore)(struct gpio_runtime *rt);
34 void (*set_headphone)(struct gpio_runtime *rt, int on);
35 void (*set_speakers)(struct gpio_runtime *rt, int on);
36 void (*set_lineout)(struct gpio_runtime *rt, int on);
37 void (*set_master)(struct gpio_runtime *rt, int on);
39 int (*get_headphone)(struct gpio_runtime *rt);
40 int (*get_speakers)(struct gpio_runtime *rt);
[all …]
/linux-4.1.27/arch/mips/cavium-octeon/crypto/
Docteon-crypto.h36 : [rt] "d" (cpu_to_be64(value))); \
48 : [rt] "=d" (__value) \
62 : [rt] "d" (cpu_to_be64(value))); \
73 : [rt] "d" (cpu_to_be64(value))); \
84 : [rt] "d" (value)); \
95 : [rt] "d" (value)); \
110 : [rt] "d" (value)); \
122 : [rt] "=d" (__value) \
136 : [rt] "d" (value)); \
147 : [rt] "d" (value)); \
[all …]
/linux-4.1.27/net/ipx/
Dipx_route.c51 struct ipx_route *rt; in ipxrtr_add_route() local
55 rt = ipxrtr_lookup(network); in ipxrtr_add_route()
56 if (!rt) { in ipxrtr_add_route()
57 rt = kmalloc(sizeof(*rt), GFP_ATOMIC); in ipxrtr_add_route()
59 if (!rt) in ipxrtr_add_route()
62 atomic_set(&rt->refcnt, 1); in ipxrtr_add_route()
63 ipxrtr_hold(rt); in ipxrtr_add_route()
65 list_add(&rt->node, &ipx_routes); in ipxrtr_add_route()
73 rt->ir_net = network; in ipxrtr_add_route()
74 rt->ir_intrfc = intrfc; in ipxrtr_add_route()
[all …]
Dipx_proc.c81 struct ipx_route *rt; in ipx_seq_route_show() local
88 rt = list_entry(v, struct ipx_route, node); in ipx_seq_route_show()
90 seq_printf(seq, "%08X ", ntohl(rt->ir_net)); in ipx_seq_route_show()
91 if (rt->ir_routed) in ipx_seq_route_show()
93 ntohl(rt->ir_intrfc->if_netnum), in ipx_seq_route_show()
94 rt->ir_router_node[0], rt->ir_router_node[1], in ipx_seq_route_show()
95 rt->ir_router_node[2], rt->ir_router_node[3], in ipx_seq_route_show()
96 rt->ir_router_node[4], rt->ir_router_node[5]); in ipx_seq_route_show()
/linux-4.1.27/net/sunrpc/
Dtimer.c34 void rpc_init_rtt(struct rpc_rtt *rt, unsigned long timeo) in rpc_init_rtt() argument
39 rt->timeo = timeo; in rpc_init_rtt()
44 rt->srtt[i] = init; in rpc_init_rtt()
45 rt->sdrtt[i] = RPC_RTO_INIT; in rpc_init_rtt()
46 rt->ntimeouts[i] = 0; in rpc_init_rtt()
60 void rpc_update_rtt(struct rpc_rtt *rt, unsigned int timer, long m) in rpc_update_rtt() argument
74 srtt = (long *)&rt->srtt[timer]; in rpc_update_rtt()
81 sdrtt = (long *)&rt->sdrtt[timer]; in rpc_update_rtt()
109 unsigned long rpc_calc_rto(struct rpc_rtt *rt, unsigned int timer) in rpc_calc_rto() argument
114 return rt->timeo; in rpc_calc_rto()
[all …]
/linux-4.1.27/net/ipv4/
Droute.c445 const struct rtable *rt; in ipv4_neigh_lookup() local
448 rt = (const struct rtable *) dst; in ipv4_neigh_lookup()
449 if (rt->rt_gateway) in ipv4_neigh_lookup()
450 pkey = (const __be32 *) &rt->rt_gateway; in ipv4_neigh_lookup()
560 static inline void rt_free(struct rtable *rt) in rt_free() argument
562 call_rcu(&rt->dst.rcu_head, dst_rcu_free); in rt_free()
569 struct rtable *rt; in fnhe_flush_routes() local
571 rt = rcu_dereference(fnhe->fnhe_rth_input); in fnhe_flush_routes()
572 if (rt) { in fnhe_flush_routes()
574 rt_free(rt); in fnhe_flush_routes()
[all …]
Dicmp.c288 static bool icmpv4_xrlim_allow(struct net *net, struct rtable *rt, in icmpv4_xrlim_allow() argument
291 struct dst_entry *dst = &rt->dst; in icmpv4_xrlim_allow()
354 struct ipcm_cookie *ipc, struct rtable **rt) in icmp_push_reply() argument
359 sk = icmp_sk(dev_net((*rt)->dst.dev)); in icmp_push_reply()
363 ipc, rt, MSG_DONTWAIT) < 0) { in icmp_push_reply()
390 struct rtable *rt = skb_rtable(skb); in icmp_reply() local
391 struct net *net = dev_net(rt->dst.dev); in icmp_reply()
429 rt = ip_route_output_key(net, &fl4); in icmp_reply()
430 if (IS_ERR(rt)) in icmp_reply()
432 if (icmpv4_xrlim_allow(net, rt, &fl4, icmp_param->data.icmph.type, in icmp_reply()
[all …]
Ddatagram.c28 struct rtable *rt; in __ip4_datagram_connect() local
51 rt = ip_route_connect(fl4, usin->sin_addr.s_addr, saddr, in __ip4_datagram_connect()
55 if (IS_ERR(rt)) { in __ip4_datagram_connect()
56 err = PTR_ERR(rt); in __ip4_datagram_connect()
62 if ((rt->rt_flags & RTCF_BROADCAST) && !sock_flag(sk, SOCK_BROADCAST)) { in __ip4_datagram_connect()
63 ip_rt_put(rt); in __ip4_datagram_connect()
80 sk_dst_set(sk, &rt->dst); in __ip4_datagram_connect()
109 struct rtable *rt; in ip4_datagram_release_cb() local
121 rt = ip_route_output_ports(sock_net(sk), &fl4, sk, daddr, in ip4_datagram_release_cb()
126 dst = !IS_ERR(rt) ? &rt->dst : NULL; in ip4_datagram_release_cb()
Dxfrm4_policy.c26 struct rtable *rt; in __xfrm4_dst_lookup() local
34 rt = __ip_route_output_key(net, fl4); in __xfrm4_dst_lookup()
35 if (!IS_ERR(rt)) in __xfrm4_dst_lookup()
36 return &rt->dst; in __xfrm4_dst_lookup()
38 return ERR_CAST(rt); in __xfrm4_dst_lookup()
79 struct rtable *rt = (struct rtable *)xdst->route; in xfrm4_fill_dst() local
82 xdst->u.rt.rt_iif = fl4->flowi4_iif; in xfrm4_fill_dst()
89 xdst->u.rt.rt_is_input = rt->rt_is_input; in xfrm4_fill_dst()
90 xdst->u.rt.rt_flags = rt->rt_flags & (RTCF_BROADCAST | RTCF_MULTICAST | in xfrm4_fill_dst()
92 xdst->u.rt.rt_type = rt->rt_type; in xfrm4_fill_dst()
[all …]
Dip_output.c138 struct rtable *rt = skb_rtable(skb); in ip_build_and_send_pkt() local
148 if (ip_dont_fragment(sk, &rt->dst)) in ip_build_and_send_pkt()
152 iph->ttl = ip_select_ttl(inet, &rt->dst); in ip_build_and_send_pkt()
160 ip_options_build(skb, &opt->opt, daddr, rt, 0); in ip_build_and_send_pkt()
174 struct rtable *rt = (struct rtable *)dst; in ip_finish_output2() local
180 if (rt->rt_type == RTN_MULTICAST) { in ip_finish_output2()
182 } else if (rt->rt_type == RTN_BROADCAST) in ip_finish_output2()
201 nexthop = (__force u32) rt_nexthop(rt, ip_hdr(skb)->daddr); in ip_finish_output2()
282 struct rtable *rt = skb_rtable(skb); in ip_mc_output() local
283 struct net_device *dev = rt->dst.dev; in ip_mc_output()
[all …]
Dip_forward.c78 struct rtable *rt; /* Route we use */ in ip_forward() local
110 rt = skb_rtable(skb); in ip_forward()
112 if (opt->is_strictroute && rt->rt_uses_gateway) in ip_forward()
116 mtu = ip_dst_mtu_maybe_forward(&rt->dst, true); in ip_forward()
118 IP_INC_STATS(dev_net(rt->dst.dev), IPSTATS_MIB_FRAGFAILS); in ip_forward()
125 if (skb_cow(skb, LL_RESERVED_SPACE(rt->dst.dev)+rt->dst.header_len)) in ip_forward()
143 skb->dev, rt->dst.dev, ip_forward_finish); in ip_forward()
Dnetfilter.c24 struct rtable *rt; in ip_route_me_harder() local
46 rt = ip_route_output_key(net, &fl4); in ip_route_me_harder()
47 if (IS_ERR(rt)) in ip_route_me_harder()
48 return PTR_ERR(rt); in ip_route_me_harder()
52 skb_dst_set(skb, &rt->dst); in ip_route_me_harder()
179 struct rtable *rt = ip_route_output_key(net, &fl->u.ip4); in nf_ip_route() local
180 if (IS_ERR(rt)) in nf_ip_route()
181 return PTR_ERR(rt); in nf_ip_route()
182 *dst = &rt->dst; in nf_ip_route()
Dfib_frontend.c259 struct rtable *rt; in fib_compute_spec_dst() local
264 rt = skb_rtable(skb); in fib_compute_spec_dst()
265 if ((rt->rt_flags & (RTCF_BROADCAST | RTCF_MULTICAST | RTCF_LOCAL)) == in fib_compute_spec_dst()
408 static int rtentry_to_fib_config(struct net *net, int cmd, struct rtentry *rt, in rtentry_to_fib_config() argument
417 if (rt->rt_dst.sa_family != AF_INET) in rtentry_to_fib_config()
429 addr = sk_extract_addr(&rt->rt_dst); in rtentry_to_fib_config()
430 if (!(rt->rt_flags & RTF_HOST)) { in rtentry_to_fib_config()
431 __be32 mask = sk_extract_addr(&rt->rt_genmask); in rtentry_to_fib_config()
433 if (rt->rt_genmask.sa_family != AF_INET) { in rtentry_to_fib_config()
434 if (mask || rt->rt_genmask.sa_family) in rtentry_to_fib_config()
[all …]
Darp.c391 struct rtable *rt; in arp_filter() local
396 rt = ip_route_output(net, sip, tip, 0, 0); in arp_filter()
397 if (IS_ERR(rt)) in arp_filter()
399 if (rt->dst.dev != dev) { in arp_filter()
403 ip_rt_put(rt); in arp_filter()
411 struct net_device *dev, struct rtable *rt) in arp_fwd_proxy() argument
416 if (rt->dst.dev == dev) in arp_fwd_proxy()
429 out_dev = __in_dev_get_rcu(rt->dst.dev); in arp_fwd_proxy()
456 struct net_device *dev, struct rtable *rt, in arp_fwd_pvlan() argument
460 if (rt->dst.dev != dev) in arp_fwd_pvlan()
[all …]
Dip_options.c44 __be32 daddr, struct rtable *rt, int is_frag) in ip_options_build() argument
57 ip_rt_get_source(iph+opt->rr+iph[opt->rr+2]-5, skb, rt); in ip_options_build()
59 ip_rt_get_source(iph+opt->ts+iph[opt->ts+2]-9, skb, rt); in ip_options_build()
262 struct rtable *rt = NULL; in ip_options_compile() local
268 rt = skb_rtable(skb); in ip_options_compile()
344 if (rt) { in ip_options_compile()
385 if (rt) { in ip_options_compile()
564 struct rtable *rt = skb_rtable(skb); in ip_forward_options() local
569 ip_rt_get_source(&optptr[optptr[2]-5], skb, rt); in ip_forward_options()
589 ip_rt_get_source(&optptr[srrptr-1], skb, rt); in ip_forward_options()
[all …]
Dip_tunnel.c369 struct rtable *rt; in ip_tunnel_bind_dev() local
374 rt = ip_route_output_key(tunnel->net, &fl4); in ip_tunnel_bind_dev()
376 if (!IS_ERR(rt)) { in ip_tunnel_bind_dev()
377 tdev = rt->dst.dev; in ip_tunnel_bind_dev()
378 tunnel_dst_set(tunnel, &rt->dst, fl4.saddr); in ip_tunnel_bind_dev()
379 ip_rt_put(rt); in ip_tunnel_bind_dev()
589 struct rtable *rt, __be16 df, in tnl_update_pmtu() argument
597 mtu = dst_mtu(&rt->dst) - dev->hard_header_len in tnl_update_pmtu()
646 struct rtable *rt; /* Route to the other host */ in ip_tunnel_xmit() local
665 rt = skb_rtable(skb); in ip_tunnel_xmit()
[all …]
Dinet_connection_sock.c409 struct rtable *rt; in inet_csk_route_req() local
418 rt = ip_route_output_flow(net, fl4, sk); in inet_csk_route_req()
419 if (IS_ERR(rt)) in inet_csk_route_req()
421 if (opt && opt->opt.is_strictroute && rt->rt_uses_gateway) in inet_csk_route_req()
423 return &rt->dst; in inet_csk_route_req()
426 ip_rt_put(rt); in inet_csk_route_req()
442 struct rtable *rt; in inet_csk_route_child_sock() local
455 rt = ip_route_output_flow(net, fl4, sk); in inet_csk_route_child_sock()
456 if (IS_ERR(rt)) in inet_csk_route_child_sock()
458 if (opt && opt->opt.is_strictroute && rt->rt_uses_gateway) in inet_csk_route_child_sock()
[all …]
Dip_input.c316 struct rtable *rt; in ip_rcv_finish() local
359 rt = skb_rtable(skb); in ip_rcv_finish()
360 if (rt->rt_type == RTN_MULTICAST) { in ip_rcv_finish()
361 IP_UPD_PO_STATS_BH(dev_net(rt->dst.dev), IPSTATS_MIB_INMCAST, in ip_rcv_finish()
363 } else if (rt->rt_type == RTN_BROADCAST) in ip_rcv_finish()
364 IP_UPD_PO_STATS_BH(dev_net(rt->dst.dev), IPSTATS_MIB_INBCAST, in ip_rcv_finish()
Dsyncookies.c303 struct rtable *rt; in cookie_v4_check() local
377 rt = ip_route_output_key(sock_net(sk), &fl4); in cookie_v4_check()
378 if (IS_ERR(rt)) { in cookie_v4_check()
384 req->window_clamp = tp->window_clamp ? :dst_metric(&rt->dst, RTAX_WINDOW); in cookie_v4_check()
389 dst_metric(&rt->dst, RTAX_INITRWND)); in cookie_v4_check()
392 ireq->ecn_ok = cookie_ecn_ok(&tcp_opt, sock_net(sk), &rt->dst); in cookie_v4_check()
394 ret = get_cookie_sock(sk, skb, req, &rt->dst); in cookie_v4_check()
Draw.c349 struct rtable *rt = *rtp; in raw_send_hdrinc() local
352 if (length > rt->dst.dev->mtu) { in raw_send_hdrinc()
354 rt->dst.dev->mtu); in raw_send_hdrinc()
360 hlen = LL_RESERVED_SPACE(rt->dst.dev); in raw_send_hdrinc()
361 tlen = rt->dst.dev->needed_tailroom; in raw_send_hdrinc()
371 skb_dst_set(skb, &rt->dst); in raw_send_hdrinc()
415 NULL, rt->dst.dev, dst_output_sk); in raw_send_hdrinc()
487 struct rtable *rt = NULL; in raw_sendmsg() local
612 rt = ip_route_output_flow(sock_net(sk), &fl4, sk); in raw_sendmsg()
613 if (IS_ERR(rt)) { in raw_sendmsg()
[all …]
Dip_tunnel_core.c49 int iptunnel_xmit(struct sock *sk, struct rtable *rt, struct sk_buff *skb, in iptunnel_xmit() argument
60 skb_dst_set(skb, &rt->dst); in iptunnel_xmit()
77 __ip_select_ident(dev_net(rt->dst.dev), iph, in iptunnel_xmit()
Dudp_tunnel.c78 int udp_tunnel_xmit_skb(struct rtable *rt, struct sock *sk, struct sk_buff *skb, in udp_tunnel_xmit_skb() argument
95 return iptunnel_xmit(sk, rt, skb, src, dst, IPPROTO_UDP, in udp_tunnel_xmit_skb()
Dgeneve.c106 int geneve_xmit_skb(struct geneve_sock *gs, struct rtable *rt, in geneve_xmit_skb() argument
116 min_headroom = LL_RESERVED_SPACE(rt->dst.dev) + rt->dst.header_len in geneve_xmit_skb()
139 return udp_tunnel_xmit_skb(rt, gs->sock->sk, skb, src, dst, in geneve_xmit_skb()
Daf_inet.c1111 struct rtable *rt; in inet_sk_reselect_saddr() local
1122 rt = ip_route_connect(fl4, daddr, 0, RT_CONN_FLAGS(sk), in inet_sk_reselect_saddr()
1125 if (IS_ERR(rt)) in inet_sk_reselect_saddr()
1126 return PTR_ERR(rt); in inet_sk_reselect_saddr()
1128 sk_setup_caps(sk, &rt->dst); in inet_sk_reselect_saddr()
1157 struct rtable *rt = (struct rtable *)__sk_dst_check(sk, 0); in inet_sk_rebuild_header() local
1164 if (rt) in inet_sk_rebuild_header()
1175 rt = ip_route_output_ports(sock_net(sk), fl4, sk, daddr, inet->inet_saddr, in inet_sk_rebuild_header()
1179 if (!IS_ERR(rt)) { in inet_sk_rebuild_header()
1181 sk_setup_caps(sk, &rt->dst); in inet_sk_rebuild_header()
[all …]
Dping.c704 struct rtable *rt = NULL; in ping_v4_sendmsg() local
796 rt = ip_route_output_flow(net, &fl4, sk); in ping_v4_sendmsg()
797 if (IS_ERR(rt)) { in ping_v4_sendmsg()
798 err = PTR_ERR(rt); in ping_v4_sendmsg()
799 rt = NULL; in ping_v4_sendmsg()
806 if ((rt->rt_flags & RTCF_BROADCAST) && in ping_v4_sendmsg()
829 0, &ipc, &rt, msg->msg_flags); in ping_v4_sendmsg()
837 ip_rt_put(rt); in ping_v4_sendmsg()
847 dst_confirm(&rt->dst); in ping_v4_sendmsg()
Dtcp_ipv4.c149 struct rtable *rt; in tcp_v4_connect() local
171 rt = ip_route_connect(fl4, nexthop, inet->inet_saddr, in tcp_v4_connect()
175 if (IS_ERR(rt)) { in tcp_v4_connect()
176 err = PTR_ERR(rt); in tcp_v4_connect()
182 if (rt->rt_flags & (RTCF_MULTICAST | RTCF_BROADCAST)) { in tcp_v4_connect()
183 ip_rt_put(rt); in tcp_v4_connect()
204 tcp_fetch_timewait_stamp(sk, &rt->dst); in tcp_v4_connect()
227 rt = ip_route_newports(fl4, rt, orig_sport, orig_dport, in tcp_v4_connect()
229 if (IS_ERR(rt)) { in tcp_v4_connect()
230 err = PTR_ERR(rt); in tcp_v4_connect()
[all …]
Dudp.c884 struct rtable *rt = NULL; in udp_sendmsg() local
1014 rt = (struct rtable *)sk_dst_check(sk, 0); in udp_sendmsg()
1016 if (!rt) { in udp_sendmsg()
1026 rt = ip_route_output_flow(net, fl4, sk); in udp_sendmsg()
1027 if (IS_ERR(rt)) { in udp_sendmsg()
1028 err = PTR_ERR(rt); in udp_sendmsg()
1029 rt = NULL; in udp_sendmsg()
1036 if ((rt->rt_flags & RTCF_BROADCAST) && in udp_sendmsg()
1040 sk_dst_set(sk, dst_clone(&rt->dst)); in udp_sendmsg()
1054 sizeof(struct udphdr), &ipc, &rt, in udp_sendmsg()
[all …]
Dip_gre.c414 struct rtable *rt; in ipgre_open() local
416 rt = ip_route_output_gre(t->net, &fl4, in ipgre_open()
422 if (IS_ERR(rt)) in ipgre_open()
424 dev = rt->dst.dev; in ipgre_open()
425 ip_rt_put(rt); in ipgre_open()
Dfib_semantics.c145 struct rtable *rt = rcu_dereference_protected(*rtp, 1); in rt_fibinfo_free() local
147 if (!rt) in rt_fibinfo_free()
155 dst_free(&rt->dst); in rt_fibinfo_free()
194 struct rtable *rt; in rt_fibinfo_free_cpus() local
196 rt = rcu_dereference_protected(*per_cpu_ptr(rtp, cpu), 1); in rt_fibinfo_free_cpus()
197 if (rt) in rt_fibinfo_free_cpus()
198 dst_free(&rt->dst); in rt_fibinfo_free_cpus()
Dipmr.c1706 struct rtable *rt; in ipmr_queue_xmit() local
1725 rt = ip_route_output_ports(net, &fl4, NULL, in ipmr_queue_xmit()
1730 if (IS_ERR(rt)) in ipmr_queue_xmit()
1734 rt = ip_route_output_ports(net, &fl4, NULL, iph->daddr, 0, in ipmr_queue_xmit()
1738 if (IS_ERR(rt)) in ipmr_queue_xmit()
1742 dev = rt->dst.dev; in ipmr_queue_xmit()
1744 if (skb->len+encap > dst_mtu(&rt->dst) && (ntohs(iph->frag_off) & IP_DF)) { in ipmr_queue_xmit()
1751 ip_rt_put(rt); in ipmr_queue_xmit()
1755 encap += LL_RESERVED_SPACE(dev) + rt->dst.header_len; in ipmr_queue_xmit()
1758 ip_rt_put(rt); in ipmr_queue_xmit()
[all …]
Digmp.c325 struct rtable *rt; in igmpv3_newpack() local
345 rt = ip_route_output_ports(net, &fl4, NULL, IGMPV3_ALL_MCR, 0, in igmpv3_newpack()
348 if (IS_ERR(rt)) { in igmpv3_newpack()
353 skb_dst_set(skb, &rt->dst); in igmpv3_newpack()
671 struct rtable *rt; in igmp_send_report() local
686 rt = ip_route_output_ports(net, &fl4, NULL, dst, 0, in igmp_send_report()
689 if (IS_ERR(rt)) in igmp_send_report()
696 ip_rt_put(rt); in igmp_send_report()
701 skb_dst_set(skb, &rt->dst); in igmp_send_report()
1523 struct rtable *rt = ip_route_output(net, in ip_mc_find_dev() local
[all …]
/linux-4.1.27/arch/powerpc/kvm/
Demulate_loadstore.c54 int ra, rs, rt; in kvmppc_emulate_loadstore() local
67 rt = get_rt(inst); in kvmppc_emulate_loadstore()
73 emulated = kvmppc_handle_load(run, vcpu, rt, 4, 1); in kvmppc_emulate_loadstore()
77 emulated = kvmppc_handle_load(run, vcpu, rt, 1, 1); in kvmppc_emulate_loadstore()
81 emulated = kvmppc_handle_load(run, vcpu, rt, 1, 1); in kvmppc_emulate_loadstore()
105 emulated = kvmppc_handle_loads(run, vcpu, rt, 2, 1); in kvmppc_emulate_loadstore()
109 emulated = kvmppc_handle_load(run, vcpu, rt, 2, 1); in kvmppc_emulate_loadstore()
113 emulated = kvmppc_handle_load(run, vcpu, rt, 2, 1); in kvmppc_emulate_loadstore()
141 emulated = kvmppc_handle_load(run, vcpu, rt, 4, 0); in kvmppc_emulate_loadstore()
151 emulated = kvmppc_handle_load(run, vcpu, rt, 2, 0); in kvmppc_emulate_loadstore()
[all …]
Demulate.c146 static int kvmppc_emulate_mfspr(struct kvm_vcpu *vcpu, int sprn, int rt) in kvmppc_emulate_mfspr() argument
204 kvmppc_set_gpr(vcpu, rt, spr_val); in kvmppc_emulate_mfspr()
215 int rs, rt, sprn; in kvmppc_emulate_instruction() local
229 rt = get_rt(inst); in kvmppc_emulate_instruction()
261 emulated = kvmppc_emulate_mfspr(vcpu, sprn, rt); in kvmppc_emulate_instruction()
Dbook3s_emulate.c93 int rt = get_rt(inst); in kvmppc_core_emulate_op_pr() local
133 kvmppc_set_gpr(vcpu, rt, kvmppc_get_msr(vcpu)); in kvmppc_core_emulate_op_pr()
158 kvmppc_set_gpr(vcpu, rt, sr); in kvmppc_core_emulate_op_pr()
170 kvmppc_set_gpr(vcpu, rt, sr); in kvmppc_core_emulate_op_pr()
251 kvmppc_set_gpr(vcpu, rt, t); in kvmppc_core_emulate_op_pr()
262 kvmppc_set_gpr(vcpu, rt, t); in kvmppc_core_emulate_op_pr()
De500_emulate.c122 int rt = get_rt(inst); in kvmppc_core_emulate_op_e500() local
157 int type = rt & 0x3; in kvmppc_core_emulate_op_e500()
Dbooke_emulate.c58 int rt = get_rt(inst); in kvmppc_booke_emulate_op() local
91 kvmppc_set_gpr(vcpu, rt, vcpu->arch.shared->msr); in kvmppc_booke_emulate_op()
/linux-4.1.27/net/mpls/
Daf_mpls.c40 static void rtmsg_lfib(int event, u32 label, struct mpls_route *rt,
46 struct mpls_route *rt = NULL; in mpls_route_input_rcu() local
51 rt = rcu_dereference(platform_label[index]); in mpls_route_input_rcu()
53 return rt; in mpls_route_input_rcu()
66 static unsigned int mpls_rt_header_size(const struct mpls_route *rt) in mpls_rt_header_size() argument
69 return rt->rt_labels * sizeof(struct mpls_shim_hdr); in mpls_rt_header_size()
89 static bool mpls_egress(struct mpls_route *rt, struct sk_buff *skb, in mpls_egress() argument
141 struct mpls_route *rt; in mpls_forward() local
175 rt = mpls_route_input_rcu(net, dec.label); in mpls_forward()
176 if (!rt) in mpls_forward()
[all …]
/linux-4.1.27/arch/mips/kernel/
Dmips-r2-to-r6-emul.c403 s32 rt, rs; in mult_func() local
405 rt = regs->regs[MIPSInst_RT(ir)]; in mult_func()
407 res = (s64)rt * (s64)rs; in mult_func()
411 rt = res >> 32; in mult_func()
412 res = (s64)rt; in mult_func()
430 u32 rt, rs; in multu_func() local
432 rt = regs->regs[MIPSInst_RT(ir)]; in multu_func()
434 res = (u64)rt * (u64)rs; in multu_func()
435 rt = res; in multu_func()
436 regs->lo = (s64)rt; in multu_func()
[all …]
Dbranch.c78 if (insn.mm_i_format.rt != 0) /* Not mm_jr */ in __mm_isBranchInstr()
79 regs->regs[insn.mm_i_format.rt] = in __mm_isBranchInstr()
89 switch (insn.mm_i_format.rt) { in __mm_isBranchInstr()
172 switch (insn.mm_i_format.rt) { in __mm_isBranchInstr()
207 regs->regs[insn.mm_i_format.rt]) in __mm_isBranchInstr()
218 regs->regs[insn.mm_i_format.rt]) in __mm_isBranchInstr()
446 switch (insn.i_format.rt) { in __compute_return_epc_for_insn()
453 if (insn.i_format.rt == bltzl_op) in __compute_return_epc_for_insn()
466 if (insn.i_format.rt == bgezl_op) in __compute_return_epc_for_insn()
476 insn.i_format.rt == bltzall_op)) { in __compute_return_epc_for_insn()
[all …]
Drtlx.c284 struct rtlx_channel *rt; in rtlx_write() local
292 rt = &rtlx->channel[index]; in rtlx_write()
296 rt_read = rt->rt_read; in rtlx_write()
299 count = min_t(size_t, count, write_spacefree(rt_read, rt->rt_write, in rtlx_write()
300 rt->buffer_size)); in rtlx_write()
303 fl = min(count, (size_t) rt->buffer_size - rt->rt_write); in rtlx_write()
305 failed = copy_from_user(rt->rt_buffer + rt->rt_write, buffer, fl); in rtlx_write()
311 failed = copy_from_user(rt->rt_buffer, buffer + fl, count - fl); in rtlx_write()
317 rt->rt_write = (rt->rt_write + count) % rt->buffer_size; in rtlx_write()
Dunaligned.c959 regs->regs[insn.spec3_format.rt] = value; in emulate_load_store_insn()
972 regs->regs[insn.spec3_format.rt] = value; in emulate_load_store_insn()
985 regs->regs[insn.spec3_format.rt] = value; in emulate_load_store_insn()
993 value = regs->regs[insn.spec3_format.rt]; in emulate_load_store_insn()
1006 value = regs->regs[insn.spec3_format.rt]; in emulate_load_store_insn()
1036 regs->regs[insn.i_format.rt] = value; in emulate_load_store_insn()
1055 regs->regs[insn.i_format.rt] = value; in emulate_load_store_insn()
1074 regs->regs[insn.i_format.rt] = value; in emulate_load_store_insn()
1093 regs->regs[insn.i_format.rt] = value; in emulate_load_store_insn()
1116 regs->regs[insn.i_format.rt] = value; in emulate_load_store_insn()
[all …]
Dprocess.c211 mmi.mm16_r5_format.rt == 31) || in is_ra_save_ins()
224 mmi.i_format.rt == 31); in is_ra_save_ins()
230 ip->i_format.rt == 31; in is_ra_save_ins()
250 (mmi.mm16_r5_format.rt & mm_jr16_op) == mm_jr16_op) || in is_jump_ins()
286 mmi.mm16_r5_format.rt == 29); in is_sp_move_ins()
289 ip->mm_i_format.rt == 29 && ip->mm_i_format.rs == 29; in is_sp_move_ins()
292 if (ip->i_format.rs != 29 || ip->i_format.rt != 29) in is_sp_move_ins()
Dtraps.c620 static int simulate_rdhwr(struct pt_regs *regs, int rd, int rt) in simulate_rdhwr() argument
628 regs->regs[rt] = smp_processor_id(); in simulate_rdhwr()
631 regs->regs[rt] = min(current_cpu_data.dcache.linesz, in simulate_rdhwr()
635 regs->regs[rt] = read_c0_count(); in simulate_rdhwr()
641 regs->regs[rt] = 1; in simulate_rdhwr()
644 regs->regs[rt] = 2; in simulate_rdhwr()
648 regs->regs[rt] = ti->tp_value; in simulate_rdhwr()
659 int rt = (opcode & RT) >> 16; in simulate_rdhwr_normal() local
661 simulate_rdhwr(regs, rd, rt); in simulate_rdhwr_normal()
673 int rt = (opcode & MM_RT) >> 21; in simulate_rdhwr_mm() local
[all …]
/linux-4.1.27/include/linux/sunrpc/
Dtimer.h22 extern void rpc_init_rtt(struct rpc_rtt *rt, unsigned long timeo);
23 extern void rpc_update_rtt(struct rpc_rtt *rt, unsigned timer, long m);
24 extern unsigned long rpc_calc_rto(struct rpc_rtt *rt, unsigned timer);
26 static inline void rpc_set_timeo(struct rpc_rtt *rt, int timer, int ntimeo) in rpc_set_timeo() argument
31 t = &rt->ntimeouts[timer-1]; in rpc_set_timeo()
42 static inline int rpc_ntimeo(struct rpc_rtt *rt, int timer) in rpc_ntimeo() argument
46 return rt->ntimeouts[timer-1]; in rpc_ntimeo()
/linux-4.1.27/net/bridge/
Dbr_nf_core.c77 struct rtable *rt = &br->fake_rtable; in br_netfilter_rtable_init() local
79 atomic_set(&rt->dst.__refcnt, 1); in br_netfilter_rtable_init()
80 rt->dst.dev = br->dev; in br_netfilter_rtable_init()
81 rt->dst.path = &rt->dst; in br_netfilter_rtable_init()
82 dst_init_metrics(&rt->dst, br_dst_default_metrics, true); in br_netfilter_rtable_init()
83 rt->dst.flags = DST_NOXFRM | DST_FAKE_RTABLE; in br_netfilter_rtable_init()
84 rt->dst.ops = &fake_dst_ops; in br_netfilter_rtable_init()
Dbr_netfilter.c279 struct rtable *rt; in br_nf_pre_routing_finish_ipv6() local
287 rt = bridge_parent_rtable(nf_bridge->physindev); in br_nf_pre_routing_finish_ipv6()
288 if (!rt) { in br_nf_pre_routing_finish_ipv6()
292 skb_dst_set_noref(skb, &rt->dst); in br_nf_pre_routing_finish_ipv6()
399 struct rtable *rt; in br_nf_pre_routing_finish() local
425 rt = ip_route_output(dev_net(dev), iph->daddr, 0, in br_nf_pre_routing_finish()
427 if (!IS_ERR(rt)) { in br_nf_pre_routing_finish()
430 if (rt->dst.dev == dev) { in br_nf_pre_routing_finish()
431 skb_dst_set(skb, &rt->dst); in br_nf_pre_routing_finish()
434 ip_rt_put(rt); in br_nf_pre_routing_finish()
[all …]
/linux-4.1.27/net/netfilter/ipvs/
Dip_vs_xmit.c128 struct rtable *rt; in do_output_route4() local
137 rt = ip_route_output_key(net, &fl4); in do_output_route4()
138 if (IS_ERR(rt)) { in do_output_route4()
140 if (PTR_ERR(rt) == -EINVAL && *saddr && in do_output_route4()
149 ip_rt_put(rt); in do_output_route4()
156 return rt; in do_output_route4()
160 static inline int __ip_vs_is_local_route6(struct rt6_info *rt) in __ip_vs_is_local_route6() argument
162 return rt->dst.dev && rt->dst.dev->flags & IFF_LOOPBACK; in __ip_vs_is_local_route6()
265 struct rtable *rt; /* Route to the other host */ in __ip_vs_get_out_rt() local
272 rt = (struct rtable *) dest_dst->dst_cache; in __ip_vs_get_out_rt()
[all …]
/linux-4.1.27/drivers/media/radio/
Dradio-aimslab.c69 struct rtrack *rt = kzalloc(sizeof(struct rtrack), GFP_KERNEL); in rtrack_alloc() local
71 if (rt) in rtrack_alloc()
72 rt->curvol = 0xff; in rtrack_alloc()
73 return rt ? &rt->isa : NULL; in rtrack_alloc()
88 struct rtrack *rt = container_of(isa, struct rtrack, isa); in rtrack_set_pins() local
91 if (!v4l2_ctrl_g_ctrl(rt->isa.mute)) in rtrack_set_pins()
101 outb_p(bits, rt->isa.io); in rtrack_set_pins()
119 struct rtrack *rt = container_of(isa, struct rtrack, isa); in rtrack_s_mute_volume() local
120 int curvol = rt->curvol; in rtrack_s_mute_volume()
139 rt->curvol = vol; in rtrack_s_mute_volume()
/linux-4.1.27/net/ipv6/netfilter/
Dip6t_rpfilter.c32 struct rt6_info *rt; in rpfilter_lookup_reverse6() local
56 rt = (void *) ip6_route_lookup(dev_net(dev), &fl6, lookup_flags); in rpfilter_lookup_reverse6()
57 if (rt->dst.error) in rpfilter_lookup_reverse6()
60 if (rt->rt6i_flags & (RTF_REJECT|RTF_ANYCAST)) in rpfilter_lookup_reverse6()
63 if (rt->rt6i_flags & RTF_LOCAL) { in rpfilter_lookup_reverse6()
68 if (rt->rt6i_idev->dev == dev || (flags & XT_RPFILTER_LOOSE)) in rpfilter_lookup_reverse6()
71 ip6_rt_put(rt); in rpfilter_lookup_reverse6()
77 const struct rt6_info *rt = (const void *) skb_dst(skb); in rpfilter_is_local() local
78 return rt && (rt->rt6i_flags & RTF_LOCAL); in rpfilter_is_local()
/linux-4.1.27/kernel/sched/
Drt.c116 return container_of(rt_se, struct task_struct, rt); in rt_task_of()
172 rt_se->rt_rq = &rq->rt; in init_tg_rt_entry()
227 return container_of(rt_se, struct task_struct, rt); in rt_task_of()
232 return container_of(rt_rq, struct rq, rt); in rq_of_rt_rq()
246 return &rq->rt; in rt_rq_of_se()
264 return rq->rt.highest_prio.curr > prev->prio; in need_pull_rt_task()
322 rt_rq = &rq_of_rt_rq(rt_rq)->rt; in inc_rt_migration()
339 rt_rq = &rq_of_rt_rq(rt_rq)->rt; in dec_rt_migration()
350 return !plist_head_empty(&rq->rt.pushable_tasks); in has_pushable_tasks()
364 plist_del(&p->pushable_tasks, &rq->rt.pushable_tasks); in enqueue_pushable_task()
[all …]
DMakefile15 obj-y += idle_task.o fair.o rt.o deadline.o stop_task.o
/linux-4.1.27/net/appletalk/
Datalk_proc.c125 struct atalk_route *rt; in atalk_seq_route_show() local
133 rt = &atrtr_default; in atalk_seq_route_show()
135 ntohs(rt->gateway.s_net), rt->gateway.s_node, in atalk_seq_route_show()
136 rt->flags, rt->dev->name); in atalk_seq_route_show()
139 rt = v; in atalk_seq_route_show()
141 ntohs(rt->target.s_net), rt->target.s_node, in atalk_seq_route_show()
142 ntohs(rt->gateway.s_net), rt->gateway.s_node, in atalk_seq_route_show()
143 rt->flags, rt->dev->name); in atalk_seq_route_show()
Dddp.c505 struct atalk_route *rt; in atrtr_create() local
521 for (rt = atalk_routes; rt; rt = rt->next) { in atrtr_create()
522 if (r->rt_flags != rt->flags) in atrtr_create()
525 if (ta->sat_addr.s_net == rt->target.s_net) { in atrtr_create()
526 if (!(rt->flags & RTF_HOST)) in atrtr_create()
528 if (ta->sat_addr.s_node == rt->target.s_node) in atrtr_create()
558 if (!rt) { in atrtr_create()
559 rt = kzalloc(sizeof(*rt), GFP_ATOMIC); in atrtr_create()
562 if (!rt) in atrtr_create()
565 rt->next = atalk_routes; in atrtr_create()
[all …]
/linux-4.1.27/arch/powerpc/kernel/
Dkvm.c86 static void kvm_patch_ins_ll(u32 *inst, long addr, u32 rt) in kvm_patch_ins_ll() argument
89 kvm_patch_ins(inst, KVM_INST_LD | rt | (addr & 0x0000fffc)); in kvm_patch_ins_ll()
91 kvm_patch_ins(inst, KVM_INST_LWZ | rt | (addr & 0x0000fffc)); in kvm_patch_ins_ll()
95 static void kvm_patch_ins_ld(u32 *inst, long addr, u32 rt) in kvm_patch_ins_ld() argument
98 kvm_patch_ins(inst, KVM_INST_LD | rt | (addr & 0x0000fffc)); in kvm_patch_ins_ld()
100 kvm_patch_ins(inst, KVM_INST_LWZ | rt | ((addr + 4) & 0x0000fffc)); in kvm_patch_ins_ld()
104 static void kvm_patch_ins_lwz(u32 *inst, long addr, u32 rt) in kvm_patch_ins_lwz() argument
106 kvm_patch_ins(inst, KVM_INST_LWZ | rt | (addr & 0x0000ffff)); in kvm_patch_ins_lwz()
109 static void kvm_patch_ins_std(u32 *inst, long addr, u32 rt) in kvm_patch_ins_std() argument
112 kvm_patch_ins(inst, KVM_INST_STD | rt | (addr & 0x0000fffc)); in kvm_patch_ins_std()
[all …]
/linux-4.1.27/arch/arm/kvm/
Dmmio.c118 *vcpu_reg(vcpu, vcpu->arch.mmio_decode.rt) = data; in kvm_handle_mmio_return()
126 unsigned long rt; in decode_hsr() local
148 rt = kvm_vcpu_dabt_get_rd(vcpu); in decode_hsr()
152 vcpu->arch.mmio_decode.rt = rt; in decode_hsr()
166 unsigned long rt; in io_mem_abort() local
186 rt = vcpu->arch.mmio_decode.rt; in io_mem_abort()
189 data = vcpu_data_guest_to_host(vcpu, *vcpu_reg(vcpu, rt), len); in io_mem_abort()
/linux-4.1.27/scripts/rt-tester/
Dcheck-all.sh6 ./rt-tester.py $1 | grep Pass
9 testit t2-l1-2rt-sameprio.tst
13 testit t3-l1-pi-1rt.tst
14 testit t3-l1-pi-2rt.tst
15 testit t3-l1-pi-3rt.tst
Dt3-l1-pi-1rt.tst2 # rt-mutex test
Dt3-l1-pi-3rt.tst2 # rt-mutex test
Dt3-l2-pi.tst2 # rt-mutex test
Dt3-l1-pi-2rt.tst2 # rt-mutex test
Dt3-l1-pi-steal.tst2 # rt-mutex test
Dt3-l1-pi-signal.tst2 # rt-mutex test
Dt5-l4-pi-boost-deboost.tst2 # rt-mutex test
Dt4-l2-pi-deboost.tst2 # rt-mutex test
/linux-4.1.27/arch/x86/pci/
Dirq.c66 struct irq_routing_table *rt; in pirq_check_routing_table() local
70 rt = (struct irq_routing_table *) addr; in pirq_check_routing_table()
71 if (rt->signature != PIRQ_SIGNATURE || in pirq_check_routing_table()
72 rt->version != PIRQ_VERSION || in pirq_check_routing_table()
73 rt->size % 16 || in pirq_check_routing_table()
74 rt->size < sizeof(struct irq_routing_table)) in pirq_check_routing_table()
77 for (i = 0; i < rt->size; i++) in pirq_check_routing_table()
81 rt); in pirq_check_routing_table()
82 return rt; in pirq_check_routing_table()
96 struct irq_routing_table *rt; in pirq_find_routing_table() local
[all …]
Dpcbios.c382 struct irq_routing_table *rt = NULL; in pcibios_get_irq_routing_table() local
417 rt = kmalloc(sizeof(struct irq_routing_table) + opt.size, GFP_KERNEL); in pcibios_get_irq_routing_table()
418 if (rt) { in pcibios_get_irq_routing_table()
419 memset(rt, 0, sizeof(struct irq_routing_table)); in pcibios_get_irq_routing_table()
420 rt->size = opt.size + sizeof(struct irq_routing_table); in pcibios_get_irq_routing_table()
421 rt->exclusive_irqs = map; in pcibios_get_irq_routing_table()
422 memcpy(rt->slots, (void *) page, opt.size); in pcibios_get_irq_routing_table()
427 return rt; in pcibios_get_irq_routing_table()
/linux-4.1.27/arch/mips/kvm/
Ddyntrans.c75 int32_t rt, rd, sel; in kvm_mips_trans_mfc0() local
79 rt = (inst >> 16) & 0x1f; in kvm_mips_trans_mfc0()
85 mfc0_inst |= ((rt & 0x1f) << 16); in kvm_mips_trans_mfc0()
88 mfc0_inst |= ((rt & 0x1f) << 16); in kvm_mips_trans_mfc0()
117 int32_t rt, rd, sel; in kvm_mips_trans_mtc0() local
121 rt = (inst >> 16) & 0x1f; in kvm_mips_trans_mtc0()
125 mtc0_inst |= ((rt & 0x1f) << 16); in kvm_mips_trans_mtc0()
Demulate.c79 switch (insn.i_format.rt) { in kvm_compute_return_epc()
147 arch->gprs[insn.i_format.rt]) in kvm_compute_return_epc()
157 arch->gprs[insn.i_format.rt]) in kvm_compute_return_epc()
982 int32_t rt, rd, copz, sel, co_bit, op; in kvm_mips_emulate_CP0() local
996 rt = (inst >> 16) & 0x1f; in kvm_mips_emulate_CP0()
1036 vcpu->arch.gprs[rt] = kvm_mips_read_count(vcpu); in kvm_mips_emulate_CP0()
1038 vcpu->arch.gprs[rt] = 0x0; in kvm_mips_emulate_CP0()
1043 vcpu->arch.gprs[rt] = cop0->reg[rd][sel]; in kvm_mips_emulate_CP0()
1052 pc, rd, sel, rt, vcpu->arch.gprs[rt]); in kvm_mips_emulate_CP0()
1057 vcpu->arch.gprs[rt] = cop0->reg[rd][sel]; in kvm_mips_emulate_CP0()
[all …]
/linux-4.1.27/drivers/input/touchscreen/
Dtsc2007.c133 u32 rt = 0; in tsc2007_calculate_pressure() local
141 rt = tc->z2 - tc->z1; in tsc2007_calculate_pressure()
142 rt *= tc->x; in tsc2007_calculate_pressure()
143 rt *= tsc->x_plate_ohms; in tsc2007_calculate_pressure()
144 rt /= tc->z1; in tsc2007_calculate_pressure()
145 rt = (rt + 2047) >> 12; in tsc2007_calculate_pressure()
148 return rt; in tsc2007_calculate_pressure()
178 u32 rt; in tsc2007_soft_irq() local
185 rt = tsc2007_calculate_pressure(ts, &tc); in tsc2007_soft_irq()
187 if (!rt && !ts->get_pendown_state) { in tsc2007_soft_irq()
[all …]
D88pm860x-ts.c57 int z1, z2, rt = 0; in pm860x_touch_handler() local
72 rt = z2 / z1 - 1; in pm860x_touch_handler()
73 rt = (rt * touch->res_x * x) >> ACCURATE_BIT; in pm860x_touch_handler()
75 z1, z2, rt); in pm860x_touch_handler()
79 input_report_abs(touch->idev, ABS_PRESSURE, rt); in pm860x_touch_handler()
/linux-4.1.27/arch/arm64/include/asm/
Dsysreg.h33 .macro mrs_s, rt, sreg
34 .inst 0xd5300000|(\sreg)|(__reg_num_\rt)
37 .macro msr_s, sreg, rt
38 .inst 0xd5100000|(\sreg)|(__reg_num_\rt)
Dkvm_mmio.h30 unsigned long rt; member
/linux-4.1.27/arch/arm/net/
Dbpf_jit_32.h155 #define ARM_LDR_I(rt, rn, off) (ARM_INST_LDR_I | (rt) << 12 | (rn) << 16 \ argument
157 #define ARM_LDRB_I(rt, rn, off) (ARM_INST_LDRB_I | (rt) << 12 | (rn) << 16 \ argument
159 #define ARM_LDRB_R(rt, rn, rm) (ARM_INST_LDRB_R | (rt) << 12 | (rn) << 16 \ argument
161 #define ARM_LDRH_I(rt, rn, off) (ARM_INST_LDRH_I | (rt) << 12 | (rn) << 16 \ argument
199 #define ARM_STR_I(rt, rn, off) (ARM_INST_STR_I | (rt) << 12 | (rn) << 16 \ argument
/linux-4.1.27/arch/arm/probes/kprobes/
Dactions-arm.c81 int rt = (insn >> 12) & 0xf; in emulate_ldrdstrd() local
85 register unsigned long rtv asm("r0") = regs->uregs[rt]; in emulate_ldrdstrd()
86 register unsigned long rt2v asm("r1") = regs->uregs[rt+1]; in emulate_ldrdstrd()
99 regs->uregs[rt] = rtv; in emulate_ldrdstrd()
100 regs->uregs[rt+1] = rt2v; in emulate_ldrdstrd()
110 int rt = (insn >> 12) & 0xf; in emulate_ldr() local
126 if (rt == 15) in emulate_ldr()
129 regs->uregs[rt] = rtv; in emulate_ldr()
141 int rt = (insn >> 12) & 0xf; in emulate_str() local
145 register unsigned long rtv asm("r0") = (rt == 15) ? rtpc in emulate_str()
[all …]
Dactions-thumb.c113 int rt = (insn >> 12) & 0xf; in t32_simulate_ldr_literal() local
125 if (rt == 15) { in t32_simulate_ldr_literal()
143 regs->uregs[rt] = rtv; in t32_simulate_ldr_literal()
191 int rt = (insn >> 12) & 0xf; in t32_emulate_ldrstr() local
195 register unsigned long rtv asm("r0") = regs->uregs[rt]; in t32_emulate_ldrstr()
207 if (rt == 15) /* Can't be true for a STR as they aren't allowed */ in t32_emulate_ldrstr()
210 regs->uregs[rt] = rtv; in t32_emulate_ldrstr()
328 int rt = (insn >> 8) & 0x7; in t16_simulate_ldr_literal() local
329 regs->uregs[rt] = base[index]; in t16_simulate_ldr_literal()
338 int rt = (insn >> 8) & 0x7; in t16_simulate_ldrstr_sp_relative() local
[all …]
/linux-4.1.27/arch/powerpc/include/asm/
Dmmu-hash64.h457 #define ASM_VSID_SCRAMBLE(rt, rx, size) \ argument
460 mulld rt,rt,rx; /* rt = rt * MULTIPLIER */ \
462 srdi rx,rt,VSID_BITS_##size; \
463 clrldi rt,rt,(64-VSID_BITS_##size); \
464 add rt,rt,rx; /* add high and low bits */ \
472 addi rx,rt,1; \
474 add rt,rt,rx
/linux-4.1.27/drivers/bus/
Domap_l3_smx.c184 status = omap3_l3_readll(l3->rt, L3_SI_FLAG_STATUS_0); in omap3_l3_app_irq()
193 status = omap3_l3_readll(l3->rt, L3_SI_FLAG_STATUS_1); in omap3_l3_app_irq()
200 base = l3->rt + omap3_l3_bases[int_type][err_source]; in omap3_l3_app_irq()
246 l3->rt = ioremap(res->start, resource_size(res)); in omap3_l3_probe()
247 if (!l3->rt) { in omap3_l3_probe()
274 iounmap(l3->rt); in omap3_l3_probe()
286 iounmap(l3->rt); in omap3_l3_remove()
Domap_l3_smx.h199 void __iomem *rt; member
/linux-4.1.27/drivers/net/wireless/rt2x00/
Drt2x00.h153 u16 rt; member
1079 const u16 rt, const u16 rf, const u16 rev) in rt2x00_set_chip() argument
1081 rt2x00dev->chip.rt = rt; in rt2x00_set_chip()
1086 rt2x00dev->chip.rt, rt2x00dev->chip.rf, in rt2x00_set_chip()
1091 const u16 rt, const u16 rev) in rt2x00_set_rt() argument
1093 rt2x00dev->chip.rt = rt; in rt2x00_set_rt()
1097 rt2x00dev->chip.rt, rt2x00dev->chip.rev); in rt2x00_set_rt()
1108 static inline bool rt2x00_rt(struct rt2x00_dev *rt2x00dev, const u16 rt) in rt2x00_rt() argument
1110 return (rt2x00dev->chip.rt == rt); in rt2x00_rt()
1124 const u16 rt, const u16 rev) in rt2x00_rt_rev() argument
[all …]
Drt2x00pci.c137 rt2x00dev->chip.rt = chip; in rt2x00pci_probe()
/linux-4.1.27/net/netfilter/
Dnf_conntrack_broadcast.c30 struct rtable *rt = skb_rtable(skb); in nf_conntrack_broadcast_help() local
38 if (rt == NULL || !(rt->rt_flags & RTCF_BROADCAST)) in nf_conntrack_broadcast_help()
44 in_dev = __in_dev_get_rcu(rt->dst.dev); in nf_conntrack_broadcast_help()
Dxt_addrtype.c41 struct rt6_info *rt; in match_lookup_rt6() local
61 route_err = afinfo->route(net, (struct dst_entry **)&rt, in match_lookup_rt6()
71 if (rt->rt6i_flags & RTF_REJECT) in match_lookup_rt6()
74 if (dev == NULL && rt->rt6i_flags & RTF_LOCAL) in match_lookup_rt6()
76 if (rt->rt6i_flags & RTF_ANYCAST) in match_lookup_rt6()
79 dst_release(&rt->dst); in match_lookup_rt6()
Dxt_TEE.c61 struct rtable *rt; in tee_tg_route4() local
74 rt = ip_route_output_key(net, &fl4); in tee_tg_route4()
75 if (IS_ERR(rt)) in tee_tg_route4()
79 skb_dst_set(skb, &rt->dst); in tee_tg_route4()
80 skb->dev = rt->dst.dev; in tee_tg_route4()
Dxt_TCPMSS.c52 struct rtable *rt = NULL; in tcpmss_reverse_mtu() local
68 ai->route(net, (struct dst_entry **)&rt, &fl, false); in tcpmss_reverse_mtu()
71 if (rt != NULL) { in tcpmss_reverse_mtu()
72 mtu = dst_mtu(&rt->dst); in tcpmss_reverse_mtu()
73 dst_release(&rt->dst); in tcpmss_reverse_mtu()
/linux-4.1.27/net/openvswitch/
Dvport-gre.c139 struct rtable *rt; in gre_tnl_send() local
151 rt = ovs_tunnel_route_lookup(net, tun_key, skb->mark, &fl, IPPROTO_GRE); in gre_tnl_send()
152 if (IS_ERR(rt)) { in gre_tnl_send()
153 err = PTR_ERR(rt); in gre_tnl_send()
159 min_headroom = LL_RESERVED_SPACE(rt->dst.dev) + rt->dst.header_len in gre_tnl_send()
191 return iptunnel_xmit(skb->sk, rt, skb, fl.saddr, in gre_tnl_send()
195 ip_rt_put(rt); in gre_tnl_send()
Dvport-geneve.c179 struct rtable *rt; in geneve_tnl_send() local
192 rt = ovs_tunnel_route_lookup(net, tun_key, skb->mark, &fl, IPPROTO_UDP); in geneve_tnl_send()
193 if (IS_ERR(rt)) { in geneve_tnl_send()
194 err = PTR_ERR(rt); in geneve_tnl_send()
211 err = geneve_xmit_skb(geneve_port->gs, rt, skb, fl.saddr, in geneve_tnl_send()
217 ip_rt_put(rt); in geneve_tnl_send()
Dvport-vxlan.c229 struct rtable *rt; in vxlan_tnl_send() local
242 rt = ovs_tunnel_route_lookup(net, tun_key, skb->mark, &fl, IPPROTO_UDP); in vxlan_tnl_send()
243 if (IS_ERR(rt)) { in vxlan_tnl_send()
244 err = PTR_ERR(rt); in vxlan_tnl_send()
259 err = vxlan_xmit_skb(rt, sk, skb, fl.saddr, tun_key->ipv4_dst, in vxlan_tnl_send()
264 ip_rt_put(rt); in vxlan_tnl_send()
Dvport.h247 struct rtable *rt; in ovs_tunnel_route_lookup() local
256 rt = ip_route_output_key(net, fl); in ovs_tunnel_route_lookup()
257 return rt; in ovs_tunnel_route_lookup()
Dvport.c584 struct rtable *rt; in ovs_tunnel_get_egress_info() local
596 rt = ovs_tunnel_route_lookup(net, tun_key, skb_mark, &fl, ipproto); in ovs_tunnel_get_egress_info()
597 if (IS_ERR(rt)) in ovs_tunnel_get_egress_info()
598 return PTR_ERR(rt); in ovs_tunnel_get_egress_info()
600 ip_rt_put(rt); in ovs_tunnel_get_egress_info()
/linux-4.1.27/sound/parisc/
Dharmony.c411 struct snd_pcm_runtime *rt = ss->runtime; in snd_harmony_playback_prepare() local
422 h->st.rate = snd_harmony_rate_bits(rt->rate); in snd_harmony_playback_prepare()
423 h->st.format = snd_harmony_set_data_format(h, rt->format, 0); in snd_harmony_playback_prepare()
425 if (rt->channels == 2) in snd_harmony_playback_prepare()
432 h->pbuf.addr = rt->dma_addr; in snd_harmony_playback_prepare()
441 struct snd_pcm_runtime *rt = ss->runtime; in snd_harmony_capture_prepare() local
452 h->st.rate = snd_harmony_rate_bits(rt->rate); in snd_harmony_capture_prepare()
453 h->st.format = snd_harmony_set_data_format(h, rt->format, 0); in snd_harmony_capture_prepare()
455 if (rt->channels == 2) in snd_harmony_capture_prepare()
462 h->cbuf.addr = rt->dma_addr; in snd_harmony_capture_prepare()
[all …]
/linux-4.1.27/arch/mips/math-emu/
Dcp1emu.c104 mips32_insn.mm_i_format.rt = insn.mm_i_format.rs; in microMIPS32_to_MIPS32()
105 mips32_insn.mm_i_format.rs = insn.mm_i_format.rt; in microMIPS32_to_MIPS32()
109 mips32_insn.mm_i_format.rt = insn.mm_i_format.rs; in microMIPS32_to_MIPS32()
110 mips32_insn.mm_i_format.rs = insn.mm_i_format.rt; in microMIPS32_to_MIPS32()
114 mips32_insn.mm_i_format.rt = insn.mm_i_format.rs; in microMIPS32_to_MIPS32()
115 mips32_insn.mm_i_format.rs = insn.mm_i_format.rt; in microMIPS32_to_MIPS32()
119 mips32_insn.mm_i_format.rt = insn.mm_i_format.rs; in microMIPS32_to_MIPS32()
120 mips32_insn.mm_i_format.rs = insn.mm_i_format.rt; in microMIPS32_to_MIPS32()
124 if ((insn.mm_i_format.rt == mm_bc1f_op) || in microMIPS32_to_MIPS32()
125 (insn.mm_i_format.rt == mm_bc1t_op)) { in microMIPS32_to_MIPS32()
[all …]
/linux-4.1.27/sound/usb/caiaq/
Daudio.c392 struct snd_pcm_runtime *rt = sub->runtime; in read_in_urb_mode0() local
393 char *audio_buf = rt->dma_area; in read_in_urb_mode0()
394 int sz = frames_to_bytes(rt, rt->buffer_size); in read_in_urb_mode0()
439 struct snd_pcm_runtime *rt = sub->runtime; in read_in_urb_mode2() local
440 char *audio_buf = rt->dma_area; in read_in_urb_mode2()
441 int sz = frames_to_bytes(rt, rt->buffer_size); in read_in_urb_mode2()
471 struct snd_pcm_runtime *rt = sub->runtime; in read_in_urb_mode3() local
472 audio_buf = rt->dma_area; in read_in_urb_mode3()
473 sz = frames_to_bytes(rt, rt->buffer_size); in read_in_urb_mode3()
552 struct snd_pcm_runtime *rt = sub->runtime; in fill_out_urb_mode_0() local
[all …]
/linux-4.1.27/arch/mips/include/uapi/asm/
Dinst.h522 __BITFIELD_FIELD(unsigned int rt : 5,
530 __BITFIELD_FIELD(unsigned int rt : 5,
547 __BITFIELD_FIELD(unsigned int rt : 5,
557 __BITFIELD_FIELD(unsigned int rt : 5,
568 __BITFIELD_FIELD(unsigned int rt : 5,
617 __BITFIELD_FIELD(unsigned int rt:5,
663 __BITFIELD_FIELD(unsigned int rt : 5,
672 __BITFIELD_FIELD(unsigned int rt : 5,
694 __BITFIELD_FIELD(unsigned int rt : 5,
704 __BITFIELD_FIELD(unsigned int rt : 5,
[all …]
/linux-4.1.27/sound/soc/sh/
Dsiu_pcm.c218 struct snd_pcm_runtime *rt = substream->runtime; in siu_io_tasklet() local
233 buff = (dma_addr_t)PERIOD_OFFSET(rt->dma_addr, in siu_io_tasklet()
236 virt = PERIOD_OFFSET(rt->dma_area, in siu_io_tasklet()
245 (dma_addr_t)PERIOD_OFFSET(rt->dma_addr, in siu_io_tasklet()
408 struct snd_pcm_runtime *rt = ss->runtime; in siu_pcm_prepare() local
417 rt = siu_stream->substream->runtime; in siu_pcm_prepare()
423 info->port_id, rt->channels, siu_stream->period_bytes); in siu_pcm_prepare()
433 xfer_cnt = bytes_to_frames(rt, siu_stream->period_bytes); in siu_pcm_prepare()
437 siu_stream->format = rt->format; in siu_pcm_prepare()
442 (unsigned long)rt->dma_addr, siu_stream->buf_bytes, in siu_pcm_prepare()
[all …]
Dsiu_dai.c511 struct snd_pcm_runtime *rt = substream->runtime; in siu_dai_startup() local
520 ret = snd_pcm_hw_constraint_integer(rt, SNDRV_PCM_HW_PARAM_PERIODS); in siu_dai_startup()
558 struct snd_pcm_runtime *rt = substream->runtime; in siu_dai_prepare() local
565 __func__, info->port_id, port_info->play_cap, rt->channels); in siu_dai_prepare()
/linux-4.1.27/arch/arm/lib/
Decard.S16 #define CPSR2SPSR(rt) \ argument
17 mrs rt, cpsr; \
18 msr spsr_cxsf, rt
/linux-4.1.27/net/dccp/
Dipv4.c50 struct rtable *rt; in dccp_v4_connect() local
75 rt = ip_route_connect(fl4, nexthop, inet->inet_saddr, in dccp_v4_connect()
79 if (IS_ERR(rt)) in dccp_v4_connect()
80 return PTR_ERR(rt); in dccp_v4_connect()
82 if (rt->rt_flags & (RTCF_MULTICAST | RTCF_BROADCAST)) { in dccp_v4_connect()
83 ip_rt_put(rt); in dccp_v4_connect()
110 rt = ip_route_newports(fl4, rt, orig_sport, orig_dport, in dccp_v4_connect()
112 if (IS_ERR(rt)) { in dccp_v4_connect()
113 err = PTR_ERR(rt); in dccp_v4_connect()
114 rt = NULL; in dccp_v4_connect()
[all …]
/linux-4.1.27/drivers/net/ppp/
Dpptp.c187 struct rtable *rt; in pptp_xmit() local
195 rt = ip_route_output_ports(sock_net(sk), &fl4, NULL, in pptp_xmit()
200 if (IS_ERR(rt)) in pptp_xmit()
203 tdev = rt->dst.dev; in pptp_xmit()
210 ip_rt_put(rt); in pptp_xmit()
270 if (ip_dont_fragment(sk, &rt->dst)) in pptp_xmit()
278 iph->ttl = ip4_dst_hoplimit(&rt->dst); in pptp_xmit()
282 skb_dst_set(skb, &rt->dst); in pptp_xmit()
457 struct rtable *rt; in pptp_connect() local
491 rt = ip_route_output_ports(sock_net(sk), &fl4, sk, in pptp_connect()
[all …]
/linux-4.1.27/net/rxrpc/
Dar-peer.c38 struct rtable *rt; in rxrpc_assess_MTU_size() local
43 rt = ip_route_output_ports(&init_net, &fl4, NULL, in rxrpc_assess_MTU_size()
47 if (IS_ERR(rt)) { in rxrpc_assess_MTU_size()
48 _leave(" [route err %ld]", PTR_ERR(rt)); in rxrpc_assess_MTU_size()
52 peer->if_mtu = dst_mtu(&rt->dst); in rxrpc_assess_MTU_size()
53 dst_release(&rt->dst); in rxrpc_assess_MTU_size()
/linux-4.1.27/Documentation/locking/
Drt-mutex.txt9 This technology was developed in the -rt tree and streamlined for
18 A low priority owner of a rt-mutex inherits the priority of a higher
19 priority waiter until the rt-mutex is released. If the temporarily
20 boosted owner blocks on a rt-mutex itself it propagates the priority
43 support. [If that is not available then the rt-mutex internal spinlock
46 The state of the rt-mutex is tracked via the owner field of the rt-mutex
D00-INDEX9 rt-mutex-design.txt
11 rt-mutex.txt
Dlglock.txt133 * in PREEMPT_RT the spinlock becomes an rt-mutex and can sleep but
164 Link: 6 https://www.kernel.org/pub/linux/kernel/projects/rt/
165 patch series - lglocks-rt.patch.patch
/linux-4.1.27/arch/ia64/kernel/
Dsmpboot.c217 get_delta (long *rt, long *master) in get_delta() argument
235 *rt = best_t1 - best_t0; in get_delta()
281 unsigned long flags, rt, master_time_stamp, bound; in ia64_sync_itc() local
284 long rt; /* roundtrip time */ in ia64_sync_itc() member
312 delta = get_delta(&rt, &master_time_stamp); in ia64_sync_itc()
315 bound = rt; in ia64_sync_itc()
328 t[i].rt = rt; in ia64_sync_itc()
340 t[i].rt, t[i].master, t[i].diff, t[i].lat); in ia64_sync_itc()
344 "maxerr %lu cycles)\n", smp_processor_id(), master, delta, rt); in ia64_sync_itc()
/linux-4.1.27/sound/pci/
Dad1889.c324 struct snd_pcm_runtime *rt = ss->runtime; in snd_ad1889_playback_open() local
327 rt->hw = snd_ad1889_playback_hw; in snd_ad1889_playback_open()
336 struct snd_pcm_runtime *rt = ss->runtime; in snd_ad1889_capture_open() local
339 rt->hw = snd_ad1889_capture_hw; in snd_ad1889_capture_open()
364 struct snd_pcm_runtime *rt = ss->runtime; in snd_ad1889_playback_prepare() local
376 if (snd_pcm_format_width(rt->format) == 16) in snd_ad1889_playback_prepare()
379 if (rt->channels > 1) in snd_ad1889_playback_prepare()
387 chip->wave.addr = rt->dma_addr; in snd_ad1889_playback_prepare()
392 ad1889_writew(chip, AD_DS_WAS, rt->rate); in snd_ad1889_playback_prepare()
406 chip->wave.addr, count, size, reg, rt->rate); in snd_ad1889_playback_prepare()
[all …]
/linux-4.1.27/drivers/infiniband/core/
Daddr.c231 struct rtable *rt; in addr4_resolve() local
239 rt = ip_route_output_key(&init_net, &fl4); in addr4_resolve()
240 if (IS_ERR(rt)) { in addr4_resolve()
241 ret = PTR_ERR(rt); in addr4_resolve()
247 if (rt->dst.dev->flags & IFF_LOOPBACK) { in addr4_resolve()
255 if (rt->dst.dev->flags & IFF_NOARP) { in addr4_resolve()
256 ret = rdma_copy_addr(addr, rt->dst.dev, NULL); in addr4_resolve()
260 ret = dst_fetch_ha(&rt->dst, addr, &fl4.daddr); in addr4_resolve()
262 ip_rt_put(rt); in addr4_resolve()
Dcma.c1204 struct rdma_route *rt; in cma_new_conn_id() local
1216 rt = &id->route; in cma_new_conn_id()
1217 rt->num_paths = ib_event->param.req_rcvd.alternate_path ? 2 : 1; in cma_new_conn_id()
1218 rt->path_rec = kmalloc(sizeof *rt->path_rec * rt->num_paths, in cma_new_conn_id()
1220 if (!rt->path_rec) in cma_new_conn_id()
1223 rt->path_rec[0] = *ib_event->param.req_rcvd.primary_path; in cma_new_conn_id()
1224 if (rt->num_paths == 2) in cma_new_conn_id()
1225 rt->path_rec[1] = *ib_event->param.req_rcvd.alternate_path; in cma_new_conn_id()
1228 rt->addr.dev_addr.dev_type = ARPHRD_INFINIBAND; in cma_new_conn_id()
1229 rdma_addr_set_sgid(&rt->addr.dev_addr, &rt->path_rec[0].sgid); in cma_new_conn_id()
[all …]
/linux-4.1.27/net/ipv4/netfilter/
Dnf_nat_masquerade_ipv4.c34 const struct rtable *rt; in nf_nat_masquerade_ipv4() local
51 rt = skb_rtable(skb); in nf_nat_masquerade_ipv4()
52 nh = rt_nexthop(rt, ip_hdr(skb)->daddr); in nf_nat_masquerade_ipv4()
Dipt_rpfilter.c71 const struct rtable *rt = skb_rtable(skb); in rpfilter_is_local() local
72 return rt && (rt->rt_flags & RTCF_LOCAL); in rpfilter_is_local()
/linux-4.1.27/virt/kvm/
Dirqchip.c128 static int setup_routing_entry(struct kvm_irq_routing_table *rt, in setup_routing_entry() argument
139 hlist_for_each_entry(ei, &rt->map[ue->gsi], link) in setup_routing_entry()
151 rt->chip[e->irqchip.irqchip][e->irqchip.pin] = e->gsi; in setup_routing_entry()
153 hlist_add_head(&e->link, &rt->map[e->gsi]); in setup_routing_entry()
/linux-4.1.27/net/tipc/
Dudp_media.c158 struct rtable *rt; in tipc_udp_send_msg() local
174 rt = ip_route_output_key(net, &fl); in tipc_udp_send_msg()
175 if (IS_ERR(rt)) { in tipc_udp_send_msg()
176 err = PTR_ERR(rt); in tipc_udp_send_msg()
179 ttl = ip4_dst_hoplimit(&rt->dst); in tipc_udp_send_msg()
180 err = udp_tunnel_xmit_skb(rt, ub->ubsock->sk, clone, in tipc_udp_send_msg()
186 ip_rt_put(rt); in tipc_udp_send_msg()
/linux-4.1.27/net/xfrm/
Dxfrm_user.c37 struct nlattr *rt = attrs[type]; in verify_one_alg() local
40 if (!rt) in verify_one_alg()
43 algp = nla_data(rt); in verify_one_alg()
44 if (nla_len(rt) < xfrm_alg_len(algp)) in verify_one_alg()
63 struct nlattr *rt = attrs[XFRMA_ALG_AUTH_TRUNC]; in verify_auth_trunc() local
66 if (!rt) in verify_auth_trunc()
69 algp = nla_data(rt); in verify_auth_trunc()
70 if (nla_len(rt) < xfrm_alg_auth_len(algp)) in verify_auth_trunc()
79 struct nlattr *rt = attrs[XFRMA_ALG_AEAD]; in verify_aead() local
82 if (!rt) in verify_aead()
[all …]
/linux-4.1.27/drivers/pinctrl/
Dpinctrl-st.c219 struct regmap_field *rt[ST_GPIO_PINS_PER_BANK]; member
239 } rt; member
249 const int alt, oe, pu, od, rt; member
354 .alt = 0, .oe = 5, .pu = 7, .od = 9, .rt = 16,
359 .alt = 0, .oe = 8, .pu = 10, .od = 12, .rt = 16,
364 .alt = 0, .oe = 6, .pu = 8, .od = 10, .rt = 38,
369 .alt = 0, .oe = 3, .pu = 4, .od = 5, .rt = 6,
374 .alt = 0, .oe = 5, .pu = 7, .od = 9, .rt = 11,
387 .alt = 0, .oe = 40, .pu = 50, .od = 60, .rt = 100,
400 .rt = 100,
[all …]
/linux-4.1.27/drivers/isdn/gigaset/
Dev-layer.c448 const struct resp_type_t *rt; in gigaset_handle_modem_response() local
470 for (rt = resp_type; rt->response; ++rt) { in gigaset_handle_modem_response()
471 eoc = skip_prefix(cs->respdata, rt->response); in gigaset_handle_modem_response()
475 if (!rt->response) { in gigaset_handle_modem_response()
498 switch (rt->type) { in gigaset_handle_modem_response()
504 add_cid_event(cs, cid, rt->resp_code, NULL, 0); in gigaset_handle_modem_response()
514 add_cid_event(cs, 0, rt->resp_code, NULL, cid); in gigaset_handle_modem_response()
520 for (rt = resp_type; rt->response; ++rt) { in gigaset_handle_modem_response()
521 psep = skip_prefix(eoc, rt->response); in gigaset_handle_modem_response()
527 if (!psep || rt->type != RT_STRING) { in gigaset_handle_modem_response()
[all …]
/linux-4.1.27/net/l2tp/
Dl2tp_ip.c393 struct rtable *rt = NULL; in l2tp_ip_sendmsg() local
452 rt = (struct rtable *) __sk_dst_check(sk, 0); in l2tp_ip_sendmsg()
455 if (rt == NULL) { in l2tp_ip_sendmsg()
468 rt = ip_route_output_ports(sock_net(sk), fl4, sk, in l2tp_ip_sendmsg()
473 if (IS_ERR(rt)) in l2tp_ip_sendmsg()
476 sk_setup_caps(sk, &rt->dst); in l2tp_ip_sendmsg()
478 skb_dst_set(skb, &rt->dst); in l2tp_ip_sendmsg()
486 skb_dst_set_noref(skb, &rt->dst); in l2tp_ip_sendmsg()
/linux-4.1.27/drivers/net/wimax/i2400m/
Dusb.c275 int i2400mu_bus_reset(struct i2400m *i2400m, enum i2400m_reset_type rt) in i2400mu_bus_reset() argument
294 d_fnstart(3, dev, "(i2400m %p rt %u)\n", i2400m, rt); in i2400mu_bus_reset()
295 if (rt == I2400M_RT_WARM) in i2400mu_bus_reset()
300 else if (rt == I2400M_RT_COLD) in i2400mu_bus_reset()
305 else if (rt == I2400M_RT_BUS) { in i2400mu_bus_reset()
325 && rt != I2400M_RT_BUS) { in i2400mu_bus_reset()
334 rt == I2400M_RT_WARM ? "warm" : "cold", result); in i2400mu_bus_reset()
338 d_fnend(3, dev, "(i2400m %p rt %u) = %d\n", i2400m, rt, result); in i2400mu_bus_reset()
Ddebugfs.c204 enum i2400m_reset_type rt = val; in debugfs_i2400m_reset_set() local
205 switch(rt) { in debugfs_i2400m_reset_set()
209 result = i2400m_reset(i2400m, rt); in debugfs_i2400m_reset_set()
/linux-4.1.27/drivers/block/drbd/
Ddrbd_proc.c116 unsigned long db, dt, dbdt, rt, rs_total, rs_left; in drbd_syncer_progress() local
172 rt = (dt * (rs_left / (db/100+1)))/100; /* seconds */ in drbd_syncer_progress()
175 rt / 3600, (rt % 3600) / 60, rt % 60); in drbd_syncer_progress()
/linux-4.1.27/drivers/net/wireless/ath/
Ddfs_pattern_detector.c308 const struct radar_types *rt; in dpd_set_domain() local
316 rt = get_dfs_domain_radar_types(region); in dpd_set_domain()
317 if (rt == NULL) in dpd_set_domain()
324 dpd->radar_spec = rt->radar_types; in dpd_set_domain()
325 dpd->num_radar_types = rt->num_radar_types; in dpd_set_domain()
/linux-4.1.27/arch/mips/oprofile/
Dbacktrace.c35 && ip->i_format.rs == 29 && ip->i_format.rt == 31; in is_ra_save_ins()
41 if (ip->i_format.rs != 29 || ip->i_format.rt != 29) in is_sp_move_ins()
58 if (ip->i_format.opcode == lui_op && ip->i_format.rt == 28) in is_end_of_function_marker()
/linux-4.1.27/arch/mips/include/asm/octeon/
Dcvmx-asm.h136 asm volatile ("rdhwr %[rt],$" CVMX_TMP_STR(regstr) : [rt] "=d" (result))
138 asm ("rdhwr %[rt],$" CVMX_TMP_STR(regstr) : [rt] "=d" (result))
/linux-4.1.27/Documentation/scheduler/
Dsched-deadline.txt26 system behavior. As for -rt (group) scheduling, it is assumed that root users
228 to -deadline tasks is similar to the one already used for -rt
230 Documentation/scheduler/sched-rt-group.txt), and is based on readable/
238 is that -deadline tasks have bandwidth on their own (while -rt ones don't!),
253 For now the -rt knobs are used for -deadline admission control and the
254 -deadline runtime is accounted against the -rt runtime. We realise that this
257 run -rt tasks from a -deadline server; in which case the -rt bandwidth is a
316 follows (rt-app is used to create a -deadline task).
329 rt-app -t 100000:10000:d:0 -D5 (it is now actually superfluous to specify
358 The first testing application is called rt-app and can be used to
[all …]
D00-INDEX13 sched-rt-group.txt
/linux-4.1.27/net/atm/
Dclip.c332 struct rtable *rt; in clip_start_xmit() local
344 rt = (struct rtable *) dst; in clip_start_xmit()
345 if (rt->rt_gateway) in clip_start_xmit()
346 daddr = &rt->rt_gateway; in clip_start_xmit()
447 struct rtable *rt; in clip_setentry() local
463 rt = ip_route_output(&init_net, ip, 0, 1, 0); in clip_setentry()
464 if (IS_ERR(rt)) in clip_setentry()
465 return PTR_ERR(rt); in clip_setentry()
466 neigh = __neigh_lookup(&arp_tbl, &ip, rt->dst.dev, 1); in clip_setentry()
467 ip_rt_put(rt); in clip_setentry()
/linux-4.1.27/include/math-emu/
Ddouble.h122 #define FP_FROM_INT_D(X,r,rs,rt) _FP_FROM_INT(D,2,X,r,rs,rt) argument
197 #define FP_FROM_INT_D(X,r,rs,rt) _FP_FROM_INT(D,1,X,r,rs,rt) argument
Dquad.h128 #define FP_FROM_INT_Q(X,r,rs,rt) _FP_FROM_INT(Q,4,X,r,rs,rt) argument
201 #define FP_FROM_INT_Q(X,r,rs,rt) _FP_FROM_INT(Q,2,X,r,rs,rt) argument
Dsingle.h111 #define FP_FROM_INT_S(X,r,rs,rt) _FP_FROM_INT(S,1,X,r,rs,rt) argument
/linux-4.1.27/drivers/net/ipvlan/
Dipvlan_core.c342 struct rtable *rt; in ipvlan_process_v4_outbound() local
352 rt = ip_route_output_flow(dev_net(dev), &fl4, NULL); in ipvlan_process_v4_outbound()
353 if (IS_ERR(rt)) in ipvlan_process_v4_outbound()
356 if (rt->rt_type != RTN_UNICAST && rt->rt_type != RTN_LOCAL) { in ipvlan_process_v4_outbound()
357 ip_rt_put(rt); in ipvlan_process_v4_outbound()
361 skb_dst_set(skb, &rt->dst); in ipvlan_process_v4_outbound()
/linux-4.1.27/arch/xtensa/include/asm/
Dpgtable.h404 #define _PGD_INDEX(rt,rs) extui rt, rs, PGDIR_SHIFT, 32-PGDIR_SHIFT argument
405 #define _PTE_INDEX(rt,rs) extui rt, rs, PAGE_SHIFT, PTRS_PER_PTE_SHIFT argument
/linux-4.1.27/drivers/net/ethernet/amd/
Ddeclance.c231 #define lib_off(rt, type) \ argument
232 shift_off(offsetof(struct lance_init_block, rt), type)
234 #define lib_ptr(ib, rt, type) \ argument
235 ((volatile u16 *)((u8 *)(ib) + lib_off(rt, type)))
237 #define rds_off(rt, type) \ argument
238 shift_off(offsetof(struct lance_rx_desc, rt), type)
240 #define rds_ptr(rd, rt, type) \ argument
241 ((volatile u16 *)((u8 *)(rd) + rds_off(rt, type)))
243 #define tds_off(rt, type) \ argument
244 shift_off(offsetof(struct lance_tx_desc, rt), type)
[all …]
/linux-4.1.27/arch/sparc/kernel/
Dsmp_64.c164 static inline long get_delta (long *rt, long *master) in get_delta() argument
184 *rt = best_t1 - best_t0; in get_delta()
197 unsigned long flags, rt, master_time_stamp; in smp_synchronize_tick_client() local
200 long rt; /* roundtrip time */ in smp_synchronize_tick_client() member
215 delta = get_delta(&rt, &master_time_stamp); in smp_synchronize_tick_client()
229 t[i].rt = rt; in smp_synchronize_tick_client()
241 t[i].rt, t[i].master, t[i].diff, t[i].lat); in smp_synchronize_tick_client()
246 smp_processor_id(), delta, rt); in smp_synchronize_tick_client()
/linux-4.1.27/arch/arm/include/asm/
Dkvm_mmio.h27 unsigned long rt; member
/linux-4.1.27/tools/perf/tests/
Dperf-targz-src-pkg13 TARBALL=$(ls -rt perf-*.tar.gz)
/linux-4.1.27/drivers/usb/host/
Dfhci-tds.c249 u8 rt; in fhci_init_ep_registers() local
257 rt = (BUS_MODE_BO_BE | BUS_MODE_GBL); in fhci_init_ep_registers()
260 rt |= BUS_MODE_DTB; in fhci_init_ep_registers()
262 out_8(&ep->ep_pram_ptr->rx_func_code, rt); in fhci_init_ep_registers()
263 out_8(&ep->ep_pram_ptr->tx_func_code, rt); in fhci_init_ep_registers()
/linux-4.1.27/drivers/media/radio/si4713/
Dsi4713.c862 static int si4713_set_rds_radio_text(struct si4713_device *sdev, const char *rt) in si4713_set_rds_radio_text() argument
877 if (!strlen(rt)) in si4713_set_rds_radio_text()
886 if (!rt[t_index + i] || in si4713_set_rds_radio_text()
887 rt[t_index + i] == RDS_CARRIAGE_RETURN) { in si4713_set_rds_radio_text()
888 rt = cr; in si4713_set_rds_radio_text()
897 compose_u16(rt[t_index], rt[t_index + 1]), in si4713_set_rds_radio_text()
898 compose_u16(rt[t_index + 2], rt[t_index + 3]), in si4713_set_rds_radio_text()
/linux-4.1.27/net/sctp/
Dprotocol.c427 struct rtable *rt; in sctp_v4_get_dst() local
452 rt = ip_route_output_key(sock_net(sk), fl4); in sctp_v4_get_dst()
453 if (!IS_ERR(rt)) in sctp_v4_get_dst()
454 dst = &rt->dst; in sctp_v4_get_dst()
503 rt = ip_route_output_key(sock_net(sk), fl4); in sctp_v4_get_dst()
504 if (!IS_ERR(rt)) { in sctp_v4_get_dst()
505 dst = &rt->dst; in sctp_v4_get_dst()
530 struct rtable *rt = (struct rtable *)t->dst; in sctp_v4_get_saddr() local
532 if (rt) { in sctp_v4_get_saddr()
Dipv6.c330 struct rt6_info *rt; in sctp_v6_get_dst() local
332 rt = (struct rt6_info *)dst; in sctp_v6_get_dst()
334 t->dst_cookie = rt->rt6i_node ? rt->rt6i_node->fn_sernum : 0; in sctp_v6_get_dst()
335 pr_debug("rt6_dst:%pI6 rt6_src:%pI6\n", &rt->rt6i_dst.addr, in sctp_v6_get_dst()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
Dramnv50.c319 u32 r0, r4, rt, rblock_size; in nv50_fb_vram_rblock() local
323 rt = nv_rd32(pfb, 0x100250); in nv50_fb_vram_rblock()
325 r0, r4, rt, nv_rd32(pfb, 0x001540)); in nv50_fb_vram_rblock()
343 if (rt & 1) in nv50_fb_vram_rblock()
/linux-4.1.27/drivers/s390/char/
Dtape_char.c76 device->rt = register_tape_dev( in tapechar_setup_device()
90 unregister_tape_dev(&device->cdev->dev, device->rt); in tapechar_cleanup_device()
91 device->rt = NULL; in tapechar_cleanup_device()
/linux-4.1.27/security/selinux/ss/
Dpolicydb.c762 struct mls_range *rt = datum; in range_tr_destroy() local
764 ebitmap_destroy(&rt->level[0].cat); in range_tr_destroy()
765 ebitmap_destroy(&rt->level[1].cat); in range_tr_destroy()
1838 struct range_trans *rt = NULL; in range_read() local
1854 rt = kzalloc(sizeof(*rt), GFP_KERNEL); in range_read()
1855 if (!rt) in range_read()
1862 rt->source_type = le32_to_cpu(buf[0]); in range_read()
1863 rt->target_type = le32_to_cpu(buf[1]); in range_read()
1868 rt->target_class = le32_to_cpu(buf[0]); in range_read()
1870 rt->target_class = p->process_class; in range_read()
[all …]
/linux-4.1.27/fs/hpfs/
Dalloc.c135 goto rt; in alloc_in_bmp()
150 goto rt; in alloc_in_bmp()
173 goto rt; in alloc_in_bmp()
178 rt: in alloc_in_bmp()
/linux-4.1.27/Documentation/
Dpi-futex.txt94 the futex-queue. The pi_state includes an rt-mutex, which is a PI-aware,
96 of the rt-mutex, and the FUTEX_WAITERS bit is atomically set in the
97 futex value. Then this task tries to lock the rt-mutex, on which it
121 Documentation/rt-mutex.txt.
/linux-4.1.27/drivers/scsi/cxgbi/
Dlibcxgbi.c583 struct rtable *rt; in find_route_ipv4() local
585 rt = ip_route_output_ports(&init_net, fl4, NULL, daddr, saddr, in find_route_ipv4()
587 if (IS_ERR(rt)) in find_route_ipv4()
590 return rt; in find_route_ipv4()
599 struct rtable *rt = NULL; in cxgbi_check_route() local
607 rt = find_route_ipv4(&fl4, 0, daddr->sin_addr.s_addr, 0, daddr->sin_port, 0); in cxgbi_check_route()
608 if (!rt) { in cxgbi_check_route()
615 dst = &rt->dst; in cxgbi_check_route()
623 if (rt->rt_flags & (RTCF_MULTICAST | RTCF_BROADCAST)) { in cxgbi_check_route()
674 ip_rt_put(rt); in cxgbi_check_route()
[all …]
/linux-4.1.27/include/linux/
Dinit_task.h209 .rt = { \
210 .run_list = LIST_HEAD_INIT(tsk.rt.run_list), \
/linux-4.1.27/arch/x86/platform/efi/
Defi_64.c327 u32 *rt, *___f; \
329 rt = (u32 *)(table + offsetof(efi_system_table_32_t, runtime)); \
330 ___f = (u32 *)(*rt + offsetof(efi_runtime_services_32_t, func)); \
/linux-4.1.27/fs/xfs/
Dxfs_bmap_util.h50 int rt, int eof, int delay, int convert,
Dxfs_iomap.c128 int rt; in xfs_iomap_write_direct() local
139 rt = XFS_IS_REALTIME_INODE(ip); in xfs_iomap_write_direct()
165 if (unlikely(rt)) { in xfs_iomap_write_direct()
Dxfs_bmap_util.c944 int rt; in xfs_alloc_file_space() local
964 rt = XFS_IS_REALTIME_INODE(ip); in xfs_alloc_file_space()
1004 if (unlikely(rt)) { in xfs_alloc_file_space()
1185 int rt; in xfs_free_file_space() local
1200 rt = XFS_IS_REALTIME_INODE(ip); in xfs_free_file_space()
1222 if (rt && !xfs_sb_version_hasextflgbit(&mp->m_sb)) { in xfs_free_file_space()
/linux-4.1.27/arch/arm/boot/dts/
Dbcm47081-asus-rt-n18u.dts15 compatible = "asus,rt-n18u", "brcm,bcm47081", "brcm,bcm4708";
/linux-4.1.27/include/linux/amba/
Dpl022.h257 bool rt; member
/linux-4.1.27/drivers/video/fbdev/
Dsticore.h76 #define REGION_OFFSET_TO_PHYS( rt, hpa ) \ argument
77 (((rt).region_desc.offset << 12) + (hpa))
/linux-4.1.27/drivers/infiniband/hw/cxgb3/
Diwch_cm.c339 struct rtable *rt; in find_route() local
342 rt = ip_route_output_ports(&init_net, &fl4, NULL, peer_ip, local_ip, in find_route()
345 if (IS_ERR(rt)) in find_route()
347 return rt; in find_route()
1347 struct rtable *rt; in pass_accept_req() local
1370 rt = find_route(tdev, in pass_accept_req()
1375 if (!rt) { in pass_accept_req()
1380 dst = &rt->dst; in pass_accept_req()
1893 struct rtable *rt; in iwch_connect() local
1945 rt = find_route(h->rdev.t3cdev_p, laddr->sin_addr.s_addr, in iwch_connect()
[all …]
/linux-4.1.27/Documentation/devicetree/bindings/input/touchscreen/
Dtsc2007.txt16 - ti,max-rt: maximum pressure.
/linux-4.1.27/tools/firewire/
Dnosy-dump.h82 uint32_t rt:2; member
/linux-4.1.27/net/sched/
Dcls_route.c356 struct route4_filter *rt; in route4_delete() local
358 rt = rtnl_dereference(b->ht[i]); in route4_delete()
359 if (rt) in route4_delete()
/linux-4.1.27/drivers/net/
Dvxlan.c1758 int vxlan_xmit_skb(struct rtable *rt, struct sock *sk, struct sk_buff *skb, in vxlan_xmit_skb() argument
1783 min_headroom = LL_RESERVED_SPACE(rt->dst.dev) + rt->dst.header_len in vxlan_xmit_skb()
1827 return udp_tunnel_xmit_skb(rt, sk, skb, src, dst, tos, in vxlan_xmit_skb()
1883 struct rtable *rt = NULL; in vxlan_xmit_one() local
1927 rt = ip_route_output_key(vxlan->net, &fl4); in vxlan_xmit_one()
1928 if (IS_ERR(rt)) { in vxlan_xmit_one()
1935 if (rt->dst.dev == dev) { in vxlan_xmit_one()
1943 if (rt->rt_flags & RTCF_LOCAL && in vxlan_xmit_one()
1944 !(rt->rt_flags & (RTCF_BROADCAST | RTCF_MULTICAST))) { in vxlan_xmit_one()
1947 ip_rt_put(rt); in vxlan_xmit_one()
[all …]

12