/linux/drivers/usb/mtu3/ |
A D | mtu3_core.c | 300 struct mtu3 *mtu = mep->mtu; in mtu3_ep_reset() local 310 struct mtu3 *mtu = mep->mtu; in mtu3_ep_stall_set() local 344 if (mtu->is_u3_ip && mtu->speed >= USB_SPEED_SUPER) in mtu3_dev_on_off() 362 mtu3_set_speed(mtu, mtu->speed); in mtu3_start() 622 mtu->out_eps = &ep_array[mtu->num_eps]; in mtu3_mem_alloc() 624 mtu->ep0 = mtu->in_eps; in mtu3_mem_alloc() 625 mtu->ep0->mtu = mtu; in mtu3_mem_alloc() 844 mtu->speed = mtu->max_speed; in mtu3_check_params() 954 mtu->mac_base, mtu->ippc_base); in ssusb_gadget_init() 1017 if (!mtu) in ssusb_gadget_ip_sleep_check() [all …]
|
A D | mtu3_gadget.c | 19 struct mtu3 *mtu = mreq->mtu; in mtu3_req_complete() local 63 struct mtu3 *mtu = mep->mtu; in mtu3_ep_enable() local 134 struct mtu3 *mtu = mep->mtu; in mtu3_ep_disable() local 170 mtu = mep->mtu; in mtu3_gadget_ep_enable() 210 struct mtu3 *mtu = mep->mtu; in mtu3_gadget_ep_disable() local 264 struct mtu3 *mtu = mep->mtu; in mtu3_gadget_queue() local 294 mreq->mtu = mtu; in mtu3_gadget_queue() 327 struct mtu3 *mtu = mep->mtu; in mtu3_gadget_dequeue() local 366 struct mtu3 *mtu = mep->mtu; in mtu3_gadget_ep_set_halt() local 620 mep->mtu = mtu; in init_hw_ep() [all …]
|
A D | mtu3_gadget_ep0.c | 18 #define next_ep0_request(mtu) next_request((mtu)->ep0) argument 137 struct mtu3 *mtu = mep0->mtu; in ep0_stall_set() local 179 mtu = mreq->mtu; in ep0_set_sel_complete() 196 mtu->ep0_req.mep = mtu->ep0; in ep0_set_sel() 198 mtu->ep0_req.request.buf = mtu->setup_buf; in ep0_set_sel() 200 ret = ep0_queue(mtu->ep0, &mtu->ep0_req); in ep0_set_sel() 263 mtu->ep0_req.mep = mtu->ep0; in ep0_get_status() 796 struct mtu3 *mtu = mep->mtu; in ep0_queue() local 798 mreq->mtu = mtu; in ep0_queue() 849 mtu = mep->mtu; in mtu3_ep0_queue() [all …]
|
A D | mtu3_qmu.c | 57 #define GPD_EXT_NGP(mtu, x) \ argument 191 struct mtu3 *mtu = mep->mtu; in mtu3_qmu_resume() local 249 struct mtu3 *mtu = mep->mtu; in mtu3_prepare_tx_gpd() local 270 if (mtu->gen2cp) in mtu3_prepare_tx_gpd() 292 struct mtu3 *mtu = mep->mtu; in mtu3_prepare_rx_gpd() local 332 struct mtu3 *mtu = mep->mtu; in mtu3_qmu_start() local 376 struct mtu3 *mtu = mep->mtu; in mtu3_qmu_stop() local 553 qmu_done_rx(mtu, i); in qmu_done_isr() 555 qmu_done_tx(mtu, i); in qmu_done_isr() 631 mtu->qmu_gpd_pool = dma_pool_create("QMU_GPD", mtu->dev, in mtu3_qmu_init() [all …]
|
A D | mtu3_debugfs.c | 102 mep = mtu->in_eps + i; in mtu3_ep_used_show() 108 mep = mtu->out_eps + i; in mtu3_ep_used_show() 170 mtu3_debugfs_regset(mtu, mtu->mac_base, regs, 7, "ep-regs", parent); in mtu3_debugfs_ep_regset() 176 struct mtu3 *mtu = mep->mtu; in mtu3_ep_info_show() local 190 struct mtu3 *mtu = mep->mtu; in mtu3_fifo_show() local 204 struct mtu3 *mtu = mep->mtu; in mtu3_qmu_ring_show() local 222 struct mtu3 *mtu = mep->mtu; in mtu3_qmu_gpd_show() local 365 mtu3_debugfs_regset(mtu, mtu->ippc_base, mtu3_prb_regs, in mtu3_debugfs_create_prb_files() 408 mtu3_debugfs_regset(mtu, mtu->ippc_base, in ssusb_dev_debugfs_init() 412 mtu3_debugfs_regset(mtu, mtu->mac_base, in ssusb_dev_debugfs_init() [all …]
|
A D | mtu3.h | 276 struct mtu3 *mtu; member 299 struct mtu3 *mtu; member 423 void mtu3_start(struct mtu3 *mtu); 424 void mtu3_stop(struct mtu3 *mtu); 427 int mtu3_gadget_setup(struct mtu3 *mtu); 428 void mtu3_gadget_cleanup(struct mtu3 *mtu); 429 void mtu3_gadget_reset(struct mtu3 *mtu); 430 void mtu3_gadget_suspend(struct mtu3 *mtu); 431 void mtu3_gadget_resume(struct mtu3 *mtu); 432 void mtu3_gadget_disconnect(struct mtu3 *mtu); [all …]
|
/linux/drivers/clocksource/ |
A D | sh_mtu2.c | 346 ch->mtu = mtu; in sh_mtu2_setup_channel() 393 mtu->pdev = pdev; in sh_mtu2_setup() 398 mtu->clk = clk_get(&mtu->pdev->dev, "fck"); in sh_mtu2_setup() 423 mtu->channels = kcalloc(mtu->num_channels, sizeof(*mtu->channels), in sh_mtu2_setup() 431 ret = sh_mtu2_setup_channel(&mtu->channels[i], i, mtu); in sh_mtu2_setup() 441 kfree(mtu->channels); in sh_mtu2_setup() 446 clk_put(mtu->clk); in sh_mtu2_setup() 460 if (mtu) { in sh_mtu2_probe() 465 mtu = kzalloc(sizeof(*mtu), GFP_KERNEL); in sh_mtu2_probe() 466 if (mtu == NULL) in sh_mtu2_probe() [all …]
|
/linux/tools/testing/selftests/net/ |
A D | pmtu.sh | 907 mtu() { function 910 mtu="${3}" 912 ${ns_cmd} ip link set dev ${dev} mtu ${mtu} 1483 mtu "${ns_a}" veth_a 4000 1484 mtu "${ns_b}" veth_b 4000 1485 mtu "${ns_a}" vti6_a 5000 1486 mtu "${ns_b}" vti6_b 5000 1494 mtu "${ns_a}" vti6_a 3000 1499 mtu "${ns_a}" vti6_a 9000 1676 if [ ${mtu} -lt ${min} -o ${mtu} -gt ${max} ]; then [all …]
|
A D | fib_nexthop_multiprefix.sh | 156 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 …]
|
/linux/tools/testing/selftests/net/forwarding/ |
A D | ipip_lib.sh | 320 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 …]
|
A D | ip6gre_lib.sh | 411 local mtu=$1 413 ip link set mtu $mtu dev $h1 414 ip link set mtu $mtu dev $ol1 415 ip link set mtu $mtu dev g1a 416 ip link set mtu $mtu dev $ul1 417 ip link set mtu $mtu dev $ul1.111 418 ip link set mtu $mtu dev $h2 419 ip link set mtu $mtu dev $ol2 420 ip link set mtu $mtu dev g2a 421 ip link set mtu $mtu dev $ul2 [all …]
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
A D | check_mtu.c | 111 static void test_check_mtu_xdp(__u32 mtu, __u32 ifindex) in test_check_mtu_xdp() argument 121 skel->rodata->GLOBAL_USER_MTU = mtu; in test_check_mtu_xdp() 128 test_check_mtu_run_xdp(skel, skel->progs.xdp_use_helper, mtu); in test_check_mtu_xdp() 129 test_check_mtu_run_xdp(skel, skel->progs.xdp_exceed_mtu, mtu); in test_check_mtu_xdp() 131 test_check_mtu_run_xdp(skel, skel->progs.xdp_input_len, mtu); in test_check_mtu_xdp() 171 static void test_check_mtu_tc(__u32 mtu, __u32 ifindex) in test_check_mtu_tc() argument 181 skel->rodata->GLOBAL_USER_MTU = mtu; in test_check_mtu_tc() 188 test_check_mtu_run_tc(skel, skel->progs.tc_use_helper, mtu); in test_check_mtu_tc() 189 test_check_mtu_run_tc(skel, skel->progs.tc_exceed_mtu, mtu); in test_check_mtu_tc() 191 test_check_mtu_run_tc(skel, skel->progs.tc_minus_delta, mtu); in test_check_mtu_tc() [all …]
|
/linux/net/rxrpc/ |
A D | peer_event.c | 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() 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() 125 mtu = 1500; in rxrpc_adjust_mtu() 127 mtu -= 100; in rxrpc_adjust_mtu() 133 if (mtu < peer->mtu) { in rxrpc_adjust_mtu() [all …]
|
/linux/net/ipv6/ |
A D | xfrm6_output.c | 19 void xfrm6_local_rxpmtu(struct sk_buff *skb, u32 mtu) in xfrm6_local_rxpmtu() argument 27 ipv6_local_rxpmtu(sk, &fl6, mtu); in xfrm6_local_rxpmtu() 30 void xfrm6_local_error(struct sk_buff *skb, u32 mtu) in xfrm6_local_error() argument 40 ipv6_local_error(sk, EMSGSIZE, &fl6, mtu); in xfrm6_local_error() 52 unsigned int mtu; in __xfrm6_output() local 66 mtu = ip6_skb_dst_mtu(skb); in __xfrm6_output() 68 mtu = dst_mtu(skb_dst(skb)); in __xfrm6_output() 70 toobig = skb->len > mtu && !skb_is_gso(skb); in __xfrm6_output() 73 xfrm6_local_rxpmtu(skb, mtu); in __xfrm6_output() 77 xfrm_local_error(skb, mtu); in __xfrm6_output()
|
A D | ip6_output.c | 172 unsigned int mtu; in __ip6_finish_output() local 259 u32 mtu; in ip6_xmit() local 310 mtu = dst_mtu(dst); in ip6_xmit() 449 if (skb->len <= mtu) in ip6_pkt_too_big() 472 u32 mtu; in ip6_forward() local 721 state->mtu = mtu; in ip6_frag_init() 743 len = state->mtu; in ip6_frag_next() 1344 *mtu = orig_mtu; in ip6_append_data_mtu() 1356 unsigned int mtu; in ip6_setup_cork() local 1464 orig_mtu = mtu; in __ip6_append_data() [all …]
|
A D | netfilter.c | 127 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()
|
/linux/drivers/infiniband/sw/rxe/ |
A D | rxe_param.h | 14 static inline enum ib_mtu rxe_mtu_int_to_enum(int mtu) in rxe_mtu_int_to_enum() argument 16 if (mtu < 256) in rxe_mtu_int_to_enum() 18 else if (mtu < 512) in rxe_mtu_int_to_enum() 20 else if (mtu < 1024) in rxe_mtu_int_to_enum() 22 else if (mtu < 2048) in rxe_mtu_int_to_enum() 24 else if (mtu < 4096) in rxe_mtu_int_to_enum() 31 static inline enum ib_mtu eth_mtu_int_to_enum(int mtu) in eth_mtu_int_to_enum() argument 33 mtu -= RXE_MAX_HDR_LENGTH; in eth_mtu_int_to_enum() 35 return rxe_mtu_int_to_enum(mtu); in eth_mtu_int_to_enum()
|
/linux/include/net/ |
A D | ip6_route.h | 268 unsigned int mtu; in ip6_skb_dst_mtu() local 274 mtu = READ_ONCE(skb_dst(skb)->dev->mtu); in ip6_skb_dst_mtu() 275 mtu -= lwtunnel_headroom(skb_dst(skb)->lwtstate, mtu); in ip6_skb_dst_mtu() 277 mtu = dst_mtu(skb_dst(skb)); in ip6_skb_dst_mtu() 279 return mtu; in ip6_skb_dst_mtu() 323 unsigned int mtu; in ip6_dst_mtu_maybe_forward() local 326 mtu = dst_metric_raw(dst, RTAX_MTU); in ip6_dst_mtu_maybe_forward() 327 if (mtu) in ip6_dst_mtu_maybe_forward() 331 mtu = IPV6_MIN_MTU; in ip6_dst_mtu_maybe_forward() 335 mtu = idev->cnf.mtu6; in ip6_dst_mtu_maybe_forward() [all …]
|
A D | ip.h | 194 unsigned int mtu; member 446 unsigned int mtu; in ip_dst_mtu_maybe_forward() local 451 mtu = rt->rt_pmtu; in ip_dst_mtu_maybe_forward() 458 if (mtu) in ip_dst_mtu_maybe_forward() 461 mtu = READ_ONCE(dst->dev->mtu); in ip_dst_mtu_maybe_forward() 465 mtu = 576; in ip_dst_mtu_maybe_forward() 469 mtu = min_t(unsigned int, mtu, IP_MAX_MTU); in ip_dst_mtu_maybe_forward() 471 return mtu - lwtunnel_headroom(dst->lwtstate, mtu); in ip_dst_mtu_maybe_forward() 477 unsigned int mtu; in ip_skb_dst_mtu() local 485 mtu = min(READ_ONCE(skb_dst(skb)->dev->mtu), IP_MAX_MTU); in ip_skb_dst_mtu() [all …]
|
/linux/net/sched/ |
A D | sch_teql.c | 194 dev->mtu < m->dev->mtu) in teql_qdisc_init() 203 if (dev->mtu < m->dev->mtu) in teql_qdisc_init() 204 m->dev->mtu = dev->mtu; in teql_qdisc_init() 211 m->dev->mtu = dev->mtu; in teql_qdisc_init() 360 int mtu = 0xFFFE; in teql_master_open() local 375 if (slave->mtu < mtu) in teql_master_open() 376 mtu = slave->mtu; in teql_master_open() 392 m->dev->mtu = mtu; in teql_master_open() 423 if (new_mtu > qdisc_dev(q)->mtu) in teql_master_mtu() 428 dev->mtu = new_mtu; in teql_master_mtu() [all …]
|
/linux/net/mctp/test/ |
A D | route-test.c | 42 unsigned int mtu) in mctp_test_create_route() argument 52 rt->rt.mtu = mtu; in mctp_test_create_route() 124 unsigned int mtu; member 132 int rc, i, n, mtu, msgsize; in mctp_test_fragment() local 139 mtu = params->mtu; in mctp_test_fragment() 205 KUNIT_EXPECT_EQ(test, skb2->len, mtu); in mctp_test_fragment() 207 KUNIT_EXPECT_LE(test, skb2->len, mtu); in mctp_test_fragment() 216 {.mtu = 68, .msgsize = 63, .n_frags = 1}, 217 {.mtu = 68, .msgsize = 64, .n_frags = 1}, 218 {.mtu = 68, .msgsize = 65, .n_frags = 2}, [all …]
|
/linux/net/ipv4/ |
A D | ip_forward.c | 43 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()
|
A D | ip_output.c | 88 unsigned int mtu, 283 unsigned int mtu; in __ip_finish_output() local 581 htonl(mtu)); in ip_fragment() 643 state->mtu = mtu; in ip_frag_init() 677 if (len > state->mtu) in ip_frag_next() 678 len = state->mtu; in ip_frag_next() 785 mtu = mtu - hlen; /* Size of data space */ in ip_do_fragment() 960 int mtu; in __ip_append_data() local 1073 alloclen = mtu; in __ip_append_data() 1324 int mtu; in ip_append_page() local [all …]
|
A D | ip_tunnel.c | 316 mtu = min(tdev->mtu, IP_MAX_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 491 int mtu; in tnl_update_pmtu() local 501 mtu = skb_valid_dst(skb) ? dst_mtu(skb_dst(skb)) : dev->mtu; in tnl_update_pmtu() 847 int mtu; in ip_tunnel_update() local 853 dev->mtu = mtu; in ip_tunnel_update() 995 dev->mtu = new_mtu; in __ip_tunnel_change_mtu() 1134 int mtu; in ip_tunnel_newlink() local [all …]
|
/linux/drivers/infiniband/hw/irdma/ |
A D | main.c | 55 static void irdma_log_invalid_mtu(u16 mtu, struct irdma_sc_dev *dev) in irdma_log_invalid_mtu() argument 57 if (mtu < IRDMA_MIN_MTU_IPV4) in irdma_log_invalid_mtu() 58 …rn(to_ibdev(dev), "MTU setting [%d] too low for RDMA traffic. Minimum MTU is 576 for IPv4\n", mtu); in irdma_log_invalid_mtu() 59 else if (mtu < IRDMA_MIN_MTU_IPV6) in irdma_log_invalid_mtu() 60 …(to_ibdev(dev), "MTU setting [%d] too low for RDMA traffic. Minimum MTU is 1280 for IPv6\\n", mtu); in irdma_log_invalid_mtu() 90 ibdev_dbg(&iwdev->ibdev, "CLNT: new MTU = %d\n", iwdev->netdev->mtu); in irdma_iidc_event_handler() 91 if (iwdev->vsi.mtu != iwdev->netdev->mtu) { in irdma_iidc_event_handler() 92 l2params.mtu = iwdev->netdev->mtu; in irdma_iidc_event_handler() 94 irdma_log_invalid_mtu(l2params.mtu, &iwdev->rf->sc_dev); in irdma_iidc_event_handler() 282 l2params.mtu = iwdev->netdev->mtu; in irdma_probe()
|