Home
last modified time | relevance | path

Searched refs:mtu (Results 1 – 25 of 900) sorted by relevance

12345678910>>...36

/kernel/linux/linux-5.10/drivers/usb/mtu3/
Dmtu3_gadget.c15 __releases(mep->mtu->lock) in mtu3_req_complete()
16 __acquires(mep->mtu->lock) in mtu3_req_complete()
19 struct mtu3 *mtu = mreq->mtu; in mtu3_req_complete() local
26 spin_unlock(&mtu->lock); in mtu3_req_complete()
30 usb_gadget_unmap_request(&mtu->g, req, mep->is_in); in mtu3_req_complete()
32 dev_dbg(mtu->dev, "%s complete req: %p, sts %d, %d/%d\n", in mtu3_req_complete()
36 spin_lock(&mtu->lock); in mtu3_req_complete()
46 dev_dbg(mep->mtu->dev, "abort %s's req: sts %d\n", mep->name, status); in nuke()
63 struct mtu3 *mtu = mep->mtu; in mtu3_ep_enable() local
74 switch (mtu->g.speed) { in mtu3_ep_enable()
[all …]
Dmtu3_gadget_ep0.c18 #define next_ep0_request(mtu) next_request((mtu)->ep0) argument
39 static char *decode_ep0_state(struct mtu3 *mtu) in decode_ep0_state() argument
41 switch (mtu->ep0_state) { in decode_ep0_state()
57 static void ep0_req_giveback(struct mtu3 *mtu, struct usb_request *req) in ep0_req_giveback() argument
59 mtu3_req_complete(mtu->ep0, req, 0); in ep0_req_giveback()
63 forward_to_driver(struct mtu3 *mtu, const struct usb_ctrlrequest *setup) in forward_to_driver() argument
64 __releases(mtu->lock) in forward_to_driver()
65 __acquires(mtu->lock) in forward_to_driver()
69 if (!mtu->gadget_driver) in forward_to_driver()
72 spin_unlock(&mtu->lock); in forward_to_driver()
[all …]
Dmtu3_core.c45 dev_dbg(mep->mtu->dev, "%s fifo:%#x/%#x, start_bit: %d\n", in ep_fifo_alloc()
66 dev_dbg(mep->mtu->dev, "%s size:%#x/%#x, start_bit: %d\n", in ep_fifo_free()
71 static inline void mtu3_ss_func_set(struct mtu3 *mtu, bool enable) in mtu3_ss_func_set() argument
75 mtu3_setbits(mtu->mac_base, U3D_USB3_CONFIG, USB3_EN); in mtu3_ss_func_set()
77 mtu3_clrbits(mtu->mac_base, U3D_USB3_CONFIG, USB3_EN); in mtu3_ss_func_set()
79 dev_dbg(mtu->dev, "USB3_EN = %d\n", !!enable); in mtu3_ss_func_set()
83 static inline void mtu3_hs_softconn_set(struct mtu3 *mtu, bool enable) in mtu3_hs_softconn_set() argument
86 mtu3_setbits(mtu->mac_base, U3D_POWER_MANAGEMENT, in mtu3_hs_softconn_set()
89 mtu3_clrbits(mtu->mac_base, U3D_POWER_MANAGEMENT, in mtu3_hs_softconn_set()
92 dev_dbg(mtu->dev, "SOFTCONN = %d\n", !!enable); in mtu3_hs_softconn_set()
[all …]
Dmtu3_qmu.c38 #define GPD_RX_BUF_LEN(mtu, x) \ argument
41 ((mtu)->gen2cp) ? GPD_RX_BUF_LEN_EL(x_) : GPD_RX_BUF_LEN_OG(x_); \
46 #define GPD_DATA_LEN(mtu, x) \ argument
49 ((mtu)->gen2cp) ? GPD_DATA_LEN_EL(x_) : GPD_DATA_LEN_OG(x_); \
57 #define GPD_EXT_NGP(mtu, x) \ argument
60 ((mtu)->gen2cp) ? GPD_EXT_NGP_EL(x_) : GPD_EXT_NGP_OG(x_); \
63 #define GPD_EXT_BUF(mtu, x) \ argument
66 ((mtu)->gen2cp) ? GPD_EXT_BUF_EL(x_) : GPD_EXT_BUF_OG(x_); \
171 gpd = dma_pool_zalloc(mep->mtu->qmu_gpd_pool, GFP_ATOMIC, &ring->dma); in mtu3_gpd_ring_alloc()
184 dma_pool_free(mep->mtu->qmu_gpd_pool, in mtu3_gpd_ring_free()
[all …]
Dmtu3_debugfs.c80 struct mtu3 *mtu = sf->private; in mtu3_link_state_show() local
81 void __iomem *mbase = mtu->mac_base; in mtu3_link_state_show()
92 struct mtu3 *mtu = sf->private; in mtu3_ep_used_show() local
98 spin_lock_irqsave(&mtu->lock, flags); in mtu3_ep_used_show()
100 for (i = 0; i < mtu->num_eps; i++) { in mtu3_ep_used_show()
101 mep = mtu->in_eps + i; in mtu3_ep_used_show()
107 mep = mtu->out_eps + i; in mtu3_ep_used_show()
115 spin_unlock_irqrestore(&mtu->lock, flags); in mtu3_ep_used_show()
123 static void mtu3_debugfs_regset(struct mtu3 *mtu, void __iomem *base, in mtu3_debugfs_regset() argument
130 mregs = devm_kzalloc(mtu->dev, sizeof(*mregs), GFP_KERNEL); in mtu3_debugfs_regset()
[all …]
Dmtu3.h279 struct mtu3 *mtu; member
302 struct mtu3 *mtu; member
421 int mtu3_config_ep(struct mtu3 *mtu, struct mtu3_ep *mep,
423 void mtu3_deconfig_ep(struct mtu3 *mtu, struct mtu3_ep *mep);
425 void mtu3_ep0_setup(struct mtu3 *mtu);
426 void mtu3_start(struct mtu3 *mtu);
427 void mtu3_stop(struct mtu3 *mtu);
428 void mtu3_dev_on_off(struct mtu3 *mtu, int is_on);
429 void mtu3_set_speed(struct mtu3 *mtu, enum usb_device_speed speed);
431 int mtu3_gadget_setup(struct mtu3 *mtu);
[all …]
/kernel/linux/linux-5.10/drivers/clocksource/
Dsh_mtu2.c33 struct sh_mtu2_device *mtu; member
161 return ioread8(ch->mtu->mapbase + 0x280); in sh_mtu2_read()
177 return iowrite8(value, ch->mtu->mapbase + 0x280); in sh_mtu2_write()
192 raw_spin_lock_irqsave(&ch->mtu->lock, flags); in sh_mtu2_start_stop_ch()
201 raw_spin_unlock_irqrestore(&ch->mtu->lock, flags); in sh_mtu2_start_stop_ch()
210 pm_runtime_get_sync(&ch->mtu->pdev->dev); in sh_mtu2_enable()
211 dev_pm_syscore_device(&ch->mtu->pdev->dev, true); in sh_mtu2_enable()
214 ret = clk_enable(ch->mtu->clk); in sh_mtu2_enable()
216 dev_err(&ch->mtu->pdev->dev, "ch%u: cannot enable clock\n", in sh_mtu2_enable()
224 rate = clk_get_rate(ch->mtu->clk) / 64; in sh_mtu2_enable()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/net/
Dpmtu.sh835 mtu() { function
838 mtu="${3}"
840 ${ns_cmd} ip link set dev ${dev} mtu ${mtu}
916 mtu "${ns_a}" veth_A-R1 2000
917 mtu "${ns_r1}" veth_R1-A 2000
918 mtu "${ns_r1}" veth_R1-B 1400
919 mtu "${ns_b}" veth_B-R1 1400
921 mtu "${ns_a}" veth_A-R2 2000
922 mtu "${ns_r2}" veth_R2-A 2000
923 mtu "${ns_r2}" veth_R2-B 1500
[all …]
Dfib_nexthop_multiprefix.sh156 local mtu=$2
158 run_cmd ip -netns h${hostid} li set eth0 mtu ${mtu}
159 run_cmd ip -netns r1 li set eth${hostid} mtu ${mtu}
168 local mtu=$2
183 echo " cache .* mtu ${mtu}"
188 grep -q "cache .* mtu ${mtu}"
191 log_test $rc 0 "IPv4: host 0 to host ${i}, mtu ${mtu}"
197 local mtu=$2
212 echo " ${dst} from :: via ${r1} dev eth0 src ${h0} .* mtu ${mtu}"
217 grep -q "${dst} from :: via ${r1} dev eth0 src ${h0} .* mtu ${mtu}"
[all …]
Dudpgso.c291 static void __set_device_mtu(int fd, const char *ifname, unsigned int mtu) in __set_device_mtu() argument
297 ifr.ifr_mtu = mtu; in __set_device_mtu()
304 static void set_device_mtu(int fd, int mtu) in set_device_mtu() argument
311 __set_device_mtu(fd, cfg_ifname, mtu); in set_device_mtu()
313 if (val != mtu) in set_device_mtu()
340 unsigned int mtu; in get_path_mtu() local
343 vallen = sizeof(mtu); in get_path_mtu()
345 ret = getsockopt(fd, SOL_IP, IP_MTU, &mtu, &vallen); in get_path_mtu()
347 ret = getsockopt(fd, SOL_IPV6, IPV6_MTU, &mtu, &vallen); in get_path_mtu()
353 fprintf(stderr, "path mtu (read): %u\n", mtu); in get_path_mtu()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/net/forwarding/
Dipip_lib.sh320 local mtu=$1
322 ip link set mtu $mtu dev $h1
323 ip link set mtu $mtu dev $ol1
324 ip link set mtu $mtu dev g1a
325 ip link set mtu $mtu dev $ul1
326 ip link set mtu $mtu dev $ul1.111
327 ip link set mtu $mtu dev $h2
328 ip link set mtu $mtu dev $ol2
329 ip link set mtu $mtu dev g2a
330 ip link set mtu $mtu dev $ul2
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/sw/rxe/
Drxe_param.h12 static inline enum ib_mtu rxe_mtu_int_to_enum(int mtu) in rxe_mtu_int_to_enum() argument
14 if (mtu < 256) in rxe_mtu_int_to_enum()
16 else if (mtu < 512) in rxe_mtu_int_to_enum()
18 else if (mtu < 1024) in rxe_mtu_int_to_enum()
20 else if (mtu < 2048) in rxe_mtu_int_to_enum()
22 else if (mtu < 4096) in rxe_mtu_int_to_enum()
29 static inline enum ib_mtu eth_mtu_int_to_enum(int mtu) in eth_mtu_int_to_enum() argument
31 mtu -= RXE_MAX_HDR_LENGTH; in eth_mtu_int_to_enum()
33 return rxe_mtu_int_to_enum(mtu); in eth_mtu_int_to_enum()
/kernel/linux/linux-5.10/net/rxrpc/
Dpeer_event.c109 u32 mtu = serr->ee.ee_info; in rxrpc_adjust_mtu() local
111 _net("Rx ICMP Fragmentation Needed (%d)", mtu); in rxrpc_adjust_mtu()
114 if (mtu > 0 && peer->if_mtu == 65535 && mtu < peer->if_mtu) { in rxrpc_adjust_mtu()
115 peer->if_mtu = mtu; in rxrpc_adjust_mtu()
116 _net("I/F MTU %u", mtu); in rxrpc_adjust_mtu()
119 if (mtu == 0) { in rxrpc_adjust_mtu()
121 mtu = peer->if_mtu; in rxrpc_adjust_mtu()
122 if (mtu > 1500) { in rxrpc_adjust_mtu()
123 mtu >>= 1; in rxrpc_adjust_mtu()
124 if (mtu < 1500) in rxrpc_adjust_mtu()
[all …]
/kernel/linux/linux-5.10/net/ipv6/
Dxfrm6_output.c26 void xfrm6_local_rxpmtu(struct sk_buff *skb, u32 mtu) in xfrm6_local_rxpmtu() argument
34 ipv6_local_rxpmtu(sk, &fl6, mtu); in xfrm6_local_rxpmtu()
37 void xfrm6_local_error(struct sk_buff *skb, u32 mtu) in xfrm6_local_error() argument
47 ipv6_local_error(sk, EMSGSIZE, &fl6, mtu); in xfrm6_local_error()
72 unsigned int mtu; in __xfrm6_output() local
86 mtu = ip6_skb_dst_mtu(skb); in __xfrm6_output()
88 mtu = dst_mtu(skb_dst(skb)); in __xfrm6_output()
90 toobig = skb->len > mtu && !skb_is_gso(skb); in __xfrm6_output()
93 xfrm6_local_rxpmtu(skb, mtu); in __xfrm6_output()
100 xfrm_local_error(skb, mtu); in __xfrm6_output()
Dip6_output.c158 struct sk_buff *skb, unsigned int mtu) in ip6_finish_output_gso_slowpath_drop() argument
191 unsigned int mtu; in __ip6_finish_output() local
201 mtu = ip6_skb_dst_mtu(skb); in __ip6_finish_output()
202 if (skb_is_gso(skb) && !skb_gso_validate_network_len(skb, mtu)) in __ip6_finish_output()
203 return ip6_finish_output_gso_slowpath_drop(net, sk, skb, mtu); in __ip6_finish_output()
205 if ((skb->len > mtu && !skb_is_gso(skb)) || in __ip6_finish_output()
275 u32 mtu; in ip6_xmit() local
332 mtu = dst_mtu(dst); in ip6_xmit()
333 if ((skb->len <= mtu) || skb->ignore_df || skb_is_gso(skb)) { in ip6_xmit()
356 ipv6_local_error((struct sock *)sk, EMSGSIZE, fl6, mtu); in ip6_xmit()
[all …]
Dnetfilter.c127 unsigned int mtu, hlen; in br_ip6_fragment() local
137 mtu = skb->dev->mtu; in br_ip6_fragment()
138 if (frag_max_size > mtu || in br_ip6_fragment()
142 mtu = frag_max_size; in br_ip6_fragment()
143 if (mtu < hlen + sizeof(struct frag_hdr) + 8) in br_ip6_fragment()
145 mtu -= hlen + sizeof(struct frag_hdr); in br_ip6_fragment()
160 if (first_len - hlen > mtu || in br_ip6_fragment()
168 if (frag2->len > mtu || in br_ip6_fragment()
209 ip6_frag_init(skb, hlen, mtu, skb->dev->needed_tailroom, in br_ip6_fragment()
/kernel/linux/linux-5.10/include/net/
Dip6_route.h184 void ip6_update_pmtu(struct sk_buff *skb, struct net *net, __be32 mtu, int oif,
186 void ip6_sk_update_pmtu(struct sk_buff *skb, struct sock *sk, __be32 mtu);
202 void rt6_mtu_change(struct net_device *dev, unsigned int mtu);
267 unsigned int mtu; in ip6_skb_dst_mtu() local
273 mtu = READ_ONCE(skb_dst(skb)->dev->mtu); in ip6_skb_dst_mtu()
274 mtu -= lwtunnel_headroom(skb_dst(skb)->lwtstate, mtu); in ip6_skb_dst_mtu()
276 mtu = dst_mtu(skb_dst(skb)); in ip6_skb_dst_mtu()
278 return mtu; in ip6_skb_dst_mtu()
321 unsigned int mtu; in ip6_dst_mtu_forward() local
324 mtu = dst_metric_raw(dst, RTAX_MTU); in ip6_dst_mtu_forward()
[all …]
/kernel/linux/linux-5.10/net/ipv4/
Dip_forward.c43 static bool ip_exceeds_mtu(const struct sk_buff *skb, unsigned int mtu) in ip_exceeds_mtu() argument
45 if (skb->len <= mtu) in ip_exceeds_mtu()
52 if (unlikely(IPCB(skb)->frag_max_size > mtu)) in ip_exceeds_mtu()
58 if (skb_is_gso(skb) && skb_gso_validate_network_len(skb, mtu)) in ip_exceeds_mtu()
88 u32 mtu; in ip_forward() local
130 mtu = ip_dst_mtu_maybe_forward(&rt->dst, true); in ip_forward()
131 if (ip_exceeds_mtu(skb, mtu)) { in ip_forward()
134 htonl(mtu)); in ip_forward()
Dip_tunnel.c285 int mtu = ETH_DATA_LEN; in ip_tunnel_bind_dev() local
316 mtu = min(tdev->mtu, IP_MAX_MTU); in ip_tunnel_bind_dev()
320 mtu -= t_hlen + (dev->type == ARPHRD_ETHER ? dev->hard_header_len : 0); in ip_tunnel_bind_dev()
322 if (mtu < IPV4_MIN_MTU) in ip_tunnel_bind_dev()
323 mtu = IPV4_MIN_MTU; in ip_tunnel_bind_dev()
325 return mtu; in ip_tunnel_bind_dev()
335 int mtu; in ip_tunnel_create() local
342 mtu = ip_tunnel_bind_dev(dev); in ip_tunnel_create()
343 err = dev_set_mtu(dev, mtu); in ip_tunnel_create()
491 int mtu; in tnl_update_pmtu() local
[all …]
Dip_output.c88 unsigned int mtu,
250 struct sk_buff *skb, unsigned int mtu) in ip_finish_output_gso() argument
258 if (skb_gso_validate_network_len(skb, mtu)) in ip_finish_output_gso()
288 err = ip_fragment(net, sk, segs, mtu, ip_finish_output2); in ip_finish_output_gso()
299 unsigned int mtu; in __ip_finish_output() local
308 mtu = ip_skb_dst_mtu(sk, skb); in __ip_finish_output()
310 return ip_finish_output_gso(net, sk, skb, mtu); in __ip_finish_output()
312 if (skb->len > mtu || IPCB(skb)->frag_max_size) in __ip_finish_output()
313 return ip_fragment(net, sk, skb, mtu, ip_finish_output2); in __ip_finish_output()
583 unsigned int mtu, in ip_fragment() argument
[all …]
/kernel/linux/linux-5.10/net/sched/
Dsch_teql.c193 dev->mtu < m->dev->mtu) in teql_qdisc_init()
202 if (dev->mtu < m->dev->mtu) in teql_qdisc_init()
203 m->dev->mtu = dev->mtu; in teql_qdisc_init()
210 m->dev->mtu = dev->mtu; in teql_qdisc_init()
359 int mtu = 0xFFFE; in teql_master_open() local
374 if (slave->mtu < mtu) in teql_master_open()
375 mtu = slave->mtu; in teql_master_open()
391 m->dev->mtu = mtu; in teql_master_open()
422 if (new_mtu > qdisc_dev(q)->mtu) in teql_master_mtu()
427 dev->mtu = new_mtu; in teql_master_mtu()
[all …]
Dsch_tbf.c102 s64 mtu; member
272 if (ptoks > q->mtu) in tbf_dequeue()
273 ptoks = q->mtu; in tbf_dequeue()
321 q->ptokens = q->mtu; in tbf_reset()
347 s64 buffer, mtu; in tbf_change() local
371 mtu = min_t(u64, PSCHED_TICKS2NS(qopt->mtu), ~0U); in tbf_change()
398 mtu = psched_l2t_ns(&peak, pburst); in tbf_change()
400 max_size = min_t(u64, max_size, psched_ns_t2l(&peak, mtu)); in tbf_change()
440 q->mtu = mtu; in tbf_change()
442 q->mtu = PSCHED_TICKS2NS(qopt->mtu); in tbf_change()
[all …]
/kernel/linux/linux-5.10/include/rdma/
Dib_addr.h173 static inline enum ib_mtu iboe_get_mtu(int mtu) in iboe_get_mtu() argument
178 mtu = mtu - (IB_GRH_BYTES + IB_UDP_BYTES + IB_BTH_BYTES + in iboe_get_mtu()
182 if (mtu >= ib_mtu_enum_to_int(IB_MTU_4096)) in iboe_get_mtu()
184 else if (mtu >= ib_mtu_enum_to_int(IB_MTU_2048)) in iboe_get_mtu()
186 else if (mtu >= ib_mtu_enum_to_int(IB_MTU_1024)) in iboe_get_mtu()
188 else if (mtu >= ib_mtu_enum_to_int(IB_MTU_512)) in iboe_get_mtu()
190 else if (mtu >= ib_mtu_enum_to_int(IB_MTU_256)) in iboe_get_mtu()
/kernel/linux/linux-5.10/drivers/net/ethernet/qualcomm/rmnet/
Drmnet_vnd.c84 new_mtu > (priv->real_dev->mtu - headroom)) in rmnet_vnd_change_mtu()
87 rmnet_dev->mtu = new_mtu; in rmnet_vnd_change_mtu()
222 rmnet_dev->mtu = RMNET_DFLT_PACKET_SIZE; in rmnet_vnd_setup()
269 if (rmnet_vnd_change_mtu(rmnet_dev, real_dev->mtu - headroom)) { in rmnet_vnd_newlink()
329 if (ep->egress_dev->mtu > (real_dev->mtu - headroom)) in rmnet_vnd_validate_real_dev_mtu()
347 if (ep->egress_dev->mtu <= (real_dev->mtu - headroom)) in rmnet_vnd_update_dev_mtu()
351 real_dev->mtu - headroom)) in rmnet_vnd_update_dev_mtu()
/kernel/linux/linux-5.10/net/netfilter/
Dnft_rt.c23 u32 minlen = sizeof(struct ipv6hdr), mtu = dst_mtu(skbdst); in get_tcpmss() local
43 mtu = min(mtu, dst_mtu(dst)); in get_tcpmss()
47 if (mtu <= minlen || mtu > 0xffff) in get_tcpmss()
50 return mtu - minlen; in get_tcpmss()

12345678910>>...36