Home
last modified time | relevance | path

Searched full:mtu (Results 1 – 25 of 2011) sorted by relevance

12345678910>>...81

/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 …]
/kernel/linux/linux-4.19/drivers/usb/mtu3/
Dmtu3_gadget.c14 __releases(mep->mtu->lock) in mtu3_req_complete()
15 __acquires(mep->mtu->lock) in mtu3_req_complete()
18 struct mtu3 *mtu; in mtu3_req_complete() local
26 mtu = mreq->mtu; in mtu3_req_complete()
28 spin_unlock(&mtu->lock); in mtu3_req_complete()
32 usb_gadget_unmap_request(&mtu->g, req, mep->is_in); in mtu3_req_complete()
34 dev_dbg(mtu->dev, "%s complete req: %p, sts %d, %d/%d\n", mep->name, in mtu3_req_complete()
39 spin_lock(&mtu->lock); in mtu3_req_complete()
51 dev_dbg(mep->mtu->dev, "abort %s's req: sts %d\n", mep->name, status); in nuke()
68 struct mtu3 *mtu = mep->mtu; in mtu3_ep_enable() local
[all …]
Dmtu3_gadget_ep0.c16 #define next_ep0_request(mtu) next_request((mtu)->ep0) argument
37 static char *decode_ep0_state(struct mtu3 *mtu) in decode_ep0_state() argument
39 switch (mtu->ep0_state) { in decode_ep0_state()
55 static void ep0_req_giveback(struct mtu3 *mtu, struct usb_request *req) in ep0_req_giveback() argument
57 mtu3_req_complete(mtu->ep0, req, 0); in ep0_req_giveback()
61 forward_to_driver(struct mtu3 *mtu, const struct usb_ctrlrequest *setup) in forward_to_driver() argument
62 __releases(mtu->lock) in forward_to_driver()
63 __acquires(mtu->lock) in forward_to_driver()
67 if (!mtu->gadget_driver) in forward_to_driver()
70 spin_unlock(&mtu->lock); in forward_to_driver()
[all …]
Dmtu3_core.c42 dev_dbg(mep->mtu->dev, "%s fifo:%#x/%#x, start_bit: %d\n", in ep_fifo_alloc()
63 dev_dbg(mep->mtu->dev, "%s size:%#x/%#x, start_bit: %d\n", in ep_fifo_free()
68 static inline void mtu3_ss_func_set(struct mtu3 *mtu, bool enable) in mtu3_ss_func_set() argument
72 mtu3_setbits(mtu->mac_base, U3D_USB3_CONFIG, USB3_EN); in mtu3_ss_func_set()
74 mtu3_clrbits(mtu->mac_base, U3D_USB3_CONFIG, USB3_EN); in mtu3_ss_func_set()
76 dev_dbg(mtu->dev, "USB3_EN = %d\n", !!enable); in mtu3_ss_func_set()
80 static inline void mtu3_hs_softconn_set(struct mtu3 *mtu, bool enable) in mtu3_hs_softconn_set() argument
83 mtu3_setbits(mtu->mac_base, U3D_POWER_MANAGEMENT, in mtu3_hs_softconn_set()
86 mtu3_clrbits(mtu->mac_base, U3D_POWER_MANAGEMENT, in mtu3_hs_softconn_set()
89 dev_dbg(mtu->dev, "SOFTCONN = %d\n", !!enable); in mtu3_hs_softconn_set()
[all …]
Dmtu3_qmu.c139 gpd = dma_pool_zalloc(mep->mtu->qmu_gpd_pool, GFP_ATOMIC, &ring->dma); in mtu3_gpd_ring_alloc()
152 dma_pool_free(mep->mtu->qmu_gpd_pool, in mtu3_gpd_ring_free()
180 struct mtu3 *mtu = mep->mtu; in mtu3_qmu_resume() local
181 void __iomem *mbase = mtu->mac_base; in mtu3_qmu_resume()
252 dev_dbg(mep->mtu->dev, "TX-EP%d queue gpd=%p, enq=%p, qdma=%pad\n", in mtu3_prepare_tx_gpd()
291 dev_dbg(mep->mtu->dev, "RX-EP%d queue gpd=%p, enq=%p, qdma=%pad\n", in mtu3_prepare_rx_gpd()
317 struct mtu3 *mtu = mep->mtu; in mtu3_qmu_start() local
318 void __iomem *mbase = mtu->mac_base; in mtu3_qmu_start()
333 dev_warn(mtu->dev, "Tx %d Active Now!\n", epnum); in mtu3_qmu_start()
351 dev_warn(mtu->dev, "Rx %d Active Now!\n", epnum); in mtu3_qmu_start()
[all …]
/kernel/linux/linux-4.19/tools/testing/selftests/net/
Dpmtu.sh4 # Check that route PMTU values match expectations, and that initial device MTU
12 # created if link layer MTU is not exceeded, then exceed it and check that
14 # below for IPv6 doesn't apply here, because, on IPv4, administrative MTU
20 # created by exceeding link layer MTU with ping to other endpoint. Then
21 # decrease and increase MTU of tunnel, checking that route exception PMTU
26 # endpoints. Check that MTU assigned to vti interface is the MTU of the
34 # Set up vti4 interface passing MTU value at link creation, check MTU is
35 # configured, and that link is not created with invalid MTU values
42 # and check that configured MTU is used on link creation and changes, and
43 # that MTU is properly calculated instead when MTU is not configured from
[all …]
/kernel/linux/linux-4.19/drivers/clocksource/
Dsh_mtu2.c37 struct sh_mtu2_device *mtu; member
165 return ioread8(ch->mtu->mapbase + 0x280); in sh_mtu2_read()
181 return iowrite8(value, ch->mtu->mapbase + 0x280); in sh_mtu2_write()
196 raw_spin_lock_irqsave(&ch->mtu->lock, flags); in sh_mtu2_start_stop_ch()
205 raw_spin_unlock_irqrestore(&ch->mtu->lock, flags); in sh_mtu2_start_stop_ch()
214 pm_runtime_get_sync(&ch->mtu->pdev->dev); in sh_mtu2_enable()
215 dev_pm_syscore_device(&ch->mtu->pdev->dev, true); in sh_mtu2_enable()
218 ret = clk_enable(ch->mtu->clk); in sh_mtu2_enable()
220 dev_err(&ch->mtu->pdev->dev, "ch%u: cannot enable clock\n", in sh_mtu2_enable()
228 rate = clk_get_rate(ch->mtu->clk) / 64; in sh_mtu2_enable()
[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.sh4 # Check that route PMTU values match expectations, and that initial device MTU
20 # decrease and increase the MTU of the local link for one of the paths,
32 # set a MTU lower than the VXLAN MTU and the MTU on the link between A and
33 # R1. Send IPv4 packets, exceeding the MTU between R1 and B, over VXLAN
66 # MTU on the B-R1 link is lower than other MTUs.
85 # which is handled by Open vSwitch and bridged to C. MTU on the B-R1 link
116 # created if link layer MTU is not exceeded, then exceed it and check that
118 # below for IPv6 doesn't apply here, because, on IPv4, administrative MTU
124 # created by exceeding link layer MTU with ping to other endpoint. Then
125 # decrease and increase MTU of tunnel, checking that route exception PMTU
[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 …]
/kernel/linux/linux-4.19/net/ipv6/
Dxfrm6_output.c47 static void xfrm6_local_rxpmtu(struct sk_buff *skb, u32 mtu) in xfrm6_local_rxpmtu() argument
55 ipv6_local_rxpmtu(sk, &fl6, mtu); in xfrm6_local_rxpmtu()
58 void xfrm6_local_error(struct sk_buff *skb, u32 mtu) in xfrm6_local_error() argument
68 ipv6_local_error(sk, EMSGSIZE, &fl6, mtu); in xfrm6_local_error()
73 int mtu, ret = 0; in xfrm6_tunnel_check_size() local
79 mtu = dst_mtu(dst); in xfrm6_tunnel_check_size()
80 if (mtu < IPV6_MIN_MTU) in xfrm6_tunnel_check_size()
81 mtu = IPV6_MIN_MTU; in xfrm6_tunnel_check_size()
83 if ((!skb_is_gso(skb) && skb->len > mtu) || in xfrm6_tunnel_check_size()
90 xfrm6_local_rxpmtu(skb, mtu); in xfrm6_tunnel_check_size()
[all …]
/kernel/linux/linux-5.10/net/rxrpc/
Dpeer_event.c105 * Handle an MTU/fragmentation problem.
109 u32 mtu = serr->ee.ee_info; in rxrpc_adjust_mtu() local
111 _net("Rx ICMP Fragmentation Needed (%d)", mtu); in rxrpc_adjust_mtu()
113 /* wind down the local interface 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()
[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()
28 /* Find the IB mtu for a given network MTU. */
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-4.19/net/rxrpc/
Dpeer_event.c107 * Handle an MTU/fragmentation problem.
111 u32 mtu = serr->ee.ee_info; in rxrpc_adjust_mtu() local
113 _net("Rx ICMP Fragmentation Needed (%d)", mtu); in rxrpc_adjust_mtu()
115 /* wind down the local interface MTU */ in rxrpc_adjust_mtu()
116 if (mtu > 0 && peer->if_mtu == 65535 && mtu < peer->if_mtu) { in rxrpc_adjust_mtu()
117 peer->if_mtu = mtu; in rxrpc_adjust_mtu()
118 _net("I/F MTU %u", mtu); in rxrpc_adjust_mtu()
121 if (mtu == 0) { in rxrpc_adjust_mtu()
123 mtu = peer->if_mtu; 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()
59 unsigned int mtu; in __xfrm6_output() local
73 mtu = ip6_skb_dst_mtu(skb); in __xfrm6_output()
75 mtu = dst_mtu(skb_dst(skb)); in __xfrm6_output()
77 toobig = skb->len > mtu && !skb_is_gso(skb); in __xfrm6_output()
80 xfrm6_local_rxpmtu(skb, mtu); in __xfrm6_output()
84 xfrm_local_error(skb, mtu); in __xfrm6_output()
/kernel/linux/linux-4.19/Documentation/networking/
Dnetdevices.txt16 (example: rmmod mydriver </sys/class/net/myeth/mtu )
23 MTU
25 Each network device has a Maximum Transfer Unit. The MTU does not
28 than the mtu. The MTU does not include link layer header overhead, so
29 for example on Ethernet if the standard MTU is 1500 bytes used, the
36 packets based on the current MTU.
38 MTU is symmetrical and applies both to receive and transmit. A device
40 the MTU. A network device may use the MTU as mechanism to size receive
42 standard Ethernet mtu of 1500 bytes, the device should allow up to
/kernel/linux/linux-4.19/drivers/infiniband/sw/rxe/
Drxe_param.h37 static inline enum ib_mtu rxe_mtu_int_to_enum(int mtu) in rxe_mtu_int_to_enum() argument
39 if (mtu < 256) in rxe_mtu_int_to_enum()
41 else if (mtu < 512) in rxe_mtu_int_to_enum()
43 else if (mtu < 1024) in rxe_mtu_int_to_enum()
45 else if (mtu < 2048) in rxe_mtu_int_to_enum()
47 else if (mtu < 4096) in rxe_mtu_int_to_enum()
53 /* Find the IB mtu for a given network MTU. */
54 static inline enum ib_mtu eth_mtu_int_to_enum(int mtu) in eth_mtu_int_to_enum() argument
56 mtu -= RXE_MAX_HDR_LENGTH; in eth_mtu_int_to_enum()
58 return rxe_mtu_int_to_enum(mtu); in eth_mtu_int_to_enum()
/kernel/linux/linux-5.10/Documentation/networking/
Dnetdevices.rst19 (example: rmmod mydriver </sys/class/net/myeth/mtu )
26 MTU chapter
28 Each network device has a Maximum Transfer Unit. The MTU does not
31 than the mtu. The MTU does not include link layer header overhead, so
32 for example on Ethernet if the standard MTU is 1500 bytes used, the
39 packets based on the current MTU.
41 MTU is symmetrical and applies both to receive and transmit. A device
43 the MTU. A network device may use the MTU as mechanism to size receive
45 standard Ethernet mtu of 1500 bytes, the device should allow up to
/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/tools/testing/selftests/tc-testing/tc-tests/actions/
Dpolice.json53 "name": "Add valid police action with mtu",
66 "cmdUnderTest": "$TC actions add action police rate 90kbit burst 10k mtu 1k index 98",
69 "matchPattern": "action order [0-9]*: police 0x62 rate 90Kbit burst 10Kb mtu 1Kb",
90 …"cmdUnderTest": "$TC actions add action police rate 90kbit burst 10k mtu 2kb peakrate 100kbit inde…
93 …"matchPattern": "action order [0-9]*: police 0x3 rate 90Kbit burst 10Kb mtu 2Kb peakrate 100Kbit",
101 "name": "Add police action with peakrate and no mtu",
141 …"matchPattern": "action order [0-9]*: police 0x40 rate 1Mbit burst 100Kb mtu 2Kb action reclassif…
165 …"matchPattern": "action order [0-9]*: police 0x8 rate 2Mbit burst 200Kb mtu 2Kb action reclassify…
189 …"matchPattern": "action order [0-9]*: police 0x8 rate 2Mbit burst 200Kb mtu 2Kb action reclassify…
213 …"matchPattern": "action order [0-9]*: police 0x1 rate 3Mbit burst 250Kb mtu 2Kb action continue/d…
[all …]
/kernel/linux/linux-4.19/tools/testing/selftests/tc-testing/tc-tests/actions/
Dpolice.json53 "name": "Add valid police action with mtu",
66 "cmdUnderTest": "$TC actions add action police rate 90kbit burst 10k mtu 1k index 98",
69 "matchPattern": "action order [0-9]*: police 0x62 rate 90Kbit burst 10Kb mtu 1Kb",
90 …"cmdUnderTest": "$TC actions add action police rate 90kbit burst 10k mtu 2kb peakrate 100kbit inde…
93 …"matchPattern": "action order [0-9]*: police 0x3 rate 90Kbit burst 10Kb mtu 2Kb peakrate 100Kbit",
101 "name": "Add police action with peakrate and no mtu",
141 …"matchPattern": "action order [0-9]*: police 0x40 rate 1Mbit burst 100Kb mtu 2Kb action reclassif…
165 …"matchPattern": "action order [0-9]*: police 0x8 rate 2Mbit burst 200Kb mtu 2Kb action reclassify…
189 …"matchPattern": "action order [0-9]*: police 0x8 rate 2Mbit burst 200Kb mtu 2Kb action reclassify…
213 …"matchPattern": "action order [0-9]*: police 0x1 rate 3Mbit burst 250Kb mtu 2Kb action continue/d…
[all …]

12345678910>>...81