mtu 25 arch/sparc/include/asm/ldc.h u32 mtu; mtu 227 arch/sparc/include/asm/vio.h u64 mtu; mtu 1163 arch/sparc/kernel/ds.c .mtu = 4096, mtu 1191 arch/sparc/kernel/ldc.c if (!lp->cfg.mtu) mtu 1192 arch/sparc/kernel/ldc.c lp->cfg.mtu = LDC_DEFAULT_MTU; mtu 1195 arch/sparc/kernel/ldc.c mssbuf = kzalloc(lp->cfg.mtu, GFP_KERNEL); mtu 1906 arch/sparc/kernel/ldc.c if (size > lp->cfg.mtu) mtu 1907 arch/sparc/kernel/ldc.c size = lp->cfg.mtu; mtu 1914 arch/sparc/kernel/ldc.c int err = read_nonraw(lp, lp->mssbuf, lp->cfg.mtu); mtu 45 arch/um/drivers/daemon_kern.c skb->dev->mtu + ETH_HEADER_OTHER); mtu 191 arch/um/drivers/daemon_user.c .mtu = ETH_MAX_PACKET, mtu 467 arch/um/drivers/net_kern.c dev->mtu = transport->user->mtu; mtu 37 arch/um/drivers/pcap_kern.c skb->dev->mtu + ETH_HEADER_OTHER, mtu 135 arch/um/drivers/pcap_user.c .mtu = ETH_MAX_PACKET, mtu 49 arch/um/drivers/slip_kern.c return slip_user_read(fd, skb_mac_header(skb), skb->dev->mtu, mtu 249 arch/um/drivers/slip_user.c .mtu = BUF_SIZE, mtu 54 arch/um/drivers/slirp_kern.c return slirp_user_read(fd, skb_mac_header(skb), skb->dev->mtu, mtu 123 arch/um/drivers/slirp_user.c .mtu = BUF_SIZE, mtu 54 arch/um/drivers/umcast_kern.c skb->dev->mtu + ETH_HEADER_OTHER); mtu 182 arch/um/drivers/umcast_user.c .mtu = ETH_MAX_PACKET, mtu 45 arch/um/drivers/vde_kern.c skb->dev->mtu + ETH_HEADER_OTHER); mtu 71 arch/um/drivers/vde_user.c .mtu = ETH_MAX_PACKET, mtu 120 arch/um/drivers/vector_kern.c char *mtu = uml_vector_fetch_arg(def, "mtu"); mtu 123 arch/um/drivers/vector_kern.c if (mtu != NULL) { mtu 124 arch/um/drivers/vector_kern.c if (kstrtoul(mtu, 10, &result) == 0) mtu 133 arch/um/drivers/vector_kern.c char *mtu = uml_vector_fetch_arg(def, "depth"); mtu 136 arch/um/drivers/vector_kern.c if (mtu != NULL) { mtu 137 arch/um/drivers/vector_kern.c if (kstrtoul(mtu, 10, &result) == 0) mtu 145 arch/um/drivers/vector_kern.c char *mtu = uml_vector_fetch_arg(def, "headroom"); mtu 148 arch/um/drivers/vector_kern.c if (mtu != NULL) { mtu 149 arch/um/drivers/vector_kern.c if (kstrtoul(mtu, 10, &result) == 0) mtu 1477 arch/um/drivers/vector_kern.c dev->mtu = get_mtu(def); mtu 24 arch/um/include/shared/net_user.h int mtu; mtu 44 arch/um/os-Linux/drivers/ethertap_kern.c skb->dev->mtu + 2 + ETH_HEADER_ETHERTAP); mtu 246 arch/um/os-Linux/drivers/ethertap_user.c .mtu = ETH_MAX_PACKET, mtu 41 arch/um/os-Linux/drivers/tuntap_kern.c skb->dev->mtu + ETH_HEADER_OTHER); mtu 213 arch/um/os-Linux/drivers/tuntap_user.c .mtu = ETH_MAX_PACKET, mtu 78 arch/xtensa/platforms/iss/network.c int mtu; mtu 199 arch/xtensa/platforms/iss/network.c (*skb)->data, (*skb)->dev->mtu + ETH_HEADER_OTHER); mtu 256 arch/xtensa/platforms/iss/network.c lp->mtu = TRANSPORT_TUNTAP_MTU; mtu 285 arch/xtensa/platforms/iss/network.c skb = dev_alloc_skb(dev->mtu + 2 + ETH_HEADER_OTHER); mtu 565 arch/xtensa/platforms/iss/network.c dev->mtu = lp->mtu; mtu 1225 drivers/atm/fore200e.c fore200e_activate_vcin(struct fore200e* fore200e, int activate, struct atm_vcc* vcc, int mtu) mtu 1258 drivers/atm/fore200e.c mtu = 48; mtu 1261 drivers/atm/fore200e.c fore200e->bus->write(mtu, &entry->cp_entry->cmd.activate_block.mtu); mtu 295 drivers/atm/fore200e.h u32 mtu; /* for AAL0 only */ mtu 1583 drivers/block/aoe/aoecmd.c n = skb->dev->mtu; mtu 908 drivers/block/sunvdc.c .mtu = 64, mtu 977 drivers/bluetooth/btusb.c static inline void __fill_isoc_descriptor(struct urb *urb, int len, int mtu) mtu 981 drivers/bluetooth/btusb.c BT_DBG("len %d mtu %d", len, mtu); mtu 983 drivers/bluetooth/btusb.c for (i = 0; i < BTUSB_MAX_ISOC_FRAMES && len >= mtu; mtu 984 drivers/bluetooth/btusb.c i++, offset += mtu, len -= mtu) { mtu 986 drivers/bluetooth/btusb.c urb->iso_frame_desc[i].length = mtu; mtu 29 drivers/clocksource/sh_mtu2.c struct sh_mtu2_device *mtu; mtu 157 drivers/clocksource/sh_mtu2.c return ioread8(ch->mtu->mapbase + 0x280); mtu 173 drivers/clocksource/sh_mtu2.c return iowrite8(value, ch->mtu->mapbase + 0x280); mtu 188 drivers/clocksource/sh_mtu2.c raw_spin_lock_irqsave(&ch->mtu->lock, flags); mtu 197 drivers/clocksource/sh_mtu2.c raw_spin_unlock_irqrestore(&ch->mtu->lock, flags); mtu 206 drivers/clocksource/sh_mtu2.c pm_runtime_get_sync(&ch->mtu->pdev->dev); mtu 207 drivers/clocksource/sh_mtu2.c dev_pm_syscore_device(&ch->mtu->pdev->dev, true); mtu 210 drivers/clocksource/sh_mtu2.c ret = clk_enable(ch->mtu->clk); mtu 212 drivers/clocksource/sh_mtu2.c dev_err(&ch->mtu->pdev->dev, "ch%u: cannot enable clock\n", mtu 220 drivers/clocksource/sh_mtu2.c rate = clk_get_rate(ch->mtu->clk) / 64; mtu 247 drivers/clocksource/sh_mtu2.c clk_disable(ch->mtu->clk); mtu 249 drivers/clocksource/sh_mtu2.c dev_pm_syscore_device(&ch->mtu->pdev->dev, false); mtu 250 drivers/clocksource/sh_mtu2.c pm_runtime_put(&ch->mtu->pdev->dev); mtu 288 drivers/clocksource/sh_mtu2.c dev_info(&ch->mtu->pdev->dev, "ch%u: used for periodic clock events\n", mtu 296 drivers/clocksource/sh_mtu2.c pm_genpd_syscore_poweroff(&ced_to_sh_mtu2(ced)->mtu->pdev->dev); mtu 301 drivers/clocksource/sh_mtu2.c pm_genpd_syscore_poweron(&ced_to_sh_mtu2(ced)->mtu->pdev->dev); mtu 318 drivers/clocksource/sh_mtu2.c dev_info(&ch->mtu->pdev->dev, "ch%u: used for clock events\n", mtu 325 drivers/clocksource/sh_mtu2.c ch->mtu->has_clockevent = true; mtu 336 drivers/clocksource/sh_mtu2.c struct sh_mtu2_device *mtu) mtu 342 drivers/clocksource/sh_mtu2.c ch->mtu = mtu; mtu 345 drivers/clocksource/sh_mtu2.c irq = platform_get_irq_byname(mtu->pdev, name); mtu 353 drivers/clocksource/sh_mtu2.c dev_name(&ch->mtu->pdev->dev), ch); mtu 355 drivers/clocksource/sh_mtu2.c dev_err(&ch->mtu->pdev->dev, "ch%u: failed to request irq %d\n", mtu 360 drivers/clocksource/sh_mtu2.c ch->base = mtu->mapbase + sh_mtu2_channel_offsets[index]; mtu 363 drivers/clocksource/sh_mtu2.c return sh_mtu2_register(ch, dev_name(&mtu->pdev->dev)); mtu 366 drivers/clocksource/sh_mtu2.c static int sh_mtu2_map_memory(struct sh_mtu2_device *mtu) mtu 370 drivers/clocksource/sh_mtu2.c res = platform_get_resource(mtu->pdev, IORESOURCE_MEM, 0); mtu 372 drivers/clocksource/sh_mtu2.c dev_err(&mtu->pdev->dev, "failed to get I/O memory\n"); mtu 376 drivers/clocksource/sh_mtu2.c mtu->mapbase = ioremap_nocache(res->start, resource_size(res)); mtu 377 drivers/clocksource/sh_mtu2.c if (mtu->mapbase == NULL) mtu 383 drivers/clocksource/sh_mtu2.c static int sh_mtu2_setup(struct sh_mtu2_device *mtu, mtu 389 drivers/clocksource/sh_mtu2.c mtu->pdev = pdev; mtu 391 drivers/clocksource/sh_mtu2.c raw_spin_lock_init(&mtu->lock); mtu 394 drivers/clocksource/sh_mtu2.c mtu->clk = clk_get(&mtu->pdev->dev, "fck"); mtu 395 drivers/clocksource/sh_mtu2.c if (IS_ERR(mtu->clk)) { mtu 396 drivers/clocksource/sh_mtu2.c dev_err(&mtu->pdev->dev, "cannot get clock\n"); mtu 397 drivers/clocksource/sh_mtu2.c return PTR_ERR(mtu->clk); mtu 400 drivers/clocksource/sh_mtu2.c ret = clk_prepare(mtu->clk); mtu 405 drivers/clocksource/sh_mtu2.c ret = sh_mtu2_map_memory(mtu); mtu 407 drivers/clocksource/sh_mtu2.c dev_err(&mtu->pdev->dev, "failed to remap I/O memory\n"); mtu 416 drivers/clocksource/sh_mtu2.c mtu->num_channels = min_t(unsigned int, ret, mtu 419 drivers/clocksource/sh_mtu2.c mtu->channels = kcalloc(mtu->num_channels, sizeof(*mtu->channels), mtu 421 drivers/clocksource/sh_mtu2.c if (mtu->channels == NULL) { mtu 426 drivers/clocksource/sh_mtu2.c for (i = 0; i < mtu->num_channels; ++i) { mtu 427 drivers/clocksource/sh_mtu2.c ret = sh_mtu2_setup_channel(&mtu->channels[i], i, mtu); mtu 432 drivers/clocksource/sh_mtu2.c platform_set_drvdata(pdev, mtu); mtu 437 drivers/clocksource/sh_mtu2.c kfree(mtu->channels); mtu 438 drivers/clocksource/sh_mtu2.c iounmap(mtu->mapbase); mtu 440 drivers/clocksource/sh_mtu2.c clk_unprepare(mtu->clk); mtu 442 drivers/clocksource/sh_mtu2.c clk_put(mtu->clk); mtu 448 drivers/clocksource/sh_mtu2.c struct sh_mtu2_device *mtu = platform_get_drvdata(pdev); mtu 456 drivers/clocksource/sh_mtu2.c if (mtu) { mtu 461 drivers/clocksource/sh_mtu2.c mtu = kzalloc(sizeof(*mtu), GFP_KERNEL); mtu 462 drivers/clocksource/sh_mtu2.c if (mtu == NULL) mtu 465 drivers/clocksource/sh_mtu2.c ret = sh_mtu2_setup(mtu, pdev); mtu 467 drivers/clocksource/sh_mtu2.c kfree(mtu); mtu 475 drivers/clocksource/sh_mtu2.c if (mtu->has_clockevent) mtu 1493 drivers/firewire/net.c net->mtu = 1500U; mtu 925 drivers/hid/intel-ish-hid/ipc/ipc.c dev->mtu = IPC_PAYLOAD_SIZE - sizeof(struct ishtp_msg_hdr); mtu 52 drivers/hid/intel-ish-hid/ishtp/bus.c if (ishtp_hdr->length > dev->mtu) { mtu 685 drivers/hid/intel-ish-hid/ishtp/client.c if (rem <= dev->mtu) { mtu 701 drivers/hid/intel-ish-hid/ishtp/client.c cl->tx_offs += dev->mtu; mtu 702 drivers/hid/intel-ish-hid/ishtp/client.c ishtp_hdr.length = dev->mtu; mtu 215 drivers/hid/intel-ish-hid/ishtp/ishtp-dev.h size_t mtu; mtu 1062 drivers/hsi/clients/ssi_protocol.c dev->mtu = SSIP_DEFAULT_MTU; mtu 1300 drivers/infiniband/core/cm.c cm_req_set_path_mtu(req_msg, param->primary_path->mtu); mtu 1398 drivers/infiniband/core/cm.c param->alternate_path->mtu != param->primary_path->mtu)) mtu 1454 drivers/infiniband/core/cm.c cm_id_priv->path_mtu = param->primary_path->mtu; mtu 1594 drivers/infiniband/core/cm.c primary_path->mtu = cm_req_get_path_mtu(req_msg); mtu 1615 drivers/infiniband/core/cm.c alt_path->mtu = cm_req_get_path_mtu(req_msg); mtu 3207 drivers/infiniband/core/cm.c path->mtu = cm_id_priv->path_mtu; mtu 2895 drivers/infiniband/core/cma.c route->path_rec->mtu = iboe_get_mtu(ndev->mtu); mtu 2901 drivers/infiniband/core/cma.c if (!route->path_rec->mtu) { mtu 4387 drivers/infiniband/core/cma.c mc->multicast.ib->rec.mtu = iboe_get_mtu(ndev->mtu); mtu 4402 drivers/infiniband/core/cma.c if (err || !mc->multicast.ib->rec.mtu) { mtu 1992 drivers/infiniband/core/device.c port_attr->active_mtu = ib_mtu_int_to_enum(netdev->mtu); mtu 297 drivers/infiniband/core/multicast.c src->mtu, dst->mtu)) mtu 261 drivers/infiniband/core/sa_query.c { PATH_REC_FIELD(mtu), mtu 395 drivers/infiniband/core/sa_query.c { OPA_PATH_REC_FIELD(mtu), mtu 447 drivers/infiniband/core/sa_query.c { MCMEMBER_REC_FIELD(mtu), mtu 153 drivers/infiniband/core/uverbs_marshall.c dst->mtu = src->mtu; mtu 205 drivers/infiniband/core/uverbs_marshall.c dst->mtu = src->mtu; mtu 229 drivers/infiniband/hw/bnxt_re/ib_verbs.c port_attr->active_mtu = iboe_get_mtu(rdev->netdev->mtu); mtu 977 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.mtu = qp1_qp->mtu; mtu 1098 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.mtu = ib_mtu_enum_to_int(iboe_get_mtu(rdev->netdev->mtu)); mtu 1254 drivers/infiniband/hw/bnxt_re/ib_verbs.c static u32 __from_ib_mtu(enum ib_mtu mtu) mtu 1256 drivers/infiniband/hw/bnxt_re/ib_verbs.c switch (mtu) { mtu 1272 drivers/infiniband/hw/bnxt_re/ib_verbs.c static enum ib_mtu __to_ib_mtu(u32 mtu) mtu 1274 drivers/infiniband/hw/bnxt_re/ib_verbs.c switch (mtu & CREQ_QUERY_QP_RESP_SB_PATH_MTU_MASK) { mtu 1662 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.mtu = ib_mtu_enum_to_int(qp_attr->path_mtu); mtu 1667 drivers/infiniband/hw/bnxt_re/ib_verbs.c __from_ib_mtu(iboe_get_mtu(rdev->netdev->mtu)); mtu 1668 drivers/infiniband/hw/bnxt_re/ib_verbs.c qp->qplib_qp.mtu = mtu 1669 drivers/infiniband/hw/bnxt_re/ib_verbs.c ib_mtu_enum_to_int(iboe_get_mtu(rdev->netdev->mtu)); mtu 1642 drivers/infiniband/hw/bnxt_re/qplib_fp.c if (qp->mtu) mtu 1643 drivers/infiniband/hw/bnxt_re/qplib_fp.c pkt_num = (data_len + qp->mtu - 1) / qp->mtu; mtu 1664 drivers/infiniband/hw/bnxt_re/qplib_fp.c if (qp->mtu) mtu 1665 drivers/infiniband/hw/bnxt_re/qplib_fp.c pkt_num = (data_len + qp->mtu - 1) / qp->mtu; mtu 1682 drivers/infiniband/hw/bnxt_re/qplib_fp.c if (qp->mtu) mtu 1683 drivers/infiniband/hw/bnxt_re/qplib_fp.c pkt_num = (data_len + qp->mtu - 1) / qp->mtu; mtu 266 drivers/infiniband/hw/bnxt_re/qplib_fp.h u32 mtu; mtu 349 drivers/infiniband/hw/cxgb3/iwch_cm.c static unsigned int find_best_mtu(const struct t3c_data *d, unsigned short mtu) mtu 353 drivers/infiniband/hw/cxgb3/iwch_cm.c while (i < d->nmtus - 1 && d->mtus[i + 1] <= mtu) mtu 775 drivers/infiniband/hw/cxgb4/cm.c cxgb_best_mtu(ep->com.dev->rdev.lldi.mtus, ep->mtu, &mtu_idx, mtu 1987 drivers/infiniband/hw/cxgb4/cm.c cxgb_best_mtu(ep->com.dev->rdev.lldi.mtus, ep->mtu, &mtu_idx, mtu 2105 drivers/infiniband/hw/cxgb4/cm.c ep->mtu = pdev->mtu; mtu 2124 drivers/infiniband/hw/cxgb4/cm.c ep->mtu = dst_mtu(dst); mtu 2425 drivers/infiniband/hw/cxgb4/cm.c cxgb_best_mtu(ep->com.dev->rdev.lldi.mtus, ep->mtu, &mtu_idx, mtu 2594 drivers/infiniband/hw/cxgb4/cm.c if (peer_mss && child_ep->mtu > (peer_mss + hdrs)) mtu 2595 drivers/infiniband/hw/cxgb4/cm.c child_ep->mtu = peer_mss + hdrs; mtu 898 drivers/infiniband/hw/cxgb4/iw_cxgb4.h u32 mtu; mtu 64 drivers/infiniband/hw/efa/efa.h u32 mtu; mtu 621 drivers/infiniband/hw/efa/efa_admin_cmds_defs.h u32 mtu; mtu 443 drivers/infiniband/hw/efa/efa_com_cmd.c result->mtu = resp.u.network_attr.mtu; mtu 105 drivers/infiniband/hw/efa/efa_com_cmd.h u32 mtu; mtu 37 drivers/infiniband/hw/efa/efa_main.c dev->mtu = network_attr->mtu; mtu 341 drivers/infiniband/hw/efa/efa_verbs.c props->max_mtu = ib_mtu_int_to_enum(dev->mtu); mtu 342 drivers/infiniband/hw/efa/efa_verbs.c props->active_mtu = ib_mtu_int_to_enum(dev->mtu); mtu 343 drivers/infiniband/hw/efa/efa_verbs.c props->max_msg_sz = dev->mtu; mtu 10081 drivers/infiniband/hw/hfi1/chip.c u32 maxvlmtu = dd->vld[15].mtu; mtu 10082 drivers/infiniband/hw/hfi1/chip.c u64 len1 = 0, len2 = (((dd->vld[15].mtu + max_hb) >> 2) mtu 10089 drivers/infiniband/hw/hfi1/chip.c if (dd->vld[i].mtu > maxvlmtu) mtu 10090 drivers/infiniband/hw/hfi1/chip.c maxvlmtu = dd->vld[i].mtu; mtu 10092 drivers/infiniband/hw/hfi1/chip.c len1 |= (((dd->vld[i].mtu + max_hb) >> 2) mtu 10096 drivers/infiniband/hw/hfi1/chip.c len2 |= (((dd->vld[i].mtu + max_hb) >> 2) mtu 10107 drivers/infiniband/hw/hfi1/chip.c dd->vld[i].mtu, mtu 10116 drivers/infiniband/hw/hfi1/chip.c dd->vld[15].mtu, mtu 10612 drivers/infiniband/hw/hfi1/chip.c if ((reg && !ppd->dd->vld[i].mtu) || mtu 10613 drivers/infiniband/hw/hfi1/chip.c (!reg && ppd->dd->vld[i].mtu)) mtu 14866 drivers/infiniband/hw/hfi1/chip.c dd->vld[vl].mtu = hfi1_max_mtu; mtu 14867 drivers/infiniband/hw/hfi1/chip.c dd->vld[15].mtu = MAX_MAD_PACKET; mtu 1174 drivers/infiniband/hw/hfi1/driver.c int mtu_to_enum(u32 mtu, int default_if_bad) mtu 1176 drivers/infiniband/hw/hfi1/driver.c switch (mtu) { mtu 1189 drivers/infiniband/hw/hfi1/driver.c u16 enum_to_mtu(int mtu) mtu 1191 drivers/infiniband/hw/hfi1/driver.c switch (mtu) { mtu 1219 drivers/infiniband/hw/hfi1/driver.c if (ppd->ibmtu < dd->vld[i].mtu) mtu 1220 drivers/infiniband/hw/hfi1/driver.c ppd->ibmtu = dd->vld[i].mtu; mtu 996 drivers/infiniband/hw/hfi1/hfi.h u16 mtu; mtu 1790 drivers/infiniband/hw/hfi1/hfi.h int mtu_to_enum(u32 mtu, int default_if_bad); mtu 1791 drivers/infiniband/hw/hfi1/hfi.h u16 enum_to_mtu(int mtu); mtu 1792 drivers/infiniband/hw/hfi1/hfi.h static inline int valid_ib_mtu(unsigned int mtu) mtu 1794 drivers/infiniband/hw/hfi1/hfi.h return mtu == 256 || mtu == 512 || mtu 1795 drivers/infiniband/hw/hfi1/hfi.h mtu == 1024 || mtu == 2048 || mtu 1796 drivers/infiniband/hw/hfi1/hfi.h mtu == 4096; mtu 1799 drivers/infiniband/hw/hfi1/hfi.h static inline int valid_opa_max_mtu(unsigned int mtu) mtu 1801 drivers/infiniband/hw/hfi1/hfi.h return mtu >= 2048 && mtu 1802 drivers/infiniband/hw/hfi1/hfi.h (valid_ib_mtu(mtu) || mtu == 8192 || mtu == 10240); mtu 805 drivers/infiniband/hw/hfi1/mad.c u8 mtu; mtu 890 drivers/infiniband/hw/hfi1/mad.c mtu = mtu_to_enum(dd->vld[i].mtu, HFI1_DEFAULT_ACTIVE_MTU); mtu 892 drivers/infiniband/hw/hfi1/mad.c pi->neigh_mtu.pvlx_to_mtu[i / 2] |= (mtu << 4); mtu 894 drivers/infiniband/hw/hfi1/mad.c pi->neigh_mtu.pvlx_to_mtu[i / 2] |= mtu; mtu 897 drivers/infiniband/hw/hfi1/mad.c mtu = mtu_to_enum(dd->vld[15].mtu, 2048); mtu 898 drivers/infiniband/hw/hfi1/mad.c pi->neigh_mtu.pvlx_to_mtu[15 / 2] |= mtu; mtu 1368 drivers/infiniband/hw/hfi1/mad.c u16 lse, lwe, mtu; mtu 1533 drivers/infiniband/hw/hfi1/mad.c mtu = enum_to_mtu((pi->neigh_mtu.pvlx_to_mtu[i / 2] >> mtu 1536 drivers/infiniband/hw/hfi1/mad.c mtu = enum_to_mtu(pi->neigh_mtu.pvlx_to_mtu[i / 2] & mtu 1538 drivers/infiniband/hw/hfi1/mad.c if (mtu == 0xffff) { mtu 1540 drivers/infiniband/hw/hfi1/mad.c mtu, mtu 1543 drivers/infiniband/hw/hfi1/mad.c mtu = hfi1_max_mtu; /* use a valid MTU */ mtu 1545 drivers/infiniband/hw/hfi1/mad.c if (dd->vld[i].mtu != mtu) { mtu 1548 drivers/infiniband/hw/hfi1/mad.c i, dd->vld[i].mtu, mtu); mtu 1549 drivers/infiniband/hw/hfi1/mad.c dd->vld[i].mtu = mtu; mtu 1556 drivers/infiniband/hw/hfi1/mad.c mtu = enum_to_mtu(pi->neigh_mtu.pvlx_to_mtu[15 / 2] & 0xF); mtu 1557 drivers/infiniband/hw/hfi1/mad.c if (mtu < 2048 || mtu == 0xffff) mtu 1558 drivers/infiniband/hw/hfi1/mad.c mtu = 2048; mtu 1559 drivers/infiniband/hw/hfi1/mad.c if (dd->vld[15].mtu != mtu) { mtu 1562 drivers/infiniband/hw/hfi1/mad.c dd->vld[15].mtu, mtu); mtu 1563 drivers/infiniband/hw/hfi1/mad.c dd->vld[15].mtu = mtu; mtu 93 drivers/infiniband/hw/hfi1/pio.c if (!dd->vld[i].mtu) mtu 593 drivers/infiniband/hw/hfi1/pio.c u32 sc_mtu_to_threshold(struct send_context *sc, u32 mtu, u32 hdrqentsize) mtu 599 drivers/infiniband/hw/hfi1/pio.c mtu += hdrqentsize << 2; mtu 600 drivers/infiniband/hw/hfi1/pio.c release_credits = DIV_ROUND_UP(mtu, PIO_BLOCK_SIZE); mtu 1880 drivers/infiniband/hw/hfi1/pio.c dd->vld[i].mtu, mtu 2028 drivers/infiniband/hw/hfi1/pio.c dd->vld[15].mtu = enum_to_mtu(OPA_MTU_2048); mtu 2053 drivers/infiniband/hw/hfi1/pio.c dd->vld[i].mtu = hfi1_max_mtu; mtu 303 drivers/infiniband/hw/hfi1/pio.h u32 sc_mtu_to_threshold(struct send_context *sc, u32 mtu, u32 hdrqentsize); mtu 189 drivers/infiniband/hw/hfi1/qp.c static inline int opa_mtu_enum_to_int(int mtu) mtu 191 drivers/infiniband/hw/hfi1/qp.c switch (mtu) { mtu 203 drivers/infiniband/hw/hfi1/qp.c static inline int verbs_mtu_enum_to_int(struct ib_device *dev, enum ib_mtu mtu) mtu 208 drivers/infiniband/hw/hfi1/qp.c if (mtu == (enum ib_mtu)OPA_MTU_10240) mtu 209 drivers/infiniband/hw/hfi1/qp.c mtu = OPA_MTU_8192; mtu 210 drivers/infiniband/hw/hfi1/qp.c val = opa_mtu_enum_to_int((int)mtu); mtu 213 drivers/infiniband/hw/hfi1/qp.c return ib_mtu_enum_to_int(mtu); mtu 346 drivers/infiniband/hw/hfi1/qp.c if (wqe->length > dd->vld[15].mtu) mtu 846 drivers/infiniband/hw/hfi1/qp.c int mtu_to_path_mtu(u32 mtu) mtu 848 drivers/infiniband/hw/hfi1/qp.c return mtu_to_enum(mtu, OPA_MTU_8192); mtu 853 drivers/infiniband/hw/hfi1/qp.c u32 mtu; mtu 867 drivers/infiniband/hw/hfi1/qp.c mtu = verbs_mtu_enum_to_int(qp->ibqp.device, pmtu); mtu 869 drivers/infiniband/hw/hfi1/qp.c mtu = min_t(u32, mtu, dd->vld[vl].mtu); mtu 870 drivers/infiniband/hw/hfi1/qp.c return mtu; mtu 876 drivers/infiniband/hw/hfi1/qp.c int mtu, pidx = qp->port_num - 1; mtu 883 drivers/infiniband/hw/hfi1/qp.c mtu = verbs_mtu_enum_to_int(qp->ibqp.device, attr->path_mtu); mtu 884 drivers/infiniband/hw/hfi1/qp.c if (mtu == -1) mtu 887 drivers/infiniband/hw/hfi1/qp.c if (mtu > dd->pport[pidx].ibmtu) mtu 160 drivers/infiniband/hw/hfi1/qp.h int mtu_to_path_mtu(u32 mtu); mtu 478 drivers/infiniband/hw/hfi1/sysfs.c return sprintf(buf, "%u\n", dd->vld[vlattr->vl].mtu); mtu 1572 drivers/infiniband/hw/hfi1/verbs.c ah->log_pmtu = ilog2(dd->vld[ah->vl].mtu); mtu 442 drivers/infiniband/hw/hfi1/vnic_main.c int max_len = vinfo->netdev->mtu + VLAN_ETH_HLEN; mtu 944 drivers/infiniband/hw/hns/hns_roce_device.h enum ib_mtu mtu); mtu 1815 drivers/infiniband/hw/hns/hns_roce_hw_v1.c enum ib_mtu mtu) mtu 1824 drivers/infiniband/hw/hns/hns_roce_hw_v1.c ROCEE_SMAC_H_ROCEE_PORT_MTU_S, mtu); mtu 233 drivers/infiniband/hw/hns/hns_roce_main.c enum ib_mtu mtu; mtu 260 drivers/infiniband/hw/hns/hns_roce_main.c mtu = iboe_get_mtu(net_dev->mtu); mtu 261 drivers/infiniband/hw/hns/hns_roce_main.c props->active_mtu = mtu ? min(props->max_mtu, mtu) : IB_MTU_256; mtu 1113 drivers/infiniband/hw/hns/hns_roce_qp.c active_mtu = iboe_get_mtu(hr_dev->iboe.netdevs[p]->mtu); mtu 2217 drivers/infiniband/hw/i40iw/i40iw_cm.c cm_node->tcp_cntxt.mss = iwdev->vsi.mtu - I40IW_MTU_TO_MSS_IPV4; mtu 2230 drivers/infiniband/hw/i40iw/i40iw_cm.c cm_node->tcp_cntxt.mss = iwdev->vsi.mtu - I40IW_MTU_TO_MSS_IPV6; mtu 351 drivers/infiniband/hw/i40iw/i40iw_ctrl.c if (vsi->mtu != l2params->mtu) { mtu 352 drivers/infiniband/hw/i40iw/i40iw_ctrl.c vsi->mtu = l2params->mtu; mtu 4648 drivers/infiniband/hw/i40iw/i40iw_ctrl.c vsi->mtu = info->params->mtu; mtu 971 drivers/infiniband/hw/i40iw/i40iw_main.c info.buf_size = iwdev->vsi.mtu + VLAN_ETH_HLEN; mtu 1354 drivers/infiniband/hw/i40iw/i40iw_main.c l2params.mtu = mtu 1355 drivers/infiniband/hw/i40iw/i40iw_main.c (ldev->params.mtu) ? ldev->params.mtu : I40IW_DEFAULT_MTU; mtu 1778 drivers/infiniband/hw/i40iw/i40iw_main.c l2params->mtu = (params->mtu) ? params->mtu : iwdev->vsi.mtu; mtu 1404 drivers/infiniband/hw/i40iw/i40iw_puda.c pfpdu->max_fpdu_data = (buf->ipv4) ? (ieq->vsi->mtu - I40IW_MTU_TO_MSS_IPV4) : mtu 1405 drivers/infiniband/hw/i40iw/i40iw_puda.c (ieq->vsi->mtu - I40IW_MTU_TO_MSS_IPV6); mtu 463 drivers/infiniband/hw/i40iw/i40iw_type.h u16 mtu; mtu 570 drivers/infiniband/hw/i40iw/i40iw_type.h u16 mtu; mtu 800 drivers/infiniband/hw/mlx4/main.c tmp = iboe_get_mtu(ndev->mtu); mtu 567 drivers/infiniband/hw/mlx5/main.c ndev_ib_mtu = iboe_get_mtu(ndev->mtu); mtu 1234 drivers/infiniband/hw/mlx5/main.c static int mlx5_mtu_to_ib_mtu(int mtu) mtu 1236 drivers/infiniband/hw/mlx5/main.c switch (mtu) { mtu 3863 drivers/infiniband/hw/mlx5/qp.c MLX5_SET(dctc, dctc, mtu, attr->path_mtu); mtu 5749 drivers/infiniband/hw/mlx5/qp.c qp_attr->path_mtu = MLX5_GET(dctc, dctc, mtu); mtu 172 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c props->active_mtu = iboe_get_mtu(netdev->mtu); mtu 1439 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c static enum ib_mtu ocrdma_mtu_int_to_enum(u16 mtu) mtu 1441 drivers/infiniband/hw/ocrdma/ocrdma_verbs.c switch (mtu) { mtu 818 drivers/infiniband/hw/qedr/main.c in_params->max_mtu = dev->ndev->mtu; mtu 819 drivers/infiniband/hw/qedr/main.c dev->iwarp_max_mtu = dev->ndev->mtu; mtu 413 drivers/infiniband/hw/qedr/qedr.h u16 mtu; mtu 278 drivers/infiniband/hw/qedr/qedr_roce_cm.c data.input.mtu = dev->ndev->mtu; mtu 231 drivers/infiniband/hw/qedr/verbs.c attr->active_mtu = iboe_get_mtu(dev->ndev->mtu); mtu 2185 drivers/infiniband/hw/qedr/verbs.c qp->mtu = min(ib_mtu_enum_to_int(attr->path_mtu), mtu 2187 drivers/infiniband/hw/qedr/verbs.c (dev->ndev->mtu))); mtu 2190 drivers/infiniband/hw/qedr/verbs.c if (!qp->mtu) { mtu 2191 drivers/infiniband/hw/qedr/verbs.c qp->mtu = mtu 2192 drivers/infiniband/hw/qedr/verbs.c ib_mtu_enum_to_int(iboe_get_mtu(dev->ndev->mtu)); mtu 2193 drivers/infiniband/hw/qedr/verbs.c pr_err("Fixing zeroed MTU to qp->mtu = %d\n", qp->mtu); mtu 2230 drivers/infiniband/hw/qedr/verbs.c qp_params.mtu = qp->mtu; mtu 2234 drivers/infiniband/hw/qedr/verbs.c if (!qp_params.mtu) { mtu 2236 drivers/infiniband/hw/qedr/verbs.c if (qp->mtu) mtu 2237 drivers/infiniband/hw/qedr/verbs.c qp_params.mtu = qp->mtu; mtu 2239 drivers/infiniband/hw/qedr/verbs.c qp_params.mtu = mtu 2240 drivers/infiniband/hw/qedr/verbs.c ib_mtu_enum_to_int(iboe_get_mtu(dev->ndev->mtu)); mtu 2396 drivers/infiniband/hw/qedr/verbs.c qp_attr->path_mtu = ib_mtu_int_to_enum(params.mtu); mtu 1519 drivers/infiniband/hw/qib/qib.h int qib_mtu_to_path_mtu(u32 mtu); mtu 3078 drivers/infiniband/hw/qib/qib_iba6120.c int mtu; mtu 3095 drivers/infiniband/hw/qib/qib_iba6120.c mtu = ib_mtu_enum_to_int(qib_ibmtu); mtu 3096 drivers/infiniband/hw/qib/qib_iba6120.c if (mtu == -1) mtu 3097 drivers/infiniband/hw/qib/qib_iba6120.c mtu = QIB_DEFAULT_MTU; mtu 3098 drivers/infiniband/hw/qib/qib_iba6120.c dd->pport->ibmtu = (u32)mtu; mtu 3789 drivers/infiniband/hw/qib/qib_iba7220.c int mtu; mtu 3804 drivers/infiniband/hw/qib/qib_iba7220.c mtu = ib_mtu_enum_to_int(qib_ibmtu); mtu 3805 drivers/infiniband/hw/qib/qib_iba7220.c if (mtu == -1) mtu 3806 drivers/infiniband/hw/qib/qib_iba7220.c mtu = QIB_DEFAULT_MTU; mtu 3807 drivers/infiniband/hw/qib/qib_iba7220.c dd->pport->ibmtu = (u32)mtu; mtu 5749 drivers/infiniband/hw/qib/qib_iba7322.c int mtu; mtu 5768 drivers/infiniband/hw/qib/qib_iba7322.c mtu = ib_mtu_enum_to_int(qib_ibmtu); mtu 5769 drivers/infiniband/hw/qib/qib_iba7322.c if (mtu == -1) mtu 5770 drivers/infiniband/hw/qib/qib_iba7322.c mtu = QIB_DEFAULT_MTU; mtu 5771 drivers/infiniband/hw/qib/qib_iba7322.c dd->pport[0].ibmtu = (u32)mtu; mtu 5772 drivers/infiniband/hw/qib/qib_iba7322.c dd->pport[1].ibmtu = (u32)mtu; mtu 6371 drivers/infiniband/hw/qib/qib_iba7322.c int ret, mtu; mtu 6451 drivers/infiniband/hw/qib/qib_iba7322.c mtu = ib_mtu_enum_to_int(qib_ibmtu); mtu 6452 drivers/infiniband/hw/qib/qib_iba7322.c if (mtu == -1) mtu 6453 drivers/infiniband/hw/qib/qib_iba7322.c mtu = QIB_DEFAULT_MTU; mtu 6542 drivers/infiniband/hw/qib/qib_iba7322.c if (mtu <= 2048) mtu 6547 drivers/infiniband/hw/qib/qib_iba7322.c qib_num_cfg_vls, mtu); mtu 6597 drivers/infiniband/hw/qib/qib_iba7322.c dd->rcvegrbufsize = max(mtu, 2048); mtu 687 drivers/infiniband/hw/qib/qib_init.c int mtu; mtu 692 drivers/infiniband/hw/qib/qib_init.c mtu = ib_mtu_enum_to_int(qib_ibmtu); mtu 693 drivers/infiniband/hw/qib/qib_init.c if (mtu == -1) { mtu 694 drivers/infiniband/hw/qib/qib_init.c mtu = QIB_DEFAULT_MTU; mtu 698 drivers/infiniband/hw/qib/qib_init.c ppd->init_ibmaxlen = min(mtu > 2048 ? mtu 707 drivers/infiniband/hw/qib/qib_init.c qib_set_mtu(ppd, mtu); mtu 461 drivers/infiniband/hw/qib/qib_mad.c u8 mtu; mtu 519 drivers/infiniband/hw/qib/qib_mad.c mtu = IB_MTU_4096; mtu 522 drivers/infiniband/hw/qib/qib_mad.c mtu = IB_MTU_2048; mtu 525 drivers/infiniband/hw/qib/qib_mad.c mtu = IB_MTU_1024; mtu 528 drivers/infiniband/hw/qib/qib_mad.c mtu = IB_MTU_512; mtu 531 drivers/infiniband/hw/qib/qib_mad.c mtu = IB_MTU_256; mtu 534 drivers/infiniband/hw/qib/qib_mad.c pip->neighbormtu_mastersmsl = (mtu << 4) | ibp->rvp.sm_sl; mtu 670 drivers/infiniband/hw/qib/qib_mad.c int ret, ore, mtu; mtu 779 drivers/infiniband/hw/qib/qib_mad.c mtu = ib_mtu_enum_to_int((pip->neighbormtu_mastersmsl >> 4) & 0xF); mtu 780 drivers/infiniband/hw/qib/qib_mad.c if (mtu == -1) mtu 783 drivers/infiniband/hw/qib/qib_mad.c qib_set_mtu(ppd, mtu); mtu 265 drivers/infiniband/hw/qib/qib_qp.c static int mtu_to_enum(u32 mtu) mtu 269 drivers/infiniband/hw/qib/qib_qp.c switch (mtu) { mtu 294 drivers/infiniband/hw/qib/qib_qp.c int mtu, pmtu, pidx = qp->port_num - 1; mtu 298 drivers/infiniband/hw/qib/qib_qp.c mtu = ib_mtu_enum_to_int(attr->path_mtu); mtu 299 drivers/infiniband/hw/qib/qib_qp.c if (mtu == -1) mtu 302 drivers/infiniband/hw/qib/qib_qp.c if (mtu > dd->pport[pidx].ibmtu) mtu 309 drivers/infiniband/hw/qib/qib_qp.c int qib_mtu_to_path_mtu(u32 mtu) mtu 311 drivers/infiniband/hw/qib/qib_qp.c return mtu_to_enum(mtu); mtu 1198 drivers/infiniband/hw/qib/qib_verbs.c enum ib_mtu mtu; mtu 1215 drivers/infiniband/hw/qib/qib_verbs.c mtu = IB_MTU_4096; mtu 1218 drivers/infiniband/hw/qib/qib_verbs.c mtu = IB_MTU_2048; mtu 1221 drivers/infiniband/hw/qib/qib_verbs.c mtu = IB_MTU_1024; mtu 1224 drivers/infiniband/hw/qib/qib_verbs.c mtu = IB_MTU_512; mtu 1227 drivers/infiniband/hw/qib/qib_verbs.c mtu = IB_MTU_256; mtu 1230 drivers/infiniband/hw/qib/qib_verbs.c mtu = IB_MTU_2048; mtu 1232 drivers/infiniband/hw/qib/qib_verbs.c props->active_mtu = mtu; mtu 142 drivers/infiniband/hw/usnic/usnic_fwd.c void usnic_fwd_set_mtu(struct usnic_fwd_dev *ufdev, unsigned int mtu) mtu 145 drivers/infiniband/hw/usnic/usnic_fwd.c ufdev->mtu = mtu; mtu 58 drivers/infiniband/hw/usnic/usnic_fwd.h unsigned int mtu; mtu 82 drivers/infiniband/hw/usnic/usnic_fwd.h void usnic_fwd_set_mtu(struct usnic_fwd_dev *ufdev, unsigned int mtu); mtu 202 drivers/infiniband/hw/usnic/usnic_ib_main.c if (us_ibdev->ufdev->mtu != netdev->mtu) { mtu 205 drivers/infiniband/hw/usnic/usnic_ib_main.c us_ibdev->ufdev->mtu, netdev->mtu); mtu 206 drivers/infiniband/hw/usnic/usnic_ib_main.c usnic_fwd_set_mtu(us_ibdev->ufdev, netdev->mtu); mtu 433 drivers/infiniband/hw/usnic/usnic_ib_main.c usnic_fwd_set_mtu(us_ibdev->ufdev, us_ibdev->netdev->mtu); mtu 458 drivers/infiniband/hw/usnic/usnic_ib_main.c us_ibdev->ufdev->link_up, us_ibdev->ufdev->mtu); mtu 375 drivers/infiniband/hw/usnic/usnic_ib_verbs.c props->active_mtu = iboe_get_mtu(us_ibdev->ufdev->mtu); mtu 377 drivers/infiniband/hw/usnic/usnic_ib_verbs.c props->max_msg_sz = us_ibdev->ufdev->mtu; mtu 325 drivers/infiniband/hw/vmw_pvrdma/pvrdma.h static inline enum pvrdma_mtu ib_mtu_to_pvrdma(enum ib_mtu mtu) mtu 327 drivers/infiniband/hw/vmw_pvrdma/pvrdma.h return (enum pvrdma_mtu)mtu; mtu 330 drivers/infiniband/hw/vmw_pvrdma/pvrdma.h static inline enum ib_mtu pvrdma_mtu_to_ib(enum pvrdma_mtu mtu) mtu 332 drivers/infiniband/hw/vmw_pvrdma/pvrdma.h return (enum ib_mtu)mtu; mtu 616 drivers/infiniband/hw/vmw_pvrdma/pvrdma_dev_api.h u32 mtu; mtu 627 drivers/infiniband/hw/vmw_pvrdma/pvrdma_main.c cmd_bind->mtu = ib_mtu_enum_to_int(IB_MTU_1024); mtu 73 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h static inline int pvrdma_mtu_enum_to_int(enum pvrdma_mtu mtu) mtu 75 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h switch (mtu) { mtu 85 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h static inline enum pvrdma_mtu pvrdma_mtu_int_to_enum(int mtu) mtu 87 drivers/infiniband/hw/vmw_pvrdma/pvrdma_verbs.h switch (mtu) { mtu 291 drivers/infiniband/sw/rxe/rxe.c enum ib_mtu mtu; mtu 293 drivers/infiniband/sw/rxe/rxe.c mtu = eth_mtu_int_to_enum(ndev_mtu); mtu 296 drivers/infiniband/sw/rxe/rxe.c mtu = mtu ? min_t(enum ib_mtu, mtu, IB_MTU_4096) : IB_MTU_256; mtu 298 drivers/infiniband/sw/rxe/rxe.c port->attr.active_mtu = mtu; mtu 299 drivers/infiniband/sw/rxe/rxe.c port->mtu_cap = ib_mtu_enum_to_int(mtu); mtu 305 drivers/infiniband/sw/rxe/rxe.c int rxe_add(struct rxe_dev *rxe, unsigned int mtu, const char *ibdev_name) mtu 313 drivers/infiniband/sw/rxe/rxe.c rxe_set_mtu(rxe, mtu); mtu 93 drivers/infiniband/sw/rxe/rxe.h int rxe_add(struct rxe_dev *rxe, unsigned int mtu, const char *ibdev_name); mtu 539 drivers/infiniband/sw/rxe/rxe_net.c err = rxe_add(rxe, ndev->mtu, ibdev_name); mtu 614 drivers/infiniband/sw/rxe/rxe_net.c pr_info("%s changed mtu to %d\n", ndev->name, ndev->mtu); mtu 615 drivers/infiniband/sw/rxe/rxe_net.c rxe_set_mtu(rxe, ndev->mtu); mtu 37 drivers/infiniband/sw/rxe/rxe_param.h static inline enum ib_mtu rxe_mtu_int_to_enum(int mtu) mtu 39 drivers/infiniband/sw/rxe/rxe_param.h if (mtu < 256) mtu 41 drivers/infiniband/sw/rxe/rxe_param.h else if (mtu < 512) mtu 43 drivers/infiniband/sw/rxe/rxe_param.h else if (mtu < 1024) mtu 45 drivers/infiniband/sw/rxe/rxe_param.h else if (mtu < 2048) mtu 47 drivers/infiniband/sw/rxe/rxe_param.h else if (mtu < 4096) mtu 54 drivers/infiniband/sw/rxe/rxe_param.h static inline enum ib_mtu eth_mtu_int_to_enum(int mtu) mtu 56 drivers/infiniband/sw/rxe/rxe_param.h mtu -= RXE_MAX_HDR_LENGTH; mtu 58 drivers/infiniband/sw/rxe/rxe_param.h return rxe_mtu_int_to_enum(mtu); mtu 185 drivers/infiniband/sw/rxe/rxe_qp.c qp->mtu = ib_mtu_enum_to_int(qp->attr.path_mtu); mtu 466 drivers/infiniband/sw/rxe/rxe_qp.c enum ib_mtu mtu = attr->path_mtu; mtu 468 drivers/infiniband/sw/rxe/rxe_qp.c if (mtu > max_mtu) { mtu 470 drivers/infiniband/sw/rxe/rxe_qp.c ib_mtu_enum_to_int(mtu), mtu 645 drivers/infiniband/sw/rxe/rxe_qp.c qp->mtu = ib_mtu_enum_to_int(attr->path_mtu); mtu 51 drivers/infiniband/sw/rxe/rxe_req.c int to_send = (wqe->dma.resid > qp->mtu) ? mtu 52 drivers/infiniband/sw/rxe/rxe_req.c qp->mtu : wqe->dma.resid; mtu 64 drivers/infiniband/sw/rxe/rxe_req.c wqe->iova += qp->mtu; mtu 115 drivers/infiniband/sw/rxe/rxe_req.c qp->mtu; mtu 116 drivers/infiniband/sw/rxe/rxe_req.c wqe->iova += npsn * qp->mtu; mtu 320 drivers/infiniband/sw/rxe/rxe_req.c int fits = (wqe->dma.resid <= qp->mtu); mtu 373 drivers/infiniband/sw/rxe/rxe_req.c return qp->mtu; mtu 535 drivers/infiniband/sw/rxe/rxe_req.c int num_pkt = (wqe->dma.resid + payload + qp->mtu - 1) / qp->mtu; mtu 597 drivers/infiniband/sw/rxe/rxe_req.c int mtu; mtu 691 drivers/infiniband/sw/rxe/rxe_req.c mtu = get_mtu(qp); mtu 693 drivers/infiniband/sw/rxe/rxe_req.c if (payload > mtu) { mtu 714 drivers/infiniband/sw/rxe/rxe_req.c payload = mtu; mtu 425 drivers/infiniband/sw/rxe/rxe_resp.c int mtu = qp->mtu; mtu 476 drivers/infiniband/sw/rxe/rxe_resp.c if (resid > mtu) { mtu 477 drivers/infiniband/sw/rxe/rxe_resp.c if (pktlen != mtu || bth_pad(pkt)) { mtu 662 drivers/infiniband/sw/rxe/rxe_resp.c int mtu = qp->mtu; mtu 690 drivers/infiniband/sw/rxe/rxe_resp.c (reth_len(req_pkt) + mtu - 1) / mtu 691 drivers/infiniband/sw/rxe/rxe_resp.c mtu - 1) & BTH_PSN_MASK; mtu 710 drivers/infiniband/sw/rxe/rxe_resp.c if (res->read.resid <= mtu) mtu 715 drivers/infiniband/sw/rxe/rxe_resp.c if (res->read.resid > mtu) mtu 723 drivers/infiniband/sw/rxe/rxe_resp.c payload = min_t(int, res->read.resid, mtu); mtu 240 drivers/infiniband/sw/rxe/rxe_verbs.h unsigned int mtu; mtu 208 drivers/infiniband/sw/siw/siw_verbs.c attr->max_mtu = ib_mtu_int_to_enum(sdev->netdev->mtu); mtu 540 drivers/infiniband/sw/siw/siw_verbs.c qp_attr->path_mtu = ib_mtu_int_to_enum(sdev->netdev->mtu); mtu 198 drivers/infiniband/ulp/ipoib/ipoib.h __be32 mtu; mtu 255 drivers/infiniband/ulp/ipoib/ipoib.h u32 mtu; mtu 676 drivers/infiniband/ulp/ipoib/ipoib.h unsigned int mtu); mtu 770 drivers/infiniband/ulp/ipoib/ipoib.h unsigned int mtu) mtu 430 drivers/infiniband/ulp/ipoib/ipoib_cm.c data.mtu = cpu_to_be32(IPOIB_CM_BUF_SIZE); mtu 715 drivers/infiniband/ulp/ipoib/ipoib_cm.c if (unlikely(skb->len > tx->mtu)) { mtu 717 drivers/infiniband/ulp/ipoib/ipoib_cm.c skb->len, tx->mtu); mtu 720 drivers/infiniband/ulp/ipoib/ipoib_cm.c ipoib_cm_skb_too_long(dev, skb, tx->mtu - IPOIB_ENCAP_LEN); mtu 996 drivers/infiniband/ulp/ipoib/ipoib_cm.c p->mtu = be32_to_cpu(data->mtu); mtu 998 drivers/infiniband/ulp/ipoib/ipoib_cm.c if (p->mtu <= IPOIB_ENCAP_LEN) { mtu 1000 drivers/infiniband/ulp/ipoib/ipoib_cm.c p->mtu, IPOIB_ENCAP_LEN); mtu 1092 drivers/infiniband/ulp/ipoib/ipoib_cm.c data.mtu = cpu_to_be32(IPOIB_CM_BUF_SIZE); mtu 1433 drivers/infiniband/ulp/ipoib/ipoib_cm.c unsigned int mtu = priv->mcast_mtu; mtu 1444 drivers/infiniband/ulp/ipoib/ipoib_cm.c icmp_send(skb, ICMP_DEST_UNREACH, ICMP_FRAG_NEEDED, htonl(mtu)); mtu 1449 drivers/infiniband/ulp/ipoib/ipoib_cm.c icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, mtu); mtu 1463 drivers/infiniband/ulp/ipoib/ipoib_cm.c unsigned int mtu) mtu 1468 drivers/infiniband/ulp/ipoib/ipoib_cm.c skb_dst_update_pmtu(skb, mtu); mtu 242 drivers/infiniband/ulp/ipoib/ipoib_main.c dev->mtu = new_mtu; mtu 269 drivers/infiniband/ulp/ipoib/ipoib_main.c dev->mtu = new_mtu; mtu 546 drivers/infiniband/ulp/ipoib/ipoib_main.c dev_set_mtu(dev, min(priv->mcast_mtu, dev->mtu)); mtu 1918 drivers/infiniband/ulp/ipoib/ipoib_main.c ndev->mtu = IPOIB_UD_MTU(priv->max_ib_mtu); mtu 1919 drivers/infiniband/ulp/ipoib/ipoib_main.c priv->mcast_mtu = priv->admin_mtu = ndev->mtu; mtu 236 drivers/infiniband/ulp/ipoib/ipoib_multicast.c priv->broadcast->mcmember.mtu = mcmember->mtu; mtu 246 drivers/infiniband/ulp/ipoib/ipoib_multicast.c IPOIB_UD_MTU(ib_mtu_enum_to_int(priv->broadcast->mcmember.mtu)); mtu 249 drivers/infiniband/ulp/ipoib/ipoib_multicast.c IPOIB_UD_MTU(ib_mtu_enum_to_int(priv->broadcast->mcmember.mtu)); mtu 522 drivers/infiniband/ulp/ipoib/ipoib_multicast.c rec.mtu = priv->broadcast->mcmember.mtu; mtu 164 drivers/infiniband/ulp/opa_vnic/opa_vnic_netdev.c if (netdev->mtu > netdev->max_mtu) mtu 109 drivers/media/common/siano/sms-cards.c .mtu = 15792, mtu 116 drivers/media/common/siano/sms-cards.c .mtu = 15792, mtu 83 drivers/media/common/siano/sms-cards.h unsigned int mtu; mtu 833 drivers/media/common/siano/smscoreapi.c if (board->mtu) { mtu 835 drivers/media/common/siano/smscoreapi.c pr_debug("set max transmit unit %d\n", board->mtu); mtu 842 drivers/media/common/siano/smscoreapi.c mtu_msg.msg_data[0] = board->mtu; mtu 1322 drivers/media/dvb-core/dvb_net.c dev->mtu = 4096; mtu 1150 drivers/message/fusion/mptlan.c u32 len = (dev->mtu + dev->hard_header_len + 4); mtu 1313 drivers/message/fusion/mptlan.c dev->mtu = MPT_LAN_MTU; mtu 1326 drivers/message/fusion/mptlan.c __LINE__, dev->mtu + dev->hard_header_len + 4)); mtu 543 drivers/misc/sgi-xp/xpnet.c xpnet_device->mtu = XPNET_DEF_MTU; mtu 86 drivers/net/appletalk/ipddp.c dev->mtu = 585; mtu 155 drivers/net/arcnet/arc-rawmode.c .mtu = XMTU, mtu 193 drivers/net/arcnet/arcdevice.h int mtu; /* largest possible packet */ mtu 90 drivers/net/arcnet/arcnet.c .mtu = XMTU, mtu 343 drivers/net/arcnet/arcnet.c int count, mtu = 65535; mtu 348 drivers/net/arcnet/arcnet.c arc_proto_map[count]->mtu < mtu) { mtu 349 drivers/net/arcnet/arcnet.c mtu = arc_proto_map[count]->mtu; mtu 353 drivers/net/arcnet/arcnet.c return mtu == 65535 ? XMTU : mtu; mtu 374 drivers/net/arcnet/arcnet.c dev->mtu = choose_mtu(); mtu 499 drivers/net/arcnet/arcnet.c if (newmtu < dev->mtu) mtu 500 drivers/net/arcnet/arcnet.c dev->mtu = newmtu; mtu 502 drivers/net/arcnet/arcnet.c arc_printk(D_INIT, dev, "arcnet_open: mtu: %d.\n", dev->mtu); mtu 234 drivers/net/arcnet/capmode.c .mtu = XMTU, mtu 49 drivers/net/arcnet/rfc1051.c .mtu = XMTU - RFC1051_HDR_SIZE, mtu 51 drivers/net/arcnet/rfc1201.c .mtu = 1500, /* could be more, but some receivers can't handle it... */ mtu 1524 drivers/net/bonding/bond_main.c new_slave->original_mtu = slave_dev->mtu; mtu 1525 drivers/net/bonding/bond_main.c res = dev_set_mtu(slave_dev, bond->dev->mtu); mtu 3741 drivers/net/bonding/bond_main.c bond_dev->mtu = new_mtu; mtu 3753 drivers/net/bonding/bond_main.c tmp_res = dev_set_mtu(rollback_slave->dev, bond_dev->mtu); mtu 1117 drivers/net/caif/caif_hsi.c dev->mtu = CFHSI_MAX_CAIF_FRAME_SZ; mtu 418 drivers/net/caif/caif_serial.c dev->mtu = CAIF_MAX_MTU; mtu 714 drivers/net/caif/caif_spi.c dev->mtu = SPI_MAX_PAYLOAD_SIZE; mtu 117 drivers/net/caif/caif_virtio.c u32 mtu; mtu 386 drivers/net/caif/caif_virtio.c if (cfv->allocsz <= (num_possible_cpus() + 1) * cfv->ndev->mtu) mtu 390 drivers/net/caif/caif_virtio.c if (cfv->allocsz <= num_possible_cpus() * cfv->ndev->mtu) { mtu 422 drivers/net/caif/caif_virtio.c cfv->reserved_size = num_possible_cpus() * cfv->ndev->mtu; mtu 490 drivers/net/caif/caif_virtio.c if (unlikely(cfv->tx_hr + skb->len + cfv->tx_tr > cfv->mtu)) { mtu 492 drivers/net/caif/caif_virtio.c cfv->tx_hr + skb->len + cfv->tx_tr, cfv->mtu); mtu 619 drivers/net/caif/caif_virtio.c netdev->mtu = CFV_DEF_MTU_SIZE; mtu 692 drivers/net/caif/caif_virtio.c virtio_cread(vdev, struct virtio_caif_transf_config, mtu, mtu 693 drivers/net/caif/caif_virtio.c &cfv->mtu); mtu 694 drivers/net/caif/caif_virtio.c virtio_cread(vdev, struct virtio_caif_transf_config, mtu, mtu 701 drivers/net/caif/caif_virtio.c cfv->mtu = CFV_DEF_MTU_SIZE; mtu 711 drivers/net/caif/caif_virtio.c netdev->mtu = cfv->mtu - cfv->tx_tr; mtu 629 drivers/net/can/dev.c dev->mtu = CAN_MTU; mtu 799 drivers/net/can/dev.c dev->mtu = new_mtu; mtu 1002 drivers/net/can/dev.c dev->mtu = CANFD_MTU; mtu 1004 drivers/net/can/dev.c dev->mtu = CAN_MTU; mtu 451 drivers/net/can/slcan.c dev->mtu = CAN_MTU; mtu 139 drivers/net/can/vcan.c dev->mtu = new_mtu; mtu 151 drivers/net/can/vcan.c dev->mtu = CANFD_MTU; mtu 128 drivers/net/can/vxcan.c dev->mtu = new_mtu; mtu 143 drivers/net/can/vxcan.c dev->mtu = CANFD_MTU; mtu 195 drivers/net/eql.c dev->mtu = EQL_DEFAULT_MTU; /* set to 576 in if_eql.h */ mtu 40 drivers/net/ethernet/3com/3c515.c static const int mtu = 1500; mtu 613 drivers/net/ethernet/3com/3c574_cs.c outb((dev->mtu > 1500 ? 0x40 : 0), ioaddr + Wn3_MAC_Ctrl); mtu 917 drivers/net/ethernet/3com/3c574_cs.c (dev->mtu > 1500 ? 0x40 : 0), ioaddr + Wn3_MAC_Ctrl); mtu 53 drivers/net/ethernet/3com/3c59x.c static const int mtu = 1500; mtu 1162 drivers/net/ethernet/3com/3c59x.c dev->mtu = mtu; mtu 1164 drivers/net/ethernet/3com/3c59x.c vp->large_frames = mtu > 1500; mtu 3087 drivers/net/ethernet/3com/3c59x.c int max_pkt_size = dev->mtu+14; /* MTU+Ethernet header */ mtu 3099 drivers/net/ethernet/3com/3c59x.c vp->large_frames = dev->mtu > 1500 || enable; mtu 82 drivers/net/ethernet/adaptec/starfire.c static int mtu; mtu 181 drivers/net/ethernet/adaptec/starfire.c module_param(mtu, int, 0); mtu 188 drivers/net/ethernet/adaptec/starfire.c MODULE_PARM_DESC(mtu, "MTU (all boards)"); mtu 790 drivers/net/ethernet/adaptec/starfire.c if (mtu) mtu 791 drivers/net/ethernet/adaptec/starfire.c dev->mtu = mtu; mtu 1146 drivers/net/ethernet/adaptec/starfire.c np->rx_buf_sz = (dev->mtu <= 1500 ? PKT_BUF_SZ : dev->mtu + 32); mtu 3866 drivers/net/ethernet/agere/et131x.c netdev->mtu = new_mtu; mtu 2239 drivers/net/ethernet/alteon/acenic.c writel(dev->mtu + ETH_HLEN + 4, ®s->IfMtu); mtu 2550 drivers/net/ethernet/alteon/acenic.c dev->mtu = new_mtu; mtu 935 drivers/net/ethernet/altera/altera_tse_main.c frm_length = ETH_HLEN + priv->dev->mtu + ETH_FCS_LEN; mtu 1002 drivers/net/ethernet/altera/altera_tse_main.c dev->mtu = new_mtu; mtu 595 drivers/net/ethernet/amazon/ena/ena_admin_defs.h u32 mtu; mtu 937 drivers/net/ethernet/amazon/ena/ena_admin_defs.h struct ena_admin_set_feature_mtu_desc mtu; mtu 2174 drivers/net/ethernet/amazon/ena/ena_com.c int ena_com_set_dev_mtu(struct ena_com_dev *ena_dev, int mtu) mtu 2192 drivers/net/ethernet/amazon/ena/ena_com.c cmd.u.mtu.mtu = mtu; mtu 2201 drivers/net/ethernet/amazon/ena/ena_com.c pr_err("Failed to set mtu %d. error: %d\n", mtu, ret); mtu 629 drivers/net/ethernet/amazon/ena/ena_com.h int ena_com_set_dev_mtu(struct ena_com_dev *ena_dev, int mtu); mtu 811 drivers/net/ethernet/amazon/ena/ena_ethtool.c if (len > adapter->netdev->mtu) { mtu 100 drivers/net/ethernet/amazon/ena/ena_netdev.c static void update_rx_ring_mtu(struct ena_adapter *adapter, int mtu) mtu 105 drivers/net/ethernet/amazon/ena/ena_netdev.c adapter->rx_ring[i].mtu = mtu; mtu 117 drivers/net/ethernet/amazon/ena/ena_netdev.c dev->mtu = new_mtu; mtu 1616 drivers/net/ethernet/amazon/ena/ena_netdev.c ena_change_mtu(adapter->netdev, adapter->netdev->mtu); mtu 2575 drivers/net/ethernet/amazon/ena/ena_netdev.c if (get_feat_ctx->dev_attr.max_mtu < netdev->mtu) { mtu 266 drivers/net/ethernet/amazon/ena/ena_netdev.h u16 mtu; mtu 257 drivers/net/ethernet/amd/amd8111e.c unsigned int mtu = dev->mtu; mtu 259 drivers/net/ethernet/amd/amd8111e.c if (mtu > ETH_DATA_LEN){ mtu 263 drivers/net/ethernet/amd/amd8111e.c lp->rx_buff_len = mtu + ETH_HLEN + 10; mtu 1528 drivers/net/ethernet/amd/amd8111e.c dev->mtu = new_mtu; mtu 1537 drivers/net/ethernet/amd/amd8111e.c dev->mtu = new_mtu; mtu 129 drivers/net/ethernet/amd/xgbe/xgbe-dev.c return pdata->netdev->mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; mtu 2727 drivers/net/ethernet/amd/xgbe/xgbe-dev.c total_weight = pdata->netdev->mtu * pdata->hw_feat.tc_cnt; mtu 2814 drivers/net/ethernet/amd/xgbe/xgbe-dev.c val = (pdata->netdev->mtu > XGMAC_STD_PACKET_MTU) ? 1 : 0; mtu 296 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static int xgbe_calc_rx_buf_size(struct net_device *netdev, unsigned int mtu) mtu 300 drivers/net/ethernet/amd/xgbe/xgbe-drv.c rx_buf_size = mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; mtu 1343 drivers/net/ethernet/amd/xgbe/xgbe-drv.c pdata->rx_buf_size = xgbe_calc_rx_buf_size(netdev, netdev->mtu); mtu 2134 drivers/net/ethernet/amd/xgbe/xgbe-drv.c static int xgbe_change_mtu(struct net_device *netdev, int mtu) mtu 2141 drivers/net/ethernet/amd/xgbe/xgbe-drv.c ret = xgbe_calc_rx_buf_size(netdev, mtu); mtu 2146 drivers/net/ethernet/amd/xgbe/xgbe-drv.c netdev->mtu = mtu; mtu 2800 drivers/net/ethernet/amd/xgbe/xgbe-drv.c max_len = netdev->mtu + ETH_HLEN; mtu 1529 drivers/net/ethernet/apm/xgene/xgene_enet_main.c ndev->mtu = new_mtu; mtu 42 drivers/net/ethernet/aquantia/atlantic/aq_hw.h u32 mtu; mtu 106 drivers/net/ethernet/aquantia/atlantic/aq_main.c ndev->mtu = new_mtu; mtu 80 drivers/net/ethernet/aquantia/atlantic/aq_nic.c cfg->mtu = AQ_CFG_MTU_DEF; mtu 296 drivers/net/ethernet/aquantia/atlantic/aq_nic.c self->ndev->mtu = aq_nic_cfg->mtu - ETH_HLEN; mtu 297 drivers/net/ethernet/aquantia/atlantic/aq_nic.c self->ndev->max_mtu = aq_hw_caps->mtu - ETH_FCS_LEN - ETH_HLEN; mtu 673 drivers/net/ethernet/aquantia/atlantic/aq_nic.c self->aq_nic_cfg.mtu = new_mtu; mtu 34 drivers/net/ethernet/aquantia/atlantic/aq_nic.h u32 mtu; mtu 42 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_a0.c .mtu = HW_ATL_A0_MTU_JUMBO, \ mtu 48 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_b0.c .mtu = HW_ATL_B0_MTU_JUMBO, \ mtu 549 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c unsigned int mtu = self->aq_nic_cfg ? mtu 550 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c self->aq_nic_cfg->mtu : 1514U; mtu 551 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c pmbox->stats.ubrc = pmbox->stats.uprc * mtu; mtu 552 drivers/net/ethernet/aquantia/atlantic/hw_atl/hw_atl_utils.c pmbox->stats.ubtc = pmbox->stats.uptc * mtu; mtu 784 drivers/net/ethernet/atheros/ag71xx.c static unsigned int ag71xx_max_frame_len(unsigned int mtu) mtu 786 drivers/net/ethernet/atheros/ag71xx.c return ETH_SWITCH_HEADER_LEN + ETH_HLEN + VLAN_HLEN + mtu + ETH_FCS_LEN; mtu 828 drivers/net/ethernet/atheros/ag71xx.c ag71xx_max_frame_len(ag->ndev->mtu)); mtu 1242 drivers/net/ethernet/atheros/ag71xx.c max_frame_len = ag71xx_max_frame_len(ndev->mtu); mtu 1610 drivers/net/ethernet/atheros/ag71xx.c ndev->mtu = new_mtu; mtu 1612 drivers/net/ethernet/atheros/ag71xx.c ag71xx_max_frame_len(ndev->mtu)); mtu 961 drivers/net/ethernet/atheros/alx/hw.c raw_mtu = ALX_RAW_MTU(hw->mtu); mtu 472 drivers/net/ethernet/atheros/alx/hw.h u16 mtu; mtu 1065 drivers/net/ethernet/atheros/alx/main.c hw->mtu = alx->dev->mtu; mtu 1066 drivers/net/ethernet/atheros/alx/main.c alx->rxbuf_size = ALX_MAX_FRAME_LEN(hw->mtu); mtu 1102 drivers/net/ethernet/atheros/alx/main.c if (netdev->mtu > ALX_MAX_TSO_PKT_SIZE) mtu 1170 drivers/net/ethernet/atheros/alx/main.c static int alx_change_mtu(struct net_device *netdev, int mtu) mtu 1173 drivers/net/ethernet/atheros/alx/main.c int max_frame = ALX_MAX_FRAME_LEN(mtu); mtu 1175 drivers/net/ethernet/atheros/alx/main.c netdev->mtu = mtu; mtu 1176 drivers/net/ethernet/atheros/alx/main.c alx->hw.mtu = mtu; mtu 471 drivers/net/ethernet/atheros/atl1c/atl1c_main.c int mtu = dev->mtu; mtu 473 drivers/net/ethernet/atheros/atl1c/atl1c_main.c adapter->rx_buffer_len = mtu > AT_RX_BUF_SIZE ? mtu 474 drivers/net/ethernet/atheros/atl1c/atl1c_main.c roundup(mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN, 8) : AT_RX_BUF_SIZE; mtu 493 drivers/net/ethernet/atheros/atl1c/atl1c_main.c if (netdev->mtu > MAX_TSO_FRAME_SIZE) mtu 545 drivers/net/ethernet/atheros/atl1c/atl1c_main.c netdev->mtu = new_mtu; mtu 796 drivers/net/ethernet/atheros/atl1c/atl1c_main.c hw->max_frame_size = adapter->netdev->mtu; mtu 436 drivers/net/ethernet/atheros/atl1e/atl1e_main.c netdev->mtu = new_mtu; mtu 606 drivers/net/ethernet/atheros/atl1e/atl1e_main.c hw->max_frame_size = adapter->netdev->mtu; mtu 935 drivers/net/ethernet/atheros/atlx/atl1.c hw->max_frame_size = netdev->mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; mtu 2690 drivers/net/ethernet/atheros/atlx/atl1.c netdev->mtu = new_mtu; mtu 103 drivers/net/ethernet/atheros/atlx/atl2.c hw->max_frame_size = adapter->netdev->mtu; mtu 242 drivers/net/ethernet/atheros/atlx/atl2.c ATL2_WRITE_REG(hw, REG_MTU, adapter->netdev->mtu + mtu 914 drivers/net/ethernet/atheros/atlx/atl2.c netdev->mtu = new_mtu; mtu 1071 drivers/net/ethernet/broadcom/b44.c dev->mtu = new_mtu; mtu 1077 drivers/net/ethernet/broadcom/b44.c dev->mtu = new_mtu; mtu 1426 drivers/net/ethernet/broadcom/b44.c bw32(bp, B44_RXMAXLEN, bp->dev->mtu + ETH_HLEN + 8 + RX_HEADER_LEN); mtu 1427 drivers/net/ethernet/broadcom/b44.c bw32(bp, B44_TXMAXLEN, bp->dev->mtu + ETH_HLEN + 8 + RX_HEADER_LEN); mtu 1632 drivers/net/ethernet/broadcom/bcm63xx_enet.c dev->mtu = new_mtu; mtu 1718 drivers/net/ethernet/broadcom/bcm63xx_enet.c ret = bcm_enet_change_mtu(dev, dev->mtu); mtu 2682 drivers/net/ethernet/broadcom/bcm63xx_enet.c ret = bcm_enet_change_mtu(dev, dev->mtu); mtu 2305 drivers/net/ethernet/broadcom/bnx2.c if (bp->dev->mtu > ETH_DATA_LEN) { mtu 2359 drivers/net/ethernet/broadcom/bnx2.c if (bp->dev->mtu > ETH_DATA_LEN) { mtu 3257 drivers/net/ethernet/broadcom/bnx2.c if (len > (bp->dev->mtu + ETH_HLEN) && mtu 4904 drivers/net/ethernet/broadcom/bnx2.c u32 val, mtu; mtu 5000 drivers/net/ethernet/broadcom/bnx2.c mtu = bp->dev->mtu; mtu 5001 drivers/net/ethernet/broadcom/bnx2.c val = mtu + ETH_HLEN + ETH_FCS_LEN; mtu 5006 drivers/net/ethernet/broadcom/bnx2.c if (mtu < ETH_DATA_LEN) mtu 5007 drivers/net/ethernet/broadcom/bnx2.c mtu = ETH_DATA_LEN; mtu 5009 drivers/net/ethernet/broadcom/bnx2.c bnx2_reg_wr_ind(bp, BNX2_RBUF_CONFIG, BNX2_RBUF_CONFIG_VAL(mtu)); mtu 5010 drivers/net/ethernet/broadcom/bnx2.c bnx2_reg_wr_ind(bp, BNX2_RBUF_CONFIG2, BNX2_RBUF_CONFIG2_VAL(mtu)); mtu 5011 drivers/net/ethernet/broadcom/bnx2.c bnx2_reg_wr_ind(bp, BNX2_RBUF_CONFIG3, BNX2_RBUF_CONFIG3_VAL(mtu)); mtu 5397 drivers/net/ethernet/broadcom/bnx2.c rx_size = bp->dev->mtu + ETH_HLEN + BNX2_RX_OFFSET + 8; mtu 5407 drivers/net/ethernet/broadcom/bnx2.c int pages = PAGE_ALIGN(bp->dev->mtu - 40) >> PAGE_SHIFT; mtu 5841 drivers/net/ethernet/broadcom/bnx2.c pkt_size = min(bp->dev->mtu + ETH_HLEN, bp->rx_jumbo_thresh - 4); mtu 7923 drivers/net/ethernet/broadcom/bnx2.c dev->mtu = new_mtu; mtu 4221 drivers/net/ethernet/broadcom/bnx2.h #define BNX2_RBUF_CONFIG_XOFF_TRIP_VAL(mtu) \ mtu 4222 drivers/net/ethernet/broadcom/bnx2.h ((((mtu) - 1500) * 31 / 1000) + 54) mtu 4224 drivers/net/ethernet/broadcom/bnx2.h #define BNX2_RBUF_CONFIG_XON_TRIP_VAL(mtu) \ mtu 4225 drivers/net/ethernet/broadcom/bnx2.h ((((mtu) - 1500) * 39 / 1000) + 66) mtu 4226 drivers/net/ethernet/broadcom/bnx2.h #define BNX2_RBUF_CONFIG_VAL(mtu) \ mtu 4227 drivers/net/ethernet/broadcom/bnx2.h (BNX2_RBUF_CONFIG_XOFF_TRIP_VAL(mtu) | \ mtu 4228 drivers/net/ethernet/broadcom/bnx2.h (BNX2_RBUF_CONFIG_XON_TRIP_VAL(mtu) << 16)) mtu 4250 drivers/net/ethernet/broadcom/bnx2.h #define BNX2_RBUF_CONFIG2_MAC_DROP_TRIP_VAL(mtu) \ mtu 4251 drivers/net/ethernet/broadcom/bnx2.h ((((mtu) - 1500) * 4 / 1000) + 5) mtu 4253 drivers/net/ethernet/broadcom/bnx2.h #define BNX2_RBUF_CONFIG2_MAC_KEEP_TRIP_VAL(mtu) \ mtu 4254 drivers/net/ethernet/broadcom/bnx2.h ((((mtu) - 1500) * 2 / 100) + 30) mtu 4255 drivers/net/ethernet/broadcom/bnx2.h #define BNX2_RBUF_CONFIG2_VAL(mtu) \ mtu 4256 drivers/net/ethernet/broadcom/bnx2.h (BNX2_RBUF_CONFIG2_MAC_DROP_TRIP_VAL(mtu) | \ mtu 4257 drivers/net/ethernet/broadcom/bnx2.h (BNX2_RBUF_CONFIG2_MAC_KEEP_TRIP_VAL(mtu) << 16)) mtu 4261 drivers/net/ethernet/broadcom/bnx2.h #define BNX2_RBUF_CONFIG3_CU_DROP_TRIP_VAL(mtu) \ mtu 4262 drivers/net/ethernet/broadcom/bnx2.h ((((mtu) - 1500) * 12 / 1000) + 18) mtu 4264 drivers/net/ethernet/broadcom/bnx2.h #define BNX2_RBUF_CONFIG3_CU_KEEP_TRIP_VAL(mtu) \ mtu 4265 drivers/net/ethernet/broadcom/bnx2.h ((((mtu) - 1500) * 2 / 100) + 30) mtu 4266 drivers/net/ethernet/broadcom/bnx2.h #define BNX2_RBUF_CONFIG3_VAL(mtu) \ mtu 4267 drivers/net/ethernet/broadcom/bnx2.h (BNX2_RBUF_CONFIG3_CU_DROP_TRIP_VAL(mtu) | \ mtu 4268 drivers/net/ethernet/broadcom/bnx2.h (BNX2_RBUF_CONFIG3_CU_KEEP_TRIP_VAL(mtu) << 16)) mtu 1030 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c if ((bp->dev->mtu > ETH_MAX_PACKET_SIZE) && mtu 1408 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c "mtu %d rx_buf_size %d\n", bp->dev->mtu, fp->rx_buf_size); mtu 2014 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c u32 mtu; mtu 2024 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c mtu = BNX2X_FCOE_MINI_JUMBO_MTU; mtu 2026 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c mtu = bp->dev->mtu; mtu 2030 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c mtu + mtu 2890 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c val |= (bp->dev->mtu << DRV_FLAGS_MTU_SHIFT); mtu 4887 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c dev->mtu = new_mtu; mtu 4924 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.c if (!(features & NETIF_F_GRO) || !bnx2x_mtu_allows_gro(dev->mtu)) mtu 1300 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h static inline bool bnx2x_mtu_allows_gro(int mtu) mtu 1303 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h int fpp = SGE_PAGE_SIZE / (mtu - ETH_MAX_TPA_HEADER_SIZE); mtu 1309 drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h return mtu <= SGE_PAGE_SIZE && (U_ETH_SGL_SIZE * fpp) <= MAX_SKB_FRAGS; mtu 2551 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c pkt_size = (((bp->dev->mtu < ETH_MAX_PACKET_SIZE) ? mtu 2552 drivers/net/ethernet/broadcom/bnx2x/bnx2x_ethtool.c bp->dev->mtu : ETH_MAX_PACKET_SIZE) + ETH_HLEN); mtu 3621 drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h __le16 mtu; mtu 2311 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c if (CHIP_IS_E1x(bp) && (bp->dev->mtu > 5000)) mtu 3162 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c gen_init->mtu = BNX2X_FCOE_MINI_JUMBO_MTU; mtu 3164 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c gen_init->mtu = bp->dev->mtu; mtu 3189 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c max_sge = SGE_PAGE_ALIGN(bp->dev->mtu) >> mtu 3385 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c ether_stat->mtu_size = bp->dev->mtu; mtu 7542 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c else if (bp->dev->mtu > 4096) { mtu 7546 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c val = bp->dev->mtu; mtu 12144 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c u32 mtu; mtu 12146 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c mtu = SHMEM2_RD(bp, mtu_size[mtu_idx]); mtu 12147 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c mtu_size = (u16)mtu; mtu 12149 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c mtu_size, mtu); mtu 12155 drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c bp->dev->mtu = mtu_size; mtu 4810 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c gen_data->mtu = cpu_to_le16(params->mtu); mtu 955 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h u16 mtu; mtu 156 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.c setup_params->gen_params.mtu, mtu 641 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c req->rxq.mtu = bp->dev->mtu; mtu 645 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c req->rxq.max_sge_pkt = SGE_PAGE_ALIGN(bp->dev->mtu) >> SGE_PAGE_SHIFT; mtu 1608 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.c setup_p->gen_params.mtu = setup_q->rxq.mtu; mtu 257 drivers/net/ethernet/broadcom/bnx2x/bnx2x_vfpf.h u16 mtu; mtu 3430 drivers/net/ethernet/broadcom/bnxt/bnxt.c rx_size = SKB_DATA_ALIGN(bp->dev->mtu + ETH_HLEN + NET_IP_ALIGN + 8); mtu 3448 drivers/net/ethernet/broadcom/bnxt/bnxt.c jumbo_factor = PAGE_ALIGN(bp->dev->mtu - 40) >> PAGE_SHIFT; mtu 3502 drivers/net/ethernet/broadcom/bnxt/bnxt.c if (bp->dev->mtu > BNXT_MAX_PAGE_MODE_MTU) mtu 4750 drivers/net/ethernet/broadcom/bnxt/bnxt.c u16 mss = bp->dev->mtu - 40; mtu 5044 drivers/net/ethernet/broadcom/bnxt/bnxt.c req.mru = cpu_to_le16(bp->dev->mtu + ETH_HLEN + ETH_FCS_LEN + mtu 10907 drivers/net/ethernet/broadcom/bnxt/bnxt.c dev->mtu = new_mtu; mtu 2826 drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c pkt_size = min(bp->dev->mtu + ETH_HLEN, bp->rx_copy_thresh); mtu 1037 drivers/net/ethernet/broadcom/bnxt/bnxt_hsi.h __le16 mtu; mtu 1180 drivers/net/ethernet/broadcom/bnxt/bnxt_hsi.h __le16 mtu; mtu 1317 drivers/net/ethernet/broadcom/bnxt/bnxt_hsi.h __le16 mtu; mtu 2734 drivers/net/ethernet/broadcom/bnxt/bnxt_hsi.h __le16 mtu; mtu 611 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c u32 rc = 0, mtu, i; mtu 646 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c mtu = bp->dev->mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; mtu 647 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c req.mru = cpu_to_le16(mtu); mtu 648 drivers/net/ethernet/broadcom/bnxt/bnxt_sriov.c req.mtu = cpu_to_le16(mtu); mtu 72 drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c u16 mtu; mtu 82 drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c mtu = le16_to_cpu(resp->max_mtu_configured); mtu 83 drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c if (!mtu) mtu 86 drivers/net/ethernet/broadcom/bnxt/bnxt_vfr.c *max_mtu = mtu; mtu 271 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c if (prog && bp->dev->mtu > BNXT_MAX_PAGE_MODE_MTU) { mtu 273 drivers/net/ethernet/broadcom/bnxt/bnxt_xdp.c bp->dev->mtu, BNXT_MAX_PAGE_MODE_MTU); mtu 349 drivers/net/ethernet/broadcom/cnic.c path_req.pmtu = csk->mtu; mtu 3490 drivers/net/ethernet/broadcom/cnic.c l4kwqe3->pmtu = csk->mtu; mtu 3796 drivers/net/ethernet/broadcom/cnic.c csk->mtu = dev->netdev->mtu; mtu 3801 drivers/net/ethernet/broadcom/cnic.c csk->mtu = dst_mtu(dst); mtu 5004 drivers/net/ethernet/broadcom/cnic.c data->general.mtu = cpu_to_le16(cp->l2_single_buf_size - 14); mtu 2652 drivers/net/ethernet/broadcom/cnic_defs.h __le16 mtu; mtu 3591 drivers/net/ethernet/broadcom/cnic_defs.h u16 mtu; mtu 3597 drivers/net/ethernet/broadcom/cnic_defs.h u16 mtu; mtu 270 drivers/net/ethernet/broadcom/cnic_if.h u32 mtu; mtu 6945 drivers/net/ethernet/broadcom/tg3.c if (len > (tp->dev->mtu + ETH_HLEN) && mtu 8327 drivers/net/ethernet/broadcom/tg3.c if (dev->mtu > ETH_DATA_LEN && tg3_flag(tp, 5780_CLASS)) mtu 8408 drivers/net/ethernet/broadcom/tg3.c tp->dev->mtu > ETH_DATA_LEN) mtu 10127 drivers/net/ethernet/broadcom/tg3.c if (tp->dev->mtu <= ETH_DATA_LEN) { mtu 10251 drivers/net/ethernet/broadcom/tg3.c tp->dev->mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN); mtu 10307 drivers/net/ethernet/broadcom/tg3.c if (tp->dev->mtu <= ETH_DATA_LEN) { mtu 14232 drivers/net/ethernet/broadcom/tg3.c dev->mtu = new_mtu; mtu 16738 drivers/net/ethernet/broadcom/tg3.c if (tp->dev->mtu > ETH_DATA_LEN && !tg3_flag(tp, 5780_CLASS)) mtu 390 drivers/net/ethernet/brocade/bna/bna.h void bna_enet_mtu_set(struct bna_enet *enet, int mtu, mtu 1187 drivers/net/ethernet/brocade/bna/bna_enet.c enet->mtu = 0; mtu 1254 drivers/net/ethernet/brocade/bna/bna_enet.c return enet->mtu; mtu 1296 drivers/net/ethernet/brocade/bna/bna_enet.c bna_enet_mtu_set(struct bna_enet *enet, int mtu, mtu 1299 drivers/net/ethernet/brocade/bna/bna_enet.c enet->mtu = mtu; mtu 344 drivers/net/ethernet/brocade/bna/bna_types.h int mtu; mtu 2051 drivers/net/ethernet/brocade/bna/bnad.c rx_config->frame_size = BNAD_FRAME_SIZE(bnad->netdev->mtu); mtu 2117 drivers/net/ethernet/brocade/bna/bnad.c BNAD_FRAME_SIZE(bnad->netdev->mtu), NULL); mtu 2743 drivers/net/ethernet/brocade/bna/bnad.c BNAD_FRAME_SIZE(bnad->netdev->mtu), NULL); mtu 2828 drivers/net/ethernet/brocade/bna/bnad.c if (unlikely(gso_size > bnad->netdev->mtu)) { mtu 2855 drivers/net/ethernet/brocade/bna/bnad.c if (unlikely(skb->len > (bnad->netdev->mtu + VLAN_ETH_HLEN))) { mtu 3283 drivers/net/ethernet/brocade/bna/bnad.c int err, mtu; mtu 3289 drivers/net/ethernet/brocade/bna/bnad.c mtu = netdev->mtu; mtu 3290 drivers/net/ethernet/brocade/bna/bnad.c netdev->mtu = new_mtu; mtu 3292 drivers/net/ethernet/brocade/bna/bnad.c frame = BNAD_FRAME_SIZE(mtu); mtu 1890 drivers/net/ethernet/cadence/macb_main.c bp->dev->mtu, bp->rx_buffer_size); mtu 2412 drivers/net/ethernet/cadence/macb_main.c size_t bufsz = dev->mtu + ETH_HLEN + ETH_FCS_LEN + NET_IP_ALIGN; mtu 2499 drivers/net/ethernet/cadence/macb_main.c dev->mtu = new_mtu; mtu 681 drivers/net/ethernet/calxeda/xgmac.c int bufsz = priv->dev->mtu + ETH_HLEN + ETH_FCS_LEN; mtu 728 drivers/net/ethernet/calxeda/xgmac.c bfsize = ALIGN(dev->mtu + ETH_HLEN + ETH_FCS_LEN + NET_IP_ALIGN, 8); mtu 730 drivers/net/ethernet/calxeda/xgmac.c netdev_dbg(priv->dev, "mtu [%d] bfsize [%d]\n", dev->mtu, bfsize); mtu 1359 drivers/net/ethernet/calxeda/xgmac.c dev->mtu = new_mtu; mtu 1254 drivers/net/ethernet/cavium/liquidio/lio_core.c netdev->mtu = new_mtu; mtu 1255 drivers/net/ethernet/cavium/liquidio/lio_core.c lio->mtu = new_mtu; mtu 551 drivers/net/ethernet/cavium/liquidio/lio_main.c dev_set_mtu(lio->netdev, lio->linfo.link.s.mtu); mtu 600 drivers/net/ethernet/cavium/liquidio/lio_main.c int current_max_mtu = lio->linfo.link.s.mtu; mtu 620 drivers/net/ethernet/cavium/liquidio/lio_main.c if (lio->linfo.link.s.mtu != current_max_mtu) { mtu 622 drivers/net/ethernet/cavium/liquidio/lio_main.c current_max_mtu, lio->linfo.link.s.mtu); mtu 623 drivers/net/ethernet/cavium/liquidio/lio_main.c netdev->max_mtu = lio->linfo.link.s.mtu; mtu 625 drivers/net/ethernet/cavium/liquidio/lio_main.c if (lio->linfo.link.s.mtu < netdev->mtu) { mtu 628 drivers/net/ethernet/cavium/liquidio/lio_main.c netdev->mtu, lio->linfo.link.s.mtu); mtu 295 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c dev_set_mtu(lio->netdev, lio->linfo.link.s.mtu); mtu 343 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c int current_max_mtu = lio->linfo.link.s.mtu; mtu 360 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c if (lio->linfo.link.s.mtu != current_max_mtu) { mtu 363 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c current_max_mtu, lio->linfo.link.s.mtu); mtu 364 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c netdev->max_mtu = lio->linfo.link.s.mtu; mtu 367 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c if (lio->linfo.link.s.mtu < netdev->mtu) { mtu 370 drivers/net/ethernet/cavium/liquidio/lio_vf_main.c netdev->mtu, lio->linfo.link.s.mtu); mtu 211 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c rep_cfg.rep_mtu.mtu = cpu_to_be32(new_mtu); mtu 221 drivers/net/ethernet/cavium/liquidio/lio_vf_rep.c ndev->mtu = new_mtu; mtu 697 drivers/net/ethernet/cavium/liquidio/liquidio_common.h u64 mtu:16; mtu 715 drivers/net/ethernet/cavium/liquidio/liquidio_common.h u64 mtu:16; mtu 1029 drivers/net/ethernet/cavium/liquidio/liquidio_common.h u32 mtu; mtu 144 drivers/net/ethernet/cavium/liquidio/octeon_network.h u32 mtu; mtu 222 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c size = netdev->mtu + OCTEON_MGMT_RX_HEADROOM + 8 + NET_IP_ALIGN; mtu 648 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c netdev->mtu = new_mtu; mtu 1058 drivers/net/ethernet/cavium/octeon/octeon_mgmt.c octeon_mgmt_change_mtu(netdev, netdev->mtu); mtu 1429 drivers/net/ethernet/cavium/thunder/nicvf_main.c static int nicvf_update_hw_max_frs(struct nicvf *nic, int mtu) mtu 1434 drivers/net/ethernet/cavium/thunder/nicvf_main.c mbx.frs.max_frs = mtu; mtu 1522 drivers/net/ethernet/cavium/thunder/nicvf_main.c err = nicvf_update_hw_max_frs(nic, netdev->mtu); mtu 1587 drivers/net/ethernet/cavium/thunder/nicvf_main.c int orig_mtu = netdev->mtu; mtu 1594 drivers/net/ethernet/cavium/thunder/nicvf_main.c netdev->mtu); mtu 1598 drivers/net/ethernet/cavium/thunder/nicvf_main.c netdev->mtu = new_mtu; mtu 1604 drivers/net/ethernet/cavium/thunder/nicvf_main.c netdev->mtu = orig_mtu; mtu 1849 drivers/net/ethernet/cavium/thunder/nicvf_main.c if (prog && dev->mtu > MAX_XDP_MTU) { mtu 1851 drivers/net/ethernet/cavium/thunder/nicvf_main.c dev->mtu); mtu 836 drivers/net/ethernet/chelsio/cxgb/cxgb2.c dev->mtu = new_mtu; mtu 110 drivers/net/ethernet/chelsio/cxgb/gmac.h int (*set_mtu)(struct cmac *, int mtu); mtu 327 drivers/net/ethernet/chelsio/cxgb/pm3393.c static int pm3393_set_mtu(struct cmac *cmac, int mtu) mtu 331 drivers/net/ethernet/chelsio/cxgb/pm3393.c mtu += ETH_HLEN + ETH_FCS_LEN; mtu 337 drivers/net/ethernet/chelsio/cxgb/pm3393.c pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_MAX_FRAME_LENGTH, mtu); mtu 338 drivers/net/ethernet/chelsio/cxgb/pm3393.c pmwrite(cmac, SUNI1x10GEXP_REG_TXXG_MAX_FRAME_SIZE, mtu); mtu 230 drivers/net/ethernet/chelsio/cxgb/sge.c unsigned int mtu; /* mtu size */ mtu 298 drivers/net/ethernet/chelsio/cxgb/sge.c unsigned int mtu, unsigned int speed) mtu 304 drivers/net/ethernet/chelsio/cxgb/sge.c pr_debug("%s mtu=%d speed=%d\n", __func__, mtu, speed); mtu 307 drivers/net/ethernet/chelsio/cxgb/sge.c if (mtu) mtu 308 drivers/net/ethernet/chelsio/cxgb/sge.c p->mtu = mtu; mtu 310 drivers/net/ethernet/chelsio/cxgb/sge.c if (speed || mtu) { mtu 311 drivers/net/ethernet/chelsio/cxgb/sge.c unsigned long long drain = 1024ULL * p->speed * (p->mtu - 40); mtu 312 drivers/net/ethernet/chelsio/cxgb/sge.c do_div(drain, (p->mtu + 50) * 1000); mtu 322 drivers/net/ethernet/chelsio/cxgb/sge.c s->max_avail = max(4096U, p->mtu + 16 + 14 + 4); mtu 323 drivers/net/ethernet/chelsio/cxgb/sge.c max_avail_segs = max(1U, 4096 / (p->mtu - 40)); mtu 326 drivers/net/ethernet/chelsio/cxgb/sge.c max_avail_segs = max(1U, 9000 / (p->mtu - 40)); mtu 330 drivers/net/ethernet/chelsio/cxgb/sge.c "max_avail_segs %u drain_bits_per_1024ns %u\n", p->mtu, mtu 334 drivers/net/ethernet/chelsio/cxgb/sge.c return max_avail_segs * (p->mtu - 40); mtu 1820 drivers/net/ethernet/chelsio/cxgb/sge.c skb->len > dev->mtu + eth_hdr_len(skb->data))) { mtu 1822 drivers/net/ethernet/chelsio/cxgb/sge.c skb->len, eth_hdr_len(skb->data), dev->mtu); mtu 450 drivers/net/ethernet/chelsio/cxgb/vsc7326.c static int mac_set_mtu(struct cmac *mac, int mtu) mtu 455 drivers/net/ethernet/chelsio/cxgb/vsc7326.c vsc_write(mac->adapter, REG_MAX_LEN(port), mtu + 14 + 4); mtu 711 drivers/net/ethernet/chelsio/cxgb3/common.h int t3_mac_set_mtu(struct cmac *mac, unsigned int mtu); mtu 351 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c t3_mac_set_mtu(mac, dev->mtu); mtu 935 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c unsigned int mtus = adapter->port[0]->mtu; mtu 938 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c mtus |= adapter->port[1]->mtu << 16; mtu 1372 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c adapter->port[0]->mtu : 0xffff); mtu 2565 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c dev->mtu = new_mtu; mtu 2570 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c adapter->port[0]->mtu); mtu 2706 drivers/net/ethernet/chelsio/cxgb3/cxgb3_main.c t3_mac_set_mtu(mac, dev->mtu); mtu 2909 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c unsigned int mtu = min(mtus[i], mtu_cap); mtu 2910 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c unsigned int log2 = fls(mtu); mtu 2912 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c if (!(mtu & ((1 << log2) >> 2))) /* round */ mtu 2915 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c (i << 24) | (log2 << 16) | mtu); mtu 2920 drivers/net/ethernet/chelsio/cxgb3/t3_hw.c inc = max(((mtu - 40) * alpha[w]) / avg_pkts[w], mtu 337 drivers/net/ethernet/chelsio/cxgb3/xgmac.c static int rx_fifo_hwm(int mtu) mtu 341 drivers/net/ethernet/chelsio/cxgb3/xgmac.c hwm = max(MAC_RXFIFO_SIZE - 3 * mtu, (MAC_RXFIFO_SIZE * 38) / 100); mtu 345 drivers/net/ethernet/chelsio/cxgb3/xgmac.c int t3_mac_set_mtu(struct cmac *mac, unsigned int mtu) mtu 356 drivers/net/ethernet/chelsio/cxgb3/xgmac.c mtu += 14; mtu 357 drivers/net/ethernet/chelsio/cxgb3/xgmac.c if (mtu > 1536) mtu 358 drivers/net/ethernet/chelsio/cxgb3/xgmac.c mtu += 4; mtu 360 drivers/net/ethernet/chelsio/cxgb3/xgmac.c if (mtu > MAX_FRAME_SIZE - 4) mtu 362 drivers/net/ethernet/chelsio/cxgb3/xgmac.c t3_write_reg(adap, A_XGM_RX_MAX_PKT_SIZE + mac->offset, mtu); mtu 383 drivers/net/ethernet/chelsio/cxgb3/xgmac.c V_RXMAXPKTSIZE(mtu)); mtu 389 drivers/net/ethernet/chelsio/cxgb3/xgmac.c V_RXMAXPKTSIZE(mtu)); mtu 395 drivers/net/ethernet/chelsio/cxgb3/xgmac.c hwm = rx_fifo_hwm(mtu); mtu 396 drivers/net/ethernet/chelsio/cxgb3/xgmac.c lwm = min(3 * (int)mtu, MAC_RXFIFO_SIZE / 4); mtu 408 drivers/net/ethernet/chelsio/cxgb3/xgmac.c thres = (thres * mtu) / 1000; mtu 411 drivers/net/ethernet/chelsio/cxgb3/xgmac.c thres = mtu > thres ? (mtu - thres + 7) / 8 : 0; mtu 1794 drivers/net/ethernet/chelsio/cxgb4/cxgb4.h int mtu, int promisc, int all_multi, int bcast, int vlanex, mtu 427 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c static int set_rxmode(struct net_device *dev, int mtu, bool sleep_ok) mtu 435 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c return t4_set_rxmode(adapter, adapter->mbox, pi->viid, mtu, mtu 511 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_set_rxmode(pi->adapter, mb, pi->viid, dev->mtu, -1, -1, -1, mtu 1633 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c unsigned int cxgb4_best_mtu(const unsigned short *mtus, unsigned short mtu, mtu 1638 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c while (i < NMTUS - 1 && mtus[i + 1] <= mtu) mtu 2745 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c dev->mtu = new_mtu; mtu 2856 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c unsigned int link_ok, speed, mtu; mtu 2893 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c ret = t4_get_link_params(pi, &link_ok, &speed, &mtu); mtu 2912 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c pktsize = mtu; mtu 3118 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c p.u.params.pktsize = dev->mtu; mtu 5494 drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c dev->mtu = 0; mtu 401 drivers/net/ethernet/chelsio/cxgb4/cxgb4_uld.h unsigned int cxgb4_best_mtu(const unsigned short *mtus, unsigned short mtu, mtu 147 drivers/net/ethernet/chelsio/cxgb4/sge.c unsigned int mtu) mtu 151 drivers/net/ethernet/chelsio/cxgb4/sge.c return ALIGN(s->pktshift + ETH_HLEN + VLAN_HLEN + mtu, s->fl_align); mtu 1396 drivers/net/ethernet/chelsio/cxgb4/sge.c max_pkt_len = ETH_HLEN + dev->mtu; mtu 1732 drivers/net/ethernet/chelsio/cxgb4/sge.c max_pkt_len = ETH_HLEN + dev->mtu; mtu 5776 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c unsigned int mtu, w; mtu 5778 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c for (mtu = 0; mtu < NMTUS; ++mtu) mtu 5781 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c ROWINDEX_V(0xffff) | (mtu << 5) | w); mtu 5782 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c incr[mtu][w] = (u16)t4_read_reg(adap, mtu 5875 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c unsigned int mtu = mtus[i]; mtu 5876 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c unsigned int log2 = fls(mtu); mtu 5878 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c if (!(mtu & ((1 << log2) >> 2))) /* round */ mtu 5881 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c MTUWIDTH_V(log2) | MTUVALUE_V(mtu)); mtu 5886 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c inc = max(((mtu - 40) * alpha[w]) / avg_pkts[w], mtu 7719 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c int mtu, int promisc, int all_multi, int bcast, int vlanex, mtu 7725 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c if (mtu < 0) mtu 7726 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c mtu = FW_RXMODE_MTU_NO_CHG; mtu 7742 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c cpu_to_be32(FW_VI_RXMODE_CMD_MTU_V(mtu) | mtu 8786 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c unsigned int action, link_ok, mtu; mtu 8810 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c mtu = be16_to_cpu(port_cmd.u.info.mtu); mtu 8817 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c mtu = FW_PORT_CMD_MTU32_G( mtu 8823 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c *mtup = mtu; mtu 2753 drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h __be16 mtu; mtu 2767 drivers/net/ethernet/chelsio/cxgb4/t4fw_api.h __be16 mtu; mtu 330 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c ret = t4vf_set_rxmode(pi->adapter, pi->viid, dev->mtu, -1, -1, -1, 1, mtu 996 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c static int set_rxmode(struct net_device *dev, int mtu, bool sleep_ok) mtu 1174 drivers/net/ethernet/chelsio/cxgb4vf/cxgb4vf_main.c dev->mtu = new_mtu; mtu 1185 drivers/net/ethernet/chelsio/cxgb4vf/sge.c max_pkt_len = ETH_HLEN + dev->mtu; mtu 1474 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c int mtu, int promisc, int all_multi, int bcast, int vlanex, mtu 1480 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c if (mtu < 0) mtu 1481 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c mtu = FW_VI_RXMODE_CMD_MTU_M; mtu 1498 drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c cpu_to_be32(FW_VI_RXMODE_CMD_MTU_V(mtu) | mtu 65 drivers/net/ethernet/chelsio/libcxgb/libcxgb_cm.h cxgb_best_mtu(const unsigned short *mtus, unsigned short mtu, mtu 74 drivers/net/ethernet/chelsio/libcxgb/libcxgb_cm.h unsigned short data_size = mtu - hdr_size; mtu 439 drivers/net/ethernet/cisco/enic/enic_main.c u32 mtu = vnic_dev_mtu(enic->vdev); mtu 442 drivers/net/ethernet/cisco/enic/enic_main.c if (mtu && mtu != enic->port_mtu) { mtu 443 drivers/net/ethernet/cisco/enic/enic_main.c enic->port_mtu = mtu; mtu 445 drivers/net/ethernet/cisco/enic/enic_main.c mtu = max_t(int, ENIC_MIN_MTU, mtu 446 drivers/net/ethernet/cisco/enic/enic_main.c min_t(int, ENIC_MAX_MTU, mtu)); mtu 447 drivers/net/ethernet/cisco/enic/enic_main.c if (mtu != netdev->mtu) mtu 450 drivers/net/ethernet/cisco/enic/enic_main.c if (mtu < netdev->mtu) mtu 454 drivers/net/ethernet/cisco/enic/enic_main.c netdev->mtu, mtu); mtu 1272 drivers/net/ethernet/cisco/enic/enic_main.c unsigned int len = netdev->mtu + VLAN_ETH_HLEN; mtu 2063 drivers/net/ethernet/cisco/enic/enic_main.c netdev->mtu = new_mtu; mtu 2081 drivers/net/ethernet/cisco/enic/enic_main.c if (netdev->mtu > enic->port_mtu) mtu 2084 drivers/net/ethernet/cisco/enic/enic_main.c netdev->mtu, enic->port_mtu); mtu 2099 drivers/net/ethernet/cisco/enic/enic_main.c netdev_info(netdev, "interface MTU set as %d\n", netdev->mtu); mtu 2587 drivers/net/ethernet/cisco/enic/enic_main.c enic->config.mtu = min_t(u16, 1500, enic->config.mtu); mtu 2895 drivers/net/ethernet/cisco/enic/enic_main.c enic->port_mtu = enic->config.mtu; mtu 2985 drivers/net/ethernet/cisco/enic/enic_main.c netdev->mtu = enic->port_mtu; mtu 69 drivers/net/ethernet/cisco/enic/enic_res.c GET_CONFIG(mtu); mtu 88 drivers/net/ethernet/cisco/enic/enic_res.c if (c->mtu == 0) mtu 89 drivers/net/ethernet/cisco/enic/enic_res.c c->mtu = 1500; mtu 90 drivers/net/ethernet/cisco/enic/enic_res.c c->mtu = min_t(u16, ENIC_MAX_MTU, mtu 92 drivers/net/ethernet/cisco/enic/enic_res.c c->mtu)); mtu 99 drivers/net/ethernet/cisco/enic/enic_res.c enic->mac_addr, c->wq_desc_count, c->rq_desc_count, c->mtu); mtu 1013 drivers/net/ethernet/cisco/enic/vnic_dev.c return vdev->notify_copy.mtu; mtu 524 drivers/net/ethernet/cisco/enic/vnic_devcmd.h u32 mtu; /* MTU */ mtu 28 drivers/net/ethernet/cisco/enic/vnic_enet.h u16 mtu; mtu 515 drivers/net/ethernet/cortina/gemini.c config0.bits.max_len = gmac_pick_rx_max_len(netdev->mtu); mtu 1150 drivers/net/ethernet/cortina/gemini.c unsigned short mtu; mtu 1153 drivers/net/ethernet/cortina/gemini.c mtu = ETH_HLEN; mtu 1154 drivers/net/ethernet/cortina/gemini.c mtu += netdev->mtu; mtu 1156 drivers/net/ethernet/cortina/gemini.c mtu += VLAN_HLEN; mtu 1161 drivers/net/ethernet/cortina/gemini.c if (word1 > mtu) { mtu 1163 drivers/net/ethernet/cortina/gemini.c word3 |= mtu; mtu 1982 drivers/net/ethernet/cortina/gemini.c netdev->mtu = new_mtu; mtu 1996 drivers/net/ethernet/cortina/gemini.c if (netdev->mtu + ETH_HLEN + VLAN_HLEN > MTU_SIZE_BIT_MASK) mtu 1383 drivers/net/ethernet/dec/tulip/de2104x.c de->rx_buf_sz = (dev->mtu <= 1500 ? PKT_BUF_SZ : dev->mtu + 32); mtu 52 drivers/net/ethernet/dec/tulip/tulip_core.c static int mtu[MAX_UNITS]; /* Jumbo MTU for interfaces. */ mtu 1642 drivers/net/ethernet/dec/tulip/tulip_core.c if (mtu[board_idx] > 0) mtu 1643 drivers/net/ethernet/dec/tulip/tulip_core.c dev->mtu = mtu[board_idx]; mtu 975 drivers/net/ethernet/dec/tulip/winbond-840.c np->rx_buf_sz = (dev->mtu <= 1500 ? PKT_BUF_SZ : dev->mtu + 32); mtu 26 drivers/net/ethernet/dlink/dl2k.c static int mtu[MAX_UNITS]; mtu 41 drivers/net/ethernet/dlink/dl2k.c module_param_array(mtu, int, NULL, 0); mtu 201 drivers/net/ethernet/dlink/dl2k.c dev->mtu = MAX_JUMBO; mtu 204 drivers/net/ethernet/dlink/dl2k.c if (mtu[card_idx] > 0 && mtu[card_idx] < PACKET_SIZE) mtu 205 drivers/net/ethernet/dlink/dl2k.c dev->mtu = mtu[card_idx]; mtu 489 drivers/net/ethernet/dlink/dl2k.c np->rx_buf_sz = (dev->mtu <= 1500 ? PACKET_SIZE : dev->mtu + 32); mtu 722 drivers/net/ethernet/dlink/sundance.c dev->mtu = new_mtu; mtu 873 drivers/net/ethernet/dlink/sundance.c iowrite16(dev->mtu + 18, ioaddr + MaxFrameSize); mtu 875 drivers/net/ethernet/dlink/sundance.c iowrite16(dev->mtu + 14, ioaddr + MaxFrameSize); mtu 877 drivers/net/ethernet/dlink/sundance.c if (dev->mtu > 2047) mtu 1034 drivers/net/ethernet/dlink/sundance.c np->rx_buf_sz = (dev->mtu <= 1520 ? PKT_BUF_SZ : dev->mtu + 16); mtu 316 drivers/net/ethernet/ezchip/nps_enet.c max_frame_length = ETH_HLEN + ndev->mtu + ETH_FCS_LEN; mtu 1238 drivers/net/ethernet/fealnx.c np->rx_buf_sz = (dev->mtu <= 1500 ? PKT_BUF_SZ : dev->mtu + 32); mtu 2827 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c net_dev->mtu = min(dpaa_get_max_mtu(), ETH_DATA_LEN); mtu 2830 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c net_dev->mtu); mtu 1678 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c static bool xdp_mtu_valid(struct dpaa2_eth_priv *priv, int mtu) mtu 1682 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c mfl = DPAA2_ETH_L2_MAX_FRM(mtu); mtu 1695 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c static int set_rx_mfl(struct dpaa2_eth_priv *priv, int mtu, bool has_xdp) mtu 1705 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c mfl = DPAA2_ETH_L2_MAX_FRM(mtu); mtu 1734 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c dev->mtu = new_mtu; mtu 1772 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c if (prog && !xdp_mtu_valid(priv, dev->mtu)) mtu 1793 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c err = set_rx_mfl(priv, dev->mtu, !!prog); mtu 36 drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.h #define DPAA2_ETH_L2_MAX_FRM(mtu) ((mtu) + VLAN_ETH_HLEN) mtu 2060 drivers/net/ethernet/freescale/gianfar.c dev->mtu = new_mtu; mtu 3332 drivers/net/ethernet/freescale/gianfar.c dev->mtu = 1500; mtu 3892 drivers/net/ethernet/freescale/ucc_geth.c dev->mtu = 1500; mtu 266 drivers/net/ethernet/google/gve/gve_adminq.c u16 mtu; mtu 303 drivers/net/ethernet/google/gve/gve_adminq.c mtu = be16_to_cpu(descriptor->mtu); mtu 304 drivers/net/ethernet/google/gve/gve_adminq.c if (mtu < ETH_MIN_MTU) { mtu 306 drivers/net/ethernet/google/gve/gve_adminq.c mtu); mtu 310 drivers/net/ethernet/google/gve/gve_adminq.c priv->dev->max_mtu = mtu; mtu 375 drivers/net/ethernet/google/gve/gve_adminq.c int gve_adminq_set_mtu(struct gve_priv *priv, u64 mtu) mtu 383 drivers/net/ethernet/google/gve/gve_adminq.c .parameter_value = cpu_to_be64(mtu), mtu 68 drivers/net/ethernet/google/gve/gve_adminq.h __be16 mtu; mtu 216 drivers/net/ethernet/google/gve/gve_adminq.h int gve_adminq_set_mtu(struct gve_priv *priv, u64 mtu); mtu 925 drivers/net/ethernet/google/gve/gve_main.c err = gve_adminq_set_mtu(priv, priv->dev->mtu); mtu 931 drivers/net/ethernet/google/gve/gve_main.c priv->dev->mtu = priv->dev->max_mtu; mtu 38 drivers/net/ethernet/hisilicon/hns/hns_enet.c int buf_num, enum hns_desc_type type, int mtu) mtu 131 drivers/net/ethernet/hisilicon/hns/hns_enet.c int buf_num, enum hns_desc_type type, int mtu) mtu 134 drivers/net/ethernet/hisilicon/hns/hns_enet.c buf_num, type, mtu); mtu 146 drivers/net/ethernet/hisilicon/hns/hns_enet.c int buf_num, enum hns_desc_type type, int mtu) mtu 281 drivers/net/ethernet/hisilicon/hns/hns_enet.c int buf_num, enum hns_desc_type type, int mtu) mtu 301 drivers/net/ethernet/hisilicon/hns/hns_enet.c mtu); mtu 344 drivers/net/ethernet/hisilicon/hns/hns_enet.c buf_num, DESC_TYPE_SKB, ndev->mtu); mtu 358 drivers/net/ethernet/hisilicon/hns/hns_enet.c DESC_TYPE_PAGE, ndev->mtu); mtu 1732 drivers/net/ethernet/hisilicon/hns/hns_enet.c if (new_mtu == ndev->mtu) mtu 1744 drivers/net/ethernet/hisilicon/hns/hns_enet.c ndev->mtu <= BD_SIZE_2048_MAX_MTU && mtu 1769 drivers/net/ethernet/hisilicon/hns/hns_enet.c ndev->mtu = new_mtu; mtu 47 drivers/net/ethernet/hisilicon/hns/hns_enet.h int buf_num, enum hns_desc_type type, int mtu); mtu 1664 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c "change mtu from %u to %d\n", netdev->mtu, new_mtu); mtu 1671 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c netdev->mtu = new_mtu; mtu 509 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c u32 mtu; mtu 511 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c memcpy(&mtu, &mbx_req->msg[2], sizeof(mtu)); mtu 512 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c ret = hclge_set_vport_mtu(vport, mtu); mtu 529 drivers/net/ethernet/huawei/hinic/hinic_main.c netdev->mtu = new_mtu; mtu 1007 drivers/net/ethernet/huawei/hinic/hinic_main.c err = hinic_port_set_mtu(nic_dev, netdev->mtu); mtu 163 drivers/net/ethernet/huawei/hinic/hinic_port.c port_mtu_cmd.mtu = new_mtu; mtu 105 drivers/net/ethernet/huawei/hinic/hinic_port.h u32 mtu; mtu 467 drivers/net/ethernet/ibm/emac/core.c r |= EMAC4_RMR_MJS(ndev->mtu); mtu 627 drivers/net/ethernet/ibm/emac/core.c if (dev->ndev->mtu > ETH_DATA_LEN) { mtu 1090 drivers/net/ethernet/ibm/emac/core.c (dev->ndev->mtu > ETH_DATA_LEN); mtu 1093 drivers/net/ethernet/ibm/emac/core.c (dev->ndev->mtu > ETH_DATA_LEN); mtu 1100 drivers/net/ethernet/ibm/emac/core.c dev->ndev->mtu = new_mtu; mtu 1127 drivers/net/ethernet/ibm/emac/core.c if (emac_rx_skb_size(ndev->mtu) != emac_rx_skb_size(new_mtu)) mtu 1132 drivers/net/ethernet/ibm/emac/core.c ndev->mtu = new_mtu; mtu 1284 drivers/net/ethernet/ibm/emac/core.c mal_set_rcbs(dev->mal, dev->mal_rx_chan, emac_rx_size(ndev->mtu)); mtu 3118 drivers/net/ethernet/ibm/emac/core.c dev->rx_skb_size = emac_rx_skb_size(ndev->mtu); mtu 3119 drivers/net/ethernet/ibm/emac/core.c dev->rx_sync_size = emac_rx_sync_size(ndev->mtu); mtu 58 drivers/net/ethernet/ibm/emac/core.h static inline int emac_rx_size(int mtu) mtu 60 drivers/net/ethernet/ibm/emac/core.h if (mtu > ETH_DATA_LEN) mtu 67 drivers/net/ethernet/ibm/emac/core.h static inline int emac_rx_skb_size(int mtu) mtu 69 drivers/net/ethernet/ibm/emac/core.h int size = max(mtu + EMAC_MTU_OVERHEAD, emac_rx_size(mtu)); mtu 75 drivers/net/ethernet/ibm/emac/core.h static inline int emac_rx_sync_size(int mtu) mtu 77 drivers/net/ethernet/ibm/emac/core.h return SKB_DATA_ALIGN(emac_rx_size(mtu) + NET_IP_ALIGN); mtu 258 drivers/net/ethernet/ibm/ibmveth.c adapter->netdev->mtu + mtu 609 drivers/net/ethernet/ibm/ibmveth.c kmalloc(netdev->mtu + IBMVETH_BUFF_OH, GFP_KERNEL); mtu 615 drivers/net/ethernet/ibm/ibmveth.c netdev->mtu + IBMVETH_BUFF_OH, DMA_BIDIRECTIONAL); mtu 706 drivers/net/ethernet/ibm/ibmveth.c adapter->netdev->mtu + IBMVETH_BUFF_OH, mtu 1361 drivers/net/ethernet/ibm/ibmveth.c if (length > netdev->mtu + ETH_HLEN) { mtu 1495 drivers/net/ethernet/ibm/ibmveth.c dev->mtu = new_mtu; mtu 1546 drivers/net/ethernet/ibm/ibmveth.c ret += IOMMU_PAGE_ALIGN(netdev->mtu, tbl); mtu 1790 drivers/net/ethernet/ibm/ibmveth.c int mtu = netdev->mtu + IBMVETH_BUFF_OH; mtu 1799 drivers/net/ethernet/ibm/ibmveth.c if (mtu <= adapter->rx_buff_pool[i].buff_size) mtu 2314 drivers/net/ethernet/ibm/ibmvnic.c adapter->fallback.mtu = adapter->req_mtu; mtu 2330 drivers/net/ethernet/ibm/ibmvnic.c adapter->desired.mtu = adapter->fallback.mtu; mtu 2352 drivers/net/ethernet/ibm/ibmvnic.c adapter->desired.mtu = new_mtu + ETH_HLEN; mtu 3178 drivers/net/ethernet/ibm/ibmvnic.c if (adapter->desired.mtu) mtu 3179 drivers/net/ethernet/ibm/ibmvnic.c adapter->req_mtu = adapter->desired.mtu; mtu 3181 drivers/net/ethernet/ibm/ibmvnic.c adapter->req_mtu = adapter->netdev->mtu + ETH_HLEN; mtu 4107 drivers/net/ethernet/ibm/ibmvnic.c *req_value = adapter->fallback.mtu; mtu 4174 drivers/net/ethernet/ibm/ibmvnic.c netdev->mtu = adapter->req_mtu - ETH_HLEN; mtu 4988 drivers/net/ethernet/ibm/ibmvnic.c netdev->mtu = adapter->req_mtu - ETH_HLEN; mtu 382 drivers/net/ethernet/ibm/ibmvnic.h __be32 mtu; mtu 963 drivers/net/ethernet/ibm/ibmvnic.h u64 mtu; mtu 870 drivers/net/ethernet/intel/e1000/e1000_main.c hw->max_frame_size = adapter->netdev->mtu + mtu 1795 drivers/net/ethernet/intel/e1000/e1000_main.c if (adapter->netdev->mtu <= ETH_DATA_LEN) mtu 1852 drivers/net/ethernet/intel/e1000/e1000_main.c if (adapter->netdev->mtu > ETH_DATA_LEN) { mtu 3569 drivers/net/ethernet/intel/e1000/e1000_main.c netdev->name, netdev->mtu, new_mtu); mtu 3570 drivers/net/ethernet/intel/e1000/e1000_main.c netdev->mtu = new_mtu; mtu 3038 drivers/net/ethernet/intel/e1000e/netdev.c if (adapter->netdev->mtu > ETH_DATA_LEN) mtu 3058 drivers/net/ethernet/intel/e1000e/netdev.c if (adapter->netdev->mtu <= ETH_DATA_LEN) mtu 3126 drivers/net/ethernet/intel/e1000e/netdev.c pages = PAGE_USE_COUNT(adapter->netdev->mtu); mtu 3196 drivers/net/ethernet/intel/e1000e/netdev.c } else if (adapter->netdev->mtu > ETH_FRAME_LEN + ETH_FCS_LEN) { mtu 3270 drivers/net/ethernet/intel/e1000e/netdev.c if (adapter->netdev->mtu > ETH_DATA_LEN) { mtu 4017 drivers/net/ethernet/intel/e1000e/netdev.c if (adapter->netdev->mtu > ETH_DATA_LEN) { mtu 4036 drivers/net/ethernet/intel/e1000e/netdev.c if (adapter->netdev->mtu > ETH_DATA_LEN) { mtu 4052 drivers/net/ethernet/intel/e1000e/netdev.c if (adapter->netdev->mtu <= ETH_DATA_LEN) { mtu 4295 drivers/net/ethernet/intel/e1000e/netdev.c (adapter->netdev->mtu > ETH_DATA_LEN) && mtu 4430 drivers/net/ethernet/intel/e1000e/netdev.c adapter->max_frame_size = netdev->mtu + VLAN_ETH_HLEN + ETH_FCS_LEN; mtu 6042 drivers/net/ethernet/intel/e1000e/netdev.c e_info("changing MTU from %d to %d\n", netdev->mtu, new_mtu); mtu 6043 drivers/net/ethernet/intel/e1000e/netdev.c netdev->mtu = new_mtu; mtu 6971 drivers/net/ethernet/intel/e1000e/netdev.c if ((hw->mac.type >= e1000_pch2lan) && (netdev->mtu > ETH_DATA_LEN)) mtu 70 drivers/net/ethernet/intel/i40e/i40e_client.c params->mtu = vsi->netdev->mtu; mtu 78 drivers/net/ethernet/intel/i40e/i40e_client.h u16 mtu; mtu 1643 drivers/net/ethernet/intel/i40e/i40e_debugfs.c int mtu; mtu 1646 drivers/net/ethernet/intel/i40e/i40e_debugfs.c &vsi_seid, &mtu); mtu 1660 drivers/net/ethernet/intel/i40e/i40e_debugfs.c mtu); mtu 2649 drivers/net/ethernet/intel/i40e/i40e_main.c netdev->mtu, new_mtu); mtu 2650 drivers/net/ethernet/intel/i40e/i40e_main.c netdev->mtu = new_mtu; mtu 3402 drivers/net/ethernet/intel/i40e/i40e_main.c (vsi->netdev->mtu <= ETH_DATA_LEN)) { mtu 12509 drivers/net/ethernet/intel/i40e/i40e_main.c int frame_size = vsi->netdev->mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; mtu 41 drivers/net/ethernet/intel/iavf/iavf_client.c params->mtu = vsi->netdev->mtu; mtu 78 drivers/net/ethernet/intel/iavf/iavf_client.h u16 mtu; mtu 591 drivers/net/ethernet/intel/iavf/iavf_main.c (netdev->mtu <= ETH_DATA_LEN)) mtu 3267 drivers/net/ethernet/intel/iavf/iavf_main.c netdev->mtu = new_mtu; mtu 3532 drivers/net/ethernet/intel/iavf/iavf_main.c netdev->mtu < 576) mtu 3535 drivers/net/ethernet/intel/iavf/iavf_main.c netdev->mtu < 576) mtu 262 drivers/net/ethernet/intel/iavf/iavf_virtchnl.c (adapter->netdev->mtu <= ETH_DATA_LEN)) mtu 1690 drivers/net/ethernet/intel/ice/ice_lib.c if (vsi->netdev && vsi->netdev->mtu > ETH_DATA_LEN) mtu 1691 drivers/net/ethernet/intel/ice/ice_lib.c vsi->max_frame = vsi->netdev->mtu + mtu 4355 drivers/net/ethernet/intel/ice/ice_main.c if (new_mtu == netdev->mtu) { mtu 4356 drivers/net/ethernet/intel/ice/ice_main.c netdev_warn(netdev, "MTU is already %u\n", netdev->mtu); mtu 4385 drivers/net/ethernet/intel/ice/ice_main.c netdev->mtu = new_mtu; mtu 3816 drivers/net/ethernet/intel/igb/igb_main.c adapter->max_frame_size = netdev->mtu + ETH_HLEN + ETH_FCS_LEN + mtu 6245 drivers/net/ethernet/intel/igb/igb_main.c netdev->mtu, new_mtu); mtu 6246 drivers/net/ethernet/intel/igb/igb_main.c netdev->mtu = new_mtu; mtu 1627 drivers/net/ethernet/intel/igbvf/netdev.c adapter->max_frame_size = netdev->mtu + ETH_HLEN + ETH_FCS_LEN; mtu 2441 drivers/net/ethernet/intel/igbvf/netdev.c netdev->mtu, new_mtu); mtu 2442 drivers/net/ethernet/intel/igbvf/netdev.c netdev->mtu = new_mtu; mtu 2211 drivers/net/ethernet/intel/igc/igc_main.c netdev->mtu, new_mtu); mtu 2212 drivers/net/ethernet/intel/igc/igc_main.c netdev->mtu = new_mtu; mtu 4430 drivers/net/ethernet/intel/igc/igc_main.c adapter->max_frame_size = netdev->mtu + ETH_HLEN + ETH_FCS_LEN + mtu 180 drivers/net/ethernet/intel/ixgb/ixgb_main.c int max_frame = netdev->mtu + ENET_HEADER_SIZE + ENET_FCS_LENGTH; mtu 564 drivers/net/ethernet/intel/ixgb/ixgb_main.c hw->max_frame_size = netdev->mtu + ENET_HEADER_SIZE + ENET_FCS_LENGTH; mtu 1579 drivers/net/ethernet/intel/ixgb/ixgb_main.c netdev->mtu = new_mtu; mtu 319 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c int max_frame = adapter->netdev->mtu + ETH_HLEN + ETH_FCS_LEN; mtu 511 drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_nl.c int max_frame = dev->mtu + ETH_HLEN + ETH_FCS_LEN; mtu 2382 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c mss = rx_ring->netdev->mtu - mtu 4266 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c int max_frame = netdev->mtu + ETH_HLEN + ETH_FCS_LEN; mtu 5043 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c int max_frame = adapter->netdev->mtu + ETH_HLEN + ETH_FCS_LEN; mtu 5108 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c tc = link = dev->mtu + ETH_HLEN + ETH_FCS_LEN + IXGBE_ETH_FRAMING; mtu 5169 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c tc = dev->mtu + ETH_HLEN + ETH_FCS_LEN; mtu 6745 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c e_info(probe, "changing MTU from %d to %d\n", netdev->mtu, new_mtu); mtu 6748 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c netdev->mtu = new_mtu; mtu 10238 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c int i, frame_size = dev->mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; mtu 485 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c int pf_max_frame = dev->mtu + ETH_HLEN; mtu 871 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c int pf_max_frame = dev->mtu + ETH_HLEN; mtu 1970 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c unsigned int max_frame = netdev->mtu + ETH_HLEN + ETH_FCS_LEN; mtu 2007 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c ret = hw->mac.ops.set_rlpml(hw, netdev->mtu + ETH_HLEN + ETH_FCS_LEN); mtu 2011 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c "Failed to set MTU at %d\n", netdev->mtu); mtu 4272 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c netdev->mtu, new_mtu); mtu 4275 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c netdev->mtu = new_mtu; mtu 4447 drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c int i, frame_size = dev->mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; mtu 733 drivers/net/ethernet/jme.c jme->dev->mtu + RX_EXTRA_LEN); mtu 1282 drivers/net/ethernet/jme.c if (jme_check_link(netdev, 1) && jme->old_mtu == netdev->mtu) mtu 1285 drivers/net/ethernet/jme.c jme->old_mtu = netdev->mtu; mtu 2330 drivers/net/ethernet/jme.c netdev->mtu = new_mtu; mtu 2688 drivers/net/ethernet/jme.c if (netdev->mtu > 1900) mtu 3010 drivers/net/ethernet/jme.c jme->old_mtu = netdev->mtu = 1500; mtu 503 drivers/net/ethernet/lantiq_etop.c dev->mtu = new_mtu; mtu 1139 drivers/net/ethernet/marvell/mv643xx_eth.c int mtu; mtu 1146 drivers/net/ethernet/marvell/mv643xx_eth.c mtu = (mp->dev->mtu + 255) >> 8; mtu 1147 drivers/net/ethernet/marvell/mv643xx_eth.c if (mtu > 63) mtu 1148 drivers/net/ethernet/marvell/mv643xx_eth.c mtu = 63; mtu 1157 drivers/net/ethernet/marvell/mv643xx_eth.c wrlp(mp, TX_BW_MTU, mtu); mtu 1162 drivers/net/ethernet/marvell/mv643xx_eth.c wrlp(mp, TX_BW_MTU_MOVED, mtu); mtu 2398 drivers/net/ethernet/marvell/mv643xx_eth.c skb_size = mp->dev->mtu + 36; mtu 2558 drivers/net/ethernet/marvell/mv643xx_eth.c dev->mtu = new_mtu; mtu 320 drivers/net/ethernet/marvell/mvneta.c #define MVNETA_RX_PKT_SIZE(mtu) \ mtu 321 drivers/net/ethernet/marvell/mvneta.c ALIGN((mtu) + MVNETA_MH_SIZE + MVNETA_VLAN_TAG_LEN + \ mtu 1072 drivers/net/ethernet/marvell/mvneta.c MVNETA_RX_PKT_SIZE(pp->dev->mtu)); mtu 1107 drivers/net/ethernet/marvell/mvneta.c static void mvneta_bm_update_mtu(struct mvneta_port *pp, int mtu) mtu 1121 drivers/net/ethernet/marvell/mvneta.c bm_pool->pkt_size = MVNETA_RX_PKT_SIZE(mtu); mtu 1491 drivers/net/ethernet/marvell/mvneta.c u32 val, size, mtu; mtu 1494 drivers/net/ethernet/marvell/mvneta.c mtu = max_tx_size * 8; mtu 1495 drivers/net/ethernet/marvell/mvneta.c if (mtu > MVNETA_TX_MTU_MAX) mtu 1496 drivers/net/ethernet/marvell/mvneta.c mtu = MVNETA_TX_MTU_MAX; mtu 1501 drivers/net/ethernet/marvell/mvneta.c val |= mtu; mtu 1508 drivers/net/ethernet/marvell/mvneta.c if (size < mtu) { mtu 1509 drivers/net/ethernet/marvell/mvneta.c size = mtu; mtu 1518 drivers/net/ethernet/marvell/mvneta.c if (size < mtu) { mtu 1519 drivers/net/ethernet/marvell/mvneta.c size = mtu; mtu 3269 drivers/net/ethernet/marvell/mvneta.c static int mvneta_change_mtu(struct net_device *dev, int mtu) mtu 3274 drivers/net/ethernet/marvell/mvneta.c if (!IS_ALIGNED(MVNETA_RX_PKT_SIZE(mtu), 8)) { mtu 3276 drivers/net/ethernet/marvell/mvneta.c mtu, ALIGN(MVNETA_RX_PKT_SIZE(mtu), 8)); mtu 3277 drivers/net/ethernet/marvell/mvneta.c mtu = ALIGN(MVNETA_RX_PKT_SIZE(mtu), 8); mtu 3280 drivers/net/ethernet/marvell/mvneta.c dev->mtu = mtu; mtu 3284 drivers/net/ethernet/marvell/mvneta.c mvneta_bm_update_mtu(pp, mtu); mtu 3300 drivers/net/ethernet/marvell/mvneta.c mvneta_bm_update_mtu(pp, mtu); mtu 3302 drivers/net/ethernet/marvell/mvneta.c pp->pkt_size = MVNETA_RX_PKT_SIZE(dev->mtu); mtu 3329 drivers/net/ethernet/marvell/mvneta.c if (pp->tx_csum_limit && dev->mtu > pp->tx_csum_limit) { mtu 3831 drivers/net/ethernet/marvell/mvneta.c pp->pkt_size = MVNETA_RX_PKT_SIZE(pp->dev->mtu); mtu 627 drivers/net/ethernet/marvell/mvpp2/mvpp2.h #define MVPP2_RX_PKT_SIZE(mtu) \ mtu 628 drivers/net/ethernet/marvell/mvpp2/mvpp2.h ALIGN((mtu) + MVPP2_MH_SIZE + MVPP2_VLAN_TAG_LEN + \ mtu 965 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c static int mvpp2_bm_update_mtu(struct net_device *dev, int mtu) mtu 969 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c int pkt_size = MVPP2_RX_PKT_SIZE(mtu); mtu 1004 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c dev->mtu = mtu; mtu 2096 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c u32 val, size, mtu; mtu 2099 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c mtu = port->pkt_size * 8; mtu 2100 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c if (mtu > MVPP2_TXP_MTU_MAX) mtu 2101 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c mtu = MVPP2_TXP_MTU_MAX; mtu 2104 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c mtu = 3 * mtu; mtu 2113 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c val |= mtu; mtu 2119 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c if (size < mtu) { mtu 2120 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c size = mtu; mtu 2131 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c if (size < mtu) { mtu 2132 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c size = mtu; mtu 3874 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c static int mvpp2_change_mtu(struct net_device *dev, int mtu) mtu 3881 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c if (!IS_ALIGNED(MVPP2_RX_PKT_SIZE(mtu), 8)) { mtu 3882 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c netdev_info(dev, "illegal MTU value %d, round to %d\n", mtu, mtu 3883 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c ALIGN(MVPP2_RX_PKT_SIZE(mtu), 8)); mtu 3884 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c mtu = ALIGN(MVPP2_RX_PKT_SIZE(mtu), 8); mtu 3887 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c if (MVPP2_RX_PKT_SIZE(mtu) > MVPP2_BM_LONG_PKT_SIZE) { mtu 3889 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c netdev_warn(dev, "mtu %d too high, switching to shared buffers", mtu); mtu 3898 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c MVPP2_RX_PKT_SIZE(priv->port_list[i]->dev->mtu) > mtu 3915 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c err = mvpp2_bm_update_mtu(dev, mtu); mtu 3919 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c mvpp2_bm_update_mtu(dev, dev->mtu); mtu 3921 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c port->pkt_size = MVPP2_RX_PKT_SIZE(mtu); mtu 4646 drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c port->pkt_size = MVPP2_RX_PKT_SIZE(port->dev->mtu); mtu 883 drivers/net/ethernet/marvell/pxa168_eth.c skb_size = pep->dev->mtu + 36; mtu 1188 drivers/net/ethernet/marvell/pxa168_eth.c static int pxa168_eth_change_mtu(struct net_device *dev, int mtu) mtu 1193 drivers/net/ethernet/marvell/pxa168_eth.c dev->mtu = mtu; mtu 1366 drivers/net/ethernet/marvell/skge.c if (hw->dev[port]->mtu > ETH_DATA_LEN) { mtu 1529 drivers/net/ethernet/marvell/skge.c int jumbo = hw->dev[port]->mtu > ETH_DATA_LEN; mtu 2167 drivers/net/ethernet/marvell/skge.c if (hw->dev[port]->mtu > ETH_DATA_LEN) mtu 2540 drivers/net/ethernet/marvell/skge.c if (dev->mtu > RX_BUF_SIZE) mtu 2541 drivers/net/ethernet/marvell/skge.c skge->rx_buf_size = dev->mtu + ETH_HLEN; mtu 2903 drivers/net/ethernet/marvell/skge.c dev->mtu = new_mtu; mtu 2909 drivers/net/ethernet/marvell/skge.c dev->mtu = new_mtu; mtu 887 drivers/net/ethernet/marvell/sky2.c } else if (dev->mtu > ETH_DATA_LEN) { mtu 963 drivers/net/ethernet/marvell/sky2.c if (hw->dev[port]->mtu > ETH_DATA_LEN) mtu 1146 drivers/net/ethernet/marvell/sky2.c size = roundup(sky2->netdev->mtu + ETH_HLEN + VLAN_HLEN, 8); mtu 1158 drivers/net/ethernet/marvell/sky2.c size = roundup(sky2->netdev->mtu + ETH_HLEN + VLAN_HLEN, 8); mtu 2387 drivers/net/ethernet/marvell/sky2.c dev->mtu = new_mtu; mtu 2410 drivers/net/ethernet/marvell/sky2.c dev->mtu = new_mtu; mtu 2419 drivers/net/ethernet/marvell/sky2.c if (dev->mtu > ETH_DATA_LEN) mtu 4364 drivers/net/ethernet/marvell/sky2.c if (dev->mtu > ETH_DATA_LEN && hw->chip_id == CHIP_ID_YUKON_EC_U) { mtu 746 drivers/net/ethernet/mediatek/mtk_eth_soc.c static inline int mtk_max_frag_size(int mtu) mtu 749 drivers/net/ethernet/mediatek/mtk_eth_soc.c if (mtu + MTK_RX_ETH_HLEN < MTK_MAX_RX_LENGTH) mtu 750 drivers/net/ethernet/mediatek/mtk_eth_soc.c mtu = MTK_MAX_RX_LENGTH - MTK_RX_ETH_HLEN; mtu 752 drivers/net/ethernet/mediatek/mtk_eth_soc.c return SKB_DATA_ALIGN(MTK_RX_HLEN + mtu) + mtu 1418 drivers/net/ethernet/mellanox/mlx4/en_netdev.c priv->dev->mtu, priv->rx_frames, priv->rx_usecs); mtu 1640 drivers/net/ethernet/mellanox/mlx4/en_netdev.c dev->mtu = min(dev->mtu, priv->max_mtu); mtu 1773 drivers/net/ethernet/mellanox/mlx4/en_netdev.c err = mlx4_SET_PORT_user_mtu(mdev->dev, priv->port, dev->mtu); mtu 1776 drivers/net/ethernet/mellanox/mlx4/en_netdev.c dev->mtu, priv->port, err); mtu 2358 drivers/net/ethernet/mellanox/mlx4/en_netdev.c static bool mlx4_en_check_xdp_mtu(struct net_device *dev, int mtu) mtu 2362 drivers/net/ethernet/mellanox/mlx4/en_netdev.c if (mtu > MLX4_EN_MAX_XDP_MTU) { mtu 2364 drivers/net/ethernet/mellanox/mlx4/en_netdev.c mtu, MLX4_EN_MAX_XDP_MTU); mtu 2378 drivers/net/ethernet/mellanox/mlx4/en_netdev.c dev->mtu, new_mtu); mtu 2384 drivers/net/ethernet/mellanox/mlx4/en_netdev.c dev->mtu = new_mtu; mtu 2812 drivers/net/ethernet/mellanox/mlx4/en_netdev.c if (!mlx4_en_check_xdp_mtu(dev, dev->mtu)) mtu 94 drivers/net/ethernet/mellanox/mlx4/en_port.h __be16 mtu; mtu 992 drivers/net/ethernet/mellanox/mlx4/en_rx.c int eff_mtu = MLX4_EN_EFF_MTU(dev->mtu); mtu 188 drivers/net/ethernet/mellanox/mlx4/en_selftest.c if (priv->port_up && dev->mtu >= MLX4_SELFTEST_LB_MIN_MTU) mtu 1283 drivers/net/ethernet/mellanox/mlx4/main.c static inline int int_to_ibta_mtu(int mtu) mtu 1285 drivers/net/ethernet/mellanox/mlx4/main.c switch (mtu) { mtu 1295 drivers/net/ethernet/mellanox/mlx4/main.c static inline int ibta_mtu_to_int(enum ibta_mtu mtu) mtu 1297 drivers/net/ethernet/mellanox/mlx4/main.c switch (mtu) { mtu 1331 drivers/net/ethernet/mellanox/mlx4/main.c int err, port, mtu, ibta_mtu = -1; mtu 1338 drivers/net/ethernet/mellanox/mlx4/main.c err = kstrtoint(buf, 0, &mtu); mtu 1340 drivers/net/ethernet/mellanox/mlx4/main.c ibta_mtu = int_to_ibta_mtu(mtu); mtu 488 drivers/net/ethernet/mellanox/mlx4/mlx4.h u16 mtu[MLX4_MAX_PORTS + 1]; mtu 798 drivers/net/ethernet/mellanox/mlx4/mlx4.h __be16 mtu; mtu 167 drivers/net/ethernet/mellanox/mlx4/mlx4_en.h #define MLX4_EN_EFF_MTU(mtu) ((mtu) + ETH_HLEN + (2 * VLAN_HLEN)) mtu 1254 drivers/net/ethernet/mellanox/mlx4/port.c u16 mtu, prev_mtu; mtu 1259 drivers/net/ethernet/mellanox/mlx4/port.c mtu = be16_to_cpu(gen_context->mtu); mtu 1260 drivers/net/ethernet/mellanox/mlx4/port.c mtu = min_t(int, mtu, dev->caps.eth_mtu_cap[port] + mtu 1262 drivers/net/ethernet/mellanox/mlx4/port.c prev_mtu = slave_st->mtu[port]; mtu 1263 drivers/net/ethernet/mellanox/mlx4/port.c slave_st->mtu[port] = mtu; mtu 1264 drivers/net/ethernet/mellanox/mlx4/port.c if (mtu > master->max_mtu[port]) mtu 1265 drivers/net/ethernet/mellanox/mlx4/port.c master->max_mtu[port] = mtu; mtu 1266 drivers/net/ethernet/mellanox/mlx4/port.c if (mtu < prev_mtu && prev_mtu == master->max_mtu[port]) { mtu 1269 drivers/net/ethernet/mellanox/mlx4/port.c slave_st->mtu[port] = mtu; mtu 1270 drivers/net/ethernet/mellanox/mlx4/port.c master->max_mtu[port] = mtu; mtu 1274 drivers/net/ethernet/mellanox/mlx4/port.c master->slave_state[i].mtu[port]); mtu 1276 drivers/net/ethernet/mellanox/mlx4/port.c gen_context->mtu = cpu_to_be16(master->max_mtu[port]); mtu 1608 drivers/net/ethernet/mellanox/mlx4/port.c int mlx4_SET_PORT_general(struct mlx4_dev *dev, u8 port, int mtu, mtu 1621 drivers/net/ethernet/mellanox/mlx4/port.c context->mtu = cpu_to_be16(mtu); mtu 1186 drivers/net/ethernet/mellanox/mlx5/core/en.h u16 max_channels, u16 mtu); mtu 128 drivers/net/ethernet/mellanox/mlx5/core/en/port_buffer.c static u32 calculate_xoff(struct mlx5e_priv *priv, unsigned int mtu) mtu 139 drivers/net/ethernet/mellanox/mlx5/core/en/port_buffer.c xoff = (301 + 216 * priv->dcbx.cable_len / 100) * speed / 1000 + 272 * mtu / 100; mtu 260 drivers/net/ethernet/mellanox/mlx5/core/en/port_buffer.c u32 change, unsigned int mtu, mtu 266 drivers/net/ethernet/mellanox/mlx5/core/en/port_buffer.c u32 xoff = calculate_xoff(priv, mtu); mtu 68 drivers/net/ethernet/mellanox/mlx5/core/en/port_buffer.h u32 change, unsigned int mtu, mtu 167 drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_rxtx.c mss = nskb->dev->mtu - (headln - skb_network_offset(nskb)); mtu 384 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c dev->mtu, &pfc_new, mtu 975 drivers/net/ethernet/mellanox/mlx5/core/en_dcbnl.c err = mlx5e_port_manual_buffer_config(priv, changed, dev->mtu, NULL, mtu 2817 drivers/net/ethernet/mellanox/mlx5/core/en_main.c struct mlx5e_params *params, u16 mtu) mtu 2819 drivers/net/ethernet/mellanox/mlx5/core/en_main.c u16 hw_mtu = MLX5E_SW2HW_MTU(params, mtu); mtu 2832 drivers/net/ethernet/mellanox/mlx5/core/en_main.c struct mlx5e_params *params, u16 *mtu) mtu 2841 drivers/net/ethernet/mellanox/mlx5/core/en_main.c *mtu = MLX5E_HW2SW_MTU(params, hw_mtu); mtu 2849 drivers/net/ethernet/mellanox/mlx5/core/en_main.c u16 mtu; mtu 2856 drivers/net/ethernet/mellanox/mlx5/core/en_main.c mlx5e_query_mtu(mdev, params, &mtu); mtu 2857 drivers/net/ethernet/mellanox/mlx5/core/en_main.c if (mtu != params->sw_mtu) mtu 2859 drivers/net/ethernet/mellanox/mlx5/core/en_main.c __func__, mtu, params->sw_mtu); mtu 2861 drivers/net/ethernet/mellanox/mlx5/core/en_main.c params->sw_mtu = mtu; mtu 3970 drivers/net/ethernet/mellanox/mlx5/core/en_main.c netdev->mtu = params->sw_mtu; mtu 3978 drivers/net/ethernet/mellanox/mlx5/core/en_main.c netdev->mtu = new_channels.params.sw_mtu; mtu 4798 drivers/net/ethernet/mellanox/mlx5/core/en_main.c u16 max_channels, u16 mtu) mtu 4802 drivers/net/ethernet/mellanox/mlx5/core/en_main.c params->sw_mtu = mtu; mtu 5042 drivers/net/ethernet/mellanox/mlx5/core/en_main.c priv->max_nch, netdev->mtu); mtu 1420 drivers/net/ethernet/mellanox/mlx5/core/en_rep.c params->sw_mtu = netdev->mtu; mtu 730 drivers/net/ethernet/mellanox/mlx5/core/fpga/conn.c MLX5_SET(qpc, qpc, mtu, MLX5_QPC_MTU_1K_BYTES); mtu 88 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c netdev->mtu = netdev->max_mtu; mtu 91 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c priv->max_nch, netdev->mtu); mtu 455 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c netdev->mtu = params->sw_mtu; mtu 466 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib.c netdev->mtu = new_channels.params.sw_mtu; mtu 271 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib_vlan.c netdev->mtu = new_mtu; mtu 251 drivers/net/ethernet/mellanox/mlx5/core/port.c int mlx5_set_port_mtu(struct mlx5_core_dev *dev, u16 mtu, u8 port) mtu 256 drivers/net/ethernet/mellanox/mlx5/core/port.c MLX5_SET(pmtu_reg, in, admin_mtu, mtu); mtu 29 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c enum ib_mtu mtu; mtu 622 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c MLX5_SET(qpc, qpc, mtu, attr->mtu); mtu 648 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c enum ib_mtu mtu = IB_MTU_1024; mtu 663 drivers/net/ethernet/mellanox/mlx5/core/steering/dr_send.c rtr_attr.mtu = mtu; mtu 228 drivers/net/ethernet/mellanox/mlx5/core/vport.c int mlx5_query_nic_vport_mtu(struct mlx5_core_dev *mdev, u16 *mtu) mtu 240 drivers/net/ethernet/mellanox/mlx5/core/vport.c *mtu = MLX5_GET(query_nic_vport_context_out, out, mtu 241 drivers/net/ethernet/mellanox/mlx5/core/vport.c nic_vport_context.mtu); mtu 248 drivers/net/ethernet/mellanox/mlx5/core/vport.c int mlx5_modify_nic_vport_mtu(struct mlx5_core_dev *mdev, u16 mtu) mtu 258 drivers/net/ethernet/mellanox/mlx5/core/vport.c MLX5_SET(modify_nic_vport_context_in, in, field_select.mtu, 1); mtu 259 drivers/net/ethernet/mellanox/mlx5/core/vport.c MLX5_SET(modify_nic_vport_context_in, in, nic_vport_context.mtu, mtu); mtu 5842 drivers/net/ethernet/mellanox/mlxsw/reg.h MLXSW_ITEM32(reg, ritr, mtu, 0x34, 0, 16); mtu 6060 drivers/net/ethernet/mellanox/mlxsw/reg.h u16 rif, u16 vr_id, u16 mtu) mtu 6079 drivers/net/ethernet/mellanox/mlxsw/reg.h mlxsw_reg_ritr_mtu_set(payload, mtu); mtu 627 drivers/net/ethernet/mellanox/mlxsw/spectrum.c static int mlxsw_sp_port_mtu_set(struct mlxsw_sp_port *mlxsw_sp_port, u16 mtu) mtu 634 drivers/net/ethernet/mellanox/mlxsw/spectrum.c mtu += MLXSW_TXHDR_LEN + ETH_HLEN; mtu 641 drivers/net/ethernet/mellanox/mlxsw/spectrum.c if (mtu > max_mtu) mtu 644 drivers/net/ethernet/mellanox/mlxsw/spectrum.c mlxsw_reg_pmtu_pack(pmtu_pl, mlxsw_sp_port->local_port, mtu); mtu 876 drivers/net/ethernet/mellanox/mlxsw/spectrum.c int mtu) mtu 878 drivers/net/ethernet/mellanox/mlxsw/spectrum.c return 2 * mlxsw_sp_bytes_cells(mlxsw_sp, mtu); mtu 883 drivers/net/ethernet/mellanox/mlxsw/spectrum.c static u16 mlxsw_sp_pfc_delay_get(const struct mlxsw_sp *mlxsw_sp, int mtu, mtu 889 drivers/net/ethernet/mellanox/mlxsw/spectrum.c mtu); mtu 897 drivers/net/ethernet/mellanox/mlxsw/spectrum.c static u16 mlxsw_sp_pg_buf_delay_get(const struct mlxsw_sp *mlxsw_sp, int mtu, mtu 901 drivers/net/ethernet/mellanox/mlxsw/spectrum.c return mlxsw_sp_pfc_delay_get(mlxsw_sp, mtu, delay); mtu 918 drivers/net/ethernet/mellanox/mlxsw/spectrum.c int __mlxsw_sp_port_headroom_set(struct mlxsw_sp_port *mlxsw_sp_port, int mtu, mtu 957 drivers/net/ethernet/mellanox/mlxsw/spectrum.c thres_cells = mlxsw_sp_pg_buf_threshold_get(mlxsw_sp, mtu); mtu 958 drivers/net/ethernet/mellanox/mlxsw/spectrum.c delay_cells = mlxsw_sp_pg_buf_delay_get(mlxsw_sp, mtu, delay, mtu 974 drivers/net/ethernet/mellanox/mlxsw/spectrum.c int mtu, bool pause_en) mtu 984 drivers/net/ethernet/mellanox/mlxsw/spectrum.c return __mlxsw_sp_port_headroom_set(mlxsw_sp_port, mtu, prio_tc, mtu 988 drivers/net/ethernet/mellanox/mlxsw/spectrum.c static int mlxsw_sp_port_change_mtu(struct net_device *dev, int mtu) mtu 994 drivers/net/ethernet/mellanox/mlxsw/spectrum.c err = mlxsw_sp_port_headroom_set(mlxsw_sp_port, mtu, pause_en); mtu 997 drivers/net/ethernet/mellanox/mlxsw/spectrum.c err = mlxsw_sp_span_port_mtu_update(mlxsw_sp_port, mtu); mtu 1000 drivers/net/ethernet/mellanox/mlxsw/spectrum.c err = mlxsw_sp_port_mtu_set(mlxsw_sp_port, mtu); mtu 1003 drivers/net/ethernet/mellanox/mlxsw/spectrum.c dev->mtu = mtu; mtu 1007 drivers/net/ethernet/mellanox/mlxsw/spectrum.c mlxsw_sp_span_port_mtu_update(mlxsw_sp_port, dev->mtu); mtu 1009 drivers/net/ethernet/mellanox/mlxsw/spectrum.c mlxsw_sp_port_headroom_set(mlxsw_sp_port, dev->mtu, pause_en); mtu 1985 drivers/net/ethernet/mellanox/mlxsw/spectrum.c err = mlxsw_sp_port_headroom_set(mlxsw_sp_port, dev->mtu, pause_en); mtu 2004 drivers/net/ethernet/mellanox/mlxsw/spectrum.c mlxsw_sp_port_headroom_set(mlxsw_sp_port, dev->mtu, pause_en); mtu 470 drivers/net/ethernet/mellanox/mlxsw/spectrum.h int __mlxsw_sp_port_headroom_set(struct mlxsw_sp_port *mlxsw_sp_port, int mtu, mtu 124 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c err = __mlxsw_sp_port_headroom_set(mlxsw_sp_port, dev->mtu, mtu 597 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c err = __mlxsw_sp_port_headroom_set(mlxsw_sp_port, dev->mtu, mtu 617 drivers/net/ethernet/mellanox/mlxsw/spectrum_dcb.c __mlxsw_sp_port_headroom_set(mlxsw_sp_port, dev->mtu, mtu 324 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c mr_table->vifs[i].dev->mtu < mr_route->min_mtu) mtu 325 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c mr_route->min_mtu = mr_table->vifs[i].dev->mtu; mtu 550 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c if (rve->mr_vif->dev->mtu < rve->mr_route->min_mtu) { mtu 551 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c rve->mr_route->min_mtu = rve->mr_vif->dev->mtu; mtu 738 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c const struct mlxsw_sp_rif *rif, int mtu) mtu 756 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c if (mtu < rve->mr_route->min_mtu) { mtu 757 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c rve->mr_route->min_mtu = mtu; mtu 760 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.c mtu); mtu 87 drivers/net/ethernet/mellanox/mlxsw/spectrum_mr.h const struct mlxsw_sp_rif *rif, int mtu); mtu 87 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c int mtu; mtu 1458 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c rif->rif_index, rif->vr_id, rif->dev->mtu); mtu 1485 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c lb_rif->common.mtu = ol_dev->mtu; mtu 6449 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c rif->mtu = l3_dev->mtu; mtu 7159 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c const char *mac, int mtu) mtu 7169 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c mlxsw_reg_ritr_mtu_set(ritr_pl, mtu); mtu 7190 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c dev->mtu); mtu 7198 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c if (rif->mtu != dev->mtu) { mtu 7209 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c rif, dev->mtu); mtu 7213 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c rif->mtu = dev->mtu; mtu 7220 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c mlxsw_sp_rif_edit(mlxsw_sp, rif->rif_index, rif->addr, rif->mtu); mtu 7363 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c rif->rif_index, rif->vr_id, rif->dev->mtu); mtu 7429 drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c rif->dev->mtu); mtu 731 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c int mtu) mtu 733 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c return mlxsw_sp_bytes_cells(mlxsw_sp, mtu * 5 / 2) + 1; mtu 736 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c int mlxsw_sp_span_port_mtu_update(struct mlxsw_sp_port *port, u16 mtu) mtu 746 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c u32 buffsize = mlxsw_sp_span_mtu_to_buffsize(mlxsw_sp, mtu); mtu 819 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.c port->dev->mtu); mtu 76 drivers/net/ethernet/mellanox/mlxsw/spectrum_span.h int mlxsw_sp_span_port_mtu_update(struct mlxsw_sp_port *port, u16 mtu); mtu 132 drivers/net/ethernet/mellanox/mlxsw/switchib.c u16 mtu) mtu 145 drivers/net/ethernet/mellanox/mlxsw/switchib.c if (mtu > max_mtu) mtu 148 drivers/net/ethernet/mellanox/mlxsw/switchib.c mlxsw_reg_pmtu_pack(pmtu_pl, mlxsw_sib_port->local_port, mtu); mtu 188 drivers/net/ethernet/mellanox/mlxsw/switchx2.c u16 mtu) mtu 201 drivers/net/ethernet/mellanox/mlxsw/switchx2.c if (mtu > max_mtu) mtu 204 drivers/net/ethernet/mellanox/mlxsw/switchx2.c mlxsw_reg_pmtu_pack(pmtu_pl, mlxsw_sx_port->local_port, mtu); mtu 209 drivers/net/ethernet/mellanox/mlxsw/switchx2.c u16 mtu) mtu 211 drivers/net/ethernet/mellanox/mlxsw/switchx2.c mtu += MLXSW_TXHDR_LEN + ETH_HLEN; mtu 212 drivers/net/ethernet/mellanox/mlxsw/switchx2.c return __mlxsw_sx_port_mtu_set(mlxsw_sx_port, mtu); mtu 216 drivers/net/ethernet/mellanox/mlxsw/switchx2.c u16 mtu) mtu 218 drivers/net/ethernet/mellanox/mlxsw/switchx2.c return __mlxsw_sx_port_mtu_set(mlxsw_sx_port, mtu); mtu 336 drivers/net/ethernet/mellanox/mlxsw/switchx2.c static int mlxsw_sx_port_change_mtu(struct net_device *dev, int mtu) mtu 341 drivers/net/ethernet/mellanox/mlxsw/switchx2.c err = mlxsw_sx_port_mtu_eth_set(mlxsw_sx_port, mtu); mtu 344 drivers/net/ethernet/mellanox/mlxsw/switchx2.c dev->mtu = mtu; mtu 1051 drivers/net/ethernet/micrel/ks8842.c if (ks8842_tx_fifo_space(adapter) < netdev->mtu + 8) mtu 1435 drivers/net/ethernet/micrel/ksz884x.c int mtu; mtu 4458 drivers/net/ethernet/micrel/ksz884x.c if (dma_buf->skb && dma_buf->len != adapter->mtu) mtu 4460 drivers/net/ethernet/micrel/ksz884x.c dma_buf->len = adapter->mtu; mtu 5808 drivers/net/ethernet/micrel/ksz884x.c hw_priv->mtu = hw_mtu; mtu 5809 drivers/net/ethernet/micrel/ksz884x.c dev->mtu = new_mtu; mtu 7018 drivers/net/ethernet/micrel/ksz884x.c hw_priv->mtu = (REGULAR_RX_BUF_SIZE + 3) & ~3; mtu 2571 drivers/net/ethernet/microchip/lan743x_main.c netdev->mtu = new_mtu; mtu 2364 drivers/net/ethernet/myricom/myri10ge/myri10ge.c if (dev->mtu <= ETH_DATA_LEN) mtu 2381 drivers/net/ethernet/myricom/myri10ge/myri10ge.c big_pow2 = dev->mtu + ETH_HLEN + VLAN_HLEN + MXGEFW_PAD; mtu 2385 drivers/net/ethernet/myricom/myri10ge/myri10ge.c mgp->big_bytes = dev->mtu + ETH_HLEN + VLAN_HLEN + MXGEFW_PAD; mtu 2419 drivers/net/ethernet/myricom/myri10ge/myri10ge.c cmd.data0 = dev->mtu + ETH_HLEN + VLAN_HLEN; mtu 3041 drivers/net/ethernet/myricom/myri10ge/myri10ge.c netdev_info(dev, "changing mtu from %d to %d\n", dev->mtu, new_mtu); mtu 3046 drivers/net/ethernet/myricom/myri10ge/myri10ge.c dev->mtu = new_mtu; mtu 3049 drivers/net/ethernet/myricom/myri10ge/myri10ge.c dev->mtu = new_mtu; mtu 3898 drivers/net/ethernet/myricom/myri10ge/myri10ge.c netdev->mtu = myri10ge_initial_mtu; mtu 74 drivers/net/ethernet/natsemi/natsemi.c static int mtu; mtu 140 drivers/net/ethernet/natsemi/natsemi.c module_param(mtu, int, 0); mtu 146 drivers/net/ethernet/natsemi/natsemi.c MODULE_PARM_DESC(mtu, "DP8381x MTU (all boards)"); mtu 938 drivers/net/ethernet/natsemi/natsemi.c if (mtu) mtu 939 drivers/net/ethernet/natsemi/natsemi.c dev->mtu = mtu; mtu 1964 drivers/net/ethernet/natsemi/natsemi.c if (dev->mtu <= ETH_DATA_LEN) mtu 1967 drivers/net/ethernet/natsemi/natsemi.c np->rx_buf_sz = dev->mtu + NATSEMI_HEADERS; mtu 2533 drivers/net/ethernet/natsemi/natsemi.c dev->mtu = new_mtu; mtu 1250 drivers/net/ethernet/neterion/s2io.c val64 = dev->mtu; mtu 1610 drivers/net/ethernet/neterion/s2io.c val64 = MAC_RTS_FRM_LEN_SET(dev->mtu+22); mtu 2495 drivers/net/ethernet/neterion/s2io.c size = ring->mtu + mtu 2501 drivers/net/ethernet/neterion/s2io.c size = ring->mtu + ALIGN_SIZE + BUF0_LEN + 4; mtu 2582 drivers/net/ethernet/neterion/s2io.c ring->mtu + 4, mtu 2601 drivers/net/ethernet/neterion/s2io.c ring->mtu + 4, mtu 2608 drivers/net/ethernet/neterion/s2io.c (ring->mtu + 4); mtu 2673 drivers/net/ethernet/neterion/s2io.c dev->mtu + mtu 2690 drivers/net/ethernet/neterion/s2io.c dev->mtu + 4, mtu 2924 drivers/net/ethernet/neterion/s2io.c ring_data->mtu + mtu 2937 drivers/net/ethernet/neterion/s2io.c ring_data->mtu + 4, mtu 6637 drivers/net/ethernet/neterion/s2io.c dev->mtu = new_mtu; mtu 6802 drivers/net/ethernet/neterion/s2io.c dev->mtu + 4, mtu 6813 drivers/net/ethernet/neterion/s2io.c dev->mtu + 4, mtu 6830 drivers/net/ethernet/neterion/s2io.c dev->mtu + 4, mtu 6854 drivers/net/ethernet/neterion/s2io.c rxdp->Control_2 |= SET_BUFFER2_SIZE_3(dev->mtu + 4); mtu 6870 drivers/net/ethernet/neterion/s2io.c size = dev->mtu + HEADER_ETHERNET_II_802_3_SIZE + mtu 6875 drivers/net/ethernet/neterion/s2io.c size = dev->mtu + ALIGN_SIZE + BUF0_LEN + 4; mtu 7119 drivers/net/ethernet/neterion/s2io.c ring->mtu = dev->mtu; mtu 7156 drivers/net/ethernet/neterion/s2io.c sp->lro_max_aggr_per_sess = ((1<<16) - 1) / dev->mtu; mtu 744 drivers/net/ethernet/neterion/s2io.h unsigned mtu; mtu 1253 drivers/net/ethernet/neterion/vxge/vxge-config.c if ((vp_config->mtu != VXGE_HW_VPATH_USE_FLASH_DEFAULT_INITIAL_MTU) && mtu 1254 drivers/net/ethernet/neterion/vxge/vxge-config.c ((vp_config->mtu < VXGE_HW_VPATH_MIN_INITIAL_MTU) || mtu 1255 drivers/net/ethernet/neterion/vxge/vxge-config.c (vp_config->mtu > VXGE_HW_VPATH_MAX_INITIAL_MTU))) mtu 3047 drivers/net/ethernet/neterion/vxge/vxge-config.c device_config->vp_config[i].mtu = mtu 3966 drivers/net/ethernet/neterion/vxge/vxge-config.c u32 i, mtu = 0, max_pyld = 0; mtu 3977 drivers/net/ethernet/neterion/vxge/vxge-config.c if (mtu < max_pyld) mtu 3978 drivers/net/ethernet/neterion/vxge/vxge-config.c mtu = max_pyld; mtu 3981 drivers/net/ethernet/neterion/vxge/vxge-config.c vpath->max_mtu = mtu + VXGE_HW_MAC_HEADER_MAX_SIZE; mtu 4240 drivers/net/ethernet/neterion/vxge/vxge-config.c if (vp_config->mtu != mtu 4243 drivers/net/ethernet/neterion/vxge/vxge-config.c if ((vp_config->mtu + mtu 4246 drivers/net/ethernet/neterion/vxge/vxge-config.c vp_config->mtu + mtu 4724 drivers/net/ethernet/neterion/vxge/vxge-config.c vpath->vp_config->mtu = new_mtu - VXGE_HW_MAC_HEADER_MAX_SIZE; mtu 377 drivers/net/ethernet/neterion/vxge/vxge-config.h u32 mtu; mtu 956 drivers/net/ethernet/neterion/vxge/vxge-main.c dev->mtu + VXGE_HW_MAC_HEADER_MAX_SIZE); mtu 2041 drivers/net/ethernet/neterion/vxge/vxge-main.c vcfg->tti.uec_c = TTI_T1A_TX_UFC_C(vdev->mtu); mtu 2042 drivers/net/ethernet/neterion/vxge/vxge-main.c vcfg->tti.uec_d = TTI_T1A_TX_UFC_D(vdev->mtu); mtu 2725 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->mtu = dev->mtu; mtu 2771 drivers/net/ethernet/neterion/vxge/vxge-main.c status = vxge_hw_vpath_mtu_set(vpath->handle, vdev->mtu); mtu 2782 drivers/net/ethernet/neterion/vxge/vxge-main.c "%s: MTU is %d", vdev->ndev->name, vdev->mtu); mtu 3068 drivers/net/ethernet/neterion/vxge/vxge-main.c dev->mtu = new_mtu; mtu 3080 drivers/net/ethernet/neterion/vxge/vxge-main.c dev->mtu = new_mtu; mtu 3081 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->mtu = new_mtu; mtu 3721 drivers/net/ethernet/neterion/vxge/vxge-main.c device_config->vp_config[i].mtu = VXGE_HW_DEFAULT_MTU; mtu 3988 drivers/net/ethernet/neterion/vxge/vxge-main.c config.vp_config[i].mtu); mtu 4593 drivers/net/ethernet/neterion/vxge/vxge-main.c vdev->mtu = VXGE_HW_DEFAULT_MTU; mtu 93 drivers/net/ethernet/neterion/vxge/vxge-main.h #define TTI_T1A_TX_UFC_C(mtu) (60 + ((VXGE_HW_MAX_MTU - mtu) / 93)) mtu 97 drivers/net/ethernet/neterion/vxge/vxge-main.h #define TTI_T1A_TX_UFC_D(mtu) (100 + ((VXGE_HW_MAX_MTU - mtu) / 37)) mtu 126 drivers/net/ethernet/neterion/vxge/vxge-main.h #define VXGE_LL_MAX_FRAME_SIZE(dev) ((dev)->mtu + VXGE_HW_MAC_HEADER_MAX_SIZE) mtu 391 drivers/net/ethernet/neterion/vxge/vxge-main.h int mtu; mtu 432 drivers/net/ethernet/netronome/nfp/bpf/cmsg.c unsigned int mtu, req_max, reply_max, entry_sz; mtu 434 drivers/net/ethernet/netronome/nfp/bpf/cmsg.c mtu = bpf->app->ctrl->dp.mtu; mtu 436 drivers/net/ethernet/netronome/nfp/bpf/cmsg.c req_max = (mtu - sizeof(struct cmsg_req_map_op)) / entry_sz; mtu 437 drivers/net/ethernet/netronome/nfp/bpf/cmsg.c reply_max = (mtu - sizeof(struct cmsg_reply_map_op)) / entry_sz; mtu 435 drivers/net/ethernet/netronome/nfp/bpf/main.c if (app->ctrl->dp.mtu < nfp_bpf_ctrl_cmsg_min_mtu(bpf)) { mtu 438 drivers/net/ethernet/netronome/nfp/bpf/main.c app->ctrl->dp.mtu, nfp_bpf_ctrl_cmsg_min_mtu(bpf)); mtu 491 drivers/net/ethernet/netronome/nfp/bpf/offload.c pkt_off = min(prog->aux->max_pkt_offset, nn->dp.netdev->mtu); mtu 76 drivers/net/ethernet/netronome/nfp/flower/cmsg.c unsigned int mtu, bool mtu_only) mtu 94 drivers/net/ethernet/netronome/nfp/flower/cmsg.c msg->mtu = cpu_to_be16(mtu); mtu 136 drivers/net/ethernet/netronome/nfp/flower/cmsg.c be16_to_cpu(msg->mtu) != app_priv->mtu_conf.requested_val) { mtu 172 drivers/net/ethernet/netronome/nfp/flower/cmsg.c u16 mtu = be16_to_cpu(msg->mtu); mtu 177 drivers/net/ethernet/netronome/nfp/flower/cmsg.c if (mtu) mtu 178 drivers/net/ethernet/netronome/nfp/flower/cmsg.c dev_set_mtu(netdev, mtu); mtu 510 drivers/net/ethernet/netronome/nfp/flower/cmsg.h __be16 mtu; mtu 630 drivers/net/ethernet/netronome/nfp/flower/cmsg.h unsigned int mtu, bool mtu_only); mtu 314 drivers/net/ethernet/netronome/nfp/flower/main.c err = nfp_flower_cmsg_portmod(repr, true, repr->netdev->mtu, false); mtu 328 drivers/net/ethernet/netronome/nfp/flower/main.c return nfp_flower_cmsg_portmod(repr, false, repr->netdev->mtu, false); mtu 531 drivers/net/ethernet/netronome/nfp/nfp_net.h unsigned int mtu; mtu 1349 drivers/net/ethernet/netronome/nfp/nfp_net_common.c fl_bufsz += ETH_HLEN + VLAN_HLEN * 2 + dp->mtu; mtu 2839 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn_writel(nn, NFP_NET_CFG_MTU, nn->dp.mtu); mtu 3154 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn->dp.netdev->mtu = new_dp.mtu; mtu 3314 drivers/net/ethernet/netronome/nfp/nfp_net_common.c dp->mtu = new_mtu; mtu 3972 drivers/net/ethernet/netronome/nfp/nfp_net_common.c netdev->mtu = nn->dp.mtu; mtu 4119 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn->dp.mtu = min(nn->app->ctrl_mtu, nn->max_mtu); mtu 4121 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn->dp.mtu = nn->max_mtu; mtu 4123 drivers/net/ethernet/netronome/nfp/nfp_net_common.c nn->dp.mtu = NFP_NET_DEFAULT_MTU; mtu 179 drivers/net/ethernet/netronome/nfp/nfp_net_repr.c netdev->mtu = new_mtu; mtu 948 drivers/net/ethernet/ni/nixge.c ndev->mtu = new_mtu; mtu 3051 drivers/net/ethernet/nvidia/forcedeth.c if (dev->mtu <= ETH_DATA_LEN) mtu 3054 drivers/net/ethernet/nvidia/forcedeth.c np->rx_buf_sz = dev->mtu + NV_RX_HEADERS; mtu 3066 drivers/net/ethernet/nvidia/forcedeth.c old_mtu = dev->mtu; mtu 3067 drivers/net/ethernet/nvidia/forcedeth.c dev->mtu = new_mtu; mtu 1977 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c hw->mac.max_frame_size = netdev->mtu + ETH_HLEN + ETH_FCS_LEN; mtu 2209 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c netdev->mtu = new_mtu; mtu 2214 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c netdev->mtu = new_mtu; mtu 2220 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_main.c max_frame, (u32) adapter->rx_buffer_len, netdev->mtu, mtu 41 drivers/net/ethernet/packetengines/hamachi.c static int mtu; mtu 515 drivers/net/ethernet/packetengines/hamachi.c module_param(mtu, int, 0); mtu 530 drivers/net/ethernet/packetengines/hamachi.c MODULE_PARM_DESC(mtu, "GNIC-II MTU (all boards)"); mtu 729 drivers/net/ethernet/packetengines/hamachi.c if (mtu) mtu 730 drivers/net/ethernet/packetengines/hamachi.c dev->mtu = mtu; mtu 1171 drivers/net/ethernet/packetengines/hamachi.c hmp->rx_buf_sz = (dev->mtu <= 1492 ? PKT_BUF_SZ : mtu 1172 drivers/net/ethernet/packetengines/hamachi.c (((dev->mtu+26+7) & ~7) + 16)); mtu 38 drivers/net/ethernet/packetengines/yellowfin.c static int mtu; mtu 118 drivers/net/ethernet/packetengines/yellowfin.c module_param(mtu, int, 0); mtu 125 drivers/net/ethernet/packetengines/yellowfin.c MODULE_PARM_DESC(mtu, "G-NIC MTU (all boards)"); mtu 477 drivers/net/ethernet/packetengines/yellowfin.c if (mtu) mtu 478 drivers/net/ethernet/packetengines/yellowfin.c dev->mtu = mtu; mtu 728 drivers/net/ethernet/packetengines/yellowfin.c yp->rx_buf_sz = (dev->mtu <= 1500 ? PKT_BUF_SZ : dev->mtu + 32); mtu 1087 drivers/net/ethernet/pasemi/pasemi_mac.c if (dev->mtu > 1500 && !mac->num_cs) { mtu 1638 drivers/net/ethernet/pasemi/pasemi_mac.c dev->mtu = new_mtu; mtu 1744 drivers/net/ethernet/pasemi/pasemi_mac.c dev->mtu = PE_DEF_MTU; mtu 1751 drivers/net/ethernet/pasemi/pasemi_mac.c mac->bufsz = dev->mtu + ETH_HLEN + ETH_FCS_LEN + LOCAL_SKB_ALIGN + 128; mtu 360 drivers/net/ethernet/pensando/ionic/ionic_if.h __le32 mtu; mtu 1067 drivers/net/ethernet/pensando/ionic/ionic_if.h __le32 mtu; mtu 1199 drivers/net/ethernet/pensando/ionic/ionic_if.h __le32 mtu; mtu 1244 drivers/net/ethernet/pensando/ionic/ionic_if.h __le32 mtu; mtu 1414 drivers/net/ethernet/pensando/ionic/ionic_if.h __le32 mtu; mtu 1478 drivers/net/ethernet/pensando/ionic/ionic_if.h __le32 mtu; mtu 1674 drivers/net/ethernet/pensando/ionic/ionic_if.h __le32 mtu; mtu 1245 drivers/net/ethernet/pensando/ionic/ionic_lif.c .mtu = cpu_to_le32(new_mtu), mtu 1254 drivers/net/ethernet/pensando/ionic/ionic_lif.c netdev->mtu = new_mtu; mtu 2202 drivers/net/ethernet/pensando/ionic/ionic_lif.c le32_to_cpu(lid->eth.config.mtu)); mtu 260 drivers/net/ethernet/pensando/ionic/ionic_txrx.c len = netdev->mtu + ETH_HLEN; mtu 1620 drivers/net/ethernet/qlogic/netxen/netxen_nic.h u16 mtu; mtu 1782 drivers/net/ethernet/qlogic/netxen/netxen_nic.h int nx_fw_cmd_set_mtu(struct netxen_adapter *adapter, int mtu); mtu 216 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c nx_fw_cmd_set_mtu(struct netxen_adapter *adapter, int mtu) mtu 225 drivers/net/ethernet/qlogic/netxen/netxen_nic_ctx.c cmd.req.arg2 = mtu; mtu 954 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c int netxen_nic_change_mtu(struct net_device *netdev, int mtu) mtu 960 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c rc = adapter->set_mtu(adapter, mtu); mtu 963 drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c netdev->mtu = mtu; mtu 1116 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c adapter->set_mtu(adapter, netdev->mtu); mtu 1349 drivers/net/ethernet/qlogic/netxen/netxen_nic_main.c netxen_nic_change_mtu(netdev, netdev->mtu); mtu 367 drivers/net/ethernet/qlogic/qed/qed.h u16 mtu; mtu 3021 drivers/net/ethernet/qlogic/qed/qed_dev.c if (!p_hwfn->hw_info.mtu) { mtu 3022 drivers/net/ethernet/qlogic/qed/qed_dev.c p_hwfn->hw_info.mtu = 1500; mtu 3186 drivers/net/ethernet/qlogic/qed/qed_dev.c p_hwfn->hw_info.mtu); mtu 4360 drivers/net/ethernet/qlogic/qed/qed_dev.c p_hwfn->hw_info.mtu = p_hwfn->mcp_info->func_info.mtu; mtu 154 drivers/net/ethernet/qlogic/qed/qed_fcoe.c p_data->mtu = cpu_to_le16(fcoe_pf_params->mtu); mtu 262 drivers/net/ethernet/qlogic/qed/qed_hsi.h __le16 mtu; mtu 346 drivers/net/ethernet/qlogic/qed/qed_hsi.h __le16 mtu; mtu 2610 drivers/net/ethernet/qlogic/qed/qed_hsi.h u32 mtu; mtu 2618 drivers/net/ethernet/qlogic/qed/qed_hsi.h u32 mtu; mtu 6138 drivers/net/ethernet/qlogic/qed/qed_hsi.h __le16 mtu; mtu 6207 drivers/net/ethernet/qlogic/qed/qed_hsi.h __le16 mtu; mtu 7921 drivers/net/ethernet/qlogic/qed/qed_hsi.h __le16 mtu; mtu 7982 drivers/net/ethernet/qlogic/qed/qed_hsi.h __le16 mtu; mtu 8133 drivers/net/ethernet/qlogic/qed/qed_hsi.h __le16 mtu; mtu 8179 drivers/net/ethernet/qlogic/qed/qed_hsi.h __le16 mtu; mtu 10376 drivers/net/ethernet/qlogic/qed/qed_hsi.h __le16 mtu; mtu 10516 drivers/net/ethernet/qlogic/qed/qed_hsi.h __le16 mtu; mtu 2614 drivers/net/ethernet/qlogic/qed/qed_iwarp.c #define QED_IWARP_MAX_BUF_SIZE(mtu) \ mtu 2615 drivers/net/ethernet/qlogic/qed/qed_iwarp.c ALIGN((mtu) + ETH_HLEN + 2 * VLAN_HLEN + 2 + ETH_CACHE_LINE_SIZE, \ mtu 2654 drivers/net/ethernet/qlogic/qed/qed_iwarp.c data.input.mtu = params->max_mtu; mtu 2686 drivers/net/ethernet/qlogic/qed/qed_iwarp.c data.input.mtu = params->max_mtu; mtu 2713 drivers/net/ethernet/qlogic/qed/qed_iwarp.c data.input.mtu = params->max_mtu; mtu 393 drivers/net/ethernet/qlogic/qed/qed_l2.c p_ramrod->mtu = cpu_to_le16(p_params->mtu); mtu 413 drivers/net/ethernet/qlogic/qed/qed_l2.c p_ramrod->tpa_param.tpa_min_size_to_cont = p_params->mtu / 2; mtu 414 drivers/net/ethernet/qlogic/qed/qed_l2.c p_ramrod->tpa_param.tpa_min_size_to_start = p_params->mtu / 2; mtu 441 drivers/net/ethernet/qlogic/qed/qed_l2.c p_params->mtu, mtu 2336 drivers/net/ethernet/qlogic/qed/qed_l2.c start.mtu = params->mtu; mtu 2352 drivers/net/ethernet/qlogic/qed/qed_l2.c start.vport_id, start.mtu); mtu 166 drivers/net/ethernet/qlogic/qed/qed_l2.h u16 mtu; mtu 970 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_ramrod->mtu = cpu_to_le16(p_ll2_conn->input.mtu); mtu 1037 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_ramrod->mtu = cpu_to_le16(p_ll2_conn->input.mtu); mtu 1249 drivers/net/ethernet/qlogic/qed/qed_ll2.c struct qed_ll2_info *p_ll2_info, u16 mtu) mtu 1276 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_buf->rx_buffer_size = mtu + 26 + ETH_CACHE_LINE_SIZE; mtu 1407 drivers/net/ethernet/qlogic/qed/qed_ll2.c data->input.mtu); mtu 2235 drivers/net/ethernet/qlogic/qed/qed_ll2.c data->input.mtu = params->mtu; mtu 2433 drivers/net/ethernet/qlogic/qed/qed_ll2.c L1_CACHE_BYTES + params->mtu; mtu 316 drivers/net/ethernet/qlogic/qed/qed_main.c dev_info->mtu = hw_info->mtu; mtu 2572 drivers/net/ethernet/qlogic/qed/qed_main.c static int qed_update_mtu(struct qed_dev *cdev, u16 mtu) mtu 2585 drivers/net/ethernet/qlogic/qed/qed_main.c status = qed_mcp_ov_update_mtu(hwfn, ptt, mtu); mtu 2300 drivers/net/ethernet/qlogic/qed/qed_mcp.c info->mtu = (u16)shmem_info.mtu_size; mtu 2636 drivers/net/ethernet/qlogic/qed/qed_mcp.c struct qed_ptt *p_ptt, u16 mtu) mtu 2642 drivers/net/ethernet/qlogic/qed/qed_mcp.c drv_mb_param = (u32)mtu << DRV_MB_PARAM_OV_MTU_SIZE_SHIFT; mtu 136 drivers/net/ethernet/qlogic/qed/qed_mcp.h u16 mtu; mtu 517 drivers/net/ethernet/qlogic/qed/qed_mcp.h struct qed_ptt *p_ptt, u16 mtu); mtu 1189 drivers/net/ethernet/qlogic/qed/qed_rdma.c out_params->mtu = qp->mtu; mtu 1377 drivers/net/ethernet/qlogic/qed/qed_rdma.c qp->mtu = params->mtu; mtu 127 drivers/net/ethernet/qlogic/qed/qed_rdma.h u16 mtu; mtu 325 drivers/net/ethernet/qlogic/qed/qed_roce.c p_ramrod->mtu = cpu_to_le16(qp->mtu); mtu 455 drivers/net/ethernet/qlogic/qed/qed_roce.c p_ramrod->mtu = cpu_to_le16(qp->mtu); mtu 596 drivers/net/ethernet/qlogic/qed/qed_roce.c p_ramrod->mtu = cpu_to_le16(qp->mtu); mtu 689 drivers/net/ethernet/qlogic/qed/qed_roce.c p_ramrod->mtu = cpu_to_le16(qp->mtu); mtu 1947 drivers/net/ethernet/qlogic/qed/qed_sriov.c vf->mtu = start->mtu; mtu 1972 drivers/net/ethernet/qlogic/qed/qed_sriov.c params.mtu = vf->mtu; mtu 207 drivers/net/ethernet/qlogic/qed/qed_sriov.h u16 mtu; mtu 943 drivers/net/ethernet/qlogic/qed/qed_vf.c u16 mtu, mtu 956 drivers/net/ethernet/qlogic/qed/qed_vf.c req->mtu = mtu; mtu 359 drivers/net/ethernet/qlogic/qed/qed_vf.h u16 mtu; mtu 990 drivers/net/ethernet/qlogic/qed/qed_vf.h u16 mtu, mtu 1184 drivers/net/ethernet/qlogic/qed/qed_vf.h u16 mtu, mtu 513 drivers/net/ethernet/qlogic/qede/qede.h u16 mtu; mtu 1054 drivers/net/ethernet/qlogic/qede/qede_ethtool.c edev->ndev->mtu = args->u.mtu; mtu 1070 drivers/net/ethernet/qlogic/qede/qede_ethtool.c args.u.mtu = new_mtu; mtu 1679 drivers/net/ethernet/qlogic/qede/qede_ethtool.c pkt_size = (((edev->ndev->mtu < ETH_DATA_LEN) ? mtu 1680 drivers/net/ethernet/qlogic/qede/qede_ethtool.c edev->ndev->mtu : ETH_DATA_LEN) + ETH_HLEN); mtu 942 drivers/net/ethernet/qlogic/qede/qede_filter.c if (edev->xdp_prog || edev->ndev->mtu > PAGE_SIZE || mtu 809 drivers/net/ethernet/qlogic/qede/qede_main.c ndev->mtu = edev->dev_info.common.mtu; mtu 1391 drivers/net/ethernet/qlogic/qede/qede_main.c rxq->rx_buf_size = NET_IP_ALIGN + ETH_OVERHEAD + edev->ndev->mtu; mtu 2054 drivers/net/ethernet/qlogic/qede/qede_main.c start.mtu = edev->ndev->mtu; mtu 2069 drivers/net/ethernet/qlogic/qede/qede_main.c start.vport_id, edev->ndev->mtu + 0xe, vlan_removal_en); mtu 2843 drivers/net/ethernet/qlogic/qla3xxx.c if (qdev->ndev->mtu == NORMAL_MTU_SIZE) { mtu 2846 drivers/net/ethernet/qlogic/qla3xxx.c } else if (qdev->ndev->mtu == JUMBO_MTU_SIZE) { mtu 2854 drivers/net/ethernet/qlogic/qla3xxx.c qdev->ndev->mtu, NORMAL_MTU_SIZE, JUMBO_MTU_SIZE); mtu 3858 drivers/net/ethernet/qlogic/qla3xxx.c ndev->mtu = qdev->nvram_data.macCfg_port1.etherMtu_mac ; mtu 3861 drivers/net/ethernet/qlogic/qla3xxx.c ndev->mtu = qdev->nvram_data.macCfg_port0.etherMtu_mac ; mtu 1628 drivers/net/ethernet/qlogic/qlcnic/qlcnic.h int qlcnic_fw_cmd_set_mtu(struct qlcnic_adapter *adapter, int mtu); mtu 210 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c qlcnic_fw_cmd_set_mtu(struct qlcnic_adapter *adapter, int mtu) mtu 223 drivers/net/ethernet/qlogic/qlcnic/qlcnic_ctx.c cmd.req.arg[2] = mtu; mtu 1015 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c int qlcnic_change_mtu(struct net_device *netdev, int mtu) mtu 1020 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c rc = qlcnic_fw_cmd_set_mtu(adapter, mtu); mtu 1023 drivers/net/ethernet/qlogic/qlcnic/qlcnic_hw.c netdev->mtu = mtu; mtu 1905 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c qlcnic_fw_cmd_set_mtu(adapter, netdev->mtu); mtu 2298 drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c qlcnic_change_mtu(netdev, netdev->mtu); mtu 449 drivers/net/ethernet/qualcomm/emac/emac-mac.c max_frame = netdev->mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; mtu 450 drivers/net/ethernet/qualcomm/emac/emac-mac.c adpt->rxbuf_size = netdev->mtu > EMAC_DEF_RX_BUF_SIZE ? mtu 455 drivers/net/ethernet/qualcomm/emac/emac-mac.c writel(netdev->mtu + ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN, mtu 217 drivers/net/ethernet/qualcomm/emac/emac.c "changing MTU from %d to %d\n", netdev->mtu, mtu 219 drivers/net/ethernet/qualcomm/emac/emac.c netdev->mtu = new_mtu; mtu 351 drivers/net/ethernet/qualcomm/qca_spi.c net_dev->mtu + mtu 440 drivers/net/ethernet/qualcomm/qca_spi.c net_dev->mtu + VLAN_ETH_HLEN); mtu 807 drivers/net/ethernet/qualcomm/qca_spi.c dev->mtu = QCAFRM_MAX_MTU; mtu 812 drivers/net/ethernet/qualcomm/qca_spi.c qca->buffer_size = (dev->mtu + VLAN_ETH_HLEN + QCAFRM_HEADER_LEN + mtu 821 drivers/net/ethernet/qualcomm/qca_spi.c qca->rx_skb = netdev_alloc_skb_ip_align(dev, qca->net_dev->mtu + mtu 73 drivers/net/ethernet/qualcomm/qca_uart.c netdev->mtu + mtu 113 drivers/net/ethernet/qualcomm/qca_uart.c netdev->mtu + mtu 267 drivers/net/ethernet/qualcomm/qca_uart.c dev->mtu = QCAFRM_MAX_MTU; mtu 276 drivers/net/ethernet/qualcomm/qca_uart.c qca->net_dev->mtu + mtu 66 drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c rmnet_dev->mtu = new_mtu; mtu 201 drivers/net/ethernet/qualcomm/rmnet/rmnet_vnd.c rmnet_dev->mtu = RMNET_DFLT_PACKET_SIZE; mtu 409 drivers/net/ethernet/realtek/8139cp.c unsigned int mtu = cp->dev->mtu; mtu 411 drivers/net/ethernet/realtek/8139cp.c if (mtu > ETH_DATA_LEN) mtu 413 drivers/net/ethernet/realtek/8139cp.c cp->rx_buf_sz = mtu + ETH_HLEN + 8; mtu 1280 drivers/net/ethernet/realtek/8139cp.c dev->mtu = new_mtu; mtu 1287 drivers/net/ethernet/realtek/8139cp.c dev->mtu = new_mtu; mtu 1571 drivers/net/ethernet/realtek/r8169_main.c if (dev->mtu > TD_MSS_MAX) mtu 1574 drivers/net/ethernet/realtek/r8169_main.c if (dev->mtu > JUMBO_1K && mtu 4170 drivers/net/ethernet/realtek/r8169_main.c static void rtl_jumbo_config(struct rtl8169_private *tp, int mtu) mtu 4172 drivers/net/ethernet/realtek/r8169_main.c if (mtu > ETH_DATA_LEN) mtu 4575 drivers/net/ethernet/realtek/r8169_main.c if (tp->dev->mtu <= ETH_DATA_LEN) mtu 4583 drivers/net/ethernet/realtek/r8169_main.c if (tp->dev->mtu <= ETH_DATA_LEN) mtu 5497 drivers/net/ethernet/realtek/r8169_main.c rtl_jumbo_config(tp, tp->dev->mtu); mtu 5514 drivers/net/ethernet/realtek/r8169_main.c dev->mtu = new_mtu; mtu 400 drivers/net/ethernet/renesas/ravb_main.c ravb_write(ndev, ndev->mtu + ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN, RFLR); mtu 1803 drivers/net/ethernet/renesas/ravb_main.c ndev->mtu = new_mtu; mtu 1442 drivers/net/ethernet/renesas/sh_eth.c mdp->rx_buf_sz = (ndev->mtu <= 1492 ? PKT_BUF_SZ : mtu 1443 drivers/net/ethernet/renesas/sh_eth.c (((ndev->mtu + 26 + 7) & ~7) + 2 + 16)); mtu 1533 drivers/net/ethernet/renesas/sh_eth.c sh_eth_write(ndev, ndev->mtu + ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN, mtu 2669 drivers/net/ethernet/renesas/sh_eth.c ndev->mtu = new_mtu; mtu 696 drivers/net/ethernet/rocker/rocker_main.c return rocker_port->dev->mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; mtu 1306 drivers/net/ethernet/rocker/rocker_main.c int mtu = *(int *)priv; mtu 1319 drivers/net/ethernet/rocker/rocker_main.c mtu)) mtu 1398 drivers/net/ethernet/rocker/rocker_main.c int mtu) mtu 1402 drivers/net/ethernet/rocker/rocker_main.c &mtu, NULL, NULL); mtu 1986 drivers/net/ethernet/rocker/rocker_main.c netdev_info(dev, "MTU change from %d to %d\n", dev->mtu, new_mtu); mtu 1987 drivers/net/ethernet/rocker/rocker_main.c dev->mtu = new_mtu; mtu 465 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c bfsize = ALIGN(dev->mtu + ETH_HLEN + ETH_FCS_LEN + NET_IP_ALIGN, 8); mtu 1798 drivers/net/ethernet/samsung/sxgbe/sxgbe_main.c dev->mtu = new_mtu; mtu 653 drivers/net/ethernet/sfc/efx.c EFX_MAX_FRAME_LEN(efx->net_dev->mtu) + mtu 979 drivers/net/ethernet/sfc/efx.c efx->net_dev->mtu); mtu 2298 drivers/net/ethernet/sfc/efx.c net_dev->mtu = new_mtu; mtu 607 drivers/net/ethernet/sfc/falcon/efx.c EF4_MAX_FRAME_LEN(efx->net_dev->mtu) + mtu 930 drivers/net/ethernet/sfc/falcon/efx.c efx->net_dev->mtu); mtu 2139 drivers/net/ethernet/sfc/falcon/efx.c net_dev->mtu = new_mtu; mtu 1133 drivers/net/ethernet/sfc/falcon/falcon.c max_frame_len = EF4_MAX_FRAME_LEN(efx->net_dev->mtu); mtu 1293 drivers/net/ethernet/sfc/falcon/net_driver.h #define EF4_MAX_FRAME_LEN(mtu) \ mtu 1294 drivers/net/ethernet/sfc/falcon/net_driver.h (ALIGN(((mtu) + ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN + EF4_FRAME_PAD), 8)) mtu 1187 drivers/net/ethernet/sfc/mcdi_port.c EFX_MAX_FRAME_LEN(efx->net_dev->mtu)); mtu 1574 drivers/net/ethernet/sfc/net_driver.h #define EFX_MAX_FRAME_LEN(mtu) \ mtu 1575 drivers/net/ethernet/sfc/net_driver.h (ALIGN(((mtu) + ETH_HLEN + VLAN_HLEN + ETH_FCS_LEN + EFX_FRAME_PAD), 8)) mtu 1050 drivers/net/ethernet/sis/sis190.c unsigned int mtu = dev->mtu; mtu 1052 drivers/net/ethernet/sis/sis190.c tp->rx_buf_sz = (mtu > RX_BUF_SIZE) ? mtu + ETH_HLEN + 8 : RX_BUF_SIZE; mtu 900 drivers/net/ethernet/smsc/epic100.c ep->rx_buf_sz = (dev->mtu <= 1500 ? PKT_BUF_SZ : dev->mtu + 32); mtu 1449 drivers/net/ethernet/socionext/netsec.c if (priv->ndev->mtu > ETH_DATA_LEN) mtu 1780 drivers/net/ethernet/socionext/netsec.c if (prog && dev->mtu > 1500) { mtu 30 drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c int mtu = dev->mtu; mtu 42 drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c if (mtu > 1500) mtu 44 drivers/net/ethernet/stmicro/stmmac/dwmac1000_core.c if (mtu > 2000) mtu 453 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c static int set_16kib_bfsize(int mtu) mtu 457 drivers/net/ethernet/stmicro/stmmac/dwmac4_descs.c if (unlikely(mtu >= BUF_SIZE_8KiB)) mtu 492 drivers/net/ethernet/stmicro/stmmac/hwif.h int (*set_16kib_bfsize)(int mtu); mtu 133 drivers/net/ethernet/stmicro/stmmac/ring_mode.c static int set_16kib_bfsize(int mtu) mtu 136 drivers/net/ethernet/stmicro/stmmac/ring_mode.c if (unlikely(mtu > BUF_SIZE_8KiB)) mtu 1109 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c static int stmmac_set_bfsize(int mtu, int bufsize) mtu 1113 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c if (mtu >= BUF_SIZE_8KiB) mtu 1115 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c else if (mtu >= BUF_SIZE_4KiB) mtu 1117 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c else if (mtu >= BUF_SIZE_2KiB) mtu 1119 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c else if (mtu > DEFAULT_BUFSIZE) mtu 2669 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c bfsize = stmmac_set_16kib_bfsize(priv, dev->mtu); mtu 2674 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c bfsize = stmmac_set_bfsize(dev->mtu, priv->dma_buf_sz); mtu 3772 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c dev->mtu = new_mtu; mtu 3795 drivers/net/ethernet/stmicro/stmmac/stmmac_main.c if (priv->plat->bugged_jumbo && (dev->mtu > ETH_DATA_LEN)) mtu 1319 drivers/net/ethernet/sun/cassini.c size = cp->dev->mtu + 64; mtu 3139 drivers/net/ethernet/sun/cassini.c int max_frame = (cp->dev->mtu + ETH_HLEN + 4 + 4 + 64) & ~63; mtu 3855 drivers/net/ethernet/sun/cassini.c dev->mtu = new_mtu; mtu 266 drivers/net/ethernet/sun/ldmvsw.c .mtu = 64, mtu 4375 drivers/net/ethernet/sun/niu.c int mtu = np->dev->mtu; mtu 4380 drivers/net/ethernet/sun/niu.c rp->max_burst = mtu + 32; mtu 4436 drivers/net/ethernet/sun/niu.c if (np->dev->mtu > ETH_DATA_LEN) { mtu 5549 drivers/net/ethernet/sun/niu.c if (np->dev->mtu > ETH_DATA_LEN) mtu 6735 drivers/net/ethernet/sun/niu.c orig_jumbo = (dev->mtu > ETH_DATA_LEN); mtu 6738 drivers/net/ethernet/sun/niu.c dev->mtu = new_mtu; mtu 1636 drivers/net/ethernet/sun/sungem.c gp->rx_buf_sz = max(dev->mtu + ETH_HLEN + VLAN_HLEN, mtu 2499 drivers/net/ethernet/sun/sungem.c dev->mtu = new_mtu; mtu 411 drivers/net/ethernet/sun/sunvnet.c .mtu = 64, mtu 96 drivers/net/ethernet/sun/sunvnet_common.c pkt.mtu = port->rmtu; mtu 99 drivers/net/ethernet/sun/sunvnet_common.c pkt.mtu = port->rmtu; mtu 104 drivers/net/ethernet/sun/sunvnet_common.c pkt.mtu = framelen; mtu 106 drivers/net/ethernet/sun/sunvnet_common.c pkt.mtu = framelen + VLAN_HLEN; mtu 125 drivers/net/ethernet/sun/sunvnet_common.c (unsigned long long)pkt.mtu, pkt.cflags, pkt.ipv4_lso_maxlen); mtu 144 drivers/net/ethernet/sun/sunvnet_common.c (unsigned long long)pkt->mtu, port->rmtu, pkt->cflags, mtu 164 drivers/net/ethernet/sun/sunvnet_common.c localmtu = min(pkt->mtu, localmtu); mtu 165 drivers/net/ethernet/sun/sunvnet_common.c pkt->mtu = localmtu; mtu 200 drivers/net/ethernet/sun/sunvnet_common.c pkt->mtu != localmtu) { mtu 216 drivers/net/ethernet/sun/sunvnet_common.c (unsigned long long)pkt->mtu, port->rmtu, pkt->cflags, mtu 1290 drivers/net/ethernet/sun/sunvnet_common.c if (port->tso && curr->len > dev->mtu) { mtu 397 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c val = (pdata->netdev->mtu > XLGMAC_STD_PACKET_MTU) ? 1 : 0; mtu 189 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c static int xlgmac_calc_rx_buf_size(struct net_device *netdev, unsigned int mtu) mtu 193 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c if (mtu > XLGMAC_JUMBO_PACKET_MTU) { mtu 198 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c rx_buf_size = mtu + ETH_HLEN + ETH_FCS_LEN + VLAN_HLEN; mtu 651 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c ret = xlgmac_calc_rx_buf_size(netdev, netdev->mtu); mtu 817 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c static int xlgmac_change_mtu(struct net_device *netdev, int mtu) mtu 822 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c ret = xlgmac_calc_rx_buf_size(netdev, mtu); mtu 827 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c netdev->mtu = mtu; mtu 1221 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c max_len = netdev->mtu + ETH_HLEN; mtu 762 drivers/net/ethernet/tehuti/tehuti.c ndev->mtu = new_mtu; mtu 1006 drivers/net/ethernet/tehuti/tehuti.c priv->rxf_fifo0.m.pktsz = priv->ndev->mtu + VLAN_ETH_HLEN; mtu 1263 drivers/net/ethernet/via/via-rhine.c rp->rx_buf_sz = (dev->mtu <= 1500 ? PKT_BUF_SZ : dev->mtu + 32); mtu 1149 drivers/net/ethernet/via/via-velocity.c if (dev->mtu > 1500) mtu 1499 drivers/net/ethernet/via/via-velocity.c static void velocity_set_rxbufsize(struct velocity_info *vptr, int mtu) mtu 1501 drivers/net/ethernet/via/via-velocity.c vptr->rx.buf_sz = (mtu <= ETH_DATA_LEN) ? PKT_BUF_SZ : mtu + 32; mtu 1678 drivers/net/ethernet/via/via-velocity.c static int velocity_init_rings(struct velocity_info *vptr, int mtu) mtu 1682 drivers/net/ethernet/via/via-velocity.c velocity_set_rxbufsize(vptr, mtu); mtu 2217 drivers/net/ethernet/via/via-velocity.c ret = velocity_init_rings(vptr, dev->mtu); mtu 2278 drivers/net/ethernet/via/via-velocity.c dev->mtu = new_mtu; mtu 2282 drivers/net/ethernet/via/via-velocity.c if (dev->mtu != new_mtu) { mtu 2320 drivers/net/ethernet/via/via-velocity.c dev->mtu = new_mtu; mtu 485 drivers/net/ethernet/xilinx/xilinx_axienet_main.c if ((ndev->mtu > XAE_MTU) && mtu 486 drivers/net/ethernet/xilinx/xilinx_axienet_main.c (ndev->mtu <= XAE_JUMBO_MTU)) { mtu 487 drivers/net/ethernet/xilinx/xilinx_axienet_main.c lp->max_frm_size = ndev->mtu + VLAN_ETH_HLEN + mtu 1061 drivers/net/ethernet/xilinx/xilinx_axienet_main.c ndev->mtu = new_mtu; mtu 498 drivers/net/fddi/defza.c FZA_TX_BUFFER_SIZE) < dev->mtu + dev->hard_header_len) { mtu 589 drivers/net/fddi/defza.c FZA_TX_BUFFER_SIZE) >= dev->mtu + dev->hard_header_len) { mtu 140 drivers/net/fjes/fjes_hw.c void fjes_hw_setup_epbuf(struct epbuf_handler *epbh, u8 *mac_addr, u32 mtu) mtu 162 drivers/net/fjes/fjes_hw.c info->v1i.frame_max = FJES_MTU_TO_FRAME_SIZE(mtu); mtu 838 drivers/net/fjes/fjes_hw.c bool fjes_hw_check_mtu(struct epbuf_handler *epbh, u32 mtu) mtu 842 drivers/net/fjes/fjes_hw.c return ((info->v1i.frame_max == FJES_MTU_TO_FRAME_SIZE(mtu)) && mtu 1063 drivers/net/fjes/fjes_hw.c netdev->dev_addr, netdev->mtu); mtu 1118 drivers/net/fjes/fjes_hw.c netdev->dev_addr, netdev->mtu); mtu 64 drivers/net/fjes/fjes_hw.h #define FJES_MTU_TO_BUFFER_SIZE(mtu) \ mtu 65 drivers/net/fjes/fjes_hw.h (ETH_HLEN + VLAN_HLEN + (mtu) + ETH_FCS_LEN) mtu 66 drivers/net/fjes/fjes_hw.h #define FJES_MTU_TO_FRAME_SIZE(mtu) \ mtu 67 drivers/net/fjes/fjes_hw.h (sizeof(struct esmem_frame) + FJES_MTU_TO_BUFFER_SIZE(mtu)) mtu 405 drivers/net/fjes/fjes_main.c netdev->mtu); mtu 460 drivers/net/fjes/fjes_main.c netdev->dev_addr, netdev->mtu); mtu 711 drivers/net/fjes/fjes_main.c netdev->mtu)) { mtu 825 drivers/net/fjes/fjes_main.c if (new_mtu == netdev->mtu) mtu 856 drivers/net/fjes/fjes_main.c netdev->mtu = new_mtu; mtu 866 drivers/net/fjes/fjes_main.c netdev->mtu); mtu 1348 drivers/net/fjes/fjes_main.c netdev->mtu = fjes_support_mtu[3]; mtu 1443 drivers/net/fjes/fjes_main.c netdev->dev_addr, netdev->mtu); mtu 1488 drivers/net/fjes/fjes_main.c netdev->dev_addr, netdev->mtu); mtu 1028 drivers/net/geneve.c dev->mtu = new_mtu; mtu 1511 drivers/net/geneve.c ldev_mtu = rt->dst.dev->mtu - GENEVE_IPV4_HLEN; mtu 1527 drivers/net/geneve.c ldev_mtu = rt->dst.dev->mtu - GENEVE_IPV6_HLEN; mtu 491 drivers/net/gtp.c int mtu; mtu 529 drivers/net/gtp.c mtu = dst_mtu(&rt->dst) - dev->hard_header_len - mtu 533 drivers/net/gtp.c mtu -= sizeof(struct gtp0_header); mtu 536 drivers/net/gtp.c mtu -= sizeof(struct gtp1_header); mtu 540 drivers/net/gtp.c mtu = dst_mtu(&rt->dst); mtu 543 drivers/net/gtp.c rt->dst.ops->update_pmtu(&rt->dst, NULL, skb, mtu, false); mtu 546 drivers/net/gtp.c mtu < ntohs(iph->tot_len)) { mtu 550 drivers/net/gtp.c htonl(mtu)); mtu 103 drivers/net/hamradio/6pack.c int mtu; /* Our mtu (to spot changes!) */ mtu 169 drivers/net/hamradio/6pack.c if (len > sp->mtu) { /* sp->mtu = AX25_MTU = max. PACLEN = 256 */ mtu 174 drivers/net/hamradio/6pack.c if (len > sp->mtu) { /* sp->mtu = AX25_MTU = max. PACLEN = 256 */ mtu 315 drivers/net/hamradio/6pack.c dev->mtu = SIXP_MTU; mtu 579 drivers/net/hamradio/6pack.c len = dev->mtu * 2; mtu 596 drivers/net/hamradio/6pack.c sp->mtu = AX25_MTU + 73; mtu 1158 drivers/net/hamradio/baycom_epp.c dev->mtu = AX25_DEF_PACLEN; /* eth_mtu is the default */ mtu 450 drivers/net/hamradio/bpqether.c dev->mtu = AX25_DEF_PACLEN; mtu 424 drivers/net/hamradio/dmascc.c dev->mtu = 1500; mtu 673 drivers/net/hamradio/hdlcdrv.c dev->mtu = AX25_DEF_PACLEN; /* eth_mtu is the default */ mtu 53 drivers/net/hamradio/mkiss.c int mtu; /* Our mtu (to spot changes!) */ mtu 362 drivers/net/hamradio/mkiss.c len = dev->mtu * 2; mtu 379 drivers/net/hamradio/mkiss.c dev->mtu = ax->mtu; mtu 413 drivers/net/hamradio/mkiss.c ax->mtu = dev->mtu + 73; mtu 429 drivers/net/hamradio/mkiss.c if (ax->mtu != ax->dev->mtu + 73) /* Someone has been ifconfigging */ mtu 432 drivers/net/hamradio/mkiss.c if (len > ax->mtu) { /* Sigh, shouldn't occur BUT ... */ mtu 582 drivers/net/hamradio/mkiss.c len = dev->mtu * 2; mtu 598 drivers/net/hamradio/mkiss.c ax->mtu = dev->mtu + 73; mtu 640 drivers/net/hamradio/mkiss.c dev->mtu = AX_MTU; mtu 886 drivers/net/hamradio/mkiss.c if (ax->mtu != ax->dev->mtu + 73) mtu 1572 drivers/net/hamradio/scc.c dev->mtu = AX25_DEF_PACLEN; mtu 1108 drivers/net/hamradio/yam.c dev->mtu = AX25_MTU; mtu 643 drivers/net/hippi/rrunner.c skb = alloc_skb(dev->mtu + HIPPI_HLEN, GFP_ATOMIC); mtu 652 drivers/net/hippi/rrunner.c dev->mtu + HIPPI_HLEN, PCI_DMA_FROMDEVICE); mtu 661 drivers/net/hippi/rrunner.c rrpriv->rx_ring[i].size = dev->mtu + HIPPI_HLEN; mtu 704 drivers/net/hippi/rrunner.c dev->mtu + HIPPI_HLEN, mtu 972 drivers/net/hippi/rrunner.c newskb = alloc_skb(dev->mtu + HIPPI_HLEN, mtu 978 drivers/net/hippi/rrunner.c desc->addr.addrlo, dev->mtu + mtu 985 drivers/net/hippi/rrunner.c dev->mtu + HIPPI_HLEN, mtu 1004 drivers/net/hippi/rrunner.c desc->size = dev->mtu + HIPPI_HLEN; mtu 1136 drivers/net/hippi/rrunner.c dev->mtu + HIPPI_HLEN, PCI_DMA_FROMDEVICE); mtu 527 drivers/net/hyperv/hyperv_net.h u32 mtu; mtu 525 drivers/net/hyperv/netvsc.c init_packet->msg.v2_msg.send_ndis_config.mtu = ndev->mtu + ETH_HLEN; mtu 1109 drivers/net/hyperv/netvsc_drv.c static int netvsc_change_mtu(struct net_device *ndev, int mtu) mtu 1114 drivers/net/hyperv/netvsc_drv.c int orig_mtu = ndev->mtu; mtu 1128 drivers/net/hyperv/netvsc_drv.c ret = dev_set_mtu(vf_netdev, mtu); mtu 1137 drivers/net/hyperv/netvsc_drv.c ndev->mtu = mtu; mtu 1144 drivers/net/hyperv/netvsc_drv.c ndev->mtu = orig_mtu; mtu 2081 drivers/net/hyperv/netvsc_drv.c ret = dev_set_mtu(vf_netdev, ndev->mtu); mtu 2084 drivers/net/hyperv/netvsc_drv.c "unable to change mtu to %u\n", ndev->mtu); mtu 1314 drivers/net/hyperv/rndis_filter.c u32 mtu, size; mtu 1348 drivers/net/hyperv/rndis_filter.c &mtu, &size); mtu 1349 drivers/net/hyperv/rndis_filter.c if (ret == 0 && size == sizeof(u32) && mtu < net->mtu) mtu 1350 drivers/net/hyperv/rndis_filter.c net->mtu = mtu; mtu 371 drivers/net/ipvlan/ipvlan_main.c ipvlan->dev->mtu = dev->mtu; mtu 161 drivers/net/loopback.c unsigned int mtu, mtu 167 drivers/net/loopback.c dev->mtu = mtu; mtu 714 drivers/net/macsec.c if (skb->len - ETH_HLEN > macsec_priv(dev)->real_dev->mtu) { mtu 2922 drivers/net/macsec.c if (macsec->real_dev->mtu - extra < new_mtu) mtu 2925 drivers/net/macsec.c dev->mtu = new_mtu; mtu 3233 drivers/net/macsec.c int err, mtu; mtu 3250 drivers/net/macsec.c mtu = real_dev->mtu - icv_len - macsec_extra_len(true); mtu 3251 drivers/net/macsec.c if (mtu < 0) mtu 3252 drivers/net/macsec.c dev->mtu = 0; mtu 3254 drivers/net/macsec.c dev->mtu = mtu; mtu 3520 drivers/net/macsec.c unsigned int mtu = real_dev->mtu - (m->secy.icv_len + mtu 3523 drivers/net/macsec.c if (dev->mtu > mtu) mtu 3524 drivers/net/macsec.c dev_set_mtu(dev, mtu); mtu 821 drivers/net/macvlan.c if (vlan->lowerdev->mtu < new_mtu) mtu 823 drivers/net/macvlan.c dev->mtu = new_mtu; mtu 1402 drivers/net/macvlan.c dev->mtu = lowerdev->mtu; mtu 1403 drivers/net/macvlan.c else if (dev->mtu > lowerdev->mtu) mtu 1694 drivers/net/macvlan.c if (vlan->dev->mtu <= dev->mtu) mtu 1696 drivers/net/macvlan.c dev_set_mtu(vlan->dev, dev->mtu); mtu 233 drivers/net/net_failover.c dev_set_mtu(primary_dev, dev->mtu); mtu 238 drivers/net/net_failover.c dev->mtu = new_mtu; mtu 508 drivers/net/net_failover.c orig_mtu = slave_dev->mtu; mtu 509 drivers/net/net_failover.c err = dev_set_mtu(slave_dev, failover_dev->mtu); mtu 512 drivers/net/net_failover.c slave_dev->name, failover_dev->mtu); mtu 295 drivers/net/netdevsim/bpf.c if (ns->netdev->mtu > NSIM_XDP_MAX_MTU) { mtu 57 drivers/net/netdevsim/netdev.c dev->mtu = new_mtu; mtu 121 drivers/net/nlmon.c dev->mtu = NLMSG_GOODSIZE; mtu 130 drivers/net/ntb_netdev.c skb = netdev_alloc_skb(ndev, ndev->mtu + ETH_HLEN); mtu 138 drivers/net/ntb_netdev.c rc = ntb_transport_rx_enqueue(qp, skb, skb->data, ndev->mtu + ETH_HLEN); mtu 255 drivers/net/ntb_netdev.c skb = netdev_alloc_skb(ndev, ndev->mtu + ETH_HLEN); mtu 262 drivers/net/ntb_netdev.c ndev->mtu + ETH_HLEN); mtu 309 drivers/net/ntb_netdev.c ndev->mtu = new_mtu; mtu 316 drivers/net/ntb_netdev.c if (ndev->mtu < new_mtu) { mtu 338 drivers/net/ntb_netdev.c ndev->mtu = new_mtu; mtu 446 drivers/net/ntb_netdev.c ndev->mtu = ntb_transport_max_size(dev->qp) - ETH_HLEN; mtu 624 drivers/net/plip/plip.c if (rcv->length.h > dev->mtu + dev->hard_header_len || mtu 979 drivers/net/plip/plip.c if (skb->len > dev->mtu + dev->hard_header_len) { mtu 189 drivers/net/ppp/ppp_async.c ap->chan.mtu = PPP_MRU; mtu 1001 drivers/net/ppp/ppp_async.c ap->chan.mtu = val; mtu 1385 drivers/net/ppp/ppp_generic.c dev->mtu = PPP_MRU; mtu 1451 drivers/net/ppp/ppp_generic.c int new_skb_size = ppp->dev->mtu + mtu 1453 drivers/net/ppp/ppp_generic.c int compressor_skb_size = ppp->dev->mtu + mtu 1679 drivers/net/ppp/ppp_generic.c int i, bits, hdrlen, mtu; mtu 1849 drivers/net/ppp/ppp_generic.c mtu = pch->chan->mtu - (hdrlen - 2); mtu 1850 drivers/net/ppp/ppp_generic.c if (mtu < 4) mtu 1851 drivers/net/ppp/ppp_generic.c mtu = 4; mtu 1852 drivers/net/ppp/ppp_generic.c if (flen > mtu) mtu 1853 drivers/net/ppp/ppp_generic.c flen = mtu; mtu 187 drivers/net/ppp/ppp_synctty.c ap->chan.mtu = PPP_MRU; mtu 695 drivers/net/ppp/pppoe.c po->chan.mtu = dev->mtu - sizeof(struct pppoe_hdr) - 2; mtu 753 drivers/net/ppp/pppoe.c if (put_user(po->pppoe_dev->mtu - mtu 770 drivers/net/ppp/pppoe.c if (val < (po->pppoe_dev->mtu mtu 865 drivers/net/ppp/pppoe.c if (total_len > (dev->mtu + dev->hard_header_len)) mtu 454 drivers/net/ppp/pptp.c po->chan.mtu = dst_mtu(&rt->dst); mtu 455 drivers/net/ppp/pptp.c if (!po->chan.mtu) mtu 456 drivers/net/ppp/pptp.c po->chan.mtu = PPP_MRU; mtu 457 drivers/net/ppp/pptp.c po->chan.mtu -= PPTP_HEADER_OVERHEAD; mtu 511 drivers/net/rionet.c ndev->mtu = RIONET_MAX_MTU; mtu 129 drivers/net/slip/slip.c static int sl_alloc_bufs(struct slip *sl, int mtu) mtu 147 drivers/net/slip/slip.c len = mtu * 2; mtu 176 drivers/net/slip/slip.c sl->mtu = mtu; mtu 220 drivers/net/slip/slip.c static int sl_realloc_bufs(struct slip *sl, int mtu) mtu 228 drivers/net/slip/slip.c int len = mtu * 2; mtu 250 drivers/net/slip/slip.c if (mtu > sl->mtu) { mtu 287 drivers/net/slip/slip.c sl->mtu = mtu; mtu 288 drivers/net/slip/slip.c dev->mtu = mtu; mtu 380 drivers/net/slip/slip.c if (len > sl->mtu) { /* Sigh, shouldn't occur BUT ... */ mtu 619 drivers/net/slip/slip.c dev->mtu = sl->mtu; mtu 70 drivers/net/slip/slip.h int mtu; /* Our mtu (to spot changes!) */ mtu 1194 drivers/net/team/team.c port->orig.mtu = port_dev->mtu; mtu 1195 drivers/net/team/team.c err = dev_set_mtu(port_dev, dev->mtu); mtu 1312 drivers/net/team/team.c dev_set_mtu(port_dev, port->orig.mtu); mtu 1358 drivers/net/team/team.c dev_set_mtu(port_dev, port->orig.mtu); mtu 1824 drivers/net/team/team.c dev->mtu = new_mtu; mtu 1830 drivers/net/team/team.c dev_set_mtu(port->dev, dev->mtu); mtu 2115 drivers/net/team/team.c dev->mtu = port_dev->mtu; mtu 1393 drivers/net/tun.c dev->mtu = 1500; mtu 427 drivers/net/usb/aqc111.c net->mtu = new_mtu; mtu 428 drivers/net/usb/aqc111.c dev->hard_mtu = net->mtu + net->hard_header_len; mtu 432 drivers/net/usb/aqc111.c if (net->mtu > 1500) mtu 440 drivers/net/usb/aqc111.c if (dev->net->mtu > 12500) { mtu 448 drivers/net/usb/aqc111.c if (dev->net->mtu <= 4500) mtu 450 drivers/net/usb/aqc111.c else if (dev->net->mtu <= 9500) mtu 452 drivers/net/usb/aqc111.c else if (dev->net->mtu <= 12500) mtu 858 drivers/net/usb/aqc111.c if (dev->net->mtu > 12500 && dev->net->mtu <= 16334) mtu 866 drivers/net/usb/aqc111.c if (dev->net->mtu <= 4500) mtu 868 drivers/net/usb/aqc111.c else if (dev->net->mtu <= 9500) mtu 870 drivers/net/usb/aqc111.c else if (dev->net->mtu <= 12500) mtu 872 drivers/net/usb/aqc111.c else if (dev->net->mtu <= 16334) mtu 953 drivers/net/usb/aqc111.c if (dev->net->mtu > 1500) mtu 146 drivers/net/usb/asix_common.c if (size > dev->net->mtu + ETH_HLEN + VLAN_HLEN) { mtu 1018 drivers/net/usb/asix_devices.c if (dev->net->mtu > 1500) mtu 1038 drivers/net/usb/asix_devices.c net->mtu = new_mtu; mtu 1039 drivers/net/usb/asix_devices.c dev->hard_mtu = net->mtu + net->hard_header_len; mtu 906 drivers/net/usb/ax88179_178a.c net->mtu = new_mtu; mtu 907 drivers/net/usb/ax88179_178a.c dev->hard_mtu = net->mtu + net->hard_header_len; mtu 909 drivers/net/usb/ax88179_178a.c if (net->mtu > 1500) { mtu 1481 drivers/net/usb/ax88179_178a.c if (dev->net->mtu > 1500) mtu 282 drivers/net/usb/cdc-phonet.c dev->mtu = PHONET_MAX_MTU; mtu 80 drivers/net/usb/cdc_eem.c dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; mtu 599 drivers/net/usb/cdc_ncm.c dev->net->mtu = min_t(int, dev->net->mtu, ctx->max_datagram_size - cdc_ncm_eth_hlen(dev)); mtu 604 drivers/net/usb/cdc_ncm.c if (mbim_mtu != 0 && mbim_mtu < dev->net->mtu) mtu 605 drivers/net/usb/cdc_ncm.c dev->net->mtu = mbim_mtu; mtu 750 drivers/net/usb/cdc_ncm.c net->mtu = new_mtu; mtu 353 drivers/net/usb/ch9200.c dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; mtu 365 drivers/net/usb/dm9601.c dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; mtu 371 drivers/net/usb/dm9601.c dev->rx_urb_size = dev->net->mtu + ETH_HLEN + DM_RX_OVERHEAD + 1; mtu 2403 drivers/net/usb/hso.c net->mtu = DEFAULT_MTU - 14; mtu 150 drivers/net/usb/int51x1.c dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; mtu 1135 drivers/net/usb/kaweth.c netdev->mtu = le16_to_cpu(kaweth->configuration.segment_size); mtu 2290 drivers/net/usb/lan78xx.c netdev->mtu = new_mtu; mtu 2292 drivers/net/usb/lan78xx.c dev->hard_mtu = netdev->mtu + netdev->hard_header_len; mtu 2587 drivers/net/usb/lan78xx.c dev->net->mtu + VLAN_ETH_HLEN); mtu 2990 drivers/net/usb/lan78xx.c dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; mtu 3763 drivers/net/usb/lan78xx.c if (netdev->mtu > (dev->hard_mtu - netdev->hard_header_len)) mtu 3764 drivers/net/usb/lan78xx.c netdev->mtu = dev->hard_mtu - netdev->hard_header_len; mtu 62 drivers/net/usb/net1080.c #define FRAMED_SIZE(mtu) (sizeof (struct nc_header) \ mtu 64 drivers/net/usb/net1080.c + (mtu) \ mtu 353 drivers/net/usb/net1080.c dev->net->mtu); mtu 482 drivers/net/usb/net1080.c dev->rx_urb_size = dev->net->hard_header_len + dev->net->mtu; mtu 171 drivers/net/usb/qmi_wwan.c dev->mtu = 1500; mtu 348 drivers/net/usb/qmi_wwan.c usbnet_change_mtu(net, net->mtu); mtu 2455 drivers/net/usb/r8152.c tp->tx_qlen = agg_buf_sz / (netdev->mtu + VLAN_ETH_HLEN + ETH_FCS_LEN + mtu 2648 drivers/net/usb/r8152.c u32 ocp_data = tp->rx_buf_sz - rx_reserved_size(tp->netdev->mtu); mtu 3769 drivers/net/usb/r8152.c ocp_data = tp->netdev->mtu + VLAN_ETH_HLEN + ETH_FCS_LEN; mtu 3819 drivers/net/usb/r8152.c ocp_data = tp->netdev->mtu + VLAN_ETH_HLEN + ETH_FCS_LEN; mtu 5446 drivers/net/usb/r8152.c dev->mtu = new_mtu; mtu 5458 drivers/net/usb/r8152.c dev->mtu = new_mtu; mtu 334 drivers/net/usb/rndis_host.c dev->hard_mtu = net->mtu + net->hard_header_len; mtu 370 drivers/net/usb/rndis_host.c net->mtu = dev->hard_mtu - net->hard_header_len; mtu 723 drivers/net/usb/sierra_net.c dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; mtu 1390 drivers/net/usb/smsc75xx.c ret = smsc75xx_set_rx_max_frame_length(dev, dev->net->mtu + ETH_HLEN); mtu 1501 drivers/net/usb/smsc75xx.c dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; mtu 1313 drivers/net/usb/smsc95xx.c dev->hard_mtu = dev->net->mtu + dev->net->hard_header_len; mtu 333 drivers/net/usb/sr9700.c dev->hard_mtu = netdev->mtu + netdev->hard_header_len; mtu 84 drivers/net/usb/sr9800.c if ((size > dev->net->mtu + ETH_HLEN + VLAN_HLEN) || mtu 388 drivers/net/usb/usbnet.c net->mtu = new_mtu; mtu 390 drivers/net/usb/usbnet.c dev->hard_mtu = net->mtu + net->hard_header_len; mtu 912 drivers/net/usb/usbnet.c dev->net->mtu, mtu 1719 drivers/net/usb/usbnet.c dev->hard_mtu = net->mtu + net->hard_header_len; mtu 1753 drivers/net/usb/usbnet.c if (net->mtu > (dev->hard_mtu - net->hard_header_len)) mtu 1754 drivers/net/usb/usbnet.c net->mtu = dev->hard_mtu - net->hard_header_len; mtu 79 drivers/net/usb/zaurus.c dev->rx_urb_size = dev->net->hard_header_len + dev->net->mtu; mtu 218 drivers/net/usb/zaurus.c + dev->net->mtu; mtu 424 drivers/net/veth.c max_len = rcv->mtu + rcv->hard_header_len + VLAN_HLEN; mtu 944 drivers/net/veth.c static int is_valid_veth_mtu(int mtu) mtu 946 drivers/net/veth.c return mtu >= ETH_MIN_MTU && mtu <= ETH_MAX_MTU; mtu 1088 drivers/net/veth.c if (peer->mtu > max_mtu) { mtu 2428 drivers/net/virtio_net.c if (dev->mtu > max_sz) { mtu 2980 drivers/net/virtio_net.c int mtu = virtio_cread16(vdev, mtu 2982 drivers/net/virtio_net.c mtu)); mtu 2983 drivers/net/virtio_net.c if (mtu < MIN_MTU) mtu 2996 drivers/net/virtio_net.c int mtu; mtu 3101 drivers/net/virtio_net.c mtu = virtio_cread16(vdev, mtu 3103 drivers/net/virtio_net.c mtu)); mtu 3104 drivers/net/virtio_net.c if (mtu < dev->min_mtu) { mtu 3110 drivers/net/virtio_net.c mtu, dev->min_mtu); mtu 3114 drivers/net/virtio_net.c dev->mtu = mtu; mtu 3115 drivers/net/virtio_net.c dev->max_mtu = mtu; mtu 3118 drivers/net/virtio_net.c if (dev->mtu > ETH_DATA_LEN) mtu 473 drivers/net/vmxnet3/vmxnet3_defs.h __le32 mtu; mtu 1494 drivers/net/vmxnet3/vmxnet3_drv.c u32 mtu = adapter->netdev->mtu; mtu 1509 drivers/net/vmxnet3/vmxnet3_drv.c } else if (segCnt != 0 || skb->len > mtu) { mtu 1525 drivers/net/vmxnet3/vmxnet3_drv.c skb_shinfo(skb)->gso_size = mtu - hlen; mtu 2435 drivers/net/vmxnet3/vmxnet3_drv.c devRead->misc.mtu = cpu_to_le32(adapter->netdev->mtu); mtu 2779 drivers/net/vmxnet3/vmxnet3_drv.c if (adapter->netdev->mtu <= VMXNET3_MAX_SKB_BUF_SIZE - mtu 2781 drivers/net/vmxnet3/vmxnet3_drv.c adapter->skb_buf_size = adapter->netdev->mtu + mtu 2789 drivers/net/vmxnet3/vmxnet3_drv.c sz = adapter->netdev->mtu - VMXNET3_MAX_SKB_BUF_SIZE + mtu 2994 drivers/net/vmxnet3/vmxnet3_drv.c netdev->mtu = new_mtu; mtu 866 drivers/net/vrf.c dev->mtu = 64 * 1024; mtu 103 drivers/net/vsockmon.c dev->mtu = new_mtu; mtu 140 drivers/net/vsockmon.c dev->mtu = DEFAULT_MTU; mtu 2909 drivers/net/vxlan.c int max_mtu = lowerdev->mtu - mtu 2915 drivers/net/vxlan.c dev->mtu = new_mtu; mtu 3132 drivers/net/vxlan.c u32 mtu = nla_get_u32(tb[IFLA_MTU]); mtu 3134 drivers/net/vxlan.c if (mtu < ETH_MIN_MTU || mtu > ETH_MAX_MTU) { mtu 3518 drivers/net/vxlan.c if (conf->mtu) mtu 3519 drivers/net/vxlan.c dev->mtu = conf->mtu; mtu 3536 drivers/net/vxlan.c max_mtu = lowerdev->mtu - (use_ipv6 ? VXLAN6_HEADROOM : mtu 3541 drivers/net/vxlan.c if (!changelink && !conf->mtu) mtu 3542 drivers/net/vxlan.c dev->mtu = max_mtu; mtu 3545 drivers/net/vxlan.c if (dev->mtu > max_mtu) mtu 3546 drivers/net/vxlan.c dev->mtu = max_mtu; mtu 3936 drivers/net/vxlan.c conf->mtu = nla_get_u32(tb[IFLA_MTU]); mtu 228 drivers/net/wan/hdlc.c dev->mtu = HDLC_MAX_MTU; mtu 1093 drivers/net/wan/hdlc_fr.c dev->mtu = HDLC_MAX_MTU; mtu 542 drivers/net/wan/hdlc_ppp.c if (len > dev->mtu) mtu 543 drivers/net/wan/hdlc_ppp.c len = dev->mtu; mtu 307 drivers/net/wan/lapbether.c dev->mtu = 1000; mtu 577 drivers/net/wan/sdla.c master->mtu = slave->mtu; mtu 1127 drivers/net/wan/sdla.c if ((data.config.mtu < 0) || (data.config.mtu > SDLA_MAX_MTU)) mtu 1151 drivers/net/wan/sdla.c if (dev->mtu != flp->config.mtu) mtu 1154 drivers/net/wan/sdla.c dev->mtu = flp->config.mtu; mtu 1157 drivers/net/wan/sdla.c flp->master[i]->mtu = flp->config.mtu; mtu 1160 drivers/net/wan/sdla.c flp->config.mtu += sizeof(struct frhdr); mtu 1185 drivers/net/wan/sdla.c data.config.mtu -= data.config.mtu > sizeof(struct frhdr) ? sizeof(struct frhdr) : data.config.mtu; mtu 1606 drivers/net/wan/sdla.c dev->mtu = SDLA_MAX_MTU; mtu 160 drivers/net/wan/x25_asy.c dev->mtu = newmtu; mtu 221 drivers/net/wan/x25_asy.c int actual, count, mtu = sl->dev->mtu; mtu 223 drivers/net/wan/x25_asy.c if (len > mtu) { mtu 225 drivers/net/wan/x25_asy.c len = mtu; mtu 464 drivers/net/wan/x25_asy.c len = dev->mtu * 2; mtu 738 drivers/net/wan/x25_asy.c dev->mtu = SL_MTU; mtu 792 drivers/net/wan/z85230.c c->mtu = dev->mtu+64; mtu 858 drivers/net/wan/z85230.c c->mtu = dev->mtu+64; mtu 874 drivers/net/wan/z85230.c if(c->mtu > PAGE_SIZE/2) mtu 938 drivers/net/wan/z85230.c set_dma_count(c->rxdma, c->mtu); mtu 1053 drivers/net/wan/z85230.c c->mtu = dev->mtu+64; mtu 1064 drivers/net/wan/z85230.c if(c->mtu > PAGE_SIZE/2) mtu 1398 drivers/net/wan/z85230.c c->mtu=1500; mtu 1597 drivers/net/wan/z85230.c ct=c->mtu-get_dma_residue(c->rxdma); mtu 1612 drivers/net/wan/z85230.c set_dma_count(c->rxdma, c->mtu); mtu 1665 drivers/net/wan/z85230.c c->max = c->mtu; mtu 1668 drivers/net/wan/z85230.c c->max = c->mtu; mtu 1675 drivers/net/wan/z85230.c c->skb2 = dev_alloc_skb(c->mtu); mtu 1679 drivers/net/wan/z85230.c skb_put(c->skb2, c->mtu); mtu 272 drivers/net/wan/z85230.h u16 mtu; /* MTU of the device */ mtu 586 drivers/net/wimax/i2400m/netdev.c net_dev->mtu = I2400M_MAX_MTU; mtu 130 drivers/net/wireless/ath/wil6210/wil6210.h static inline u32 wil_mtu2macbuf(u32 mtu) mtu 132 drivers/net/wireless/ath/wil6210/wil6210.h return ALIGN(mtu + WIL_MAX_MPDU_OVERHEAD, 8); mtu 2670 drivers/net/wireless/cisco/airo.c dev->mtu = AIRO_DEF_MTU; mtu 99 drivers/net/wireless/intel/ipw2x00/libipw_rx.c skb = dev_alloc_skb(ieee->dev->mtu + mtu 264 drivers/net/wireless/intersil/hostap/hostap_80211_rx.c skb = dev_alloc_skb(local->dev->mtu + mtu 56 drivers/net/wireless/intersil/hostap/hostap_hw.c static int mtu = 1500; mtu 57 drivers/net/wireless/intersil/hostap/hostap_hw.c module_param(mtu, int, 0444); mtu 58 drivers/net/wireless/intersil/hostap/hostap_hw.c MODULE_PARM_DESC(mtu, "Maximum transfer unit"); mtu 3106 drivers/net/wireless/intersil/hostap/hostap_hw.c local->mtu = mtu; mtu 866 drivers/net/wireless/intersil/hostap/hostap_main.c dev->mtu = local->mtu; mtu 698 drivers/net/wireless/intersil/hostap/hostap_wlan.h int mtu; mtu 322 drivers/net/wireless/intersil/orinoco/main.c dev->mtu = new_mtu; mtu 2115 drivers/net/wireless/ray_cs.c (dev->mtu + RX_MAC_HEADER_LENGTH + ETH_HLEN + mtu 2126 drivers/net/wireless/ray_cs.c (dev->mtu + RX_MAC_HEADER_LENGTH + ETH_HLEN + mtu 506 drivers/net/wireless/virt_wifi.c dev->mtu = priv->lowerdev->mtu; mtu 507 drivers/net/wireless/virt_wifi.c else if (dev->mtu > priv->lowerdev->mtu) mtu 321 drivers/net/xen-netback/interface.c static int xenvif_change_mtu(struct net_device *dev, int mtu) mtu 326 drivers/net/xen-netback/interface.c if (mtu > max) mtu 328 drivers/net/xen-netback/interface.c dev->mtu = mtu; mtu 573 drivers/net/xen-netback/interface.c if (!vif->can_sg && vif->dev->mtu > ETH_DATA_LEN) mtu 1085 drivers/net/xen-netfront.c static int xennet_change_mtu(struct net_device *dev, int mtu) mtu 1089 drivers/net/xen-netfront.c if (mtu > max) mtu 1091 drivers/net/xen-netfront.c dev->mtu = mtu; mtu 1213 drivers/net/xen-netfront.c if (!(features & NETIF_F_SG) && dev->mtu > ETH_DATA_LEN) { mtu 1215 drivers/net/xen-netfront.c dev->mtu = ETH_DATA_LEN; mtu 628 drivers/platform/mellanox/mlxbf-tmfifo.c if (ntohs(hdr.len) > config->mtu + mtu 1234 drivers/platform/mellanox/mlxbf-tmfifo.c net_config.mtu = ETH_DATA_LEN; mtu 118 drivers/s390/net/ctcm_main.c header->length, dev->mtu, len); mtu 1046 drivers/s390/net/ctcm_main.c dev->mtu = new_mtu; mtu 1170 drivers/s390/net/ctcm_main.c dev->mtu = MPC_BUFSIZE_DEFAULT - mtu 1177 drivers/s390/net/ctcm_main.c dev->mtu = CTCM_BUFSIZE_DEFAULT - LL_HEADER_LENGTH - 2; mtu 58 drivers/s390/net/ctcm_sysfs.c (bs1 < (ndev->mtu + LL_HEADER_LENGTH + 2))) mtu 64 drivers/s390/net/ctcm_sysfs.c ndev->mtu = bs1 - LL_HEADER_LENGTH - 2; mtu 1550 drivers/s390/net/netiucv.c (bs1 < (ndev->mtu + NETIUCV_HDRLEN + 2))) { mtu 1565 drivers/s390/net/netiucv.c ndev->mtu = bs1 - NETIUCV_HDRLEN - NETIUCV_HDRLEN; mtu 1955 drivers/s390/net/netiucv.c dev->mtu = NETIUCV_MTU_DEFAULT; mtu 2128 drivers/s390/net/qeth_core_main.c new_mtu = (dev->mtu == dev->max_mtu) ? max_mtu : dev->mtu; mtu 2135 drivers/s390/net/qeth_core_main.c if (dev->mtu) mtu 2136 drivers/s390/net/qeth_core_main.c new_mtu = dev->mtu; mtu 2145 drivers/s390/net/qeth_core_main.c dev->mtu = min(new_mtu, max_mtu); mtu 2169 drivers/s390/net/qeth_core_main.c __u16 mtu, framesize; mtu 2182 drivers/s390/net/qeth_core_main.c mtu = qeth_get_mtu_outof_framesize(framesize); mtu 2184 drivers/s390/net/qeth_core_main.c mtu = *(__u16 *)QETH_ULP_ENABLE_RESP_MAX_MTU(iob->data); mtu 2186 drivers/s390/net/qeth_core_main.c *(u16 *)reply->param = mtu; mtu 5604 drivers/s390/net/qeth_core_main.c dev->mtu = 0; mtu 350 drivers/scsi/bnx2fc/57xx_hsi_bnx2fc.h __le16 mtu; mtu 92 drivers/scsi/bnx2fc/bnx2fc_hwi.c fcoe_init1.mtu = BNX2FC_MINI_JUMBO_MTU; mtu 389 drivers/scsi/bnx2i/bnx2i_init.c stats->max_frame_size = hba->netdev->mtu; mtu 1685 drivers/scsi/bnx2i/bnx2i_iscsi.c if (hba->netdev->mtu > hba->mtu_supported) { mtu 1687 drivers/scsi/bnx2i/bnx2i_iscsi.c hba->netdev->name, hba->netdev->mtu); mtu 1777 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c if (!csk->mtu) mtu 1778 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c csk->mtu = dst_mtu(csk->dst); mtu 1779 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c cxgb4_best_mtu(lldi->mtus, csk->mtu, &csk->mss_idx); mtu 1813 drivers/scsi/cxgbi/cxgb4i/cxgb4i.c csk->mtu, csk->mss_idx, csk->smac_idx); mtu 612 drivers/scsi/cxgbi/libcxgbi.c unsigned int mtu = 0; mtu 647 drivers/scsi/cxgbi/libcxgbi.c mtu = ndev->mtu; mtu 649 drivers/scsi/cxgbi/libcxgbi.c n->dev->name, ndev->name, mtu); mtu 679 drivers/scsi/cxgbi/libcxgbi.c csk->mtu = mtu; mtu 728 drivers/scsi/cxgbi/libcxgbi.c unsigned int mtu = 0; mtu 790 drivers/scsi/cxgbi/libcxgbi.c csk->mtu = mtu; mtu 1086 drivers/scsi/cxgbi/libcxgbi.c unsigned short mtu) mtu 1090 drivers/scsi/cxgbi/libcxgbi.c while (i < csk->cdev->nmtus - 1 && csk->cdev->mtus[i + 1] <= mtu) mtu 111 drivers/scsi/cxgbi/libcxgbi.h unsigned int mtu; mtu 725 drivers/scsi/fcoe/fcoe.c mfs = netdev->mtu; mtu 1879 drivers/scsi/fcoe/fcoe.c mfs = netdev->mtu - (sizeof(struct fcoe_hdr) + mtu 866 drivers/scsi/fnic/vnic_dev.c return vdev->notify_copy.mtu; mtu 433 drivers/scsi/fnic/vnic_devcmd.h u32 mtu; /* MTU */ mtu 3093 drivers/scsi/qedf/qedf_main.c qedf->pf_params.fcoe_pf_params.mtu = 9000; mtu 3406 drivers/scsi/qedf/qedf_main.c params.mtu = QEDF_LL2_BUF_SIZE; mtu 60 drivers/scsi/qedi/qedi_gbl.h void qedi_reset_host_mtu(struct qedi_ctx *qedi, u16 mtu); mtu 1930 drivers/scsi/qedi/qedi_main.c void qedi_reset_host_mtu(struct qedi_ctx *qedi, u16 mtu) mtu 1940 drivers/scsi/qedi/qedi_main.c qedi->ll2_mtu, mtu); mtu 1942 drivers/scsi/qedi/qedi_main.c qedi->ll2_mtu = mtu; mtu 1943 drivers/scsi/qedi/qedi_main.c params.mtu = qedi->ll2_mtu + IPV6_HDR_LEN + TCP_HDR_LEN; mtu 2518 drivers/scsi/qedi/qedi_main.c params.mtu = DEF_PATH_MTU + IPV6_HDR_LEN + TCP_HDR_LEN; mtu 960 drivers/scsi/qla4xxx/ql4_fw.h uint32_t mtu; /* 144-147 */ mtu 388 drivers/scsi/scsi_transport_iscsi.c iscsi_iface_net_attr(iface, mtu, ISCSI_NET_PARAM_MTU); mtu 199 drivers/scsi/snic/vnic_devcmd.h u32 mtu; /* MTU */ mtu 424 drivers/staging/fsl-dpaa2/ethsw/ethsw.c static int port_change_mtu(struct net_device *netdev, int mtu) mtu 433 drivers/staging/fsl-dpaa2/ethsw/ethsw.c (u16)ETHSW_L2_MAX_FRM(mtu)); mtu 440 drivers/staging/fsl-dpaa2/ethsw/ethsw.c netdev->mtu = mtu; mtu 38 drivers/staging/fsl-dpaa2/ethsw/ethsw.h #define ETHSW_L2_MAX_FRM(mtu) ((mtu) + VLAN_ETH_HLEN + ETH_FCS_LEN) mtu 879 drivers/staging/gdm724x/gdm_lte.c net->mtu = DEFAULT_MTU_SIZE; mtu 178 drivers/staging/most/net/net.c dev->mtu = nd->is_mamac ? MAMAC_DATA_LEN : ETH_DATA_LEN; mtu 248 drivers/staging/octeon/ethernet.c dev->mtu = new_mtu; mtu 435 drivers/staging/octeon/ethernet.c dev_set_mtu(dev, dev->mtu); mtu 1573 drivers/staging/qlge/qlge_main.c if (skb->len > ndev->mtu + hlen) { mtu 1681 drivers/staging/qlge/qlge_main.c if (skb->len > ndev->mtu + ETH_HLEN) { mtu 1986 drivers/staging/qlge/qlge_main.c if (skb->len > ndev->mtu + ETH_HLEN) { mtu 4103 drivers/staging/qlge/qlge_main.c unsigned int lbq_buf_len = (qdev->ndev->mtu > 1500) ? mtu 4236 drivers/staging/qlge/qlge_main.c lbq_buf_len = (qdev->ndev->mtu > 1500) ? mtu 4264 drivers/staging/qlge/qlge_main.c if (ndev->mtu == 1500 && new_mtu == 9000) { mtu 4266 drivers/staging/qlge/qlge_main.c } else if (ndev->mtu == 9000 && new_mtu == 1500) { mtu 4274 drivers/staging/qlge/qlge_main.c ndev->mtu = new_mtu; mtu 117 drivers/staging/rtl8192e/rtllib_rx.c skb = dev_alloc_skb(ieee->dev->mtu + mtu 121 drivers/staging/rtl8192u/ieee80211/ieee80211_rx.c skb = dev_alloc_skb(ieee->dev->mtu + mtu 539 drivers/staging/unisys/include/iochannel.h u32 mtu; mtu 1880 drivers/staging/unisys/visornic/visornic_main.c channel_offset = offsetof(struct visor_io_channel, vnic.mtu); mtu 1881 drivers/staging/unisys/visornic/visornic_main.c err = visorbus_read_channel(dev, channel_offset, &netdev->mtu, 4); mtu 367 drivers/staging/wlan-ng/p80211conv.c if (payload_length > (netdev->mtu + ETH_HLEN)) { mtu 371 drivers/staging/wlan-ng/p80211conv.c payload_length, netdev->mtu + ETH_HLEN); mtu 396 drivers/staging/wlan-ng/p80211conv.c if (payload_length > netdev->mtu) { mtu 400 drivers/staging/wlan-ng/p80211conv.c payload_length, netdev->mtu); mtu 429 drivers/staging/wlan-ng/p80211conv.c > netdev->mtu) { mtu 435 drivers/staging/wlan-ng/p80211conv.c sizeof(struct wlan_snap)), netdev->mtu); mtu 464 drivers/staging/wlan-ng/p80211conv.c if (payload_length > netdev->mtu) { mtu 468 drivers/staging/wlan-ng/p80211conv.c payload_length, netdev->mtu); mtu 223 drivers/target/iscsi/cxgbit/cxgbit.h u32 mtu; mtu 935 drivers/target/iscsi/cxgbit/cxgbit_cm.c csk->mtu = ndev->mtu; mtu 971 drivers/target/iscsi/cxgbit/cxgbit_cm.c csk->mtu = dst_mtu(dst); mtu 1154 drivers/target/iscsi/cxgbit/cxgbit_cm.c cxgb_best_mtu(csk->com.cdev->lldi.mtus, csk->mtu, &mtu_idx, mtu 1313 drivers/target/iscsi/cxgbit/cxgbit_cm.c if (peer_mss && csk->mtu > (peer_mss + hdrs)) mtu 1314 drivers/target/iscsi/cxgbit/cxgbit_cm.c csk->mtu = peer_mss + hdrs; mtu 267 drivers/tty/ipwireless/network.c channel->mtu = 16384; /* Wild guess */ mtu 225 drivers/tty/n_gsm.c unsigned int mtu; mtu 804 drivers/tty/n_gsm.c if (len > gsm->mtu) mtu 805 drivers/tty/n_gsm.c len = gsm->mtu; mtu 866 drivers/tty/n_gsm.c if (len > gsm->mtu) { mtu 873 drivers/tty/n_gsm.c len = gsm->mtu; mtu 2218 drivers/tty/n_gsm.c gsm->mtu = 64; mtu 2241 drivers/tty/n_gsm.c c->mtu = gsm->mtu; mtu 2254 drivers/tty/n_gsm.c if (c->mru > MAX_MRU || c->mtu > MAX_MTU || c->mru < 8 || c->mtu < 8) mtu 2282 drivers/tty/n_gsm.c if (c->mtu != gsm->mtu) mtu 2303 drivers/tty/n_gsm.c gsm->mtu = c->mtu; mtu 2812 drivers/tty/n_gsm.c net->mtu = dlci->gsm->mtu; mtu 2814 drivers/tty/n_gsm.c net->max_mtu = dlci->gsm->mtu; mtu 473 drivers/tty/vcc.c .mtu = VIO_VCC_MTU_SIZE, mtu 273 drivers/usb/gadget/function/f_phonet.c dev->mtu = PHONET_DEV_MTU; mtu 250 drivers/usb/gadget/function/rndis.c *outbuf = cpu_to_le32(params->dev->mtu); mtu 270 drivers/usb/gadget/function/rndis.c *outbuf = cpu_to_le32(params->dev->mtu); mtu 279 drivers/usb/gadget/function/rndis.c *outbuf = cpu_to_le32(params->dev->mtu); mtu 579 drivers/usb/gadget/function/rndis.c params->dev->mtu mtu 208 drivers/usb/gadget/function/u_ether.c size += sizeof(struct ethhdr) + dev->net->mtu + RX_EXTRA; mtu 279 drivers/usb/mtu3/mtu3.h struct mtu3 *mtu; mtu 304 drivers/usb/mtu3/mtu3.h struct mtu3 *mtu; mtu 428 drivers/usb/mtu3/mtu3.h int mtu3_config_ep(struct mtu3 *mtu, struct mtu3_ep *mep, mtu 430 drivers/usb/mtu3/mtu3.h void mtu3_deconfig_ep(struct mtu3 *mtu, struct mtu3_ep *mep); mtu 432 drivers/usb/mtu3/mtu3.h void mtu3_ep0_setup(struct mtu3 *mtu); mtu 433 drivers/usb/mtu3/mtu3.h void mtu3_start(struct mtu3 *mtu); mtu 434 drivers/usb/mtu3/mtu3.h void mtu3_stop(struct mtu3 *mtu); mtu 435 drivers/usb/mtu3/mtu3.h void mtu3_dev_on_off(struct mtu3 *mtu, int is_on); mtu 437 drivers/usb/mtu3/mtu3.h int mtu3_gadget_setup(struct mtu3 *mtu); mtu 438 drivers/usb/mtu3/mtu3.h void mtu3_gadget_cleanup(struct mtu3 *mtu); mtu 439 drivers/usb/mtu3/mtu3.h void mtu3_gadget_reset(struct mtu3 *mtu); mtu 440 drivers/usb/mtu3/mtu3.h void mtu3_gadget_suspend(struct mtu3 *mtu); mtu 441 drivers/usb/mtu3/mtu3.h void mtu3_gadget_resume(struct mtu3 *mtu); mtu 442 drivers/usb/mtu3/mtu3.h void mtu3_gadget_disconnect(struct mtu3 *mtu); mtu 444 drivers/usb/mtu3/mtu3.h irqreturn_t mtu3_ep0_isr(struct mtu3 *mtu); mtu 45 drivers/usb/mtu3/mtu3_core.c dev_dbg(mep->mtu->dev, "%s fifo:%#x/%#x, start_bit: %d\n", mtu 66 drivers/usb/mtu3/mtu3_core.c dev_dbg(mep->mtu->dev, "%s size:%#x/%#x, start_bit: %d\n", mtu 71 drivers/usb/mtu3/mtu3_core.c static inline void mtu3_ss_func_set(struct mtu3 *mtu, bool enable) mtu 75 drivers/usb/mtu3/mtu3_core.c mtu3_setbits(mtu->mac_base, U3D_USB3_CONFIG, USB3_EN); mtu 77 drivers/usb/mtu3/mtu3_core.c mtu3_clrbits(mtu->mac_base, U3D_USB3_CONFIG, USB3_EN); mtu 79 drivers/usb/mtu3/mtu3_core.c dev_dbg(mtu->dev, "USB3_EN = %d\n", !!enable); mtu 83 drivers/usb/mtu3/mtu3_core.c static inline void mtu3_hs_softconn_set(struct mtu3 *mtu, bool enable) mtu 86 drivers/usb/mtu3/mtu3_core.c mtu3_setbits(mtu->mac_base, U3D_POWER_MANAGEMENT, mtu 89 drivers/usb/mtu3/mtu3_core.c mtu3_clrbits(mtu->mac_base, U3D_POWER_MANAGEMENT, mtu 92 drivers/usb/mtu3/mtu3_core.c dev_dbg(mtu->dev, "SOFTCONN = %d\n", !!enable); mtu 96 drivers/usb/mtu3/mtu3_core.c static int mtu3_device_enable(struct mtu3 *mtu) mtu 98 drivers/usb/mtu3/mtu3_core.c void __iomem *ibase = mtu->ippc_base; mtu 103 drivers/usb/mtu3/mtu3_core.c if (mtu->is_u3_ip) { mtu 113 drivers/usb/mtu3/mtu3_core.c if (mtu->ssusb->dr_mode == USB_DR_MODE_OTG) { mtu 115 drivers/usb/mtu3/mtu3_core.c if (mtu->is_u3_ip) mtu 120 drivers/usb/mtu3/mtu3_core.c return ssusb_check_clocks(mtu->ssusb, check_clk); mtu 123 drivers/usb/mtu3/mtu3_core.c static void mtu3_device_disable(struct mtu3 *mtu) mtu 125 drivers/usb/mtu3/mtu3_core.c void __iomem *ibase = mtu->ippc_base; mtu 127 drivers/usb/mtu3/mtu3_core.c if (mtu->is_u3_ip) mtu 134 drivers/usb/mtu3/mtu3_core.c if (mtu->ssusb->dr_mode == USB_DR_MODE_OTG) mtu 141 drivers/usb/mtu3/mtu3_core.c static void mtu3_device_reset(struct mtu3 *mtu) mtu 143 drivers/usb/mtu3/mtu3_core.c void __iomem *ibase = mtu->ippc_base; mtu 151 drivers/usb/mtu3/mtu3_core.c static void mtu3_intr_disable(struct mtu3 *mtu) mtu 153 drivers/usb/mtu3/mtu3_core.c void __iomem *mbase = mtu->mac_base; mtu 161 drivers/usb/mtu3/mtu3_core.c static void mtu3_intr_status_clear(struct mtu3 *mtu) mtu 163 drivers/usb/mtu3/mtu3_core.c void __iomem *mbase = mtu->mac_base; mtu 176 drivers/usb/mtu3/mtu3_core.c static void mtu3_intr_enable(struct mtu3 *mtu) mtu 178 drivers/usb/mtu3/mtu3_core.c void __iomem *mbase = mtu->mac_base; mtu 189 drivers/usb/mtu3/mtu3_core.c if (mtu->is_u3_ip) { mtu 208 drivers/usb/mtu3/mtu3_core.c struct mtu3 *mtu = mep->mtu; mtu 211 drivers/usb/mtu3/mtu3_core.c mtu3_setbits(mtu->mac_base, U3D_EP_RST, rst_bit); mtu 212 drivers/usb/mtu3/mtu3_core.c mtu3_clrbits(mtu->mac_base, U3D_EP_RST, rst_bit); mtu 218 drivers/usb/mtu3/mtu3_core.c struct mtu3 *mtu = mep->mtu; mtu 219 drivers/usb/mtu3/mtu3_core.c void __iomem *mbase = mtu->mac_base; mtu 246 drivers/usb/mtu3/mtu3_core.c dev_dbg(mtu->dev, "%s: %s\n", mep->name, mtu 250 drivers/usb/mtu3/mtu3_core.c void mtu3_dev_on_off(struct mtu3 *mtu, int is_on) mtu 252 drivers/usb/mtu3/mtu3_core.c if (mtu->is_u3_ip && mtu->max_speed >= USB_SPEED_SUPER) mtu 253 drivers/usb/mtu3/mtu3_core.c mtu3_ss_func_set(mtu, is_on); mtu 255 drivers/usb/mtu3/mtu3_core.c mtu3_hs_softconn_set(mtu, is_on); mtu 257 drivers/usb/mtu3/mtu3_core.c dev_info(mtu->dev, "gadget (%s) pullup D%s\n", mtu 258 drivers/usb/mtu3/mtu3_core.c usb_speed_string(mtu->max_speed), is_on ? "+" : "-"); mtu 261 drivers/usb/mtu3/mtu3_core.c void mtu3_start(struct mtu3 *mtu) mtu 263 drivers/usb/mtu3/mtu3_core.c void __iomem *mbase = mtu->mac_base; mtu 265 drivers/usb/mtu3/mtu3_core.c dev_dbg(mtu->dev, "%s devctl 0x%x\n", __func__, mtu 268 drivers/usb/mtu3/mtu3_core.c mtu3_clrbits(mtu->ippc_base, U3D_SSUSB_IP_PW_CTRL2, SSUSB_IP_DEV_PDN); mtu 275 drivers/usb/mtu3/mtu3_core.c if (mtu->max_speed == USB_SPEED_FULL) mtu 279 drivers/usb/mtu3/mtu3_core.c mtu3_intr_enable(mtu); mtu 280 drivers/usb/mtu3/mtu3_core.c mtu->is_active = 1; mtu 282 drivers/usb/mtu3/mtu3_core.c if (mtu->softconnect) mtu 283 drivers/usb/mtu3/mtu3_core.c mtu3_dev_on_off(mtu, 1); mtu 286 drivers/usb/mtu3/mtu3_core.c void mtu3_stop(struct mtu3 *mtu) mtu 288 drivers/usb/mtu3/mtu3_core.c dev_dbg(mtu->dev, "%s\n", __func__); mtu 290 drivers/usb/mtu3/mtu3_core.c mtu3_intr_disable(mtu); mtu 291 drivers/usb/mtu3/mtu3_core.c mtu3_intr_status_clear(mtu); mtu 293 drivers/usb/mtu3/mtu3_core.c if (mtu->softconnect) mtu 294 drivers/usb/mtu3/mtu3_core.c mtu3_dev_on_off(mtu, 0); mtu 296 drivers/usb/mtu3/mtu3_core.c mtu->is_active = 0; mtu 297 drivers/usb/mtu3/mtu3_core.c mtu3_setbits(mtu->ippc_base, U3D_SSUSB_IP_PW_CTRL2, SSUSB_IP_DEV_PDN); mtu 301 drivers/usb/mtu3/mtu3_core.c int mtu3_config_ep(struct mtu3 *mtu, struct mtu3_ep *mep, mtu 304 drivers/usb/mtu3/mtu3_core.c void __iomem *mbase = mtu->mac_base; mtu 305 drivers/usb/mtu3/mtu3_core.c bool gen2cp = mtu->gen2cp; mtu 313 drivers/usb/mtu3/mtu3_core.c dev_err(mtu->dev, "alloc ep fifo failed(%d)\n", mep->maxp); mtu 317 drivers/usb/mtu3/mtu3_core.c dev_dbg(mtu->dev, "%s fifosz: %x(%x/%x)\n", __func__, fifo_sgsz, mtu 352 drivers/usb/mtu3/mtu3_core.c dev_dbg(mtu->dev, "U3D_TX%d CSR0:%#x, CSR1:%#x, CSR2:%#x\n", mtu 388 drivers/usb/mtu3/mtu3_core.c dev_dbg(mtu->dev, "U3D_RX%d CSR0:%#x, CSR1:%#x, CSR2:%#x\n", mtu 394 drivers/usb/mtu3/mtu3_core.c dev_dbg(mtu->dev, "csr0:%#x, csr1:%#x, csr2:%#x\n", csr0, csr1, csr2); mtu 395 drivers/usb/mtu3/mtu3_core.c dev_dbg(mtu->dev, "%s: %s, fifo-addr:%#x, fifo-size:%#x(%#x/%#x)\n", mtu 403 drivers/usb/mtu3/mtu3_core.c void mtu3_deconfig_ep(struct mtu3 *mtu, struct mtu3_ep *mep) mtu 405 drivers/usb/mtu3/mtu3_core.c void __iomem *mbase = mtu->mac_base; mtu 423 drivers/usb/mtu3/mtu3_core.c dev_dbg(mtu->dev, "%s: %s\n", __func__, mep->name); mtu 438 drivers/usb/mtu3/mtu3_core.c static void get_ep_fifo_config(struct mtu3 *mtu) mtu 444 drivers/usb/mtu3/mtu3_core.c if (mtu->is_u3_ip) { mtu 445 drivers/usb/mtu3/mtu3_core.c fifosize = mtu3_readl(mtu->mac_base, U3D_CAP_EPNTXFFSZ); mtu 446 drivers/usb/mtu3/mtu3_core.c tx_fifo = &mtu->tx_fifo; mtu 451 drivers/usb/mtu3/mtu3_core.c fifosize = mtu3_readl(mtu->mac_base, U3D_CAP_EPNRXFFSZ); mtu 452 drivers/usb/mtu3/mtu3_core.c rx_fifo = &mtu->rx_fifo; mtu 456 drivers/usb/mtu3/mtu3_core.c mtu->slot = MTU3_U3_IP_SLOT_DEFAULT; mtu 458 drivers/usb/mtu3/mtu3_core.c fifosize = mtu3_readl(mtu->mac_base, U3D_CAP_EPNTXFFSZ); mtu 459 drivers/usb/mtu3/mtu3_core.c tx_fifo = &mtu->tx_fifo; mtu 464 drivers/usb/mtu3/mtu3_core.c rx_fifo = &mtu->rx_fifo; mtu 469 drivers/usb/mtu3/mtu3_core.c mtu->slot = MTU3_U2_IP_SLOT_DEFAULT; mtu 472 drivers/usb/mtu3/mtu3_core.c dev_dbg(mtu->dev, "%s, TX: base-%d, limit-%d; RX: base-%d, limit-%d\n", mtu 477 drivers/usb/mtu3/mtu3_core.c void mtu3_ep0_setup(struct mtu3 *mtu) mtu 479 drivers/usb/mtu3/mtu3_core.c u32 maxpacket = mtu->g.ep0->maxpacket; mtu 482 drivers/usb/mtu3/mtu3_core.c dev_dbg(mtu->dev, "%s maxpacket: %d\n", __func__, maxpacket); mtu 484 drivers/usb/mtu3/mtu3_core.c csr = mtu3_readl(mtu->mac_base, U3D_EP0CSR); mtu 488 drivers/usb/mtu3/mtu3_core.c mtu3_writel(mtu->mac_base, U3D_EP0CSR, csr); mtu 491 drivers/usb/mtu3/mtu3_core.c mtu3_writel(mtu->mac_base, U3D_EPIESR, EP0ISR | SETUPENDISR); mtu 494 drivers/usb/mtu3/mtu3_core.c static int mtu3_mem_alloc(struct mtu3 *mtu) mtu 496 drivers/usb/mtu3/mtu3_core.c void __iomem *mbase = mtu->mac_base; mtu 507 drivers/usb/mtu3/mtu3_core.c dev_info(mtu->dev, "fifosz/epnum: Tx=%#x/%d, Rx=%#x/%d\n", mtu 512 drivers/usb/mtu3/mtu3_core.c mtu->num_eps = min(in_ep_num, out_ep_num) + 1; mtu 513 drivers/usb/mtu3/mtu3_core.c ep_array = kcalloc(mtu->num_eps * 2, sizeof(*ep_array), GFP_KERNEL); mtu 517 drivers/usb/mtu3/mtu3_core.c mtu->ep_array = ep_array; mtu 518 drivers/usb/mtu3/mtu3_core.c mtu->in_eps = ep_array; mtu 519 drivers/usb/mtu3/mtu3_core.c mtu->out_eps = &ep_array[mtu->num_eps]; mtu 521 drivers/usb/mtu3/mtu3_core.c mtu->ep0 = mtu->in_eps; mtu 522 drivers/usb/mtu3/mtu3_core.c mtu->ep0->mtu = mtu; mtu 523 drivers/usb/mtu3/mtu3_core.c mtu->ep0->epnum = 0; mtu 525 drivers/usb/mtu3/mtu3_core.c for (i = 1; i < mtu->num_eps; i++) { mtu 526 drivers/usb/mtu3/mtu3_core.c struct mtu3_ep *mep = mtu->in_eps + i; mtu 528 drivers/usb/mtu3/mtu3_core.c mep->fifo = &mtu->tx_fifo; mtu 529 drivers/usb/mtu3/mtu3_core.c mep = mtu->out_eps + i; mtu 530 drivers/usb/mtu3/mtu3_core.c mep->fifo = &mtu->rx_fifo; mtu 533 drivers/usb/mtu3/mtu3_core.c get_ep_fifo_config(mtu); mtu 535 drivers/usb/mtu3/mtu3_core.c ret = mtu3_qmu_init(mtu); mtu 537 drivers/usb/mtu3/mtu3_core.c kfree(mtu->ep_array); mtu 542 drivers/usb/mtu3/mtu3_core.c static void mtu3_mem_free(struct mtu3 *mtu) mtu 544 drivers/usb/mtu3/mtu3_core.c mtu3_qmu_exit(mtu); mtu 545 drivers/usb/mtu3/mtu3_core.c kfree(mtu->ep_array); mtu 548 drivers/usb/mtu3/mtu3_core.c static void mtu3_set_speed(struct mtu3 *mtu) mtu 550 drivers/usb/mtu3/mtu3_core.c void __iomem *mbase = mtu->mac_base; mtu 552 drivers/usb/mtu3/mtu3_core.c if (!mtu->is_u3_ip && (mtu->max_speed > USB_SPEED_HIGH)) mtu 553 drivers/usb/mtu3/mtu3_core.c mtu->max_speed = USB_SPEED_HIGH; mtu 555 drivers/usb/mtu3/mtu3_core.c if (mtu->max_speed == USB_SPEED_FULL) { mtu 560 drivers/usb/mtu3/mtu3_core.c } else if (mtu->max_speed == USB_SPEED_HIGH) { mtu 564 drivers/usb/mtu3/mtu3_core.c } else if (mtu->max_speed == USB_SPEED_SUPER) { mtu 565 drivers/usb/mtu3/mtu3_core.c mtu3_clrbits(mtu->ippc_base, SSUSB_U3_CTRL(0), mtu 569 drivers/usb/mtu3/mtu3_core.c dev_info(mtu->dev, "max_speed: %s\n", mtu 570 drivers/usb/mtu3/mtu3_core.c usb_speed_string(mtu->max_speed)); mtu 573 drivers/usb/mtu3/mtu3_core.c static void mtu3_regs_init(struct mtu3 *mtu) mtu 576 drivers/usb/mtu3/mtu3_core.c void __iomem *mbase = mtu->mac_base; mtu 579 drivers/usb/mtu3/mtu3_core.c mtu3_intr_disable(mtu); mtu 580 drivers/usb/mtu3/mtu3_core.c mtu3_intr_status_clear(mtu); mtu 582 drivers/usb/mtu3/mtu3_core.c if (mtu->is_u3_ip) { mtu 597 drivers/usb/mtu3/mtu3_core.c mtu3_set_speed(mtu); mtu 609 drivers/usb/mtu3/mtu3_core.c if (mtu->gen2cp) mtu 613 drivers/usb/mtu3/mtu3_core.c static irqreturn_t mtu3_link_isr(struct mtu3 *mtu) mtu 615 drivers/usb/mtu3/mtu3_core.c void __iomem *mbase = mtu->mac_base; mtu 624 drivers/usb/mtu3/mtu3_core.c dev_dbg(mtu->dev, "=== LINK[%x] ===\n", link); mtu 660 drivers/usb/mtu3/mtu3_core.c dev_dbg(mtu->dev, "%s: %s\n", __func__, usb_speed_string(udev_speed)); mtu 661 drivers/usb/mtu3/mtu3_core.c mtu3_dbg_trace(mtu->dev, "link speed %s", mtu 664 drivers/usb/mtu3/mtu3_core.c mtu->g.speed = udev_speed; mtu 665 drivers/usb/mtu3/mtu3_core.c mtu->g.ep0->maxpacket = maxpkt; mtu 666 drivers/usb/mtu3/mtu3_core.c mtu->ep0_state = MU3D_EP0_STATE_SETUP; mtu 669 drivers/usb/mtu3/mtu3_core.c mtu3_gadget_disconnect(mtu); mtu 671 drivers/usb/mtu3/mtu3_core.c mtu3_ep0_setup(mtu); mtu 676 drivers/usb/mtu3/mtu3_core.c static irqreturn_t mtu3_u3_ltssm_isr(struct mtu3 *mtu) mtu 678 drivers/usb/mtu3/mtu3_core.c void __iomem *mbase = mtu->mac_base; mtu 684 drivers/usb/mtu3/mtu3_core.c dev_dbg(mtu->dev, "=== LTSSM[%x] ===\n", ltssm); mtu 688 drivers/usb/mtu3/mtu3_core.c mtu3_gadget_reset(mtu); mtu 691 drivers/usb/mtu3/mtu3_core.c mtu3_ss_func_set(mtu, false); mtu 692 drivers/usb/mtu3/mtu3_core.c mtu3_gadget_reset(mtu); mtu 696 drivers/usb/mtu3/mtu3_core.c mtu3_ss_func_set(mtu, true); mtu 699 drivers/usb/mtu3/mtu3_core.c mtu3_gadget_resume(mtu); mtu 702 drivers/usb/mtu3/mtu3_core.c mtu3_gadget_suspend(mtu); mtu 707 drivers/usb/mtu3/mtu3_core.c static irqreturn_t mtu3_u2_common_isr(struct mtu3 *mtu) mtu 709 drivers/usb/mtu3/mtu3_core.c void __iomem *mbase = mtu->mac_base; mtu 715 drivers/usb/mtu3/mtu3_core.c dev_dbg(mtu->dev, "=== U2COMM[%x] ===\n", u2comm); mtu 719 drivers/usb/mtu3/mtu3_core.c mtu3_gadget_suspend(mtu); mtu 722 drivers/usb/mtu3/mtu3_core.c mtu3_gadget_resume(mtu); mtu 725 drivers/usb/mtu3/mtu3_core.c mtu3_gadget_reset(mtu); mtu 732 drivers/usb/mtu3/mtu3_core.c struct mtu3 *mtu = (struct mtu3 *)data; mtu 736 drivers/usb/mtu3/mtu3_core.c spin_lock_irqsave(&mtu->lock, flags); mtu 739 drivers/usb/mtu3/mtu3_core.c level1 = mtu3_readl(mtu->mac_base, U3D_LV1ISR); mtu 740 drivers/usb/mtu3/mtu3_core.c level1 &= mtu3_readl(mtu->mac_base, U3D_LV1IER); mtu 743 drivers/usb/mtu3/mtu3_core.c mtu3_link_isr(mtu); mtu 746 drivers/usb/mtu3/mtu3_core.c mtu3_u2_common_isr(mtu); mtu 749 drivers/usb/mtu3/mtu3_core.c mtu3_u3_ltssm_isr(mtu); mtu 752 drivers/usb/mtu3/mtu3_core.c mtu3_ep0_isr(mtu); mtu 755 drivers/usb/mtu3/mtu3_core.c mtu3_qmu_isr(mtu); mtu 757 drivers/usb/mtu3/mtu3_core.c spin_unlock_irqrestore(&mtu->lock, flags); mtu 762 drivers/usb/mtu3/mtu3_core.c static int mtu3_hw_init(struct mtu3 *mtu) mtu 767 drivers/usb/mtu3/mtu3_core.c value = mtu3_readl(mtu->ippc_base, U3D_SSUSB_IP_TRUNK_VERS); mtu 768 drivers/usb/mtu3/mtu3_core.c mtu->hw_version = IP_TRUNK_VERS(value); mtu 769 drivers/usb/mtu3/mtu3_core.c mtu->gen2cp = !!(mtu->hw_version >= MTU3_TRUNK_VERS_1003); mtu 771 drivers/usb/mtu3/mtu3_core.c value = mtu3_readl(mtu->ippc_base, U3D_SSUSB_IP_DEV_CAP); mtu 772 drivers/usb/mtu3/mtu3_core.c mtu->is_u3_ip = !!SSUSB_IP_DEV_U3_PORT_NUM(value); mtu 774 drivers/usb/mtu3/mtu3_core.c dev_info(mtu->dev, "IP version 0x%x(%s IP)\n", mtu->hw_version, mtu 775 drivers/usb/mtu3/mtu3_core.c mtu->is_u3_ip ? "U3" : "U2"); mtu 777 drivers/usb/mtu3/mtu3_core.c mtu3_device_reset(mtu); mtu 779 drivers/usb/mtu3/mtu3_core.c ret = mtu3_device_enable(mtu); mtu 781 drivers/usb/mtu3/mtu3_core.c dev_err(mtu->dev, "device enable failed %d\n", ret); mtu 785 drivers/usb/mtu3/mtu3_core.c ret = mtu3_mem_alloc(mtu); mtu 789 drivers/usb/mtu3/mtu3_core.c mtu3_regs_init(mtu); mtu 794 drivers/usb/mtu3/mtu3_core.c static void mtu3_hw_exit(struct mtu3 *mtu) mtu 796 drivers/usb/mtu3/mtu3_core.c mtu3_device_disable(mtu); mtu 797 drivers/usb/mtu3/mtu3_core.c mtu3_mem_free(mtu); mtu 804 drivers/usb/mtu3/mtu3_core.c static int mtu3_set_dma_mask(struct mtu3 *mtu) mtu 806 drivers/usb/mtu3/mtu3_core.c struct device *dev = mtu->dev; mtu 811 drivers/usb/mtu3/mtu3_core.c value = mtu3_readl(mtu->mac_base, U3D_MISC_CTRL); mtu 830 drivers/usb/mtu3/mtu3_core.c struct mtu3 *mtu = NULL; mtu 834 drivers/usb/mtu3/mtu3_core.c mtu = devm_kzalloc(dev, sizeof(struct mtu3), GFP_KERNEL); mtu 835 drivers/usb/mtu3/mtu3_core.c if (mtu == NULL) mtu 838 drivers/usb/mtu3/mtu3_core.c mtu->irq = platform_get_irq(pdev, 0); mtu 839 drivers/usb/mtu3/mtu3_core.c if (mtu->irq < 0) mtu 840 drivers/usb/mtu3/mtu3_core.c return mtu->irq; mtu 841 drivers/usb/mtu3/mtu3_core.c dev_info(dev, "irq %d\n", mtu->irq); mtu 844 drivers/usb/mtu3/mtu3_core.c mtu->mac_base = devm_ioremap_resource(dev, res); mtu 845 drivers/usb/mtu3/mtu3_core.c if (IS_ERR(mtu->mac_base)) { mtu 847 drivers/usb/mtu3/mtu3_core.c return PTR_ERR(mtu->mac_base); mtu 850 drivers/usb/mtu3/mtu3_core.c spin_lock_init(&mtu->lock); mtu 851 drivers/usb/mtu3/mtu3_core.c mtu->dev = dev; mtu 852 drivers/usb/mtu3/mtu3_core.c mtu->ippc_base = ssusb->ippc_base; mtu 853 drivers/usb/mtu3/mtu3_core.c ssusb->mac_base = mtu->mac_base; mtu 854 drivers/usb/mtu3/mtu3_core.c ssusb->u3d = mtu; mtu 855 drivers/usb/mtu3/mtu3_core.c mtu->ssusb = ssusb; mtu 856 drivers/usb/mtu3/mtu3_core.c mtu->max_speed = usb_get_maximum_speed(dev); mtu 859 drivers/usb/mtu3/mtu3_core.c switch (mtu->max_speed) { mtu 867 drivers/usb/mtu3/mtu3_core.c usb_speed_string(mtu->max_speed)); mtu 871 drivers/usb/mtu3/mtu3_core.c mtu->max_speed = USB_SPEED_SUPER_PLUS; mtu 876 drivers/usb/mtu3/mtu3_core.c mtu->mac_base, mtu->ippc_base); mtu 878 drivers/usb/mtu3/mtu3_core.c ret = mtu3_hw_init(mtu); mtu 884 drivers/usb/mtu3/mtu3_core.c ret = mtu3_set_dma_mask(mtu); mtu 890 drivers/usb/mtu3/mtu3_core.c ret = devm_request_irq(dev, mtu->irq, mtu3_irq, 0, dev_name(dev), mtu); mtu 892 drivers/usb/mtu3/mtu3_core.c dev_err(dev, "request irq %d failed!\n", mtu->irq); mtu 898 drivers/usb/mtu3/mtu3_core.c ret = mtu3_gadget_setup(mtu); mtu 905 drivers/usb/mtu3/mtu3_core.c if (mtu->ssusb->dr_mode == USB_DR_MODE_OTG) mtu 906 drivers/usb/mtu3/mtu3_core.c mtu3_stop(mtu); mtu 919 drivers/usb/mtu3/mtu3_core.c mtu3_hw_exit(mtu); mtu 928 drivers/usb/mtu3/mtu3_core.c struct mtu3 *mtu = ssusb->u3d; mtu 930 drivers/usb/mtu3/mtu3_core.c mtu3_gadget_cleanup(mtu); mtu 932 drivers/usb/mtu3/mtu3_core.c mtu3_hw_exit(mtu); mtu 80 drivers/usb/mtu3/mtu3_debugfs.c struct mtu3 *mtu = sf->private; mtu 81 drivers/usb/mtu3/mtu3_debugfs.c void __iomem *mbase = mtu->mac_base; mtu 92 drivers/usb/mtu3/mtu3_debugfs.c struct mtu3 *mtu = sf->private; mtu 98 drivers/usb/mtu3/mtu3_debugfs.c spin_lock_irqsave(&mtu->lock, flags); mtu 100 drivers/usb/mtu3/mtu3_debugfs.c for (i = 0; i < mtu->num_eps; i++) { mtu 101 drivers/usb/mtu3/mtu3_debugfs.c mep = mtu->in_eps + i; mtu 107 drivers/usb/mtu3/mtu3_debugfs.c mep = mtu->out_eps + i; mtu 115 drivers/usb/mtu3/mtu3_debugfs.c spin_unlock_irqrestore(&mtu->lock, flags); mtu 123 drivers/usb/mtu3/mtu3_debugfs.c static void mtu3_debugfs_regset(struct mtu3 *mtu, void __iomem *base, mtu 130 drivers/usb/mtu3/mtu3_debugfs.c mregs = devm_kzalloc(mtu->dev, sizeof(*regset), GFP_KERNEL); mtu 143 drivers/usb/mtu3/mtu3_debugfs.c static void mtu3_debugfs_ep_regset(struct mtu3 *mtu, struct mtu3_ep *mep, mtu 150 drivers/usb/mtu3/mtu3_debugfs.c regs = devm_kcalloc(mtu->dev, 7, sizeof(*regs), GFP_KERNEL); mtu 169 drivers/usb/mtu3/mtu3_debugfs.c mtu3_debugfs_regset(mtu, mtu->mac_base, regs, 7, "ep-regs", parent); mtu 175 drivers/usb/mtu3/mtu3_debugfs.c struct mtu3 *mtu = mep->mtu; mtu 178 drivers/usb/mtu3/mtu3_debugfs.c spin_lock_irqsave(&mtu->lock, flags); mtu 181 drivers/usb/mtu3/mtu3_debugfs.c spin_unlock_irqrestore(&mtu->lock, flags); mtu 189 drivers/usb/mtu3/mtu3_debugfs.c struct mtu3 *mtu = mep->mtu; mtu 192 drivers/usb/mtu3/mtu3_debugfs.c spin_lock_irqsave(&mtu->lock, flags); mtu 195 drivers/usb/mtu3/mtu3_debugfs.c spin_unlock_irqrestore(&mtu->lock, flags); mtu 203 drivers/usb/mtu3/mtu3_debugfs.c struct mtu3 *mtu = mep->mtu; mtu 208 drivers/usb/mtu3/mtu3_debugfs.c spin_lock_irqsave(&mtu->lock, flags); mtu 213 drivers/usb/mtu3/mtu3_debugfs.c spin_unlock_irqrestore(&mtu->lock, flags); mtu 221 drivers/usb/mtu3/mtu3_debugfs.c struct mtu3 *mtu = mep->mtu; mtu 228 drivers/usb/mtu3/mtu3_debugfs.c spin_lock_irqsave(&mtu->lock, flags); mtu 244 drivers/usb/mtu3/mtu3_debugfs.c spin_unlock_irqrestore(&mtu->lock, flags); mtu 291 drivers/usb/mtu3/mtu3_debugfs.c struct mtu3 *mtu = sf->private; mtu 303 drivers/usb/mtu3/mtu3_debugfs.c mtu3_readl(mtu->ippc_base, (u32)regs->offset)); mtu 318 drivers/usb/mtu3/mtu3_debugfs.c struct mtu3 *mtu = sf->private; mtu 336 drivers/usb/mtu3/mtu3_debugfs.c mtu3_writel(mtu->ippc_base, (u32)regs->offset, val); mtu 349 drivers/usb/mtu3/mtu3_debugfs.c static void mtu3_debugfs_create_prb_files(struct mtu3 *mtu) mtu 351 drivers/usb/mtu3/mtu3_debugfs.c struct ssusb_mtk *ssusb = mtu->ssusb; mtu 361 drivers/usb/mtu3/mtu3_debugfs.c mtu, &mtu3_probe_fops); mtu 364 drivers/usb/mtu3/mtu3_debugfs.c mtu3_debugfs_regset(mtu, mtu->ippc_base, mtu3_prb_regs, mtu 376 drivers/usb/mtu3/mtu3_debugfs.c mtu3_debugfs_ep_regset(mep->mtu, mep, dir_ep); mtu 386 drivers/usb/mtu3/mtu3_debugfs.c static void mtu3_debugfs_create_ep_dirs(struct mtu3 *mtu) mtu 388 drivers/usb/mtu3/mtu3_debugfs.c struct ssusb_mtk *ssusb = mtu->ssusb; mtu 394 drivers/usb/mtu3/mtu3_debugfs.c for (i = 1; i < mtu->num_eps; i++) { mtu 395 drivers/usb/mtu3/mtu3_debugfs.c mtu3_debugfs_create_ep_dir(mtu->in_eps + i, dir_eps); mtu 396 drivers/usb/mtu3/mtu3_debugfs.c mtu3_debugfs_create_ep_dir(mtu->out_eps + i, dir_eps); mtu 402 drivers/usb/mtu3/mtu3_debugfs.c struct mtu3 *mtu = ssusb->u3d; mtu 407 drivers/usb/mtu3/mtu3_debugfs.c mtu3_debugfs_regset(mtu, mtu->ippc_base, mtu 411 drivers/usb/mtu3/mtu3_debugfs.c mtu3_debugfs_regset(mtu, mtu->mac_base, mtu 415 drivers/usb/mtu3/mtu3_debugfs.c mtu3_debugfs_regset(mtu, mtu->mac_base, mtu 419 drivers/usb/mtu3/mtu3_debugfs.c mtu3_debugfs_create_ep_dirs(mtu); mtu 421 drivers/usb/mtu3/mtu3_debugfs.c mtu3_debugfs_create_prb_files(mtu); mtu 424 drivers/usb/mtu3/mtu3_debugfs.c mtu, &mtu3_link_state_fops); mtu 426 drivers/usb/mtu3/mtu3_debugfs.c mtu, &mtu3_ep_used_fops); mtu 159 drivers/usb/mtu3/mtu3_dr.c struct mtu3 *mtu = ssusb->u3d; mtu 176 drivers/usb/mtu3/mtu3_dr.c mtu3_stop(mtu); mtu 182 drivers/usb/mtu3/mtu3_dr.c mtu3_start(mtu); mtu 15 drivers/usb/mtu3/mtu3_gadget.c __releases(mep->mtu->lock) mtu 16 drivers/usb/mtu3/mtu3_gadget.c __acquires(mep->mtu->lock) mtu 19 drivers/usb/mtu3/mtu3_gadget.c struct mtu3 *mtu; mtu 27 drivers/usb/mtu3/mtu3_gadget.c mtu = mreq->mtu; mtu 31 drivers/usb/mtu3/mtu3_gadget.c spin_unlock(&mtu->lock); mtu 35 drivers/usb/mtu3/mtu3_gadget.c usb_gadget_unmap_request(&mtu->g, req, mep->is_in); mtu 37 drivers/usb/mtu3/mtu3_gadget.c dev_dbg(mtu->dev, "%s complete req: %p, sts %d, %d/%d\n", mep->name, mtu 42 drivers/usb/mtu3/mtu3_gadget.c spin_lock(&mtu->lock); mtu 54 drivers/usb/mtu3/mtu3_gadget.c dev_dbg(mep->mtu->dev, "abort %s's req: sts %d\n", mep->name, status); mtu 71 drivers/usb/mtu3/mtu3_gadget.c struct mtu3 *mtu = mep->mtu; mtu 84 drivers/usb/mtu3/mtu3_gadget.c switch (mtu->g.speed) { mtu 110 drivers/usb/mtu3/mtu3_gadget.c dev_dbg(mtu->dev, "%s maxp:%d, interval:%d, burst:%d, mult:%d\n", mtu 118 drivers/usb/mtu3/mtu3_gadget.c mep->slot = usb_endpoint_xfer_int(desc) ? 0 : mtu->slot; mtu 120 drivers/usb/mtu3/mtu3_gadget.c ret = mtu3_config_ep(mtu, mep, interval, burst, mult); mtu 126 drivers/usb/mtu3/mtu3_gadget.c mtu3_deconfig_ep(mtu, mep); mtu 137 drivers/usb/mtu3/mtu3_gadget.c struct mtu3 *mtu = mep->mtu; mtu 143 drivers/usb/mtu3/mtu3_gadget.c mtu3_deconfig_ep(mtu, mep); mtu 159 drivers/usb/mtu3/mtu3_gadget.c struct mtu3 *mtu; mtu 173 drivers/usb/mtu3/mtu3_gadget.c mtu = mep->mtu; mtu 182 drivers/usb/mtu3/mtu3_gadget.c dev_dbg(mtu->dev, "%s %s\n", __func__, ep->name); mtu 185 drivers/usb/mtu3/mtu3_gadget.c dev_WARN_ONCE(mtu->dev, true, "%s is already enabled\n", mtu 190 drivers/usb/mtu3/mtu3_gadget.c spin_lock_irqsave(&mtu->lock, flags); mtu 201 drivers/usb/mtu3/mtu3_gadget.c mtu->active_ep++; mtu 204 drivers/usb/mtu3/mtu3_gadget.c spin_unlock_irqrestore(&mtu->lock, flags); mtu 206 drivers/usb/mtu3/mtu3_gadget.c dev_dbg(mtu->dev, "%s active_ep=%d\n", __func__, mtu->active_ep); mtu 215 drivers/usb/mtu3/mtu3_gadget.c struct mtu3 *mtu = mep->mtu; mtu 218 drivers/usb/mtu3/mtu3_gadget.c dev_dbg(mtu->dev, "%s %s\n", __func__, mep->name); mtu 222 drivers/usb/mtu3/mtu3_gadget.c dev_warn(mtu->dev, "%s is already disabled\n", mep->name); mtu 226 drivers/usb/mtu3/mtu3_gadget.c spin_lock_irqsave(&mtu->lock, flags); mtu 229 drivers/usb/mtu3/mtu3_gadget.c mtu->active_ep--; mtu 230 drivers/usb/mtu3/mtu3_gadget.c spin_unlock_irqrestore(&(mtu->lock), flags); mtu 232 drivers/usb/mtu3/mtu3_gadget.c dev_dbg(mtu->dev, "%s active_ep=%d, mtu3 is_active=%d\n", mtu 233 drivers/usb/mtu3/mtu3_gadget.c __func__, mtu->active_ep, mtu->is_active); mtu 268 drivers/usb/mtu3/mtu3_gadget.c struct mtu3 *mtu; mtu 279 drivers/usb/mtu3/mtu3_gadget.c mtu = mep->mtu; mtu 281 drivers/usb/mtu3/mtu3_gadget.c mreq->mtu = mtu; mtu 286 drivers/usb/mtu3/mtu3_gadget.c dev_dbg(mtu->dev, "%s %s EP%d(%s), req=%p, maxp=%d, len#%d\n", mtu 291 drivers/usb/mtu3/mtu3_gadget.c (mtu->gen2cp && req->length > GPD_BUF_SIZE_EL)) { mtu 292 drivers/usb/mtu3/mtu3_gadget.c dev_warn(mtu->dev, mtu 294 drivers/usb/mtu3/mtu3_gadget.c mtu->gen2cp ? GPD_BUF_SIZE_EL : GPD_BUF_SIZE, mtu 301 drivers/usb/mtu3/mtu3_gadget.c dev_dbg(mtu->dev, "req=%p queued to %s while it's disabled\n", mtu 309 drivers/usb/mtu3/mtu3_gadget.c ret = usb_gadget_map_request(&mtu->g, req, mep->is_in); mtu 311 drivers/usb/mtu3/mtu3_gadget.c dev_err(mtu->dev, "dma mapping failed\n"); mtu 315 drivers/usb/mtu3/mtu3_gadget.c spin_lock_irqsave(&mtu->lock, flags); mtu 327 drivers/usb/mtu3/mtu3_gadget.c spin_unlock_irqrestore(&mtu->lock, flags); mtu 340 drivers/usb/mtu3/mtu3_gadget.c struct mtu3 *mtu = mep->mtu; mtu 345 drivers/usb/mtu3/mtu3_gadget.c dev_dbg(mtu->dev, "%s : req=%p\n", __func__, req); mtu 348 drivers/usb/mtu3/mtu3_gadget.c spin_lock_irqsave(&mtu->lock, flags); mtu 355 drivers/usb/mtu3/mtu3_gadget.c dev_dbg(mtu->dev, "req=%p not queued to %s\n", req, ep->name); mtu 365 drivers/usb/mtu3/mtu3_gadget.c spin_unlock_irqrestore(&mtu->lock, flags); mtu 377 drivers/usb/mtu3/mtu3_gadget.c struct mtu3 *mtu = mep->mtu; mtu 385 drivers/usb/mtu3/mtu3_gadget.c dev_dbg(mtu->dev, "%s : %s...", __func__, ep->name); mtu 387 drivers/usb/mtu3/mtu3_gadget.c spin_lock_irqsave(&mtu->lock, flags); mtu 402 drivers/usb/mtu3/mtu3_gadget.c dev_dbg(mtu->dev, "req in progress, cannot halt %s\n", mtu 411 drivers/usb/mtu3/mtu3_gadget.c dev_dbg(mtu->dev, "%s %s stall\n", ep->name, value ? "set" : "clear"); mtu 416 drivers/usb/mtu3/mtu3_gadget.c spin_unlock_irqrestore(&mtu->lock, flags); mtu 448 drivers/usb/mtu3/mtu3_gadget.c struct mtu3 *mtu = gadget_to_mtu3(gadget); mtu 450 drivers/usb/mtu3/mtu3_gadget.c return (int)mtu3_readl(mtu->mac_base, U3D_USB20_FRAME_NUM); mtu 455 drivers/usb/mtu3/mtu3_gadget.c struct mtu3 *mtu = gadget_to_mtu3(gadget); mtu 458 drivers/usb/mtu3/mtu3_gadget.c dev_dbg(mtu->dev, "%s\n", __func__); mtu 461 drivers/usb/mtu3/mtu3_gadget.c if (!mtu->may_wakeup) mtu 464 drivers/usb/mtu3/mtu3_gadget.c spin_lock_irqsave(&mtu->lock, flags); mtu 465 drivers/usb/mtu3/mtu3_gadget.c if (mtu->g.speed >= USB_SPEED_SUPER) { mtu 466 drivers/usb/mtu3/mtu3_gadget.c mtu3_setbits(mtu->mac_base, U3D_LINK_POWER_CONTROL, UX_EXIT); mtu 468 drivers/usb/mtu3/mtu3_gadget.c mtu3_setbits(mtu->mac_base, U3D_POWER_MANAGEMENT, RESUME); mtu 469 drivers/usb/mtu3/mtu3_gadget.c spin_unlock_irqrestore(&mtu->lock, flags); mtu 471 drivers/usb/mtu3/mtu3_gadget.c spin_lock_irqsave(&mtu->lock, flags); mtu 472 drivers/usb/mtu3/mtu3_gadget.c mtu3_clrbits(mtu->mac_base, U3D_POWER_MANAGEMENT, RESUME); mtu 474 drivers/usb/mtu3/mtu3_gadget.c spin_unlock_irqrestore(&mtu->lock, flags); mtu 481 drivers/usb/mtu3/mtu3_gadget.c struct mtu3 *mtu = gadget_to_mtu3(gadget); mtu 483 drivers/usb/mtu3/mtu3_gadget.c mtu->is_self_powered = !!is_selfpowered; mtu 489 drivers/usb/mtu3/mtu3_gadget.c struct mtu3 *mtu = gadget_to_mtu3(gadget); mtu 492 drivers/usb/mtu3/mtu3_gadget.c dev_dbg(mtu->dev, "%s (%s) for %sactive device\n", __func__, mtu 493 drivers/usb/mtu3/mtu3_gadget.c is_on ? "on" : "off", mtu->is_active ? "" : "in"); mtu 496 drivers/usb/mtu3/mtu3_gadget.c spin_lock_irqsave(&mtu->lock, flags); mtu 499 drivers/usb/mtu3/mtu3_gadget.c if (!mtu->is_active) { mtu 501 drivers/usb/mtu3/mtu3_gadget.c mtu->softconnect = is_on; mtu 502 drivers/usb/mtu3/mtu3_gadget.c } else if (is_on != mtu->softconnect) { mtu 503 drivers/usb/mtu3/mtu3_gadget.c mtu->softconnect = is_on; mtu 504 drivers/usb/mtu3/mtu3_gadget.c mtu3_dev_on_off(mtu, is_on); mtu 507 drivers/usb/mtu3/mtu3_gadget.c spin_unlock_irqrestore(&mtu->lock, flags); mtu 515 drivers/usb/mtu3/mtu3_gadget.c struct mtu3 *mtu = gadget_to_mtu3(gadget); mtu 518 drivers/usb/mtu3/mtu3_gadget.c if (mtu->gadget_driver) { mtu 519 drivers/usb/mtu3/mtu3_gadget.c dev_err(mtu->dev, "%s is already bound to %s\n", mtu 520 drivers/usb/mtu3/mtu3_gadget.c mtu->g.name, mtu->gadget_driver->driver.name); mtu 524 drivers/usb/mtu3/mtu3_gadget.c dev_dbg(mtu->dev, "bind driver %s\n", driver->function); mtu 526 drivers/usb/mtu3/mtu3_gadget.c spin_lock_irqsave(&mtu->lock, flags); mtu 528 drivers/usb/mtu3/mtu3_gadget.c mtu->softconnect = 0; mtu 529 drivers/usb/mtu3/mtu3_gadget.c mtu->gadget_driver = driver; mtu 531 drivers/usb/mtu3/mtu3_gadget.c if (mtu->ssusb->dr_mode == USB_DR_MODE_PERIPHERAL) mtu 532 drivers/usb/mtu3/mtu3_gadget.c mtu3_start(mtu); mtu 534 drivers/usb/mtu3/mtu3_gadget.c spin_unlock_irqrestore(&mtu->lock, flags); mtu 539 drivers/usb/mtu3/mtu3_gadget.c static void stop_activity(struct mtu3 *mtu) mtu 541 drivers/usb/mtu3/mtu3_gadget.c struct usb_gadget_driver *driver = mtu->gadget_driver; mtu 545 drivers/usb/mtu3/mtu3_gadget.c if (mtu->g.speed == USB_SPEED_UNKNOWN) mtu 548 drivers/usb/mtu3/mtu3_gadget.c mtu->g.speed = USB_SPEED_UNKNOWN; mtu 551 drivers/usb/mtu3/mtu3_gadget.c if (mtu->softconnect) { mtu 552 drivers/usb/mtu3/mtu3_gadget.c mtu->softconnect = 0; mtu 553 drivers/usb/mtu3/mtu3_gadget.c mtu3_dev_on_off(mtu, 0); mtu 560 drivers/usb/mtu3/mtu3_gadget.c nuke(mtu->ep0, -ESHUTDOWN); mtu 561 drivers/usb/mtu3/mtu3_gadget.c for (i = 1; i < mtu->num_eps; i++) { mtu 562 drivers/usb/mtu3/mtu3_gadget.c nuke(mtu->in_eps + i, -ESHUTDOWN); mtu 563 drivers/usb/mtu3/mtu3_gadget.c nuke(mtu->out_eps + i, -ESHUTDOWN); mtu 567 drivers/usb/mtu3/mtu3_gadget.c spin_unlock(&mtu->lock); mtu 568 drivers/usb/mtu3/mtu3_gadget.c driver->disconnect(&mtu->g); mtu 569 drivers/usb/mtu3/mtu3_gadget.c spin_lock(&mtu->lock); mtu 575 drivers/usb/mtu3/mtu3_gadget.c struct mtu3 *mtu = gadget_to_mtu3(g); mtu 578 drivers/usb/mtu3/mtu3_gadget.c dev_dbg(mtu->dev, "%s\n", __func__); mtu 580 drivers/usb/mtu3/mtu3_gadget.c spin_lock_irqsave(&mtu->lock, flags); mtu 582 drivers/usb/mtu3/mtu3_gadget.c stop_activity(mtu); mtu 583 drivers/usb/mtu3/mtu3_gadget.c mtu->gadget_driver = NULL; mtu 585 drivers/usb/mtu3/mtu3_gadget.c if (mtu->ssusb->dr_mode == USB_DR_MODE_PERIPHERAL) mtu 586 drivers/usb/mtu3/mtu3_gadget.c mtu3_stop(mtu); mtu 588 drivers/usb/mtu3/mtu3_gadget.c spin_unlock_irqrestore(&mtu->lock, flags); mtu 602 drivers/usb/mtu3/mtu3_gadget.c static void mtu3_state_reset(struct mtu3 *mtu) mtu 604 drivers/usb/mtu3/mtu3_gadget.c mtu->address = 0; mtu 605 drivers/usb/mtu3/mtu3_gadget.c mtu->ep0_state = MU3D_EP0_STATE_SETUP; mtu 606 drivers/usb/mtu3/mtu3_gadget.c mtu->may_wakeup = 0; mtu 607 drivers/usb/mtu3/mtu3_gadget.c mtu->u1_enable = 0; mtu 608 drivers/usb/mtu3/mtu3_gadget.c mtu->u2_enable = 0; mtu 609 drivers/usb/mtu3/mtu3_gadget.c mtu->delayed_status = false; mtu 610 drivers/usb/mtu3/mtu3_gadget.c mtu->test_mode = false; mtu 613 drivers/usb/mtu3/mtu3_gadget.c static void init_hw_ep(struct mtu3 *mtu, struct mtu3_ep *mep, mtu 617 drivers/usb/mtu3/mtu3_gadget.c mep->mtu = mtu; mtu 633 drivers/usb/mtu3/mtu3_gadget.c mtu->g.ep0 = &mep->ep; mtu 640 drivers/usb/mtu3/mtu3_gadget.c list_add_tail(&mep->ep.ep_list, &mtu->g.ep_list); mtu 643 drivers/usb/mtu3/mtu3_gadget.c dev_dbg(mtu->dev, "%s, name=%s, maxp=%d\n", __func__, mep->ep.name, mtu 656 drivers/usb/mtu3/mtu3_gadget.c static void mtu3_gadget_init_eps(struct mtu3 *mtu) mtu 661 drivers/usb/mtu3/mtu3_gadget.c INIT_LIST_HEAD(&(mtu->g.ep_list)); mtu 663 drivers/usb/mtu3/mtu3_gadget.c dev_dbg(mtu->dev, "%s num_eps(1 for a pair of tx&rx ep)=%d\n", mtu 664 drivers/usb/mtu3/mtu3_gadget.c __func__, mtu->num_eps); mtu 666 drivers/usb/mtu3/mtu3_gadget.c init_hw_ep(mtu, mtu->ep0, 0, 0); mtu 667 drivers/usb/mtu3/mtu3_gadget.c for (epnum = 1; epnum < mtu->num_eps; epnum++) { mtu 668 drivers/usb/mtu3/mtu3_gadget.c init_hw_ep(mtu, mtu->in_eps + epnum, epnum, 1); mtu 669 drivers/usb/mtu3/mtu3_gadget.c init_hw_ep(mtu, mtu->out_eps + epnum, epnum, 0); mtu 673 drivers/usb/mtu3/mtu3_gadget.c int mtu3_gadget_setup(struct mtu3 *mtu) mtu 677 drivers/usb/mtu3/mtu3_gadget.c mtu->g.ops = &mtu3_gadget_ops; mtu 678 drivers/usb/mtu3/mtu3_gadget.c mtu->g.max_speed = mtu->max_speed; mtu 679 drivers/usb/mtu3/mtu3_gadget.c mtu->g.speed = USB_SPEED_UNKNOWN; mtu 680 drivers/usb/mtu3/mtu3_gadget.c mtu->g.sg_supported = 0; mtu 681 drivers/usb/mtu3/mtu3_gadget.c mtu->g.name = MTU3_DRIVER_NAME; mtu 682 drivers/usb/mtu3/mtu3_gadget.c mtu->is_active = 0; mtu 683 drivers/usb/mtu3/mtu3_gadget.c mtu->delayed_status = false; mtu 685 drivers/usb/mtu3/mtu3_gadget.c mtu3_gadget_init_eps(mtu); mtu 687 drivers/usb/mtu3/mtu3_gadget.c ret = usb_add_gadget_udc(mtu->dev, &mtu->g); mtu 689 drivers/usb/mtu3/mtu3_gadget.c dev_err(mtu->dev, "failed to register udc\n"); mtu 694 drivers/usb/mtu3/mtu3_gadget.c void mtu3_gadget_cleanup(struct mtu3 *mtu) mtu 696 drivers/usb/mtu3/mtu3_gadget.c usb_del_gadget_udc(&mtu->g); mtu 699 drivers/usb/mtu3/mtu3_gadget.c void mtu3_gadget_resume(struct mtu3 *mtu) mtu 701 drivers/usb/mtu3/mtu3_gadget.c dev_dbg(mtu->dev, "gadget RESUME\n"); mtu 702 drivers/usb/mtu3/mtu3_gadget.c if (mtu->gadget_driver && mtu->gadget_driver->resume) { mtu 703 drivers/usb/mtu3/mtu3_gadget.c spin_unlock(&mtu->lock); mtu 704 drivers/usb/mtu3/mtu3_gadget.c mtu->gadget_driver->resume(&mtu->g); mtu 705 drivers/usb/mtu3/mtu3_gadget.c spin_lock(&mtu->lock); mtu 710 drivers/usb/mtu3/mtu3_gadget.c void mtu3_gadget_suspend(struct mtu3 *mtu) mtu 712 drivers/usb/mtu3/mtu3_gadget.c dev_dbg(mtu->dev, "gadget SUSPEND\n"); mtu 713 drivers/usb/mtu3/mtu3_gadget.c if (mtu->gadget_driver && mtu->gadget_driver->suspend) { mtu 714 drivers/usb/mtu3/mtu3_gadget.c spin_unlock(&mtu->lock); mtu 715 drivers/usb/mtu3/mtu3_gadget.c mtu->gadget_driver->suspend(&mtu->g); mtu 716 drivers/usb/mtu3/mtu3_gadget.c spin_lock(&mtu->lock); mtu 721 drivers/usb/mtu3/mtu3_gadget.c void mtu3_gadget_disconnect(struct mtu3 *mtu) mtu 723 drivers/usb/mtu3/mtu3_gadget.c dev_dbg(mtu->dev, "gadget DISCONNECT\n"); mtu 724 drivers/usb/mtu3/mtu3_gadget.c if (mtu->gadget_driver && mtu->gadget_driver->disconnect) { mtu 725 drivers/usb/mtu3/mtu3_gadget.c spin_unlock(&mtu->lock); mtu 726 drivers/usb/mtu3/mtu3_gadget.c mtu->gadget_driver->disconnect(&mtu->g); mtu 727 drivers/usb/mtu3/mtu3_gadget.c spin_lock(&mtu->lock); mtu 730 drivers/usb/mtu3/mtu3_gadget.c mtu3_state_reset(mtu); mtu 731 drivers/usb/mtu3/mtu3_gadget.c usb_gadget_set_state(&mtu->g, USB_STATE_NOTATTACHED); mtu 734 drivers/usb/mtu3/mtu3_gadget.c void mtu3_gadget_reset(struct mtu3 *mtu) mtu 736 drivers/usb/mtu3/mtu3_gadget.c dev_dbg(mtu->dev, "gadget RESET\n"); mtu 739 drivers/usb/mtu3/mtu3_gadget.c if (mtu->g.speed != USB_SPEED_UNKNOWN) mtu 740 drivers/usb/mtu3/mtu3_gadget.c mtu3_gadget_disconnect(mtu); mtu 742 drivers/usb/mtu3/mtu3_gadget.c mtu3_state_reset(mtu); mtu 18 drivers/usb/mtu3/mtu3_gadget_ep0.c #define next_ep0_request(mtu) next_request((mtu)->ep0) mtu 39 drivers/usb/mtu3/mtu3_gadget_ep0.c static char *decode_ep0_state(struct mtu3 *mtu) mtu 41 drivers/usb/mtu3/mtu3_gadget_ep0.c switch (mtu->ep0_state) { mtu 57 drivers/usb/mtu3/mtu3_gadget_ep0.c static void ep0_req_giveback(struct mtu3 *mtu, struct usb_request *req) mtu 59 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu3_req_complete(mtu->ep0, req, 0); mtu 63 drivers/usb/mtu3/mtu3_gadget_ep0.c forward_to_driver(struct mtu3 *mtu, const struct usb_ctrlrequest *setup) mtu 64 drivers/usb/mtu3/mtu3_gadget_ep0.c __releases(mtu->lock) mtu 65 drivers/usb/mtu3/mtu3_gadget_ep0.c __acquires(mtu->lock) mtu 69 drivers/usb/mtu3/mtu3_gadget_ep0.c if (!mtu->gadget_driver) mtu 72 drivers/usb/mtu3/mtu3_gadget_ep0.c spin_unlock(&mtu->lock); mtu 73 drivers/usb/mtu3/mtu3_gadget_ep0.c ret = mtu->gadget_driver->setup(&mtu->g, setup); mtu 74 drivers/usb/mtu3/mtu3_gadget_ep0.c spin_lock(&mtu->lock); mtu 76 drivers/usb/mtu3/mtu3_gadget_ep0.c dev_dbg(mtu->dev, "%s ret %d\n", __func__, ret); mtu 82 drivers/usb/mtu3/mtu3_gadget_ep0.c void __iomem *fifo = mep->mtu->mac_base + U3D_FIFO0; mtu 85 drivers/usb/mtu3/mtu3_gadget_ep0.c dev_dbg(mep->mtu->dev, "%s: ep%din, len=%d, buf=%p\n", mtu 102 drivers/usb/mtu3/mtu3_gadget_ep0.c void __iomem *fifo = mep->mtu->mac_base + U3D_FIFO0; mtu 106 drivers/usb/mtu3/mtu3_gadget_ep0.c dev_dbg(mep->mtu->dev, "%s: ep%dout len=%d buf=%p\n", mtu 120 drivers/usb/mtu3/mtu3_gadget_ep0.c static void ep0_load_test_packet(struct mtu3 *mtu) mtu 126 drivers/usb/mtu3/mtu3_gadget_ep0.c ep0_write_fifo(mtu->ep0, mtu3_test_packet, sizeof(mtu3_test_packet)); mtu 137 drivers/usb/mtu3/mtu3_gadget_ep0.c struct mtu3 *mtu = mep0->mtu; mtu 138 drivers/usb/mtu3/mtu3_gadget_ep0.c void __iomem *mbase = mtu->mac_base; mtu 147 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu3_writel(mtu->mac_base, U3D_EP0CSR, csr); mtu 149 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu->delayed_status = false; mtu 150 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu->ep0_state = MU3D_EP0_STATE_SETUP; mtu 152 drivers/usb/mtu3/mtu3_gadget_ep0.c dev_dbg(mtu->dev, "ep0: %s STALL, ep0_state: %s\n", mtu 153 drivers/usb/mtu3/mtu3_gadget_ep0.c set ? "SEND" : "CLEAR", decode_ep0_state(mtu)); mtu 164 drivers/usb/mtu3/mtu3_gadget_ep0.c struct mtu3 *mtu; mtu 170 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu = mreq->mtu; mtu 171 drivers/usb/mtu3/mtu3_gadget_ep0.c dev_dbg(mtu->dev, "u1sel:%d, u1pel:%d, u2sel:%d, u2pel:%d\n", mtu 176 drivers/usb/mtu3/mtu3_gadget_ep0.c static int ep0_set_sel(struct mtu3 *mtu, struct usb_ctrlrequest *setup) mtu 182 drivers/usb/mtu3/mtu3_gadget_ep0.c dev_err(mtu->dev, "%s wrong wLength:%d\n", mtu 187 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu->ep0_req.mep = mtu->ep0; mtu 188 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu->ep0_req.request.length = 6; mtu 189 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu->ep0_req.request.buf = mtu->setup_buf; mtu 190 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu->ep0_req.request.complete = ep0_set_sel_complete; mtu 191 drivers/usb/mtu3/mtu3_gadget_ep0.c ret = ep0_queue(mtu->ep0, &mtu->ep0_req); mtu 197 drivers/usb/mtu3/mtu3_gadget_ep0.c ep0_get_status(struct mtu3 *mtu, const struct usb_ctrlrequest *setup) mtu 207 drivers/usb/mtu3/mtu3_gadget_ep0.c result[0] = mtu->is_self_powered << USB_DEVICE_SELF_POWERED; mtu 208 drivers/usb/mtu3/mtu3_gadget_ep0.c result[0] |= mtu->may_wakeup << USB_DEVICE_REMOTE_WAKEUP; mtu 210 drivers/usb/mtu3/mtu3_gadget_ep0.c if (mtu->g.speed >= USB_SPEED_SUPER) { mtu 211 drivers/usb/mtu3/mtu3_gadget_ep0.c result[0] |= mtu->u1_enable << USB_DEV_STAT_U1_ENABLED; mtu 212 drivers/usb/mtu3/mtu3_gadget_ep0.c result[0] |= mtu->u2_enable << USB_DEV_STAT_U2_ENABLED; mtu 215 drivers/usb/mtu3/mtu3_gadget_ep0.c dev_dbg(mtu->dev, "%s result=%x, U1=%x, U2=%x\n", __func__, mtu 216 drivers/usb/mtu3/mtu3_gadget_ep0.c result[0], mtu->u1_enable, mtu->u2_enable); mtu 226 drivers/usb/mtu3/mtu3_gadget_ep0.c if (epnum >= mtu->num_eps) { mtu 233 drivers/usb/mtu3/mtu3_gadget_ep0.c mep = (is_in ? mtu->in_eps : mtu->out_eps) + epnum; mtu 252 drivers/usb/mtu3/mtu3_gadget_ep0.c dev_dbg(mtu->dev, "get_status=%x\n", *(u16 *)result); mtu 253 drivers/usb/mtu3/mtu3_gadget_ep0.c memcpy(mtu->setup_buf, result, sizeof(result)); mtu 254 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu->ep0_req.mep = mtu->ep0; mtu 255 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu->ep0_req.request.length = 2; mtu 256 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu->ep0_req.request.buf = &mtu->setup_buf; mtu 257 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu->ep0_req.request.complete = ep0_dummy_complete; mtu 258 drivers/usb/mtu3/mtu3_gadget_ep0.c ret = ep0_queue(mtu->ep0, &mtu->ep0_req); mtu 265 drivers/usb/mtu3/mtu3_gadget_ep0.c static int handle_test_mode(struct mtu3 *mtu, struct usb_ctrlrequest *setup) mtu 267 drivers/usb/mtu3/mtu3_gadget_ep0.c void __iomem *mbase = mtu->mac_base; mtu 273 drivers/usb/mtu3/mtu3_gadget_ep0.c dev_dbg(mtu->dev, "TEST_J\n"); mtu 274 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu->test_mode_nr = TEST_J_MODE; mtu 277 drivers/usb/mtu3/mtu3_gadget_ep0.c dev_dbg(mtu->dev, "TEST_K\n"); mtu 278 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu->test_mode_nr = TEST_K_MODE; mtu 281 drivers/usb/mtu3/mtu3_gadget_ep0.c dev_dbg(mtu->dev, "TEST_SE0_NAK\n"); mtu 282 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu->test_mode_nr = TEST_SE0_NAK_MODE; mtu 285 drivers/usb/mtu3/mtu3_gadget_ep0.c dev_dbg(mtu->dev, "TEST_PACKET\n"); mtu 286 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu->test_mode_nr = TEST_PACKET_MODE; mtu 293 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu->test_mode = true; mtu 296 drivers/usb/mtu3/mtu3_gadget_ep0.c if (mtu->test_mode_nr == TEST_PACKET_MODE) mtu 297 drivers/usb/mtu3/mtu3_gadget_ep0.c ep0_load_test_packet(mtu); mtu 307 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu3_writel(mbase, U3D_USB2_TEST_MODE, mtu->test_mode_nr); mtu 309 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu->ep0_state = MU3D_EP0_STATE_SETUP; mtu 315 drivers/usb/mtu3/mtu3_gadget_ep0.c static int ep0_handle_feature_dev(struct mtu3 *mtu, mtu 318 drivers/usb/mtu3/mtu3_gadget_ep0.c void __iomem *mbase = mtu->mac_base; mtu 324 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu->may_wakeup = !!set; mtu 328 drivers/usb/mtu3/mtu3_gadget_ep0.c if (!set || (mtu->g.speed != USB_SPEED_HIGH) || mtu 332 drivers/usb/mtu3/mtu3_gadget_ep0.c handled = handle_test_mode(mtu, setup); mtu 335 drivers/usb/mtu3/mtu3_gadget_ep0.c if (mtu->g.speed < USB_SPEED_SUPER || mtu 336 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu->g.state != USB_STATE_CONFIGURED) mtu 346 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu->u1_enable = !!set; mtu 350 drivers/usb/mtu3/mtu3_gadget_ep0.c if (mtu->g.speed < USB_SPEED_SUPER || mtu 351 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu->g.state != USB_STATE_CONFIGURED) mtu 361 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu->u2_enable = !!set; mtu 371 drivers/usb/mtu3/mtu3_gadget_ep0.c static int ep0_handle_feature(struct mtu3 *mtu, mtu 386 drivers/usb/mtu3/mtu3_gadget_ep0.c handled = ep0_handle_feature_dev(mtu, setup, set); mtu 391 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu->g.speed >= USB_SPEED_SUPER) { mtu 401 drivers/usb/mtu3/mtu3_gadget_ep0.c if (epnum == 0 || epnum >= mtu->num_eps || mtu 406 drivers/usb/mtu3/mtu3_gadget_ep0.c mep = (is_in ? mtu->in_eps : mtu->out_eps) + epnum; mtu 432 drivers/usb/mtu3/mtu3_gadget_ep0.c static int handle_standard_request(struct mtu3 *mtu, mtu 435 drivers/usb/mtu3/mtu3_gadget_ep0.c void __iomem *mbase = mtu->mac_base; mtu 436 drivers/usb/mtu3/mtu3_gadget_ep0.c enum usb_device_state state = mtu->g.state; mtu 447 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu->address = (u8) (value & 0x7f); mtu 448 drivers/usb/mtu3/mtu3_gadget_ep0.c dev_dbg(mtu->dev, "set address to 0x%x\n", mtu->address); mtu 452 drivers/usb/mtu3/mtu3_gadget_ep0.c dev_conf |= DEV_ADDR(mtu->address); mtu 455 drivers/usb/mtu3/mtu3_gadget_ep0.c if (mtu->address) mtu 456 drivers/usb/mtu3/mtu3_gadget_ep0.c usb_gadget_set_state(&mtu->g, USB_STATE_ADDRESS); mtu 458 drivers/usb/mtu3/mtu3_gadget_ep0.c usb_gadget_set_state(&mtu->g, USB_STATE_DEFAULT); mtu 464 drivers/usb/mtu3/mtu3_gadget_ep0.c usb_gadget_set_state(&mtu->g, mtu 472 drivers/usb/mtu3/mtu3_gadget_ep0.c usb_gadget_set_state(&mtu->g, mtu 478 drivers/usb/mtu3/mtu3_gadget_ep0.c handled = ep0_handle_feature(mtu, setup, 0); mtu 481 drivers/usb/mtu3/mtu3_gadget_ep0.c handled = ep0_handle_feature(mtu, setup, 1); mtu 484 drivers/usb/mtu3/mtu3_gadget_ep0.c handled = ep0_get_status(mtu, setup); mtu 487 drivers/usb/mtu3/mtu3_gadget_ep0.c handled = ep0_set_sel(mtu, setup); mtu 501 drivers/usb/mtu3/mtu3_gadget_ep0.c static void ep0_rx_state(struct mtu3 *mtu) mtu 505 drivers/usb/mtu3/mtu3_gadget_ep0.c void __iomem *mbase = mtu->mac_base; mtu 510 drivers/usb/mtu3/mtu3_gadget_ep0.c dev_dbg(mtu->dev, "%s\n", __func__); mtu 513 drivers/usb/mtu3/mtu3_gadget_ep0.c mreq = next_ep0_request(mtu); mtu 527 drivers/usb/mtu3/mtu3_gadget_ep0.c ep0_read_fifo(mtu->ep0, buf, count); mtu 531 drivers/usb/mtu3/mtu3_gadget_ep0.c maxp = mtu->g.ep0->maxpacket; mtu 533 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu->ep0_state = MU3D_EP0_STATE_SETUP; mtu 534 drivers/usb/mtu3/mtu3_gadget_ep0.c dev_dbg(mtu->dev, "ep0 state: %s\n", mtu 535 drivers/usb/mtu3/mtu3_gadget_ep0.c decode_ep0_state(mtu)); mtu 543 drivers/usb/mtu3/mtu3_gadget_ep0.c dev_dbg(mtu->dev, "%s: SENDSTALL\n", __func__); mtu 550 drivers/usb/mtu3/mtu3_gadget_ep0.c ep0_req_giveback(mtu, req); mtu 555 drivers/usb/mtu3/mtu3_gadget_ep0.c static void ep0_tx_state(struct mtu3 *mtu) mtu 557 drivers/usb/mtu3/mtu3_gadget_ep0.c struct mtu3_request *mreq = next_ep0_request(mtu); mtu 564 drivers/usb/mtu3/mtu3_gadget_ep0.c dev_dbg(mtu->dev, "%s\n", __func__); mtu 569 drivers/usb/mtu3/mtu3_gadget_ep0.c maxp = mtu->g.ep0->maxpacket; mtu 576 drivers/usb/mtu3/mtu3_gadget_ep0.c ep0_write_fifo(mtu->ep0, src, count); mtu 578 drivers/usb/mtu3/mtu3_gadget_ep0.c dev_dbg(mtu->dev, "%s act=%d, len=%d, cnt=%d, maxp=%d zero=%d\n", mtu 585 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu->ep0_state = MU3D_EP0_STATE_TX_END; mtu 588 drivers/usb/mtu3/mtu3_gadget_ep0.c csr = mtu3_readl(mtu->mac_base, U3D_EP0CSR) & EP0_W1C_BITS; mtu 589 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu3_writel(mtu->mac_base, U3D_EP0CSR, csr | EP0_TXPKTRDY); mtu 591 drivers/usb/mtu3/mtu3_gadget_ep0.c dev_dbg(mtu->dev, "%s ep0csr=0x%x\n", __func__, mtu 592 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu3_readl(mtu->mac_base, U3D_EP0CSR)); mtu 595 drivers/usb/mtu3/mtu3_gadget_ep0.c static void ep0_read_setup(struct mtu3 *mtu, struct usb_ctrlrequest *setup) mtu 601 drivers/usb/mtu3/mtu3_gadget_ep0.c csr = mtu3_readl(mtu->mac_base, U3D_EP0CSR) & EP0_W1C_BITS; mtu 602 drivers/usb/mtu3/mtu3_gadget_ep0.c count = mtu3_readl(mtu->mac_base, U3D_RXCOUNT0); mtu 604 drivers/usb/mtu3/mtu3_gadget_ep0.c ep0_read_fifo(mtu->ep0, (u8 *)setup, count); mtu 606 drivers/usb/mtu3/mtu3_gadget_ep0.c dev_dbg(mtu->dev, "SETUP req%02x.%02x v%04x i%04x l%04x\n", mtu 612 drivers/usb/mtu3/mtu3_gadget_ep0.c mreq = next_ep0_request(mtu); mtu 614 drivers/usb/mtu3/mtu3_gadget_ep0.c ep0_req_giveback(mtu, &mreq->request); mtu 619 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu3_writel(mtu->mac_base, U3D_EP0CSR, mtu 621 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu->ep0_state = MU3D_EP0_STATE_TX; mtu 623 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu3_writel(mtu->mac_base, U3D_EP0CSR, mtu 625 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu->ep0_state = MU3D_EP0_STATE_RX; mtu 629 drivers/usb/mtu3/mtu3_gadget_ep0.c static int ep0_handle_setup(struct mtu3 *mtu) mtu 630 drivers/usb/mtu3/mtu3_gadget_ep0.c __releases(mtu->lock) mtu 631 drivers/usb/mtu3/mtu3_gadget_ep0.c __acquires(mtu->lock) mtu 635 drivers/usb/mtu3/mtu3_gadget_ep0.c void __iomem *mbase = mtu->mac_base; mtu 638 drivers/usb/mtu3/mtu3_gadget_ep0.c ep0_read_setup(mtu, &setup); mtu 642 drivers/usb/mtu3/mtu3_gadget_ep0.c handled = handle_standard_request(mtu, &setup); mtu 644 drivers/usb/mtu3/mtu3_gadget_ep0.c dev_dbg(mtu->dev, "handled %d, ep0_state: %s\n", mtu 645 drivers/usb/mtu3/mtu3_gadget_ep0.c handled, decode_ep0_state(mtu)); mtu 652 drivers/usb/mtu3/mtu3_gadget_ep0.c handled = forward_to_driver(mtu, &setup); mtu 655 drivers/usb/mtu3/mtu3_gadget_ep0.c dev_dbg(mtu->dev, "%s stall (%d)\n", __func__, handled); mtu 657 drivers/usb/mtu3/mtu3_gadget_ep0.c ep0_stall_set(mtu->ep0, true, mtu 664 drivers/usb/mtu3/mtu3_gadget_ep0.c if (mtu->test_mode) { mtu 668 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu->delayed_status = true; mtu 676 drivers/usb/mtu3/mtu3_gadget_ep0.c mreq = next_ep0_request(mtu); mtu 678 drivers/usb/mtu3/mtu3_gadget_ep0.c ep0_req_giveback(mtu, &mreq->request); mtu 684 drivers/usb/mtu3/mtu3_gadget_ep0.c irqreturn_t mtu3_ep0_isr(struct mtu3 *mtu) mtu 686 drivers/usb/mtu3/mtu3_gadget_ep0.c void __iomem *mbase = mtu->mac_base; mtu 703 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu->ep0_state = MU3D_EP0_STATE_SETUP; mtu 707 drivers/usb/mtu3/mtu3_gadget_ep0.c dev_dbg(mtu->dev, "%s csr=0x%x\n", __func__, csr); mtu 711 drivers/usb/mtu3/mtu3_gadget_ep0.c ep0_stall_set(mtu->ep0, false, 0); mtu 715 drivers/usb/mtu3/mtu3_gadget_ep0.c dev_dbg(mtu->dev, "ep0_state: %s\n", decode_ep0_state(mtu)); mtu 716 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu3_dbg_trace(mtu->dev, "ep0_state %s", decode_ep0_state(mtu)); mtu 718 drivers/usb/mtu3/mtu3_gadget_ep0.c switch (mtu->ep0_state) { mtu 722 drivers/usb/mtu3/mtu3_gadget_ep0.c ep0_tx_state(mtu); mtu 729 drivers/usb/mtu3/mtu3_gadget_ep0.c ep0_rx_state(mtu); mtu 737 drivers/usb/mtu3/mtu3_gadget_ep0.c mreq = next_ep0_request(mtu); mtu 739 drivers/usb/mtu3/mtu3_gadget_ep0.c ep0_req_giveback(mtu, &mreq->request); mtu 741 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu->ep0_state = MU3D_EP0_STATE_SETUP; mtu 743 drivers/usb/mtu3/mtu3_gadget_ep0.c dev_dbg(mtu->dev, "ep0_state: %s\n", decode_ep0_state(mtu)); mtu 751 drivers/usb/mtu3/mtu3_gadget_ep0.c dev_err(mtu->dev, "SETUP packet len %d != 8 ?\n", len); mtu 755 drivers/usb/mtu3/mtu3_gadget_ep0.c ep0_handle_setup(mtu); mtu 760 drivers/usb/mtu3/mtu3_gadget_ep0.c ep0_stall_set(mtu->ep0, true, 0); mtu 784 drivers/usb/mtu3/mtu3_gadget_ep0.c struct mtu3 *mtu = mep->mtu; mtu 786 drivers/usb/mtu3/mtu3_gadget_ep0.c mreq->mtu = mtu; mtu 790 drivers/usb/mtu3/mtu3_gadget_ep0.c dev_dbg(mtu->dev, "%s %s (ep0_state: %s), len#%d\n", __func__, mtu 791 drivers/usb/mtu3/mtu3_gadget_ep0.c mep->name, decode_ep0_state(mtu), mreq->request.length); mtu 793 drivers/usb/mtu3/mtu3_gadget_ep0.c switch (mtu->ep0_state) { mtu 799 drivers/usb/mtu3/mtu3_gadget_ep0.c dev_err(mtu->dev, "%s, error in ep0 state %s\n", __func__, mtu 800 drivers/usb/mtu3/mtu3_gadget_ep0.c decode_ep0_state(mtu)); mtu 804 drivers/usb/mtu3/mtu3_gadget_ep0.c if (mtu->delayed_status) { mtu 807 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu->delayed_status = false; mtu 808 drivers/usb/mtu3/mtu3_gadget_ep0.c csr = mtu3_readl(mtu->mac_base, U3D_EP0CSR) & EP0_W1C_BITS; mtu 810 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu3_writel(mtu->mac_base, U3D_EP0CSR, csr); mtu 821 drivers/usb/mtu3/mtu3_gadget_ep0.c if (mtu->ep0_state == MU3D_EP0_STATE_TX) mtu 822 drivers/usb/mtu3/mtu3_gadget_ep0.c ep0_tx_state(mtu); mtu 832 drivers/usb/mtu3/mtu3_gadget_ep0.c struct mtu3 *mtu; mtu 840 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu = mep->mtu; mtu 843 drivers/usb/mtu3/mtu3_gadget_ep0.c spin_lock_irqsave(&mtu->lock, flags); mtu 845 drivers/usb/mtu3/mtu3_gadget_ep0.c spin_unlock_irqrestore(&mtu->lock, flags); mtu 858 drivers/usb/mtu3/mtu3_gadget_ep0.c struct mtu3 *mtu; mtu 866 drivers/usb/mtu3/mtu3_gadget_ep0.c mtu = mep->mtu; mtu 868 drivers/usb/mtu3/mtu3_gadget_ep0.c dev_dbg(mtu->dev, "%s\n", __func__); mtu 870 drivers/usb/mtu3/mtu3_gadget_ep0.c spin_lock_irqsave(&mtu->lock, flags); mtu 877 drivers/usb/mtu3/mtu3_gadget_ep0.c switch (mtu->ep0_state) { mtu 886 drivers/usb/mtu3/mtu3_gadget_ep0.c ep0_stall_set(mtu->ep0, true, 0); mtu 889 drivers/usb/mtu3/mtu3_gadget_ep0.c dev_dbg(mtu->dev, "ep0 can't halt in state %s\n", mtu 890 drivers/usb/mtu3/mtu3_gadget_ep0.c decode_ep0_state(mtu)); mtu 895 drivers/usb/mtu3/mtu3_gadget_ep0.c spin_unlock_irqrestore(&mtu->lock, flags); mtu 38 drivers/usb/mtu3/mtu3_qmu.c #define GPD_RX_BUF_LEN(mtu, x) \ mtu 41 drivers/usb/mtu3/mtu3_qmu.c ((mtu)->gen2cp) ? GPD_RX_BUF_LEN_EL(x_) : GPD_RX_BUF_LEN_OG(x_); \ mtu 46 drivers/usb/mtu3/mtu3_qmu.c #define GPD_DATA_LEN(mtu, x) \ mtu 49 drivers/usb/mtu3/mtu3_qmu.c ((mtu)->gen2cp) ? GPD_DATA_LEN_EL(x_) : GPD_DATA_LEN_OG(x_); \ mtu 57 drivers/usb/mtu3/mtu3_qmu.c #define GPD_EXT_NGP(mtu, x) \ mtu 60 drivers/usb/mtu3/mtu3_qmu.c ((mtu)->gen2cp) ? GPD_EXT_NGP_EL(x_) : GPD_EXT_NGP_OG(x_); \ mtu 63 drivers/usb/mtu3/mtu3_qmu.c #define GPD_EXT_BUF(mtu, x) \ mtu 66 drivers/usb/mtu3/mtu3_qmu.c ((mtu)->gen2cp) ? GPD_EXT_BUF_EL(x_) : GPD_EXT_BUF_OG(x_); \ mtu 171 drivers/usb/mtu3/mtu3_qmu.c gpd = dma_pool_zalloc(mep->mtu->qmu_gpd_pool, GFP_ATOMIC, &ring->dma); mtu 184 drivers/usb/mtu3/mtu3_qmu.c dma_pool_free(mep->mtu->qmu_gpd_pool, mtu 191 drivers/usb/mtu3/mtu3_qmu.c struct mtu3 *mtu = mep->mtu; mtu 192 drivers/usb/mtu3/mtu3_qmu.c void __iomem *mbase = mtu->mac_base; mtu 249 drivers/usb/mtu3/mtu3_qmu.c struct mtu3 *mtu = mep->mtu; mtu 255 drivers/usb/mtu3/mtu3_qmu.c ext_addr = GPD_EXT_BUF(mtu, upper_32_bits(req->dma)); mtu 256 drivers/usb/mtu3/mtu3_qmu.c gpd->dw3_info = cpu_to_le32(GPD_DATA_LEN(mtu, req->length)); mtu 261 drivers/usb/mtu3/mtu3_qmu.c dev_dbg(mep->mtu->dev, "TX-EP%d queue gpd=%p, enq=%p, qdma=%pad\n", mtu 266 drivers/usb/mtu3/mtu3_qmu.c ext_addr |= GPD_EXT_NGP(mtu, upper_32_bits(enq_dma)); mtu 270 drivers/usb/mtu3/mtu3_qmu.c if (mtu->gen2cp) mtu 290 drivers/usb/mtu3/mtu3_qmu.c struct mtu3 *mtu = mep->mtu; mtu 296 drivers/usb/mtu3/mtu3_qmu.c ext_addr = GPD_EXT_BUF(mtu, upper_32_bits(req->dma)); mtu 297 drivers/usb/mtu3/mtu3_qmu.c gpd->dw0_info = cpu_to_le32(GPD_RX_BUF_LEN(mtu, req->length)); mtu 302 drivers/usb/mtu3/mtu3_qmu.c dev_dbg(mep->mtu->dev, "RX-EP%d queue gpd=%p, enq=%p, qdma=%pad\n", mtu 307 drivers/usb/mtu3/mtu3_qmu.c ext_addr |= GPD_EXT_NGP(mtu, upper_32_bits(enq_dma)); mtu 328 drivers/usb/mtu3/mtu3_qmu.c struct mtu3 *mtu = mep->mtu; mtu 329 drivers/usb/mtu3/mtu3_qmu.c void __iomem *mbase = mtu->mac_base; mtu 343 drivers/usb/mtu3/mtu3_qmu.c dev_warn(mtu->dev, "Tx %d Active Now!\n", epnum); mtu 360 drivers/usb/mtu3/mtu3_qmu.c dev_warn(mtu->dev, "Rx %d Active Now!\n", epnum); mtu 372 drivers/usb/mtu3/mtu3_qmu.c struct mtu3 *mtu = mep->mtu; mtu 373 drivers/usb/mtu3/mtu3_qmu.c void __iomem *mbase = mtu->mac_base; mtu 382 drivers/usb/mtu3/mtu3_qmu.c dev_dbg(mtu->dev, "%s's qmu is inactive now!\n", mep->name); mtu 390 drivers/usb/mtu3/mtu3_qmu.c dev_err(mtu->dev, "stop %s's qmu failed\n", mep->name); mtu 394 drivers/usb/mtu3/mtu3_qmu.c dev_dbg(mtu->dev, "%s's qmu stop now!\n", mep->name); mtu 400 drivers/usb/mtu3/mtu3_qmu.c dev_dbg(mep->mtu->dev, "%s flush QMU %s\n", __func__, mtu 413 drivers/usb/mtu3/mtu3_qmu.c static void qmu_tx_zlp_error_handler(struct mtu3 *mtu, u8 epnum) mtu 415 drivers/usb/mtu3/mtu3_qmu.c struct mtu3_ep *mep = mtu->in_eps + epnum; mtu 417 drivers/usb/mtu3/mtu3_qmu.c void __iomem *mbase = mtu->mac_base; mtu 431 drivers/usb/mtu3/mtu3_qmu.c if (GPD_DATA_LEN(mtu, le32_to_cpu(gpd_current->dw3_info)) != 0) { mtu 432 drivers/usb/mtu3/mtu3_qmu.c dev_err(mtu->dev, "TX EP%d buffer length error(!=0)\n", epnum); mtu 436 drivers/usb/mtu3/mtu3_qmu.c dev_dbg(mtu->dev, "%s send ZLP for req=%p\n", __func__, mreq); mtu 444 drivers/usb/mtu3/mtu3_qmu.c dev_err(mtu->dev, "%s wait for fifo empty fail\n", __func__); mtu 464 drivers/usb/mtu3/mtu3_qmu.c static void qmu_done_tx(struct mtu3 *mtu, u8 epnum) mtu 466 drivers/usb/mtu3/mtu3_qmu.c struct mtu3_ep *mep = mtu->in_eps + epnum; mtu 468 drivers/usb/mtu3/mtu3_qmu.c void __iomem *mbase = mtu->mac_base; mtu 479 drivers/usb/mtu3/mtu3_qmu.c dev_dbg(mtu->dev, "%s EP%d, last=%p, current=%p, enq=%p\n", mtu 487 drivers/usb/mtu3/mtu3_qmu.c dev_err(mtu->dev, "no correct TX req is found\n"); mtu 492 drivers/usb/mtu3/mtu3_qmu.c request->actual = GPD_DATA_LEN(mtu, le32_to_cpu(gpd->dw3_info)); mtu 499 drivers/usb/mtu3/mtu3_qmu.c dev_dbg(mtu->dev, "%s EP%d, deq=%p, enq=%p, complete\n", mtu 504 drivers/usb/mtu3/mtu3_qmu.c static void qmu_done_rx(struct mtu3 *mtu, u8 epnum) mtu 506 drivers/usb/mtu3/mtu3_qmu.c struct mtu3_ep *mep = mtu->out_eps + epnum; mtu 508 drivers/usb/mtu3/mtu3_qmu.c void __iomem *mbase = mtu->mac_base; mtu 518 drivers/usb/mtu3/mtu3_qmu.c dev_dbg(mtu->dev, "%s EP%d, last=%p, current=%p, enq=%p\n", mtu 526 drivers/usb/mtu3/mtu3_qmu.c dev_err(mtu->dev, "no correct RX req is found\n"); mtu 531 drivers/usb/mtu3/mtu3_qmu.c req->actual = GPD_DATA_LEN(mtu, le32_to_cpu(gpd->dw3_info)); mtu 538 drivers/usb/mtu3/mtu3_qmu.c dev_dbg(mtu->dev, "%s EP%d, deq=%p, enq=%p, complete\n", mtu 542 drivers/usb/mtu3/mtu3_qmu.c static void qmu_done_isr(struct mtu3 *mtu, u32 done_status) mtu 546 drivers/usb/mtu3/mtu3_qmu.c for (i = 1; i < mtu->num_eps; i++) { mtu 548 drivers/usb/mtu3/mtu3_qmu.c qmu_done_rx(mtu, i); mtu 550 drivers/usb/mtu3/mtu3_qmu.c qmu_done_tx(mtu, i); mtu 554 drivers/usb/mtu3/mtu3_qmu.c static void qmu_exception_isr(struct mtu3 *mtu, u32 qmu_status) mtu 556 drivers/usb/mtu3/mtu3_qmu.c void __iomem *mbase = mtu->mac_base; mtu 562 drivers/usb/mtu3/mtu3_qmu.c for (i = 1; i < mtu->num_eps; i++) { mtu 564 drivers/usb/mtu3/mtu3_qmu.c dev_err(mtu->dev, "Rx %d CS error!\n", i); mtu 567 drivers/usb/mtu3/mtu3_qmu.c dev_err(mtu->dev, "RX %d Length error\n", i); mtu 574 drivers/usb/mtu3/mtu3_qmu.c for (i = 1; i < mtu->num_eps; i++) { mtu 576 drivers/usb/mtu3/mtu3_qmu.c dev_dbg(mtu->dev, "RX EP%d Recv ZLP\n", i); mtu 583 drivers/usb/mtu3/mtu3_qmu.c for (i = 1; i < mtu->num_eps; i++) { mtu 585 drivers/usb/mtu3/mtu3_qmu.c dev_err(mtu->dev, "Tx %d checksum error!\n", i); mtu 588 drivers/usb/mtu3/mtu3_qmu.c qmu_tx_zlp_error_handler(mtu, i); mtu 594 drivers/usb/mtu3/mtu3_qmu.c irqreturn_t mtu3_qmu_isr(struct mtu3 *mtu) mtu 596 drivers/usb/mtu3/mtu3_qmu.c void __iomem *mbase = mtu->mac_base; mtu 607 drivers/usb/mtu3/mtu3_qmu.c dev_dbg(mtu->dev, "=== QMUdone[tx=%x, rx=%x] QMUexp[%x] ===\n", mtu 613 drivers/usb/mtu3/mtu3_qmu.c qmu_done_isr(mtu, qmu_done_status); mtu 616 drivers/usb/mtu3/mtu3_qmu.c qmu_exception_isr(mtu, qmu_status); mtu 621 drivers/usb/mtu3/mtu3_qmu.c int mtu3_qmu_init(struct mtu3 *mtu) mtu 626 drivers/usb/mtu3/mtu3_qmu.c mtu->qmu_gpd_pool = dma_pool_create("QMU_GPD", mtu->dev, mtu 629 drivers/usb/mtu3/mtu3_qmu.c if (!mtu->qmu_gpd_pool) mtu 635 drivers/usb/mtu3/mtu3_qmu.c void mtu3_qmu_exit(struct mtu3 *mtu) mtu 637 drivers/usb/mtu3/mtu3_qmu.c dma_pool_destroy(mtu->qmu_gpd_pool); mtu 31 drivers/usb/mtu3/mtu3_qmu.h irqreturn_t mtu3_qmu_isr(struct mtu3 *mtu); mtu 32 drivers/usb/mtu3/mtu3_qmu.h int mtu3_qmu_init(struct mtu3 *mtu); mtu 33 drivers/usb/mtu3/mtu3_qmu.h void mtu3_qmu_exit(struct mtu3 *mtu); mtu 601 fs/afs/cmservice.c __be32 mtu[32]; mtu 171 include/linux/can/dev.h dev->mtu = CANFD_MTU; mtu 899 include/linux/filter.h len = fwd->mtu + fwd->hard_header_len + VLAN_HLEN; mtu 59 include/linux/if_team.h unsigned int mtu; mtu 997 include/linux/mlx4/device.h u16 mtu; mtu 1394 include/linux/mlx4/device.h int mlx4_SET_PORT_general(struct mlx4_dev *dev, u8 port, int mtu, mtu 2613 include/linux/mlx5/mlx5_ifc.h u8 mtu[0x3]; mtu 3202 include/linux/mlx5/mlx5_ifc.h u8 mtu[0x10]; mtu 3478 include/linux/mlx5/mlx5_ifc.h u8 mtu[0x3]; mtu 6126 include/linux/mlx5/mlx5_ifc.h u8 mtu[0x1]; mtu 144 include/linux/mlx5/port.h int mlx5_set_port_mtu(struct mlx5_core_dev *dev, u16 mtu, u8 port); mtu 79 include/linux/mlx5/vport.h int mlx5_query_nic_vport_mtu(struct mlx5_core_dev *mdev, u16 *mtu); mtu 80 include/linux/mlx5/vport.h int mlx5_modify_nic_vport_mtu(struct mlx5_core_dev *mdev, u16 mtu); mtu 1877 include/linux/netdevice.h unsigned int mtu; mtu 2506 include/linux/netdevice.h u32 mtu; mtu 3671 include/linux/netdevice.h int dev_validate_mtu(struct net_device *dev, int mtu, mtu 3673 include/linux/netdevice.h int dev_set_mtu_ext(struct net_device *dev, int mtu, mtu 36 include/linux/ppp_channel.h int mtu; /* max transmit packet size */ mtu 615 include/linux/qed/fcoe_common.h __le16 mtu; mtu 144 include/linux/qed/qed_eth_if.h u16 mtu; mtu 512 include/linux/qed/qed_if.h u16 mtu; mtu 643 include/linux/qed/qed_if.h u16 mtu; mtu 1107 include/linux/qed/qed_if.h int (*update_mtu)(struct qed_dev *cdev, u16 mtu); mtu 169 include/linux/qed/qed_ll2_if.h u16 mtu; mtu 216 include/linux/qed/qed_ll2_if.h u16 mtu; mtu 375 include/linux/qed/qed_rdma_if.h u16 mtu; mtu 405 include/linux/qed/qed_rdma_if.h u16 mtu; mtu 2358 include/linux/skbuff.h static inline void skb_tailroom_reserve(struct sk_buff *skb, unsigned int mtu, mtu 2362 include/linux/skbuff.h if (mtu < skb_tailroom(skb) - needed_tailroom) mtu 2364 include/linux/skbuff.h skb->reserved_tailroom = skb_tailroom(skb) - mtu; mtu 3525 include/linux/skbuff.h bool skb_gso_validate_network_len(const struct sk_buff *skb, unsigned int mtu); mtu 16 include/linux/virtio_caif.h u32 mtu; mtu 468 include/net/bluetooth/l2cap.h __le16 mtu; mtu 475 include/net/bluetooth/l2cap.h __le16 mtu; mtu 632 include/net/bluetooth/l2cap.h unsigned int mtu; mtu 128 include/net/bluetooth/rfcomm.h __le16 mtu; mtu 165 include/net/bluetooth/rfcomm.h uint mtu; mtu 191 include/net/bluetooth/rfcomm.h uint mtu; mtu 40 include/net/bluetooth/sco.h __u16 mtu; mtu 110 include/net/codel.h u32 mtu; mtu 125 include/net/codel_impl.h *backlog <= params->mtu) { mtu 196 include/net/dn.h unsigned int dn_mss_from_pmtu(struct net_device *dev, int mtu); mtu 199 include/net/dst.h return dst->ops->mtu(dst); mtu 514 include/net/dst.h static inline void skb_dst_update_pmtu(struct sk_buff *skb, u32 mtu) mtu 519 include/net/dst.h dst->ops->update_pmtu(dst, NULL, skb, mtu, true); mtu 523 include/net/dst.h static inline void skb_dst_update_pmtu_no_confirm(struct sk_buff *skb, u32 mtu) mtu 528 include/net/dst.h dst->ops->update_pmtu(dst, NULL, skb, mtu, false); mtu 22 include/net/dst_ops.h unsigned int (*mtu)(const struct dst_entry *); mtu 30 include/net/dst_ops.h struct sk_buff *skb, u32 mtu, mtu 26 include/net/inet6_connection_sock.h struct dst_entry *inet6_csk_update_pmtu(struct sock *sk, u32 mtu); mtu 312 include/net/inet_connection_sock.h struct dst_entry *inet_csk_update_pmtu(struct sock *sk, u32 mtu); mtu 191 include/net/ip.h unsigned int mtu; mtu 199 include/net/ip.h unsigned int mtu, bool DF, struct ip_frag_state *state); mtu 448 include/net/ip.h return min(READ_ONCE(dst->dev->mtu), IP_MAX_MTU); mtu 460 include/net/ip.h return min(READ_ONCE(skb_dst(skb)->dev->mtu), IP_MAX_MTU); mtu 763 include/net/ip.h static inline bool inetdev_valid_mtu(unsigned int mtu) mtu 765 include/net/ip.h return likely(mtu >= IPV4_MIN_MTU); mtu 183 include/net/ip6_route.h void ip6_update_pmtu(struct sk_buff *skb, struct net *net, __be32 mtu, int oif, mtu 185 include/net/ip6_route.h void ip6_sk_update_pmtu(struct sk_buff *skb, struct sock *sk, __be32 mtu); mtu 201 include/net/ip6_route.h void rt6_mtu_change(struct net_device *dev, unsigned int mtu); mtu 270 include/net/ip6_route.h skb_dst(skb)->dev->mtu : dst_mtu(skb_dst(skb)); mtu 313 include/net/ip6_route.h unsigned int mtu; mtu 316 include/net/ip6_route.h mtu = dst_metric_raw(dst, RTAX_MTU); mtu 317 include/net/ip6_route.h if (mtu) mtu 318 include/net/ip6_route.h return mtu; mtu 321 include/net/ip6_route.h mtu = IPV6_MIN_MTU; mtu 325 include/net/ip6_route.h mtu = idev->cnf.mtu6; mtu 328 include/net/ip6_route.h return mtu; mtu 181 include/net/ipv6.h unsigned int mtu; mtu 191 include/net/ipv6.h void ip6_frag_init(struct sk_buff *skb, unsigned int hlen, unsigned int mtu, mtu 1101 include/net/ipv6.h void ipv6_local_rxpmtu(struct sock *sk, struct flowi6 *fl6, u32 mtu); mtu 99 include/net/lwtunnel.h unsigned int mtu) mtu 102 include/net/lwtunnel.h lwtunnel_output_redirect(lwtstate)) && lwtstate->headroom < mtu) mtu 179 include/net/lwtunnel.h unsigned int mtu) mtu 57 include/net/netfilter/nf_flow_table.h u16 mtu; mtu 147 include/net/pkt_sched.h return dev->mtu + dev->hard_header_len; mtu 205 include/net/route.h void ipv4_update_pmtu(struct sk_buff *skb, struct net *net, u32 mtu, int oif, mtu 207 include/net/route.h void ipv4_sk_update_pmtu(struct sk_buff *skb, struct sock *sk, u32 mtu); mtu 575 include/net/sctp/sctp.h __u32 mtu, __u32 extra) mtu 584 include/net/sctp/sctp.h if (WARN_ON_ONCE(mtu && mtu <= overhead)) mtu 585 include/net/sctp/sctp.h mtu = overhead; mtu 587 include/net/sctp/sctp.h return mtu ? mtu - overhead : overhead; mtu 38 include/net/tc_act/tc_police.h u32 mtu; mtu 211 include/net/vxlan.h int mtu; mtu 370 include/net/xfrm.h void (*local_error)(struct sk_buff *skb, u32 mtu); mtu 1545 include/net/xfrm.h u32 xfrm_state_mtu(struct xfrm_state *x, int mtu); mtu 1560 include/net/xfrm.h void xfrm_local_error(struct sk_buff *skb, int mtu); mtu 1584 include/net/xfrm.h void xfrm4_local_error(struct sk_buff *skb, u32 mtu); mtu 1594 include/net/xfrm.h void xfrm6_local_error(struct sk_buff *skb, u32 mtu); mtu 200 include/rdma/ib_addr.h static inline enum ib_mtu iboe_get_mtu(int mtu) mtu 205 include/rdma/ib_addr.h mtu = mtu - (IB_GRH_BYTES + IB_UDP_BYTES + IB_BTH_BYTES + mtu 209 include/rdma/ib_addr.h if (mtu >= ib_mtu_enum_to_int(IB_MTU_4096)) mtu 211 include/rdma/ib_addr.h else if (mtu >= ib_mtu_enum_to_int(IB_MTU_2048)) mtu 213 include/rdma/ib_addr.h else if (mtu >= ib_mtu_enum_to_int(IB_MTU_1024)) mtu 215 include/rdma/ib_addr.h else if (mtu >= ib_mtu_enum_to_int(IB_MTU_512)) mtu 217 include/rdma/ib_addr.h else if (mtu >= ib_mtu_enum_to_int(IB_MTU_256)) mtu 204 include/rdma/ib_sa.h u8 mtu; mtu 340 include/rdma/ib_sa.h u8 mtu; mtu 458 include/rdma/ib_verbs.h static inline int ib_mtu_enum_to_int(enum ib_mtu mtu) mtu 460 include/rdma/ib_verbs.h switch (mtu) { mtu 470 include/rdma/ib_verbs.h static inline enum ib_mtu ib_mtu_int_to_enum(int mtu) mtu 472 include/rdma/ib_verbs.h if (mtu >= 4096) mtu 474 include/rdma/ib_verbs.h else if (mtu >= 2048) mtu 476 include/rdma/ib_verbs.h else if (mtu >= 1024) mtu 478 include/rdma/ib_verbs.h else if (mtu >= 512) mtu 343 include/rdma/rdma_vt.h int (*mtu_to_path_mtu)(u32 mtu); mtu 59 include/uapi/linux/atmbr2684.h int mtu; mtu 55 include/uapi/linux/atmlec.h int mtu; mtu 19 include/uapi/linux/gsmmux.h unsigned int mtu; mtu 81 include/uapi/linux/icmp.h __be16 mtu; mtu 90 include/uapi/linux/if_frad.h short mtu; mtu 127 include/uapi/linux/pkt_cls.h __u32 mtu; mtu 109 include/uapi/linux/pkt_sched.h unsigned int mtu; mtu 188 include/uapi/linux/pkt_sched.h __u32 mtu; mtu 83 include/uapi/linux/virtio_net.h __u16 mtu; mtu 63 include/uapi/rdma/ib_user_sa.h __u32 mtu; mtu 31 net/6lowpan/core.c dev->mtu = IPV6_MIN_MTU; mtu 83 net/802/fc.c dev->mtu = 2024; mtu 150 net/802/fddi.c dev->mtu = FDDI_K_SNAP_DLEN; /* Assume max payload of 802.2 SNAP frame */ mtu 212 net/802/garp.c skb = alloc_skb(app->dev->mtu + LL_RESERVED_SPACE(app->dev), mtu 160 net/802/hippi.c dev->mtu = 65280; mtu 300 net/802/mrp.c skb = alloc_skb(app->dev->mtu + LL_RESERVED_SPACE(app->dev), mtu 266 net/8021q/vlan.c new_dev->mtu = real_dev->mtu; mtu 422 net/8021q/vlan.c if (vlandev->mtu <= dev->mtu) mtu 425 net/8021q/vlan.c dev_set_mtu(vlandev, dev->mtu); mtu 145 net/8021q/vlan_dev.c unsigned int max_mtu = real_dev->mtu; mtu 152 net/8021q/vlan_dev.c dev->mtu = new_mtu; mtu 178 net/8021q/vlan_netlink.c max_mtu = netif_reduces_vlan_mtu(real_dev) ? real_dev->mtu - VLAN_HLEN : mtu 179 net/8021q/vlan_netlink.c real_dev->mtu; mtu 181 net/8021q/vlan_netlink.c dev->mtu = max_mtu; mtu 182 net/8021q/vlan_netlink.c else if (dev->mtu > max_mtu) mtu 19 net/appletalk/dev.c dev->mtu = LTALK_MTU; mtu 652 net/atm/br2684.c netdev->mtu = ETH_DATA_LEN; mtu 680 net/atm/br2684.c if (ni.media != BR2684_MEDIA_ETHERNET || ni.mtu != 1500) mtu 500 net/atm/clip.c dev->mtu = RFC1626_MTU; mtu 417 net/atm/lec.c if (dev_set_mtu(dev, mesg->content.config.mtu)) mtu 419 net/atm/lec.c dev->name, mesg->content.config.mtu); mtu 216 net/atm/pppoatm.c pvcc->chan.mtu += LLC_LEN; mtu 416 net/atm/pppoatm.c pvcc->chan.mtu = atmvcc->qos.txtp.max_sdu - PPP_HDRLEN - mtu 1479 net/ax25/af_ax25.c if (len > ax25->ax25_dev->dev->mtu) { mtu 162 net/batman-adv/bat_v_ogm.c unsigned int max = min_t(unsigned int, hard_iface->net_dev->mtu, mtu 374 net/batman-adv/fragmentation.c if (total_size > neigh_node->if_incoming->net_dev->mtu) { mtu 410 net/batman-adv/fragmentation.c unsigned int mtu = fragment_size + header_size; mtu 412 net/batman-adv/fragmentation.c skb_fragment = netdev_alloc_skb(NULL, mtu + ETH_HLEN); mtu 446 net/batman-adv/fragmentation.c unsigned int mtu = neigh_node->if_incoming->net_dev->mtu; mtu 454 net/batman-adv/fragmentation.c mtu = min_t(unsigned int, mtu, BATADV_FRAG_MAX_FRAG_SIZE); mtu 455 net/batman-adv/fragmentation.c max_fragment_size = mtu - header_size; mtu 583 net/batman-adv/hard-interface.c min_mtu = min_t(int, hard_iface->net_dev->mtu, min_mtu); mtu 621 net/batman-adv/hard-interface.c soft_iface->mtu = batadv_hardif_min_mtu(soft_iface); mtu 778 net/batman-adv/hard-interface.c hard_iface->net_dev->mtu < ETH_DATA_LEN + max_header_len) mtu 781 net/batman-adv/hard-interface.c hard_iface->net_dev->name, hard_iface->net_dev->mtu, mtu 785 net/batman-adv/hard-interface.c hard_iface->net_dev->mtu < ETH_DATA_LEN + max_header_len) mtu 788 net/batman-adv/hard-interface.c hard_iface->net_dev->name, hard_iface->net_dev->mtu, mtu 196 net/batman-adv/send.c skb->len > neigh_node->if_incoming->net_dev->mtu) { mtu 163 net/batman-adv/soft-interface.c dev->mtu = new_mtu; mtu 1037 net/batman-adv/soft-interface.c dev->mtu = ETH_DATA_LEN; mtu 1010 net/batman-adv/translation-table.c if (tt_diff_len > bat_priv->soft_iface->mtu) mtu 147 net/bluetooth/a2mp.c BT_DBG("mtu %d efm 0x%4.4x", le16_to_cpu(req->mtu), ext_feat); mtu 177 net/bluetooth/a2mp.c rsp->mtu = cpu_to_le16(L2CAP_A2MP_DEFAULT_MTU); mtu 207 net/bluetooth/a2mp.c BT_DBG("mtu %d efm 0x%4.4x", le16_to_cpu(rsp->mtu), ext_feat); mtu 1030 net/bluetooth/a2mp.c req.mtu = cpu_to_le16(L2CAP_A2MP_DEFAULT_MTU); mtu 51 net/bluetooth/a2mp.h __le16 mtu; mtu 63 net/bluetooth/a2mp.h __le16 mtu; mtu 518 net/bluetooth/amp.c bredr_chan->conn->mtu = hs_hcon->hdev->block_mtu; mtu 80 net/bluetooth/cmtp/cmtp.h uint mtu; mtu 217 net/bluetooth/cmtp/core.c nskb = alloc_skb(session->mtu, GFP_ATOMIC); mtu 226 net/bluetooth/cmtp/core.c tail = session->mtu - nskb->len; mtu 230 net/bluetooth/cmtp/core.c tail = session->mtu; mtu 358 net/bluetooth/cmtp/core.c session->mtu = min_t(uint, l2cap_pi(sock->sk)->chan->omtu, mtu 361 net/bluetooth/cmtp/core.c BT_DBG("mtu %d", session->mtu); mtu 4847 net/bluetooth/hci_event.c bredr_chan->conn->mtu = hdev->block_mtu; mtu 528 net/bluetooth/l2cap_core.c chan->mps = min_t(u16, chan->imtu, chan->conn->mtu - L2CAP_HDR_SIZE); mtu 698 net/bluetooth/l2cap_core.c rsp.mtu = cpu_to_le16(chan->imtu); mtu 1296 net/bluetooth/l2cap_core.c req.mtu = cpu_to_le16(chan->imtu); mtu 2173 net/bluetooth/l2cap_core.c count = min_t(unsigned int, conn->mtu, len); mtu 2209 net/bluetooth/l2cap_core.c count = min_t(unsigned int, (conn->mtu - hlen), len); mtu 2240 net/bluetooth/l2cap_core.c count = min_t(unsigned int, (conn->mtu - L2CAP_HDR_SIZE), len); mtu 2282 net/bluetooth/l2cap_core.c count = min_t(unsigned int, (conn->mtu - hlen), len); mtu 2331 net/bluetooth/l2cap_core.c pdu_len = chan->conn->mtu; mtu 2400 net/bluetooth/l2cap_core.c count = min_t(unsigned int, (conn->mtu - hlen), len); mtu 2933 net/bluetooth/l2cap_core.c if (conn->mtu < L2CAP_HDR_SIZE + L2CAP_CMD_HDR_SIZE) mtu 2937 net/bluetooth/l2cap_core.c count = min_t(unsigned int, conn->mtu, len); mtu 2967 net/bluetooth/l2cap_core.c count = min_t(unsigned int, conn->mtu, len); mtu 3287 net/bluetooth/l2cap_core.c size = min_t(u16, L2CAP_DEFAULT_MAX_PDU_SIZE, chan->conn->mtu - mtu 3324 net/bluetooth/l2cap_core.c size = min_t(u16, L2CAP_DEFAULT_MAX_PDU_SIZE, chan->conn->mtu - mtu 3363 net/bluetooth/l2cap_core.c u16 mtu = L2CAP_DEFAULT_MTU; mtu 3381 net/bluetooth/l2cap_core.c mtu = val; mtu 3474 net/bluetooth/l2cap_core.c if (mtu < L2CAP_DEFAULT_MIN_MTU) mtu 3477 net/bluetooth/l2cap_core.c chan->omtu = mtu; mtu 3517 net/bluetooth/l2cap_core.c chan->conn->mtu - L2CAP_EXT_HDR_SIZE - mtu 3547 net/bluetooth/l2cap_core.c chan->conn->mtu - L2CAP_EXT_HDR_SIZE - mtu 3717 net/bluetooth/l2cap_core.c rsp.mtu = cpu_to_le16(chan->imtu); mtu 4596 net/bluetooth/l2cap_core.c conn->mtu = hdev->block_mtu; mtu 5335 net/bluetooth/l2cap_core.c u16 dcid, mtu, mps, credits, result; mtu 5343 net/bluetooth/l2cap_core.c mtu = __le16_to_cpu(rsp->mtu); mtu 5348 net/bluetooth/l2cap_core.c if (result == L2CAP_CR_LE_SUCCESS && (mtu < 23 || mps < 23 || mtu 5354 net/bluetooth/l2cap_core.c dcid, mtu, mps, credits, result); mtu 5377 net/bluetooth/l2cap_core.c chan->omtu = mtu; mtu 5503 net/bluetooth/l2cap_core.c u16 dcid, scid, credits, mtu, mps; mtu 5511 net/bluetooth/l2cap_core.c mtu = __le16_to_cpu(req->mtu); mtu 5517 net/bluetooth/l2cap_core.c if (mtu < 23 || mps < 23) mtu 5521 net/bluetooth/l2cap_core.c scid, mtu, mps); mtu 5568 net/bluetooth/l2cap_core.c chan->omtu = mtu; mtu 5606 net/bluetooth/l2cap_core.c rsp.mtu = cpu_to_le16(chan->imtu); mtu 5609 net/bluetooth/l2cap_core.c rsp.mtu = 0; mtu 6505 net/bluetooth/l2cap_core.c chan->conn->mtu = chan->hs_hcon->hdev->block_mtu; mtu 6507 net/bluetooth/l2cap_core.c chan->conn->mtu = chan->conn->hcon->hdev->acl_mtu; mtu 6576 net/bluetooth/l2cap_core.c chan->conn->mtu = chan->hs_hcon->hdev->block_mtu; mtu 6578 net/bluetooth/l2cap_core.c chan->conn->mtu = chan->conn->hcon->hdev->acl_mtu; mtu 7110 net/bluetooth/l2cap_core.c conn->mtu = hcon->hdev->le_mtu; mtu 7115 net/bluetooth/l2cap_core.c conn->mtu = hcon->hdev->acl_mtu; mtu 615 net/bluetooth/l2cap_sock.c static bool l2cap_valid_mtu(struct l2cap_chan *chan, u16 mtu) mtu 619 net/bluetooth/l2cap_sock.c if (mtu < L2CAP_LE_MIN_MTU) mtu 624 net/bluetooth/l2cap_sock.c if (mtu < L2CAP_DEFAULT_MIN_MTU) mtu 296 net/bluetooth/rfcomm/core.c d->mtu = RFCOMM_DEFAULT_MTU; mtu 410 net/bluetooth/rfcomm/core.c d->mtu = s->mtu; mtu 563 net/bluetooth/rfcomm/core.c BT_DBG("dlc %p mtu %d len %d", d, d->mtu, len); mtu 565 net/bluetooth/rfcomm/core.c if (len > d->mtu) mtu 580 net/bluetooth/rfcomm/core.c BT_DBG("dlc %p mtu %d len %d", d, d->mtu, len); mtu 660 net/bluetooth/rfcomm/core.c s->mtu = RFCOMM_DEFAULT_MTU; mtu 924 net/bluetooth/rfcomm/core.c BT_DBG("%p cr %d dlci %d mtu %d", s, cr, d->dlci, d->mtu); mtu 950 net/bluetooth/rfcomm/core.c pn->mtu = cpu_to_le16(channel_mtu); mtu 952 net/bluetooth/rfcomm/core.c pn->mtu = cpu_to_le16(d->mtu); mtu 1371 net/bluetooth/rfcomm/core.c d, d->state, d->dlci, pn->mtu, pn->flow_ctrl, pn->credits); mtu 1387 net/bluetooth/rfcomm/core.c d->mtu = __le16_to_cpu(pn->mtu); mtu 1389 net/bluetooth/rfcomm/core.c if (cr && d->mtu > s->mtu) mtu 1390 net/bluetooth/rfcomm/core.c d->mtu = s->mtu; mtu 1777 net/bluetooth/rfcomm/core.c d->mtu = s->mtu; mtu 1946 net/bluetooth/rfcomm/core.c s->mtu = min(l2cap_pi(nsock->sk)->chan->omtu, mtu 1966 net/bluetooth/rfcomm/core.c s->mtu = min(l2cap_pi(sk)->chan->omtu, l2cap_pi(sk)->chan->imtu) - 5; mtu 2160 net/bluetooth/rfcomm/core.c d->state, d->dlci, d->mtu, mtu 585 net/bluetooth/rfcomm/sock.c size_t size = min_t(size_t, len, d->mtu); mtu 358 net/bluetooth/rfcomm/tty.c return max(0, pending) * dlc->mtu; mtu 791 net/bluetooth/rfcomm/tty.c size = min_t(uint, count, dlc->mtu); mtu 1023 net/bluetooth/rfcomm/tty.c return dev->dlc->mtu; mtu 51 net/bluetooth/sco.c unsigned int mtu; mtu 122 net/bluetooth/sco.c conn->mtu = hdev->sco_mtu; mtu 124 net/bluetooth/sco.c conn->mtu = 60; mtu 282 net/bluetooth/sco.c if (len > conn->mtu) mtu 882 net/bluetooth/sco.c opts.mtu = sco_pi(sk)->conn->mtu; mtu 884 net/bluetooth/sco.c BT_DBG("mtu %d", opts.mtu); mtu 227 net/bridge/br_device.c dev->mtu = new_mtu; mtu 496 net/bridge/br_if.c if (!ret_mtu || ret_mtu > p->dev->mtu) mtu 497 net/bridge/br_if.c ret_mtu = p->dev->mtu; mtu 707 net/bridge/br_netfilter_hooks.c unsigned int mtu = ip_skb_dst_mtu(sk, skb); mtu 712 net/bridge/br_netfilter_hooks.c IPCB(skb)->frag_max_size > mtu))) { mtu 733 net/bridge/br_netfilter_hooks.c unsigned int mtu, mtu_reserved; mtu 736 net/bridge/br_netfilter_hooks.c mtu = skb->dev->mtu; mtu 738 net/bridge/br_netfilter_hooks.c if (nf_bridge->frag_max_size && nf_bridge->frag_max_size < mtu) mtu 739 net/bridge/br_netfilter_hooks.c mtu = nf_bridge->frag_max_size; mtu 741 net/bridge/br_netfilter_hooks.c if (skb_is_gso(skb) || skb->len + mtu_reserved <= mtu) { mtu 403 net/bridge/br_netlink.c nla_put_u32(skb, IFLA_MTU, dev->mtu) || mtu 25 net/bridge/br_nf_core.c struct sk_buff *skb, u32 mtu, mtu 49 net/bridge/br_nf_core.c return dst->dev->mtu; mtu 58 net/bridge/br_nf_core.c .mtu = fake_mtu, mtu 35 net/bridge/netfilter/nf_conntrack_bridge.c unsigned int hlen, ll_rs, mtu; mtu 55 net/bridge/netfilter/nf_conntrack_bridge.c mtu = skb->dev->mtu; mtu 62 net/bridge/netfilter/nf_conntrack_bridge.c if (first_len - hlen > mtu || mtu 70 net/bridge/netfilter/nf_conntrack_bridge.c if (frag->len > mtu || mtu 752 net/caif/caif_socket.c unsigned int mtu; mtu 849 net/caif/caif_socket.c mtu = dev->mtu; mtu 853 net/caif/caif_socket.c cf_sk->maxframe = mtu - (headroom + tailroom); mtu 855 net/caif/caif_socket.c pr_warn("CAIF Interface MTU too small (%d)\n", dev->mtu); mtu 423 net/caif/cfcnfg.c netdev->mtu); mtu 223 net/caif/chnl_net.c if (skb->len > priv->netdev->mtu) { mtu 263 net/caif/chnl_net.c int llifindex, headroom, tailroom, mtu; mtu 304 net/caif/chnl_net.c mtu = min_t(int, dev->mtu, lldev->mtu - (headroom + tailroom)); mtu 305 net/caif/chnl_net.c mtu = min_t(int, GPRS_PDP_MTU, mtu); mtu 306 net/caif/chnl_net.c dev_set_mtu(dev, mtu); mtu 308 net/caif/chnl_net.c if (mtu < 100) { mtu 309 net/caif/chnl_net.c pr_warn("CAIF Interface MTU too small (%d)\n", mtu); mtu 404 net/caif/chnl_net.c dev->mtu = GPRS_PDP_MTU; mtu 222 net/can/af_can.c if (unlikely(skb->len > skb->dev->mtu && cfd->len > CAN_MAX_DLEN)) { mtu 752 net/can/raw.c if (ro->fd_frames && dev->mtu == CANFD_MTU) { mtu 1711 net/core/dev.c .ext.mtu = arg, mtu 1829 net/core/dev.c len = dev->mtu + dev->hard_header_len + VLAN_HLEN; mtu 7968 net/core/dev.c WRITE_ONCE(dev->mtu, new_mtu); mtu 8002 net/core/dev.c if (new_mtu == dev->mtu) mtu 8017 net/core/dev.c orig_mtu = dev->mtu; mtu 122 net/core/dev_ioctl.c ifr->ifr_mtu = dev->mtu; mtu 3149 net/core/filter.c return skb->dev ? skb->dev->mtu + skb->dev->hard_header_len : mtu 4624 net/core/filter.c u32 mtu; mtu 4689 net/core/filter.c mtu = ip_mtu_from_fib_result(&res, params->ipv4_dst); mtu 4690 net/core/filter.c if (params->tot_len > mtu) mtu 4741 net/core/filter.c u32 mtu; mtu 4815 net/core/filter.c mtu = ipv6_stub->ip6_mtu_from_fib6(&res, dst, src); mtu 4816 net/core/filter.c if (params->tot_len > mtu) mtu 331 net/core/net-sysfs.c NETDEVICE_SHOW_RW(mtu, fmt_dec); mtu 1618 net/core/rtnetlink.c nla_put_u32(skb, IFLA_MTU, dev->mtu) || mtu 2963 net/core/rtnetlink.c u32 mtu = nla_get_u32(tb[IFLA_MTU]); mtu 2966 net/core/rtnetlink.c err = dev_validate_mtu(dev, mtu, extack); mtu 2971 net/core/rtnetlink.c dev->mtu = mtu; mtu 4320 net/core/rtnetlink.c nla_put_u32(skb, IFLA_MTU, dev->mtu) || mtu 5260 net/core/skbuff.c bool skb_gso_validate_network_len(const struct sk_buff *skb, unsigned int mtu) mtu 5262 net/core/skbuff.c return skb_gso_size_check(skb, skb_gso_network_seglen(skb), mtu); mtu 145 net/dccp/ipv4.c u32 mtu) mtu 158 net/dccp/ipv4.c dst = inet_csk_update_pmtu(sk, mtu); mtu 165 net/dccp/ipv4.c if (mtu < dst_mtu(dst) && ip_dont_fragment(sk, dst)) mtu 168 net/dccp/ipv4.c mtu = dst_mtu(dst); mtu 172 net/dccp/ipv4.c inet_csk(sk)->icsk_pmtu_cookie > mtu) { mtu 173 net/dccp/ipv4.c dccp_sync_mss(sk, mtu); mtu 1846 net/decnet/af_decnet.c unsigned int dn_mss_from_pmtu(struct net_device *dev, int mtu) mtu 1851 net/decnet/af_decnet.c mtu -= LL_RESERVED_SPACE(dev); mtu 1853 net/decnet/af_decnet.c mtu -= 21; mtu 1855 net/decnet/af_decnet.c mtu -= 6; mtu 1856 net/decnet/af_decnet.c mtu -= DN_MAX_NSP_DATA_HEADER; mtu 1861 net/decnet/af_decnet.c mtu -= (21 + DN_MAX_NSP_DATA_HEADER + 16); mtu 1863 net/decnet/af_decnet.c if (mtu > mss) mtu 1864 net/decnet/af_decnet.c mss = mtu; mtu 1880 net/decnet/af_decnet.c u32 mtu = dst_mtu(dst); mtu 1881 net/decnet/af_decnet.c mss_now = min_t(int, dn_mss_from_pmtu(dst->dev, mtu), mss_now); mtu 303 net/decnet/dn_dev.c u32 blksize = dev->mtu; mtu 162 net/decnet/dn_neigh.c dn->blksize = dev->mtu - 2; mtu 113 net/decnet/dn_route.c struct sk_buff *skb , u32 mtu, mtu 136 net/decnet/dn_route.c .mtu = dn_dst_mtu, mtu 255 net/decnet/dn_route.c struct sk_buff *skb, u32 mtu, mtu 270 net/decnet/dn_route.c if (dst_metric(dst, RTAX_MTU) > mtu && mtu >= min_mtu) { mtu 272 net/decnet/dn_route.c dst_metric_set(dst, RTAX_MTU, mtu); mtu 276 net/decnet/dn_route.c u32 mss = mtu - DN_MAX_NSP_DATA_HEADER; mtu 850 net/decnet/dn_route.c unsigned int mtu = dst_metric_raw(dst, RTAX_MTU); mtu 852 net/decnet/dn_route.c return mtu ? : dst->dev->mtu; mtu 884 net/decnet/dn_route.c if (dst_metric(&rt->dst, RTAX_MTU) > rt->dst.dev->mtu) mtu 885 net/decnet/dn_route.c dst_metric_set(&rt->dst, RTAX_MTU, rt->dst.dev->mtu); mtu 290 net/dsa/master.c unsigned int mtu = ETH_DATA_LEN + cpu_dp->tag_ops->overhead; mtu 294 net/dsa/master.c if (mtu <= dev->max_mtu) { mtu 295 net/dsa/master.c err = dev_set_mtu(dev, mtu); mtu 349 net/ethernet/eth.c dev->mtu = new_mtu; mtu 383 net/ethernet/eth.c dev->mtu = ETH_DATA_LEN; mtu 124 net/hsr/hsr_device.c mtu_max = min(port->dev->mtu, mtu_max); mtu 146 net/hsr/hsr_device.c dev->mtu = new_mtu; mtu 85 net/hsr/hsr_main.c master->dev->mtu = mtu_max; mtu 244 net/ieee802154/socket.c unsigned int mtu; mtu 267 net/ieee802154/socket.c mtu = IEEE802154_MTU; mtu 268 net/ieee802154/socket.c pr_debug("name = %s, mtu = %u\n", dev->name, mtu); mtu 270 net/ieee802154/socket.c if (size > mtu) { mtu 271 net/ieee802154/socket.c pr_debug("size = %zu, mtu = %u\n", size, mtu); mtu 607 net/ieee802154/socket.c unsigned int mtu; mtu 635 net/ieee802154/socket.c mtu = IEEE802154_MTU; mtu 636 net/ieee802154/socket.c pr_debug("name = %s, mtu = %u\n", dev->name, mtu); mtu 638 net/ieee802154/socket.c if (size > mtu) { mtu 639 net/ieee802154/socket.c pr_debug("size = %zu, mtu = %u\n", size, mtu); mtu 1540 net/ipv4/devinet.c if (inetdev_valid_mtu(dev->mtu)) mtu 1552 net/ipv4/devinet.c if (!inetdev_valid_mtu(dev->mtu)) mtu 1594 net/ipv4/devinet.c if (inetdev_valid_mtu(dev->mtu)) mtu 1495 net/ipv4/fib_frontend.c fib_sync_mtu(dev, info_ext->ext.mtu); mtu 1910 net/ipv4/fib_semantics.c fib_nhc_update_mtu(&nh->nh_common, dev->mtu, orig_mtu); mtu 836 net/ipv4/icmp.c info = ntohs(icmph->un.frag.mtu); mtu 348 net/ipv4/igmp.c static struct sk_buff *igmpv3_newpack(struct net_device *dev, unsigned int mtu) mtu 358 net/ipv4/igmp.c unsigned int size = mtu; mtu 383 net/ipv4/igmp.c skb_tailroom_reserve(skb, mtu, tlen); mtu 435 net/ipv4/igmp.c int type, struct igmpv3_grec **ppgr, unsigned int mtu) mtu 442 net/ipv4/igmp.c skb = igmpv3_newpack(dev, mtu); mtu 468 net/ipv4/igmp.c unsigned int mtu; mtu 475 net/ipv4/igmp.c mtu = READ_ONCE(dev->mtu); mtu 476 net/ipv4/igmp.c if (mtu < IPV4_MIN_MTU) mtu 499 net/ipv4/igmp.c skb = igmpv3_newpack(dev, mtu); mtu 535 net/ipv4/igmp.c skb = igmpv3_newpack(dev, mtu); mtu 540 net/ipv4/igmp.c skb = add_grhead(skb, pmc, type, &pgr, mtu); mtu 575 net/ipv4/igmp.c skb = add_grhead(skb, pmc, type, &pgr, mtu); mtu 1104 net/ipv4/inet_connection_sock.c struct dst_entry *inet_csk_update_pmtu(struct sock *sk, u32 mtu) mtu 1114 net/ipv4/inet_connection_sock.c dst->ops->update_pmtu(dst, sk, NULL, mtu, true); mtu 43 net/ipv4/ip_forward.c static bool ip_exceeds_mtu(const struct sk_buff *skb, unsigned int mtu) mtu 45 net/ipv4/ip_forward.c if (skb->len <= mtu) mtu 52 net/ipv4/ip_forward.c if (unlikely(IPCB(skb)->frag_max_size > mtu)) mtu 58 net/ipv4/ip_forward.c if (skb_is_gso(skb) && skb_gso_validate_network_len(skb, mtu)) mtu 88 net/ipv4/ip_forward.c u32 mtu; mtu 130 net/ipv4/ip_forward.c mtu = ip_dst_mtu_maybe_forward(&rt->dst, true); mtu 131 net/ipv4/ip_forward.c if (ip_exceeds_mtu(skb, mtu)) { mtu 134 net/ipv4/ip_forward.c htonl(mtu)); mtu 526 net/ipv4/ip_gre.c if (skb->len > dev->mtu + dev->hard_header_len) { mtu 527 net/ipv4/ip_gre.c pskb_trim(skb, dev->mtu + dev->hard_header_len); mtu 658 net/ipv4/ip_gre.c if (skb->len > dev->mtu + dev->hard_header_len) { mtu 659 net/ipv4/ip_gre.c pskb_trim(skb, dev->mtu + dev->hard_header_len); mtu 728 net/ipv4/ip_gre.c dev->mtu = max_t(int, dev->mtu - len, 68); mtu 87 net/ipv4/ip_output.c unsigned int mtu, mtu 241 net/ipv4/ip_output.c struct sk_buff *skb, unsigned int mtu) mtu 249 net/ipv4/ip_output.c if (skb_gso_validate_network_len(skb, mtu)) mtu 280 net/ipv4/ip_output.c err = ip_fragment(net, sk, segs, mtu, ip_finish_output2); mtu 292 net/ipv4/ip_output.c unsigned int mtu; mtu 301 net/ipv4/ip_output.c mtu = ip_skb_dst_mtu(sk, skb); mtu 303 net/ipv4/ip_output.c return ip_finish_output_gso(net, sk, skb, mtu); mtu 305 net/ipv4/ip_output.c if (skb->len > mtu || (IPCB(skb)->flags & IPSKB_FRAG_PMTU)) mtu 306 net/ipv4/ip_output.c return ip_fragment(net, sk, skb, mtu, ip_finish_output2); mtu 569 net/ipv4/ip_output.c unsigned int mtu, mtu 579 net/ipv4/ip_output.c IPCB(skb)->frag_max_size > mtu))) { mtu 582 net/ipv4/ip_output.c htonl(mtu)); mtu 648 net/ipv4/ip_output.c unsigned int ll_rs, unsigned int mtu, bool DF, mtu 656 net/ipv4/ip_output.c state->mtu = mtu; mtu 690 net/ipv4/ip_output.c if (len > state->mtu) mtu 691 net/ipv4/ip_output.c len = state->mtu; mtu 772 net/ipv4/ip_output.c unsigned int mtu, hlen, ll_rs; mtu 789 net/ipv4/ip_output.c mtu = ip_skb_dst_mtu(sk, skb); mtu 790 net/ipv4/ip_output.c if (IPCB(skb)->frag_max_size && IPCB(skb)->frag_max_size < mtu) mtu 791 net/ipv4/ip_output.c mtu = IPCB(skb)->frag_max_size; mtu 798 net/ipv4/ip_output.c mtu = mtu - hlen; /* Size of data space */ mtu 813 net/ipv4/ip_output.c if (first_len - hlen > mtu || mtu 822 net/ipv4/ip_output.c if (frag->len > mtu || mtu 886 net/ipv4/ip_output.c ip_frag_init(skb, hlen, ll_rs, mtu, IPCB(skb)->flags & IPSKB_FRAG_PMTU, mtu 970 net/ipv4/ip_output.c int mtu; mtu 984 net/ipv4/ip_output.c mtu = cork->gso_size ? IP_MAX_MTU : cork->fragsize; mtu 994 net/ipv4/ip_output.c maxfraglen = ((mtu - fragheaderlen) & ~7) + fragheaderlen; mtu 995 net/ipv4/ip_output.c maxnonfragsize = ip_sk_ignore_df(sk) ? 0xFFFF : mtu; mtu 999 net/ipv4/ip_output.c mtu - (opt ? opt->optlen : 0)); mtu 1008 net/ipv4/ip_output.c length + fragheaderlen <= mtu && mtu 1042 net/ipv4/ip_output.c copy = mtu - skb->len; mtu 1065 net/ipv4/ip_output.c if (datalen > mtu - fragheaderlen) mtu 1072 net/ipv4/ip_output.c alloclen = mtu; mtu 1262 net/ipv4/ip_output.c dst_mtu(&rt->dst) : READ_ONCE(rt->dst.dev->mtu); mtu 1331 net/ipv4/ip_output.c int mtu; mtu 1354 net/ipv4/ip_output.c mtu = cork->gso_size ? IP_MAX_MTU : cork->fragsize; mtu 1357 net/ipv4/ip_output.c maxfraglen = ((mtu - fragheaderlen) & ~7) + fragheaderlen; mtu 1358 net/ipv4/ip_output.c maxnonfragsize = ip_sk_ignore_df(sk) ? 0xFFFF : mtu; mtu 1362 net/ipv4/ip_output.c mtu - (opt ? opt->optlen : 0)); mtu 1374 net/ipv4/ip_output.c len = mtu - skb->len; mtu 283 net/ipv4/ip_tunnel.c int mtu = ETH_DATA_LEN; mtu 314 net/ipv4/ip_tunnel.c mtu = min(tdev->mtu, IP_MAX_MTU); mtu 318 net/ipv4/ip_tunnel.c mtu -= (dev->hard_header_len + t_hlen); mtu 320 net/ipv4/ip_tunnel.c if (mtu < IPV4_MIN_MTU) mtu 321 net/ipv4/ip_tunnel.c mtu = IPV4_MIN_MTU; mtu 323 net/ipv4/ip_tunnel.c return mtu; mtu 333 net/ipv4/ip_tunnel.c int mtu; mtu 340 net/ipv4/ip_tunnel.c mtu = ip_tunnel_bind_dev(dev); mtu 341 net/ipv4/ip_tunnel.c err = dev_set_mtu(dev, mtu); mtu 492 net/ipv4/ip_tunnel.c int mtu; mtu 498 net/ipv4/ip_tunnel.c mtu = dst_mtu(&rt->dst) - dev->hard_header_len mtu 501 net/ipv4/ip_tunnel.c mtu = skb_valid_dst(skb) ? dst_mtu(skb_dst(skb)) : dev->mtu; mtu 504 net/ipv4/ip_tunnel.c skb_dst_update_pmtu_no_confirm(skb, mtu); mtu 509 net/ipv4/ip_tunnel.c mtu < pkt_size) { mtu 511 net/ipv4/ip_tunnel.c icmp_send(skb, ICMP_DEST_UNREACH, ICMP_FRAG_NEEDED, htonl(mtu)); mtu 524 net/ipv4/ip_tunnel.c if (rt6 && mtu < dst_mtu(skb_dst(skb)) && mtu 525 net/ipv4/ip_tunnel.c mtu >= IPV6_MIN_MTU) { mtu 529 net/ipv4/ip_tunnel.c dst_metric_set(skb_dst(skb), RTAX_MTU, mtu); mtu 533 net/ipv4/ip_tunnel.c if (!skb_is_gso(skb) && mtu >= IPV6_MIN_MTU && mtu 534 net/ipv4/ip_tunnel.c mtu < pkt_size) { mtu 535 net/ipv4/ip_tunnel.c icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, mtu); mtu 851 net/ipv4/ip_tunnel.c int mtu; mtu 855 net/ipv4/ip_tunnel.c mtu = ip_tunnel_bind_dev(dev); mtu 857 net/ipv4/ip_tunnel.c dev->mtu = mtu; mtu 981 net/ipv4/ip_tunnel.c dev->mtu = new_mtu; mtu 1062 net/ipv4/ip_tunnel.c itn->fb_tunnel_dev->mtu = ip_tunnel_bind_dev(itn->fb_tunnel_dev); mtu 1120 net/ipv4/ip_tunnel.c int mtu; mtu 1144 net/ipv4/ip_tunnel.c mtu = ip_tunnel_bind_dev(dev); mtu 1148 net/ipv4/ip_tunnel.c mtu = clamp(dev->mtu, (unsigned int)ETH_MIN_MTU, mtu 1152 net/ipv4/ip_tunnel.c err = dev_set_mtu(dev, mtu); mtu 208 net/ipv4/ip_vti.c int mtu; mtu 267 net/ipv4/ip_vti.c mtu = dst_mtu(dst); mtu 268 net/ipv4/ip_vti.c if (skb->len > mtu) { mtu 269 net/ipv4/ip_vti.c skb_dst_update_pmtu_no_confirm(skb, mtu); mtu 272 net/ipv4/ip_vti.c htonl(mtu)); mtu 274 net/ipv4/ip_vti.c if (mtu < IPV6_MIN_MTU) mtu 275 net/ipv4/ip_vti.c mtu = IPV6_MIN_MTU; mtu 277 net/ipv4/ip_vti.c icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, mtu); mtu 232 net/ipv4/ipconfig.c if (dev->mtu >= 364) mtu 236 net/ipv4/ipconfig.c dev->name, dev->mtu); mtu 894 net/ipv4/ipconfig.c __be16 mtu; mtu 935 net/ipv4/ipconfig.c memcpy(&mtu, ext+1, sizeof(mtu)); mtu 936 net/ipv4/ipconfig.c ic_dev_mtu = ntohs(mtu); mtu 557 net/ipv4/ipmr.c dev->mtu = ETH_DATA_LEN - sizeof(struct iphdr) - 8; mtu 192 net/ipv4/netfilter/nf_log_ipv4.c ntohs(ich->un.frag.mtu)); mtu 1776 net/ipv4/nexthop.c fib_nhc_update_mtu(&nhi->fib_nhc, dev->mtu, mtu 1800 net/ipv4/nexthop.c nexthop_sync_mtu(dev, info_ext->ext.mtu); mtu 357 net/ipv4/raw.c if (length > rt->dst.dev->mtu) { mtu 359 net/ipv4/raw.c rt->dst.dev->mtu); mtu 142 net/ipv4/route.c struct sk_buff *skb, u32 mtu, mtu 163 net/ipv4/route.c .mtu = ipv4_mtu, mtu 1012 net/ipv4/route.c static void __ip_rt_update_pmtu(struct rtable *rt, struct flowi4 *fl4, u32 mtu) mtu 1022 net/ipv4/route.c if (old_mtu < mtu) mtu 1025 net/ipv4/route.c if (mtu < ip_rt_min_pmtu) { mtu 1027 net/ipv4/route.c mtu = min(old_mtu, ip_rt_min_pmtu); mtu 1030 net/ipv4/route.c if (rt->rt_pmtu == mtu && !lock && mtu 1038 net/ipv4/route.c update_or_create_fnhe(nhc, fl4->daddr, 0, mtu, lock, mtu 1045 net/ipv4/route.c struct sk_buff *skb, u32 mtu, mtu 1052 net/ipv4/route.c __ip_rt_update_pmtu(rt, &fl4, mtu); mtu 1055 net/ipv4/route.c void ipv4_update_pmtu(struct sk_buff *skb, struct net *net, u32 mtu, mtu 1067 net/ipv4/route.c __ip_rt_update_pmtu(rt, &fl4, mtu); mtu 1073 net/ipv4/route.c static void __ipv4_sk_update_pmtu(struct sk_buff *skb, struct sock *sk, u32 mtu) mtu 1086 net/ipv4/route.c __ip_rt_update_pmtu(rt, &fl4, mtu); mtu 1091 net/ipv4/route.c void ipv4_sk_update_pmtu(struct sk_buff *skb, struct sock *sk, u32 mtu) mtu 1108 net/ipv4/route.c __ipv4_sk_update_pmtu(skb, sk, mtu); mtu 1123 net/ipv4/route.c __ip_rt_update_pmtu((struct rtable *) xfrm_dst_path(&rt->dst), &fl4, mtu); mtu 1305 net/ipv4/route.c unsigned int mtu = rt->rt_pmtu; mtu 1307 net/ipv4/route.c if (!mtu || time_after_eq(jiffies, rt->dst.expires)) mtu 1308 net/ipv4/route.c mtu = dst_metric_raw(dst, RTAX_MTU); mtu 1310 net/ipv4/route.c if (mtu) mtu 1311 net/ipv4/route.c return mtu; mtu 1313 net/ipv4/route.c mtu = READ_ONCE(dst->dev->mtu); mtu 1316 net/ipv4/route.c if (rt->rt_uses_gateway && mtu > 576) mtu 1317 net/ipv4/route.c mtu = 576; mtu 1320 net/ipv4/route.c mtu = min_t(unsigned int, mtu, IP_MAX_MTU); mtu 1322 net/ipv4/route.c return mtu - lwtunnel_headroom(dst->lwtstate, mtu); mtu 1396 net/ipv4/route.c u32 mtu = 0; mtu 1400 net/ipv4/route.c mtu = fi->fib_mtu; mtu 1402 net/ipv4/route.c if (likely(!mtu)) { mtu 1407 net/ipv4/route.c mtu = fnhe->fnhe_pmtu; mtu 1410 net/ipv4/route.c if (likely(!mtu)) mtu 1411 net/ipv4/route.c mtu = min(READ_ONCE(dev->mtu), IP_MAX_MTU); mtu 1413 net/ipv4/route.c return mtu - lwtunnel_headroom(nhc->nhc_lwtstate, mtu); mtu 2645 net/ipv4/route.c unsigned int mtu = dst_metric_raw(dst, RTAX_MTU); mtu 2647 net/ipv4/route.c return mtu ? : dst->dev->mtu; mtu 2651 net/ipv4/route.c struct sk_buff *skb, u32 mtu, mtu 2670 net/ipv4/route.c .mtu = ipv4_blackhole_mtu, mtu 152 net/ipv4/tcp_input.c if (!dev || len >= dev->mtu) mtu 342 net/ipv4/tcp_ipv4.c u32 mtu; mtu 346 net/ipv4/tcp_ipv4.c mtu = tcp_sk(sk)->mtu_info; mtu 347 net/ipv4/tcp_ipv4.c dst = inet_csk_update_pmtu(sk, mtu); mtu 354 net/ipv4/tcp_ipv4.c if (mtu < dst_mtu(dst) && ip_dont_fragment(sk, dst)) mtu 357 net/ipv4/tcp_ipv4.c mtu = dst_mtu(dst); mtu 361 net/ipv4/tcp_ipv4.c inet_csk(sk)->icsk_pmtu_cookie > mtu) { mtu 362 net/ipv4/tcp_ipv4.c tcp_sync_mss(sk, mtu); mtu 1511 net/ipv4/tcp_output.c int mtu; mtu 1513 net/ipv4/tcp_output.c mtu = mss + mtu 1523 net/ipv4/tcp_output.c mtu += icsk->icsk_af_ops->net_frag_header_len; mtu 1525 net/ipv4/tcp_output.c return mtu; mtu 1605 net/ipv4/tcp_output.c u32 mtu = dst_mtu(dst); mtu 1606 net/ipv4/tcp_output.c if (mtu != inet_csk(sk)->icsk_pmtu_cookie) mtu 1607 net/ipv4/tcp_output.c mss_now = tcp_sync_mss(sk, mtu); mtu 19 net/ipv4/xfrm4_output.c int mtu, ret = 0; mtu 27 net/ipv4/xfrm4_output.c mtu = dst_mtu(skb_dst(skb)); mtu 28 net/ipv4/xfrm4_output.c if ((!skb_is_gso(skb) && skb->len > mtu) || mtu 34 net/ipv4/xfrm4_output.c xfrm_local_error(skb, mtu); mtu 37 net/ipv4/xfrm4_output.c ICMP_FRAG_NEEDED, htonl(mtu)); mtu 98 net/ipv4/xfrm4_output.c void xfrm4_local_error(struct sk_buff *skb, u32 mtu) mtu 104 net/ipv4/xfrm4_output.c inet_sk(skb->sk)->inet_dport, mtu); mtu 103 net/ipv4/xfrm4_policy.c struct sk_buff *skb, u32 mtu, mtu 109 net/ipv4/xfrm4_policy.c path->ops->update_pmtu(path, sk, skb, mtu, confirm_neigh); mtu 370 net/ipv6/addrconf.c if (dev->mtu < IPV6_MIN_MTU) mtu 386 net/ipv6/addrconf.c ndev->cnf.mtu6 = dev->mtu; mtu 3500 net/ipv6/addrconf.c if (!idev && dev->mtu >= IPV6_MIN_MTU) { mtu 3509 net/ipv6/addrconf.c if (dev->mtu < IPV6_MIN_MTU) { mtu 3515 net/ipv6/addrconf.c rt6_mtu_change(dev, dev->mtu); mtu 3516 net/ipv6/addrconf.c idev->cnf.mtu6 = dev->mtu; mtu 3552 net/ipv6/addrconf.c if (!idev && dev->mtu >= IPV6_MIN_MTU) mtu 3621 net/ipv6/addrconf.c if (idev->cnf.mtu6 != dev->mtu && mtu 3622 net/ipv6/addrconf.c dev->mtu >= IPV6_MIN_MTU) { mtu 3623 net/ipv6/addrconf.c rt6_mtu_change(dev, dev->mtu); mtu 3624 net/ipv6/addrconf.c idev->cnf.mtu6 = dev->mtu; mtu 3633 net/ipv6/addrconf.c if (dev->mtu < IPV6_MIN_MTU) mtu 5799 net/ipv6/addrconf.c nla_put_u32(skb, IFLA_MTU, dev->mtu) || mtu 6093 net/ipv6/addrconf.c lctl.extra2 = idev ? &idev->dev->mtu : NULL; mtu 362 net/ipv6/datagram.c void ipv6_local_rxpmtu(struct sock *sk, struct flowi6 *fl6, u32 mtu) mtu 383 net/ipv6/datagram.c mtu_info->ip6m_mtu = mtu; mtu 142 net/ipv6/inet6_connection_sock.c struct dst_entry *inet6_csk_update_pmtu(struct sock *sk, u32 mtu) mtu 149 net/ipv6/inet6_connection_sock.c dst->ops->update_pmtu(dst, sk, NULL, mtu, true); mtu 775 net/ipv6/ip6_gre.c __u32 mtu; mtu 788 net/ipv6/ip6_gre.c err = __gre6_xmit(skb, dev, dsfield, &fl6, encap_limit, &mtu, mtu 794 net/ipv6/ip6_gre.c htonl(mtu)); mtu 808 net/ipv6/ip6_gre.c __u32 mtu; mtu 822 net/ipv6/ip6_gre.c &mtu, skb->protocol); mtu 825 net/ipv6/ip6_gre.c icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, mtu); mtu 857 net/ipv6/ip6_gre.c __u32 mtu; mtu 870 net/ipv6/ip6_gre.c err = __gre6_xmit(skb, dev, 0, &fl6, encap_limit, &mtu, skb->protocol); mtu 924 net/ipv6/ip6_gre.c __u32 mtu; mtu 937 net/ipv6/ip6_gre.c if (skb->len > dev->mtu + dev->hard_header_len) { mtu 938 net/ipv6/ip6_gre.c pskb_trim(skb, dev->mtu + dev->hard_header_len); mtu 1042 net/ipv6/ip6_gre.c if (!t->parms.collect_md && dst && dst_mtu(dst) > dst->dev->mtu) mtu 1043 net/ipv6/ip6_gre.c dst->ops->update_pmtu(dst, NULL, skb, dst->dev->mtu, false); mtu 1045 net/ipv6/ip6_gre.c err = ip6_tnl_xmit(skb, dev, dsfield, &fl6, encap_limit, &mtu, mtu 1052 net/ipv6/ip6_gre.c ICMP_FRAG_NEEDED, htonl(mtu)); mtu 1054 net/ipv6/ip6_gre.c icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, mtu); mtu 1124 net/ipv6/ip6_gre.c dev->mtu = rt->dst.dev->mtu - t_hlen; mtu 1126 net/ipv6/ip6_gre.c dev->mtu -= 8; mtu 1128 net/ipv6/ip6_gre.c dev->mtu -= ETH_HLEN; mtu 1130 net/ipv6/ip6_gre.c if (dev->mtu < IPV6_MIN_MTU) mtu 1131 net/ipv6/ip6_gre.c dev->mtu = IPV6_MIN_MTU; mtu 1462 net/ipv6/ip6_gre.c dev->mtu = ETH_DATA_LEN - t_hlen; mtu 1464 net/ipv6/ip6_gre.c dev->mtu -= ETH_HLEN; mtu 1466 net/ipv6/ip6_gre.c dev->mtu -= 8; mtu 1856 net/ipv6/ip6_gre.c dev->mtu = ETH_DATA_LEN - t_hlen; mtu 1858 net/ipv6/ip6_gre.c dev->mtu -= ETH_HLEN; mtu 1860 net/ipv6/ip6_gre.c dev->mtu -= 8; mtu 207 net/ipv6/ip6_output.c u32 mtu; mtu 264 net/ipv6/ip6_output.c mtu = dst_mtu(dst); mtu 265 net/ipv6/ip6_output.c if ((skb->len <= mtu) || skb->ignore_df || skb_is_gso(skb)) { mtu 288 net/ipv6/ip6_output.c ipv6_local_error((struct sock *)sk, EMSGSIZE, fl6, mtu); mtu 402 net/ipv6/ip6_output.c static bool ip6_pkt_too_big(const struct sk_buff *skb, unsigned int mtu) mtu 404 net/ipv6/ip6_output.c if (skb->len <= mtu) mtu 408 net/ipv6/ip6_output.c if (IP6CB(skb)->frag_max_size && IP6CB(skb)->frag_max_size > mtu) mtu 414 net/ipv6/ip6_output.c if (skb_is_gso(skb) && skb_gso_validate_network_len(skb, mtu)) mtu 427 net/ipv6/ip6_output.c u32 mtu; mtu 541 net/ipv6/ip6_output.c mtu = ip6_dst_mtu_forward(dst); mtu 542 net/ipv6/ip6_output.c if (mtu < IPV6_MIN_MTU) mtu 543 net/ipv6/ip6_output.c mtu = IPV6_MIN_MTU; mtu 545 net/ipv6/ip6_output.c if (ip6_pkt_too_big(skb, mtu)) { mtu 548 net/ipv6/ip6_output.c icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, mtu); mtu 665 net/ipv6/ip6_output.c void ip6_frag_init(struct sk_buff *skb, unsigned int hlen, unsigned int mtu, mtu 674 net/ipv6/ip6_output.c state->mtu = mtu; mtu 695 net/ipv6/ip6_output.c if (len > state->mtu) mtu 696 net/ipv6/ip6_output.c len = state->mtu; mtu 770 net/ipv6/ip6_output.c unsigned int mtu, hlen, nexthdr_offset; mtu 783 net/ipv6/ip6_output.c mtu = ip6_skb_dst_mtu(skb); mtu 788 net/ipv6/ip6_output.c if (unlikely(!skb->ignore_df && skb->len > mtu)) mtu 792 net/ipv6/ip6_output.c if (IP6CB(skb)->frag_max_size > mtu) mtu 796 net/ipv6/ip6_output.c mtu = IP6CB(skb)->frag_max_size; mtu 797 net/ipv6/ip6_output.c if (mtu < IPV6_MIN_MTU) mtu 798 net/ipv6/ip6_output.c mtu = IPV6_MIN_MTU; mtu 801 net/ipv6/ip6_output.c if (np && np->frag_size < mtu) { mtu 803 net/ipv6/ip6_output.c mtu = np->frag_size; mtu 805 net/ipv6/ip6_output.c if (mtu < hlen + sizeof(struct frag_hdr) + 8) mtu 807 net/ipv6/ip6_output.c mtu -= hlen + sizeof(struct frag_hdr); mtu 823 net/ipv6/ip6_output.c if (first_len - hlen > mtu || mtu 831 net/ipv6/ip6_output.c if (frag->len > mtu || mtu 900 net/ipv6/ip6_output.c ip6_frag_init(skb, hlen, mtu, rt->dst.dev->needed_tailroom, mtu 935 net/ipv6/ip6_output.c icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, mtu); mtu 1211 net/ipv6/ip6_output.c static void ip6_append_data_mtu(unsigned int *mtu, mtu 1221 net/ipv6/ip6_output.c *mtu = orig_mtu - rt->dst.header_len; mtu 1228 net/ipv6/ip6_output.c *mtu = orig_mtu; mtu 1230 net/ipv6/ip6_output.c *maxfraglen = ((*mtu - fragheaderlen) & ~7) mtu 1240 net/ipv6/ip6_output.c unsigned int mtu; mtu 1286 net/ipv6/ip6_output.c mtu = np->pmtudisc >= IPV6_PMTUDISC_PROBE ? mtu 1287 net/ipv6/ip6_output.c READ_ONCE(rt->dst.dev->mtu) : dst_mtu(&rt->dst); mtu 1289 net/ipv6/ip6_output.c mtu = np->pmtudisc >= IPV6_PMTUDISC_PROBE ? mtu 1290 net/ipv6/ip6_output.c READ_ONCE(rt->dst.dev->mtu) : dst_mtu(xfrm_dst_path(&rt->dst)); mtu 1291 net/ipv6/ip6_output.c if (np->frag_size < mtu) { mtu 1293 net/ipv6/ip6_output.c mtu = np->frag_size; mtu 1295 net/ipv6/ip6_output.c if (mtu < IPV6_MIN_MTU) mtu 1297 net/ipv6/ip6_output.c cork->base.fragsize = mtu; mtu 1324 net/ipv6/ip6_output.c unsigned int maxfraglen, fragheaderlen, mtu, orig_mtu, pmtu; mtu 1347 net/ipv6/ip6_output.c mtu = cork->gso_size ? IP6_MAX_MTU : cork->fragsize; mtu 1348 net/ipv6/ip6_output.c orig_mtu = mtu; mtu 1358 net/ipv6/ip6_output.c maxfraglen = ((mtu - fragheaderlen) & ~7) + fragheaderlen - mtu 1370 net/ipv6/ip6_output.c if (headersize + transhdrlen > mtu) mtu 1373 net/ipv6/ip6_output.c if (cork->length + length > mtu - headersize && ipc6->dontfrag && mtu 1376 net/ipv6/ip6_output.c ipv6_local_rxpmtu(sk, fl6, mtu - headersize + mtu 1384 net/ipv6/ip6_output.c maxnonfragsize = mtu; mtu 1388 net/ipv6/ip6_output.c pmtu = max_t(int, mtu - headersize + sizeof(struct ipv6hdr), 0); mtu 1398 net/ipv6/ip6_output.c length <= mtu - headersize && mtu 1439 net/ipv6/ip6_output.c copy = (cork->length <= mtu && !(cork->flags & IPCORK_ALLFRAG) ? mtu : maxfraglen) - skb->len; mtu 1458 net/ipv6/ip6_output.c ip6_append_data_mtu(&mtu, &maxfraglen, mtu 1470 net/ipv6/ip6_output.c if (datalen > (cork->length <= mtu && !(cork->flags & IPCORK_ALLFRAG) ? mtu : maxfraglen) - fragheaderlen) mtu 1477 net/ipv6/ip6_output.c alloclen = mtu; mtu 500 net/ipv6/ip6_tunnel.c __u32 mtu, teli; mtu 533 net/ipv6/ip6_tunnel.c mtu = *info - offset; mtu 534 net/ipv6/ip6_tunnel.c if (mtu < IPV6_MIN_MTU) mtu 535 net/ipv6/ip6_tunnel.c mtu = IPV6_MIN_MTU; mtu 537 net/ipv6/ip6_tunnel.c if (len > mtu) { mtu 540 net/ipv6/ip6_tunnel.c rel_info = mtu; mtu 1043 net/ipv6/ip6_tunnel.c int mtu; mtu 1127 net/ipv6/ip6_tunnel.c mtu = dst_mtu(dst) - eth_hlen - psh_hlen - t->tun_hlen; mtu 1130 net/ipv6/ip6_tunnel.c mtu -= 8; mtu 1132 net/ipv6/ip6_tunnel.c mtu = max(mtu, skb->protocol == htons(ETH_P_IPV6) ? mtu 1135 net/ipv6/ip6_tunnel.c skb_dst_update_pmtu_no_confirm(skb, mtu); mtu 1136 net/ipv6/ip6_tunnel.c if (skb->len - t->tun_hlen - eth_hlen > mtu && !skb_is_gso(skb)) { mtu 1137 net/ipv6/ip6_tunnel.c *pmtu = mtu; mtu 1237 net/ipv6/ip6_tunnel.c __u32 mtu; mtu 1288 net/ipv6/ip6_tunnel.c err = ip6_tnl_xmit(skb, dev, dsfield, &fl6, encap_limit, &mtu, mtu 1294 net/ipv6/ip6_tunnel.c htonl(mtu)); mtu 1310 net/ipv6/ip6_tunnel.c __u32 mtu; mtu 1376 net/ipv6/ip6_tunnel.c err = ip6_tnl_xmit(skb, dev, dsfield, &fl6, encap_limit, &mtu, mtu 1380 net/ipv6/ip6_tunnel.c icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, mtu); mtu 1468 net/ipv6/ip6_tunnel.c dev->mtu = rt->dst.dev->mtu - t_hlen; mtu 1470 net/ipv6/ip6_tunnel.c dev->mtu -= 8; mtu 1472 net/ipv6/ip6_tunnel.c if (dev->mtu < IPV6_MIN_MTU) mtu 1473 net/ipv6/ip6_tunnel.c dev->mtu = IPV6_MIN_MTU; mtu 1707 net/ipv6/ip6_tunnel.c dev->mtu = new_mtu; mtu 1850 net/ipv6/ip6_tunnel.c dev->mtu = ETH_DATA_LEN - t_hlen; mtu 1852 net/ipv6/ip6_tunnel.c dev->mtu -= 8; mtu 450 net/ipv6/ip6_vti.c int mtu; mtu 507 net/ipv6/ip6_vti.c mtu = dst_mtu(dst); mtu 508 net/ipv6/ip6_vti.c if (skb->len > mtu) { mtu 509 net/ipv6/ip6_vti.c skb_dst_update_pmtu_no_confirm(skb, mtu); mtu 512 net/ipv6/ip6_vti.c if (mtu < IPV6_MIN_MTU) mtu 513 net/ipv6/ip6_vti.c mtu = IPV6_MIN_MTU; mtu 515 net/ipv6/ip6_vti.c icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, mtu); mtu 518 net/ipv6/ip6_vti.c htonl(mtu)); mtu 650 net/ipv6/ip6_vti.c int mtu; mtu 664 net/ipv6/ip6_vti.c if (keep_mtu && dev->mtu) { mtu 665 net/ipv6/ip6_vti.c dev->mtu = clamp(dev->mtu, dev->min_mtu, dev->max_mtu); mtu 685 net/ipv6/ip6_vti.c mtu = tdev->mtu - sizeof(struct ipv6hdr); mtu 687 net/ipv6/ip6_vti.c mtu = ETH_DATA_LEN - LL_MAX_HEADER - sizeof(struct ipv6hdr); mtu 689 net/ipv6/ip6_vti.c dev->mtu = max_t(int, mtu, IPV4_MIN_MTU); mtu 632 net/ipv6/ip6mr.c dev->mtu = 1500 - sizeof(struct ipv6hdr) - 8; mtu 1589 net/ipv6/mcast.c static struct sk_buff *mld_newpack(struct inet6_dev *idev, unsigned int mtu) mtu 1600 net/ipv6/mcast.c unsigned int size = mtu + hlen + tlen; mtu 1616 net/ipv6/mcast.c skb_tailroom_reserve(skb, mtu, tlen); mtu 1707 net/ipv6/mcast.c int type, struct mld2_grec **ppgr, unsigned int mtu) mtu 1713 net/ipv6/mcast.c skb = mld_newpack(pmc->idev, mtu); mtu 1739 net/ipv6/mcast.c unsigned int mtu; mtu 1744 net/ipv6/mcast.c mtu = READ_ONCE(dev->mtu); mtu 1745 net/ipv6/mcast.c if (mtu < IPV6_MIN_MTU) mtu 1768 net/ipv6/mcast.c skb = mld_newpack(idev, mtu); mtu 1804 net/ipv6/mcast.c skb = mld_newpack(idev, mtu); mtu 1809 net/ipv6/mcast.c skb = add_grhead(skb, pmc, type, &pgr, mtu); mtu 1844 net/ipv6/mcast.c skb = add_grhead(skb, pmc, type, &pgr, mtu); mtu 1487 net/ipv6/ndisc.c u32 mtu; mtu 1489 net/ipv6/ndisc.c memcpy(&n, ((u8 *)(ndopts.nd_opts_mtu+1))+2, sizeof(mtu)); mtu 1490 net/ipv6/ndisc.c mtu = ntohl(n); mtu 1492 net/ipv6/ndisc.c if (mtu < IPV6_MIN_MTU || mtu > skb->dev->mtu) { mtu 1493 net/ipv6/ndisc.c ND_PRINTK(2, warn, "RA: invalid mtu: %d\n", mtu); mtu 1494 net/ipv6/ndisc.c } else if (in6_dev->cnf.mtu6 != mtu) { mtu 1495 net/ipv6/ndisc.c in6_dev->cnf.mtu6 = mtu; mtu 1496 net/ipv6/ndisc.c fib6_metric_set(rt, RTAX_MTU, mtu); mtu 1497 net/ipv6/ndisc.c rt6_mtu_change(skb->dev, mtu); mtu 125 net/ipv6/netfilter.c unsigned int mtu, hlen; mtu 135 net/ipv6/netfilter.c mtu = skb->dev->mtu; mtu 136 net/ipv6/netfilter.c if (frag_max_size > mtu || mtu 140 net/ipv6/netfilter.c mtu = frag_max_size; mtu 141 net/ipv6/netfilter.c if (mtu < hlen + sizeof(struct frag_hdr) + 8) mtu 143 net/ipv6/netfilter.c mtu -= hlen + sizeof(struct frag_hdr); mtu 158 net/ipv6/netfilter.c if (first_len - hlen > mtu || mtu 166 net/ipv6/netfilter.c if (frag2->len > mtu || mtu 207 net/ipv6/netfilter.c ip6_frag_init(skb, hlen, mtu, skb->dev->needed_tailroom, mtu 631 net/ipv6/raw.c if (length > rt->dst.dev->mtu) { mtu 632 net/ipv6/raw.c ipv6_local_error(sk, EMSGSIZE, fl6, rt->dst.dev->mtu); mtu 98 net/ipv6/route.c struct sk_buff *skb, u32 mtu, mtu 247 net/ipv6/route.c .mtu = ip6_mtu, mtu 262 net/ipv6/route.c unsigned int mtu = dst_metric_raw(dst, RTAX_MTU); mtu 264 net/ipv6/route.c return mtu ? : dst->dev->mtu; mtu 268 net/ipv6/route.c struct sk_buff *skb, u32 mtu, mtu 282 net/ipv6/route.c .mtu = ip6_blackhole_mtu, mtu 1586 net/ipv6/route.c unsigned int mtu; mtu 1589 net/ipv6/route.c mtu = res->f6i->fib6_pmtu; mtu 1596 net/ipv6/route.c mtu = idev->cnf.mtu6; mtu 1600 net/ipv6/route.c mtu = min_t(unsigned int, mtu, IP6_MAX_MTU); mtu 1602 net/ipv6/route.c return mtu - lwtunnel_headroom(nh->fib_nh_lws, mtu); mtu 1993 net/ipv6/route.c struct rt6_info *rt, int mtu) mtu 2005 net/ipv6/route.c if (dst_mtu(&rt->dst) >= mtu) mtu 2015 net/ipv6/route.c const struct fib6_nh *nh, int mtu) mtu 2034 net/ipv6/route.c rt6_mtu_change_route_allowed(idev, entry, mtu)) mtu 2035 net/ipv6/route.c dst_metric_set(&entry->dst, RTAX_MTU, mtu); mtu 2709 net/ipv6/route.c static void rt6_do_update_pmtu(struct rt6_info *rt, u32 mtu) mtu 2713 net/ipv6/route.c dst_metric_set(&rt->dst, RTAX_MTU, mtu); mtu 2725 net/ipv6/route.c const struct ipv6hdr *iph, u32 mtu, mtu 2750 net/ipv6/route.c mtu = max_t(u32, mtu, IPV6_MIN_MTU); mtu 2751 net/ipv6/route.c if (mtu >= dst_mtu(dst)) mtu 2755 net/ipv6/route.c rt6_do_update_pmtu(rt6, mtu); mtu 2793 net/ipv6/route.c rt6_do_update_pmtu(nrt6, mtu); mtu 2803 net/ipv6/route.c struct sk_buff *skb, u32 mtu, mtu 2806 net/ipv6/route.c __ip6_rt_update_pmtu(dst, sk, skb ? ipv6_hdr(skb) : NULL, mtu, mtu 2810 net/ipv6/route.c void ip6_update_pmtu(struct sk_buff *skb, struct net *net, __be32 mtu, mtu 2826 net/ipv6/route.c __ip6_rt_update_pmtu(dst, NULL, iph, ntohl(mtu), true); mtu 2831 net/ipv6/route.c void ip6_sk_update_pmtu(struct sk_buff *skb, struct sock *sk, __be32 mtu) mtu 2839 net/ipv6/route.c ip6_update_pmtu(skb, sock_net(sk), mtu, oif, sk->sk_mark, sk->sk_uid); mtu 3074 net/ipv6/route.c unsigned int mtu = dst_mtu(dst); mtu 3077 net/ipv6/route.c mtu -= sizeof(struct ipv6hdr) + sizeof(struct tcphdr); mtu 3079 net/ipv6/route.c if (mtu < net->ipv6.sysctl.ip6_rt_min_advmss) mtu 3080 net/ipv6/route.c mtu = net->ipv6.sysctl.ip6_rt_min_advmss; mtu 3088 net/ipv6/route.c if (mtu > IPV6_MAXPLEN - sizeof(struct tcphdr)) mtu 3089 net/ipv6/route.c mtu = IPV6_MAXPLEN; mtu 3090 net/ipv6/route.c return mtu; mtu 3096 net/ipv6/route.c unsigned int mtu; mtu 3098 net/ipv6/route.c mtu = dst_metric_raw(dst, RTAX_MTU); mtu 3099 net/ipv6/route.c if (mtu) mtu 3102 net/ipv6/route.c mtu = IPV6_MIN_MTU; mtu 3107 net/ipv6/route.c mtu = idev->cnf.mtu6; mtu 3111 net/ipv6/route.c mtu = min_t(unsigned int, mtu, IP6_MAX_MTU); mtu 3113 net/ipv6/route.c return mtu - lwtunnel_headroom(dst->lwtstate, mtu); mtu 3132 net/ipv6/route.c u32 mtu = 0; mtu 3135 net/ipv6/route.c mtu = f6i->fib6_pmtu; mtu 3136 net/ipv6/route.c if (mtu) mtu 3142 net/ipv6/route.c mtu = dst_metric_raw(&rt->dst, RTAX_MTU); mtu 3146 net/ipv6/route.c mtu = IPV6_MIN_MTU; mtu 3148 net/ipv6/route.c if (idev && idev->cnf.mtu6 > mtu) mtu 3149 net/ipv6/route.c mtu = idev->cnf.mtu6; mtu 3152 net/ipv6/route.c mtu = min_t(unsigned int, mtu, IP6_MAX_MTU); mtu 3154 net/ipv6/route.c return mtu - lwtunnel_headroom(nh->fib_nh_lws, mtu); mtu 4776 net/ipv6/route.c unsigned int mtu; mtu 4792 net/ipv6/route.c u32 mtu = f6i->fib6_pmtu; mtu 4794 net/ipv6/route.c if (mtu >= arg->mtu || mtu 4795 net/ipv6/route.c (mtu < arg->mtu && mtu == idev->cnf.mtu6)) mtu 4796 net/ipv6/route.c fib6_metric_set(f6i, RTAX_MTU, arg->mtu); mtu 4799 net/ipv6/route.c rt6_exceptions_update_pmtu(idev, nh, arg->mtu); mtu 4834 net/ipv6/route.c void rt6_mtu_change(struct net_device *dev, unsigned int mtu) mtu 4838 net/ipv6/route.c .mtu = mtu, mtu 307 net/ipv6/seg6_local.c if (skb->len - ETH_HLEN > odev->mtu) mtu 829 net/ipv6/sit.c int mtu; mtu 933 net/ipv6/sit.c mtu = dst_mtu(&rt->dst) - t_hlen; mtu 935 net/ipv6/sit.c if (mtu < 68) { mtu 941 net/ipv6/sit.c if (mtu < IPV6_MIN_MTU) { mtu 942 net/ipv6/sit.c mtu = IPV6_MIN_MTU; mtu 947 net/ipv6/sit.c skb_dst_update_pmtu_no_confirm(skb, mtu); mtu 949 net/ipv6/sit.c if (skb->len > mtu && !skb_is_gso(skb)) { mtu 950 net/ipv6/sit.c icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, mtu); mtu 1092 net/ipv6/sit.c dev->mtu = tdev->mtu - t_hlen; mtu 1093 net/ipv6/sit.c if (dev->mtu < IPV6_MIN_MTU) mtu 1094 net/ipv6/sit.c dev->mtu = IPV6_MIN_MTU; mtu 1382 net/ipv6/sit.c dev->mtu = ETH_DATA_LEN - t_hlen; mtu 1594 net/ipv6/sit.c u32 mtu = nla_get_u32(tb[IFLA_MTU]); mtu 1596 net/ipv6/sit.c if (mtu >= IPV6_MIN_MTU && mtu 1597 net/ipv6/sit.c mtu <= IP6_MAX_MTU - dev->hard_header_len) mtu 1598 net/ipv6/sit.c dev->mtu = mtu; mtu 43 net/ipv6/xfrm6_output.c static void xfrm6_local_rxpmtu(struct sk_buff *skb, u32 mtu) mtu 51 net/ipv6/xfrm6_output.c ipv6_local_rxpmtu(sk, &fl6, mtu); mtu 54 net/ipv6/xfrm6_output.c void xfrm6_local_error(struct sk_buff *skb, u32 mtu) mtu 64 net/ipv6/xfrm6_output.c ipv6_local_error(sk, EMSGSIZE, &fl6, mtu); mtu 69 net/ipv6/xfrm6_output.c int mtu, ret = 0; mtu 75 net/ipv6/xfrm6_output.c mtu = dst_mtu(dst); mtu 76 net/ipv6/xfrm6_output.c if (mtu < IPV6_MIN_MTU) mtu 77 net/ipv6/xfrm6_output.c mtu = IPV6_MIN_MTU; mtu 79 net/ipv6/xfrm6_output.c if ((!skb_is_gso(skb) && skb->len > mtu) || mtu 86 net/ipv6/xfrm6_output.c xfrm6_local_rxpmtu(skb, mtu); mtu 88 net/ipv6/xfrm6_output.c xfrm_local_error(skb, mtu); mtu 90 net/ipv6/xfrm6_output.c icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, mtu); mtu 147 net/ipv6/xfrm6_output.c int mtu; mtu 161 net/ipv6/xfrm6_output.c mtu = ip6_skb_dst_mtu(skb); mtu 163 net/ipv6/xfrm6_output.c mtu = dst_mtu(skb_dst(skb)); mtu 165 net/ipv6/xfrm6_output.c toobig = skb->len > mtu && !skb_is_gso(skb); mtu 168 net/ipv6/xfrm6_output.c xfrm6_local_rxpmtu(skb, mtu); mtu 172 net/ipv6/xfrm6_output.c xfrm_local_error(skb, mtu); mtu 101 net/ipv6/xfrm6_policy.c struct sk_buff *skb, u32 mtu, mtu 107 net/ipv6/xfrm6_policy.c path->ops->update_pmtu(path, sk, skb, mtu, confirm_neigh); mtu 363 net/iucv/af_iucv.c if (skb->len > skb->dev->mtu) { mtu 368 net/iucv/af_iucv.c skb_trim(skb, skb->dev->mtu); mtu 1718 net/iucv/af_iucv.c val = (iucv->hs_dev) ? iucv->hs_dev->mtu - mtu 274 net/l2tp/l2tp_core.h u32 mtu; mtu 280 net/l2tp/l2tp_core.h mtu = dst_mtu(dst); mtu 283 net/l2tp/l2tp_core.h return mtu; mtu 223 net/l2tp/l2tp_eth.c u32 mtu; mtu 248 net/l2tp/l2tp_eth.c mtu = l2tp_tunnel_dst_mtu(tunnel) - overhead; mtu 249 net/l2tp/l2tp_eth.c if (mtu < dev->min_mtu || mtu > dev->max_mtu) mtu 250 net/l2tp/l2tp_eth.c dev->mtu = ETH_DATA_LEN - overhead; mtu 252 net/l2tp/l2tp_eth.c dev->mtu = mtu; mtu 650 net/l2tp/l2tp_ppp.c int mtu; mtu 652 net/l2tp/l2tp_ppp.c mtu = l2tp_tunnel_dst_mtu(tunnel); mtu 653 net/l2tp/l2tp_ppp.c if (mtu <= PPPOL2TP_HEADER_OVERHEAD) mtu 656 net/l2tp/l2tp_ppp.c return mtu - PPPOL2TP_HEADER_OVERHEAD; mtu 820 net/l2tp/l2tp_ppp.c po->chan.mtu = pppol2tp_tunnel_mtu(tunnel); mtu 930 net/llc/af_llc.c if (size > llc->dev->mtu) mtu 931 net/llc/af_llc.c size = llc->dev->mtu; mtu 549 net/mac802154/iface.c dev->mtu = IEEE802154_MTU - IEEE802154_FCS_LEN - mtu 115 net/mpls/af_mpls.c return dev->mtu; mtu 119 net/mpls/af_mpls.c bool mpls_pkt_too_big(const struct sk_buff *skb, unsigned int mtu) mtu 121 net/mpls/af_mpls.c if (skb->len <= mtu) mtu 124 net/mpls/af_mpls.c if (skb_is_gso(skb) && skb_gso_validate_network_len(skb, mtu)) mtu 354 net/mpls/af_mpls.c unsigned int mtu; mtu 417 net/mpls/af_mpls.c mtu = mpls_dev_mtu(out_dev); mtu 418 net/mpls/af_mpls.c if (mpls_pkt_too_big(skb, mtu - new_header_size)) mtu 210 net/mpls/internal.h bool mpls_pkt_too_big(const struct sk_buff *skb, unsigned int mtu); mtu 43 net/mpls/mpls_iptunnel.c unsigned int mtu; mtu 102 net/mpls/mpls_iptunnel.c mtu = mpls_dev_mtu(out_dev); mtu 103 net/mpls/mpls_iptunnel.c if (mpls_pkt_too_big(skb, mtu - new_header_size)) mtu 1809 net/netfilter/ipvs/ip_vs_core.c u32 mtu = ntohs(ic->un.frag.mtu); mtu 1818 net/netfilter/ipvs/ip_vs_core.c &ip_hdr(skb)->saddr, &ip_hdr(skb)->daddr, mtu); mtu 1819 net/netfilter/ipvs/ip_vs_core.c ipv4_update_pmtu(skb, ipvs->net, mtu, 0, 0); mtu 1829 net/netfilter/ipvs/ip_vs_core.c mtu = dst_mtu(dest_dst->dst_cache); mtu 1831 net/netfilter/ipvs/ip_vs_core.c if (mtu > 68 + sizeof(struct iphdr)) mtu 1832 net/netfilter/ipvs/ip_vs_core.c mtu -= sizeof(struct iphdr); mtu 1833 net/netfilter/ipvs/ip_vs_core.c info = htonl(mtu); mtu 1759 net/netfilter/ipvs/ip_vs_sync.c u16 mtu, min_mtu; mtu 1805 net/netfilter/ipvs/ip_vs_sync.c mtu = (state == IP_VS_STATE_BACKUP) ? mtu 1806 net/netfilter/ipvs/ip_vs_sync.c clamp(dev->mtu, 1500U, 65535U) : 1500U; mtu 1814 net/netfilter/ipvs/ip_vs_sync.c c->sync_maxlen = mtu - hlen; mtu 107 net/netfilter/ipvs/ip_vs_xmit.c __mtu_check_toobig_v6(const struct sk_buff *skb, u32 mtu) mtu 113 net/netfilter/ipvs/ip_vs_xmit.c if (IP6CB(skb)->frag_max_size > mtu) mtu 116 net/netfilter/ipvs/ip_vs_xmit.c else if (skb->len > mtu && !skb_is_gso(skb)) { mtu 205 net/netfilter/ipvs/ip_vs_xmit.c static inline void maybe_update_pmtu(int skb_af, struct sk_buff *skb, int mtu) mtu 211 net/netfilter/ipvs/ip_vs_xmit.c ort->dst.ops->update_pmtu(&ort->dst, sk, NULL, mtu, true); mtu 217 net/netfilter/ipvs/ip_vs_xmit.c struct sk_buff *skb, int mtu) mtu 223 net/netfilter/ipvs/ip_vs_xmit.c if (unlikely(__mtu_check_toobig_v6(skb, mtu))) { mtu 228 net/netfilter/ipvs/ip_vs_xmit.c icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, mtu); mtu 243 net/netfilter/ipvs/ip_vs_xmit.c skb->len > mtu && !skb_is_gso(skb) && mtu 246 net/netfilter/ipvs/ip_vs_xmit.c htonl(mtu)); mtu 315 net/netfilter/ipvs/ip_vs_xmit.c int mtu; mtu 381 net/netfilter/ipvs/ip_vs_xmit.c mtu = dst_mtu(&rt->dst); mtu 383 net/netfilter/ipvs/ip_vs_xmit.c mtu = dst_mtu(&rt->dst) - sizeof(struct iphdr); mtu 387 net/netfilter/ipvs/ip_vs_xmit.c mtu -= sizeof(struct udphdr) + sizeof(struct guehdr); mtu 391 net/netfilter/ipvs/ip_vs_xmit.c mtu -= GUE_PLEN_REMCSUM + GUE_LEN_PRIV; mtu 397 net/netfilter/ipvs/ip_vs_xmit.c mtu -= gre_calc_hlen(tflags); mtu 399 net/netfilter/ipvs/ip_vs_xmit.c if (mtu < 68) { mtu 403 net/netfilter/ipvs/ip_vs_xmit.c maybe_update_pmtu(skb_af, skb, mtu); mtu 406 net/netfilter/ipvs/ip_vs_xmit.c if (!ensure_mtu_is_adequate(ipvs, skb_af, rt_mode, ipvsh, skb, mtu)) mtu 481 net/netfilter/ipvs/ip_vs_xmit.c int mtu; mtu 547 net/netfilter/ipvs/ip_vs_xmit.c mtu = dst_mtu(&rt->dst); mtu 549 net/netfilter/ipvs/ip_vs_xmit.c mtu = dst_mtu(&rt->dst) - sizeof(struct ipv6hdr); mtu 553 net/netfilter/ipvs/ip_vs_xmit.c mtu -= sizeof(struct udphdr) + sizeof(struct guehdr); mtu 557 net/netfilter/ipvs/ip_vs_xmit.c mtu -= GUE_PLEN_REMCSUM + GUE_LEN_PRIV; mtu 563 net/netfilter/ipvs/ip_vs_xmit.c mtu -= gre_calc_hlen(tflags); mtu 565 net/netfilter/ipvs/ip_vs_xmit.c if (mtu < IPV6_MIN_MTU) { mtu 570 net/netfilter/ipvs/ip_vs_xmit.c maybe_update_pmtu(skb_af, skb, mtu); mtu 573 net/netfilter/ipvs/ip_vs_xmit.c if (!ensure_mtu_is_adequate(ipvs, skb_af, rt_mode, ipvsh, skb, mtu)) mtu 42 net/netfilter/nf_flow_table_core.c ft->mtu = ip_dst_mtu_maybe_forward(dst, true); mtu 47 net/netfilter/nf_flow_table_core.c ft->mtu = ip6_dst_mtu_forward(dst); mtu 207 net/netfilter/nf_flow_table_ip.c static bool nf_flow_exceeds_mtu(const struct sk_buff *skb, unsigned int mtu) mtu 209 net/netfilter/nf_flow_table_ip.c if (skb->len <= mtu) mtu 212 net/netfilter/nf_flow_table_ip.c if (skb_is_gso(skb) && skb_gso_validate_network_len(skb, mtu)) mtu 266 net/netfilter/nf_flow_table_ip.c if (unlikely(nf_flow_exceeds_mtu(skb, flow->tuplehash[dir].tuple.mtu))) mtu 496 net/netfilter/nf_flow_table_ip.c if (unlikely(nf_flow_exceeds_mtu(skb, flow->tuplehash[dir].tuple.mtu))) mtu 23 net/netfilter/nft_rt.c u32 minlen = sizeof(struct ipv6hdr), mtu = dst_mtu(skbdst); mtu 43 net/netfilter/nft_rt.c mtu = min(mtu, dst_mtu(dst)); mtu 47 net/netfilter/nft_rt.c if (mtu <= minlen || mtu > 0xffff) mtu 50 net/netfilter/nft_rt.c return mtu - minlen; mtu 49 net/netfilter/xt_TCPMSS.c u_int32_t mtu = ~0U; mtu 64 net/netfilter/xt_TCPMSS.c mtu = dst_mtu(&rt->dst); mtu 67 net/netfilter/xt_TCPMSS.c return mtu; mtu 169 net/netrom/nr_dev.c dev->mtu = NR_MAX_PACKET_SIZE; mtu 778 net/openvswitch/actions.c return dst->dev->mtu; mtu 783 net/openvswitch/actions.c .mtu = ovs_dst_get_mtu, mtu 870 net/openvswitch/actions.c vport->dev->mtu); mtu 898 net/openvswitch/actions.c } else if (mru <= vport->dev->mtu) { mtu 83 net/openvswitch/vport-vxlan.c .mtu = IP_MAX_MTU, mtu 471 net/openvswitch/vport.c int mtu = vport->dev->mtu; mtu 492 net/openvswitch/vport.c if (unlikely(packet_length(skb, vport->dev) > mtu && mtu 496 net/openvswitch/vport.c packet_length(skb, vport->dev), mtu); mtu 1929 net/packet/af_packet.c if (len > dev->mtu + dev->hard_header_len + VLAN_HLEN + extra_len) mtu 1965 net/packet/af_packet.c if (len > (dev->mtu + dev->hard_header_len + extra_len) && mtu 2687 net/packet/af_packet.c if ((size_max > dev->mtu + reserve + VLAN_HLEN) && !po->has_vnet_hdr) mtu 2688 net/packet/af_packet.c size_max = dev->mtu + reserve + VLAN_HLEN; mtu 2743 net/packet/af_packet.c tp_len > dev->mtu + reserve && mtu 2913 net/packet/af_packet.c (len > dev->mtu + reserve + VLAN_HLEN + extra_len)) mtu 2953 net/packet/af_packet.c if (!vnet_hdr.gso_type && (len > dev->mtu + reserve + extra_len) && mtu 155 net/phonet/af_phonet.c skb->len + sizeof(struct phonethdr) > dev->mtu) { mtu 218 net/phonet/pep-gprs.c dev->mtu = GPRS_DEFAULT_MTU; mtu 131 net/rose/rose_dev.c dev->mtu = ROSE_MAX_PACKET_SIZE - 2; mtu 305 net/rxrpc/ar-internal.h unsigned int mtu; /* network MTU for this peer */ mtu 40 net/rxrpc/conn_event.c u32 serial, mtu, call_id, padding; mtu 89 net/rxrpc/conn_event.c mtu = conn->params.peer->if_mtu; mtu 90 net/rxrpc/conn_event.c mtu -= conn->params.peer->hdrsize; mtu 99 net/rxrpc/conn_event.c ack_info.maxMTU = htonl(mtu); mtu 717 net/rxrpc/input.c unsigned int mtu; mtu 739 net/rxrpc/input.c mtu = min(ntohl(ackinfo->rxMTU), ntohl(ackinfo->maxMTU)); mtu 742 net/rxrpc/input.c if (mtu < peer->maxdata) { mtu 744 net/rxrpc/input.c peer->maxdata = mtu; mtu 745 net/rxrpc/input.c peer->mtu = mtu + peer->hdrsize; mtu 747 net/rxrpc/input.c _net("Net MTU %u (maxdata %u)", peer->mtu, peer->maxdata); mtu 79 net/rxrpc/output.c u32 mtu, jmax; mtu 112 net/rxrpc/output.c mtu = conn->params.peer->if_mtu; mtu 113 net/rxrpc/output.c mtu -= conn->params.peer->hdrsize; mtu 116 net/rxrpc/output.c pkt->ackinfo.maxMTU = htonl(mtu); mtu 109 net/rxrpc/peer_event.c u32 mtu = serr->ee.ee_info; mtu 111 net/rxrpc/peer_event.c _net("Rx ICMP Fragmentation Needed (%d)", mtu); mtu 114 net/rxrpc/peer_event.c if (mtu > 0 && peer->if_mtu == 65535 && mtu < peer->if_mtu) { mtu 115 net/rxrpc/peer_event.c peer->if_mtu = mtu; mtu 116 net/rxrpc/peer_event.c _net("I/F MTU %u", mtu); mtu 119 net/rxrpc/peer_event.c if (mtu == 0) { mtu 121 net/rxrpc/peer_event.c mtu = peer->if_mtu; mtu 122 net/rxrpc/peer_event.c if (mtu > 1500) { mtu 123 net/rxrpc/peer_event.c mtu >>= 1; mtu 124 net/rxrpc/peer_event.c if (mtu < 1500) mtu 125 net/rxrpc/peer_event.c mtu = 1500; mtu 127 net/rxrpc/peer_event.c mtu -= 100; mtu 128 net/rxrpc/peer_event.c if (mtu < peer->hdrsize) mtu 129 net/rxrpc/peer_event.c mtu = peer->hdrsize + 4; mtu 133 net/rxrpc/peer_event.c if (mtu < peer->mtu) { mtu 135 net/rxrpc/peer_event.c peer->mtu = mtu; mtu 136 net/rxrpc/peer_event.c peer->maxdata = peer->mtu - peer->hdrsize; mtu 139 net/rxrpc/peer_event.c peer->mtu, peer->maxdata); mtu 249 net/rxrpc/peer_object.c peer->mtu = peer->if_mtu; mtu 274 net/rxrpc/peer_object.c peer->maxdata = peer->mtu - peer->hdrsize; mtu 244 net/rxrpc/proc.c peer->mtu, mtu 782 net/sched/act_ife.c if (new_len > skb->dev->mtu) mtu 153 net/sched/act_police.c new->tcfp_mtu = parm->mtu; mtu 321 net/sched/act_police.c opt.mtu = p->tcfp_mtu; mtu 2191 net/sched/sch_cake.c static void cake_set_rate(struct cake_tin_data *b, u64 rate, u32 mtu, mtu 2198 net/sched/sch_cake.c u32 byte_target = mtu; mtu 2234 net/sched/sch_cake.c u32 mtu = psched_mtu(qdisc_dev(sch)); mtu 2242 net/sched/sch_cake.c cake_set_rate(b, rate, mtu, mtu 2254 net/sched/sch_cake.c u32 mtu = psched_mtu(qdisc_dev(sch)); mtu 2267 net/sched/sch_cake.c cake_set_rate(b, rate, mtu, us_to_ns(q->target), mtu 2348 net/sched/sch_cake.c u32 mtu = psched_mtu(qdisc_dev(sch)); mtu 2364 net/sched/sch_cake.c cake_set_rate(b, rate, mtu, us_to_ns(q->target), mtu 2397 net/sched/sch_cake.c u32 mtu = psched_mtu(qdisc_dev(sch)); mtu 2408 net/sched/sch_cake.c cake_set_rate(&q->tins[0], rate, mtu, mtu 2410 net/sched/sch_cake.c cake_set_rate(&q->tins[1], rate >> 4, mtu, mtu 2412 net/sched/sch_cake.c cake_set_rate(&q->tins[2], rate >> 1, mtu, mtu 2414 net/sched/sch_cake.c cake_set_rate(&q->tins[3], rate >> 2, mtu, mtu 2440 net/sched/sch_cake.c u32 mtu = psched_mtu(qdisc_dev(sch)); mtu 2451 net/sched/sch_cake.c cake_set_rate(&q->tins[0], rate, mtu, mtu 2453 net/sched/sch_cake.c cake_set_rate(&q->tins[1], rate >> 4, mtu, mtu 2455 net/sched/sch_cake.c cake_set_rate(&q->tins[2], rate >> 2, mtu, mtu 902 net/sched/sch_cbq.c cl->quantum > 32*qdisc_dev(cl->qdisc)->mtu) { mtu 905 net/sched/sch_cbq.c cl->quantum = qdisc_dev(cl->qdisc)->mtu/2 + 1; mtu 199 net/sched/sch_codel.c q->params.mtu = psched_mtu(qdisc_dev(sch)); mtu 467 net/sched/sch_fq_codel.c q->cparams.mtu = psched_mtu(qdisc_dev(sch)); mtu 97 net/sched/sch_pie.c u32 mtu = psched_mtu(qdisc_dev(sch)); mtu 113 net/sched/sch_pie.c if (sch->qstats.backlog < 2 * mtu) mtu 119 net/sched/sch_pie.c if (q->params.bytemode && packet_size <= mtu) mtu 120 net/sched/sch_pie.c local_prob = (u64)packet_size * div_u64(local_prob, mtu); mtu 101 net/sched/sch_tbf.c s64 mtu; mtu 227 net/sched/sch_tbf.c if (ptoks > q->mtu) mtu 228 net/sched/sch_tbf.c ptoks = q->mtu; mtu 278 net/sched/sch_tbf.c q->ptokens = q->mtu; mtu 303 net/sched/sch_tbf.c s64 buffer, mtu; mtu 327 net/sched/sch_tbf.c mtu = min_t(u64, PSCHED_TICKS2NS(qopt->mtu), ~0U); mtu 354 net/sched/sch_tbf.c mtu = psched_l2t_ns(&peak, pburst); mtu 356 net/sched/sch_tbf.c max_size = min_t(u64, max_size, psched_ns_t2l(&peak, mtu)); mtu 396 net/sched/sch_tbf.c q->mtu = mtu; mtu 398 net/sched/sch_tbf.c q->mtu = PSCHED_TICKS2NS(qopt->mtu); mtu 405 net/sched/sch_tbf.c q->ptokens = q->mtu; mtu 457 net/sched/sch_tbf.c opt.mtu = PSCHED_NS2TICKS(q->mtu); mtu 191 net/sched/sch_teql.c dev->mtu < m->dev->mtu) mtu 200 net/sched/sch_teql.c if (dev->mtu < m->dev->mtu) mtu 201 net/sched/sch_teql.c m->dev->mtu = dev->mtu; mtu 208 net/sched/sch_teql.c m->dev->mtu = dev->mtu; mtu 357 net/sched/sch_teql.c int mtu = 0xFFFE; mtu 372 net/sched/sch_teql.c if (slave->mtu < mtu) mtu 373 net/sched/sch_teql.c mtu = slave->mtu; mtu 389 net/sched/sch_teql.c m->dev->mtu = mtu; mtu 420 net/sched/sch_teql.c if (new_mtu > qdisc_dev(q)->mtu) mtu 425 net/sched/sch_teql.c dev->mtu = new_mtu; mtu 455 net/sched/sch_teql.c dev->mtu = 1500; mtu 110 net/tipc/bcast.c int i, mtu, prim; mtu 122 net/tipc/bcast.c mtu = tipc_bearer_mtu(net, i); mtu 123 net/tipc/bcast.c if (mtu < tipc_link_mtu(bb->link)) mtu 124 net/tipc/bcast.c tipc_link_set_mtu(bb->link, mtu); mtu 419 net/tipc/bearer.c b->mtu = dev->mtu; mtu 485 net/tipc/bearer.c int mtu = 0; mtu 491 net/tipc/bearer.c mtu = b->mtu; mtu 493 net/tipc/bearer.c return mtu; mtu 636 net/tipc/bearer.c b->mtu = dev->mtu; mtu 771 net/tipc/bearer.c if (nla_put_u32(msg->skb, TIPC_NLA_PROP_MTU, bearer->mtu)) mtu 1068 net/tipc/bearer.c b->mtu = nla_get_u32(props[TIPC_NLA_PROP_MTU]); mtu 1117 net/tipc/bearer.c if (nla_put_u32(msg->skb, TIPC_NLA_PROP_MTU, media->mtu)) mtu 1255 net/tipc/bearer.c m->mtu = nla_get_u32(props[TIPC_NLA_PROP_MTU]); mtu 123 net/tipc/bearer.h u32 mtu; mtu 153 net/tipc/bearer.h u32 mtu; /* initalized by media */ mtu 249 net/tipc/bearer.h if (dev->mtu >= TIPC_MIN_BEARER_MTU + reserve) mtu 154 net/tipc/link.c u16 mtu; mtu 390 net/tipc/link.c void tipc_link_set_mtu(struct tipc_link *l, int mtu) mtu 392 net/tipc/link.c l->mtu = mtu; mtu 397 net/tipc/link.c return l->mtu; mtu 443 net/tipc/link.c int tolerance, char net_plane, u32 mtu, int priority, mtu 485 net/tipc/link.c l->advertised_mtu = mtu; mtu 486 net/tipc/link.c l->mtu = mtu; mtu 516 net/tipc/link.c int mtu, int window, u16 peer_caps, mtu 524 net/tipc/link.c if (!tipc_link_create(net, "", MAX_BEARERS, 0, 'Z', mtu, 0, window, mtu 892 net/tipc/link.c l->mtu = l->advertised_mtu; mtu 945 net/tipc/link.c unsigned int mtu = l->mtu; mtu 955 net/tipc/link.c if (unlikely(msg_size(hdr) > mtu)) { mtu 958 net/tipc/link.c msg_type(hdr), msg_size(hdr), mtu); mtu 1004 net/tipc/link.c if (tipc_msg_bundle(*tskb, hdr, mtu)) { mtu 1009 net/tipc/link.c if (tipc_msg_make_bundle(tskb, hdr, mtu, l->addr)) { mtu 1797 net/tipc/link.c if (pktlen > tnl->mtu - INT_H_SIZE) { mtu 1800 net/tipc/link.c rc = tipc_msg_fragment(skb, &tnlhdr, tnl->mtu, mtu 2023 net/tipc/link.c if (l->mtu > msg_max_pkt(hdr)) mtu 2024 net/tipc/link.c l->mtu = msg_max_pkt(hdr); mtu 2299 net/tipc/link.c int max_bulk = TIPC_MAX_PUBL / (l->mtu / ITEM_SIZE); mtu 2456 net/tipc/link.c if (nla_put_u32(msg->skb, TIPC_NLA_LINK_MTU, link->mtu)) mtu 75 net/tipc/link.h int tolerance, char net_plane, u32 mtu, int priority, mtu 84 net/tipc/link.h int mtu, int window, u16 peer_caps, mtu 142 net/tipc/link.h void tipc_link_set_mtu(struct tipc_link *l, int mtu); mtu 429 net/tipc/msg.c bool tipc_msg_bundle(struct sk_buff *skb, struct tipc_msg *msg, u32 mtu) mtu 435 net/tipc/msg.c u32 max = mtu - INT_H_SIZE; mtu 522 net/tipc/msg.c u32 mtu, u32 dnode) mtu 527 net/tipc/msg.c u32 max = mtu - INT_H_SIZE; mtu 550 net/tipc/msg.c tipc_msg_bundle(_skb, msg, mtu); mtu 1060 net/tipc/msg.h bool tipc_msg_bundle(struct sk_buff *skb, struct tipc_msg *msg, u32 mtu); mtu 1062 net/tipc/msg.h u32 mtu, u32 dnode); mtu 1067 net/tipc/msg.h int offset, int dsz, int mtu, struct sk_buff_head *list); mtu 66 net/tipc/node.c u32 mtu; mtu 191 net/tipc/node.c unsigned int mtu = MAX_MSG_SIZE; mtu 195 net/tipc/node.c return mtu; mtu 199 net/tipc/node.c mtu = n->links[bearer_id].mtu; mtu 201 net/tipc/node.c return mtu; mtu 700 net/tipc/node.c n->links[bearer_id].mtu = tipc_link_mtu(nl) - INT_H_SIZE; mtu 1085 net/tipc/node.c b->net_plane, b->mtu, b->priority, mtu 1915 net/tipc/node.c tipc_link_set_mtu(e->link, b->mtu); mtu 2572 net/tipc/node.c i += scnprintf(buf + i, sz - i, " mtu: %u\n", n->links[0].mtu); mtu 2581 net/tipc/node.c i += scnprintf(buf + i, sz - i, " mtu: %u\n", n->links[1].mtu); mtu 780 net/tipc/socket.c int mtu = tipc_bcast_get_mtu(net); mtu 813 net/tipc/socket.c rc = tipc_msg_build(hdr, msg, 0, dlen, mtu, &pkts); mtu 846 net/tipc/socket.c int mtu, rc; mtu 857 net/tipc/socket.c mtu = tipc_node_get_mtu(net, dnode, tsk->portid); mtu 858 net/tipc/socket.c rc = tipc_msg_build(hdr, m, 0, dlen, mtu, &pkts); mtu 1029 net/tipc/socket.c int mtu = tipc_bcast_get_mtu(net); mtu 1062 net/tipc/socket.c rc = tipc_msg_build(hdr, m, 0, dlen, mtu, &pkts); mtu 1311 net/tipc/socket.c int mtu, rc; mtu 1395 net/tipc/socket.c mtu = tipc_node_get_mtu(net, dnode, tsk->portid); mtu 1396 net/tipc/socket.c rc = tipc_msg_build(hdr, m, 0, dlen, mtu, &pkts); mtu 741 net/tipc/udp_media.c b->mtu = b->media->mtu; mtu 751 net/tipc/udp_media.c b->mtu = 1280; mtu 839 net/tipc/udp_media.c .mtu = TIPC_DEF_LINK_UDP_MTU, mtu 49 net/tipc/udp_media.h static inline bool tipc_udp_mtu_bad(u32 mtu) mtu 51 net/tipc/udp_media.h if (mtu >= (TIPC_MIN_BEARER_MTU + sizeof(struct iphdr) + mtu 263 net/xfrm/xfrm_device.c int mtu; mtu 273 net/xfrm/xfrm_device.c mtu = xfrm_state_mtu(x, xdst->child_mtu_cached); mtu 274 net/xfrm/xfrm_device.c if (skb->len <= mtu) mtu 277 net/xfrm/xfrm_device.c if (skb_is_gso(skb) && skb_gso_validate_network_len(skb, mtu)) mtu 269 net/xfrm/xfrm_interface.c int mtu; mtu 295 net/xfrm/xfrm_interface.c mtu = dst_mtu(dst); mtu 296 net/xfrm/xfrm_interface.c if (!skb->ignore_df && skb->len > mtu) { mtu 297 net/xfrm/xfrm_interface.c skb_dst_update_pmtu_no_confirm(skb, mtu); mtu 300 net/xfrm/xfrm_interface.c if (mtu < IPV6_MIN_MTU) mtu 301 net/xfrm/xfrm_interface.c mtu = IPV6_MIN_MTU; mtu 303 net/xfrm/xfrm_interface.c icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, mtu); mtu 306 net/xfrm/xfrm_interface.c htonl(mtu)); mtu 587 net/xfrm/xfrm_interface.c dev->mtu = ETH_DATA_LEN; mtu 641 net/xfrm/xfrm_output.c void xfrm_local_error(struct sk_buff *skb, int mtu) mtu 656 net/xfrm/xfrm_output.c afinfo->local_error(skb, mtu); mtu 3791 net/xfrm/xfrm_policy.c u32 mtu; mtu 3814 net/xfrm/xfrm_policy.c mtu = dst_mtu(xfrm_dst_child(dst)); mtu 3815 net/xfrm/xfrm_policy.c if (xdst->child_mtu_cached != mtu) { mtu 3817 net/xfrm/xfrm_policy.c xdst->child_mtu_cached = mtu; mtu 3822 net/xfrm/xfrm_policy.c mtu = dst_mtu(xdst->route); mtu 3823 net/xfrm/xfrm_policy.c if (xdst->route_mtu_cached != mtu) { mtu 3825 net/xfrm/xfrm_policy.c xdst->route_mtu_cached = mtu; mtu 3835 net/xfrm/xfrm_policy.c mtu = xdst->child_mtu_cached; mtu 3839 net/xfrm/xfrm_policy.c mtu = xfrm_state_mtu(dst->xfrm, mtu); mtu 3840 net/xfrm/xfrm_policy.c if (mtu > xdst->route_mtu_cached) mtu 3841 net/xfrm/xfrm_policy.c mtu = xdst->route_mtu_cached; mtu 3842 net/xfrm/xfrm_policy.c dst_metric_set(dst, RTAX_MTU, mtu); mtu 3847 net/xfrm/xfrm_policy.c xdst->child_mtu_cached = mtu; mtu 3860 net/xfrm/xfrm_policy.c unsigned int mtu = dst_metric_raw(dst, RTAX_MTU); mtu 3862 net/xfrm/xfrm_policy.c return mtu ? : dst_mtu(xfrm_dst_path(dst)); mtu 3920 net/xfrm/xfrm_policy.c if (likely(dst_ops->mtu == NULL)) mtu 3921 net/xfrm/xfrm_policy.c dst_ops->mtu = xfrm_mtu; mtu 2410 net/xfrm/xfrm_state.c u32 xfrm_state_mtu(struct xfrm_state *x, int mtu) mtu 2418 net/xfrm/xfrm_state.c return mtu - x->props.header_len; mtu 2438 net/xfrm/xfrm_state.c return ((mtu - x->props.header_len - crypto_aead_authsize(aead) - mtu 95 samples/bpf/xdp_adjust_tail_kern.c icmp_hdr->un.frag.mtu = htons(MAX_PCKT_SIZE-sizeof(struct ethhdr)); mtu 87 tools/include/uapi/linux/pkt_cls.h __u32 mtu; mtu 108 tools/include/uapi/linux/pkt_sched.h unsigned int mtu; mtu 187 tools/include/uapi/linux/pkt_sched.h __u32 mtu; mtu 291 tools/testing/selftests/net/udpgso.c static void __set_device_mtu(int fd, const char *ifname, unsigned int mtu) mtu 297 tools/testing/selftests/net/udpgso.c ifr.ifr_mtu = mtu; mtu 304 tools/testing/selftests/net/udpgso.c static void set_device_mtu(int fd, int mtu) mtu 311 tools/testing/selftests/net/udpgso.c __set_device_mtu(fd, cfg_ifname, mtu); mtu 313 tools/testing/selftests/net/udpgso.c if (val != mtu) mtu 340 tools/testing/selftests/net/udpgso.c unsigned int mtu; mtu 343 tools/testing/selftests/net/udpgso.c vallen = sizeof(mtu); mtu 345 tools/testing/selftests/net/udpgso.c ret = getsockopt(fd, SOL_IP, IP_MTU, &mtu, &vallen); mtu 347 tools/testing/selftests/net/udpgso.c ret = getsockopt(fd, SOL_IPV6, IPV6_MTU, &mtu, &vallen); mtu 353 tools/testing/selftests/net/udpgso.c fprintf(stderr, "path mtu (read): %u\n", mtu); mtu 354 tools/testing/selftests/net/udpgso.c return mtu; mtu 358 tools/testing/selftests/net/udpgso.c static void set_route_mtu(int mtu, bool is_ipv4) mtu 418 tools/testing/selftests/net/udpgso.c *((int *)(RTA_DATA(rta))) = mtu; mtu 429 tools/testing/selftests/net/udpgso.c fprintf(stderr, "route mtu (test): %u\n", mtu);