/linux-6.3-rc2/tools/testing/selftests/drivers/net/netdevsim/ |
A D | ethtool-fec.sh | 12 s=$($ETHTOOL --show-fec $NSIM_NETDEV | tail -2) 17 $ETHTOOL --set-fec $NSIM_NETDEV encoding auto 19 s=$($ETHTOOL --show-fec $NSIM_NETDEV | tail -2) 25 $ETHTOOL --set-fec $NSIM_NETDEV encoding $o 27 s=$($ETHTOOL --show-fec $NSIM_NETDEV | tail -2) 33 $ETHTOOL --set-fec $NSIM_NETDEV encoding $o 35 s=$($ETHTOOL --show-fec $NSIM_NETDEV | tail -2) 41 $ETHTOOL --set-fec $NSIM_NETDEV encoding $o 49 $ETHTOOL --set-fec $NSIM_NETDEV encoding rs llrs 51 s=$($ETHTOOL --show-fec $NSIM_NETDEV | tail -2) [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/freescale/ |
A D | fec_mpc52xx.c | 107 struct mpc52xx_fec __iomem *fec = priv->fec; in mpc52xx_fec_set_paddr() local 174 struct mpc52xx_fec __iomem *fec = priv->fec; in mpc52xx_fec_adjust_link() local 447 struct mpc52xx_fec __iomem *fec = priv->fec; in mpc52xx_fec_interrupt() local 487 struct mpc52xx_fec __iomem *fec = priv->fec; in mpc52xx_fec_get_stats() local 536 struct mpc52xx_fec __iomem *fec = priv->fec; in mpc52xx_fec_reset_stats() local 553 struct mpc52xx_fec __iomem *fec = priv->fec; in mpc52xx_fec_set_multicast_list() local 596 struct mpc52xx_fec __iomem *fec = priv->fec; in mpc52xx_fec_hw_init() local 647 struct mpc52xx_fec __iomem *fec = priv->fec; in mpc52xx_fec_start() local 701 struct mpc52xx_fec __iomem *fec = priv->fec; in mpc52xx_fec_stop() local 741 struct mpc52xx_fec __iomem *fec = priv->fec; in mpc52xx_fec_reset() local [all …]
|
A D | fec_mpc52xx_phy.c | 32 struct mpc52xx_fec __iomem *fec = priv->regs; in mpc52xx_fec_mdio_transfer() local 38 out_be32(&fec->ievent, FEC_IEVENT_MII); in mpc52xx_fec_mdio_transfer() 39 out_be32(&fec->mii_data, value); in mpc52xx_fec_mdio_transfer() 42 while (!(in_be32(&fec->ievent) & FEC_IEVENT_MII) && --tries) in mpc52xx_fec_mdio_transfer() 49 in_be32(&fec->mii_data) & FEC_MII_DATA_DATAMSK : 0; in mpc52xx_fec_mdio_transfer()
|
A D | Makefile | 6 obj-$(CONFIG_FEC) += fec.o 7 fec-objs :=fec_main.o fec_ptp.o
|
/linux-6.3-rc2/drivers/net/ethernet/freescale/fs_enet/ |
A D | mii-fec.c | 55 struct fec __iomem *fecp = fec->fecp; in fs_enet_fec_mii_read() 78 struct fec __iomem *fecp = fec->fecp; in fs_enet_fec_mii_write() 104 struct fec_info *fec; in fs_enet_mdio_probe() local 118 if (!fec) in fs_enet_mdio_probe() 121 new_bus->priv = fec; in fs_enet_mdio_probe() 133 if (!fec->fecp) { in fs_enet_mdio_probe() 166 clrsetbits_be32(&fec->fecp->fec_mii_speed, 0x7E, fec->mii_speed); in fs_enet_mdio_probe() 180 iounmap(fec->fecp); in fs_enet_mdio_probe() 183 kfree(fec); in fs_enet_mdio_probe() 196 iounmap(fec->fecp); in fs_enet_mdio_remove() [all …]
|
A D | mac-fec.c | 164 struct fec __iomem *fecp = fep->fec.fecp; in set_promiscuous_mode() 201 struct fec __iomem *fecp = fep->fec.fecp; in set_multicast_finish() 231 struct fec __iomem *fecp = fep->fec.fecp; in restart() 344 struct fec __iomem *fecp = fep->fec.fecp; in stop() 382 struct fec __iomem *fecp = fep->fec.fecp; in napi_clear_event_fs() 390 struct fec __iomem *fecp = fep->fec.fecp; in napi_enable_fs() 398 struct fec __iomem *fecp = fep->fec.fecp; in napi_disable_fs() 406 struct fec __iomem *fecp = fep->fec.fecp; in rx_bd_done() 414 struct fec __iomem *fecp = fep->fec.fecp; in tx_kickstart() 422 struct fec __iomem *fecp = fep->fec.fecp; in get_int_events() [all …]
|
A D | Makefile | 9 fs_enet-$(CONFIG_FS_ENET_HAS_FEC) += mac-fec.o 12 obj-$(CONFIG_FS_ENET_MDIO_FEC) += mii-fec.o
|
/linux-6.3-rc2/net/ethtool/ |
A D | fec.c | 37 if (fec & ETHTOOL_FEC_OFF) in ethtool_fec_to_link_modes() 39 if (fec & ETHTOOL_FEC_RS) in ethtool_fec_to_link_modes() 51 memset(fec, 0, sizeof(*fec)); in ethtool_link_modes_to_fecparam() 54 fec->fec |= ETHTOOL_FEC_AUTO; in ethtool_link_modes_to_fecparam() 57 fec->fec |= ETHTOOL_FEC_OFF; in ethtool_link_modes_to_fecparam() 59 fec->fec |= ETHTOOL_FEC_RS; in ethtool_link_modes_to_fecparam() 61 fec->fec |= ETHTOOL_FEC_BASER; in ethtool_link_modes_to_fecparam() 63 fec->fec |= ETHTOOL_FEC_LLRS; in ethtool_link_modes_to_fecparam() 125 ethtool_fec_to_link_modes(fec.fec, data->fec_link_modes, in fec_prepare_data() 251 ethtool_fec_to_link_modes(fec.fec, fec_link_modes, &fec_auto); in ethnl_set_fec() [all …]
|
/linux-6.3-rc2/Documentation/devicetree/bindings/net/ |
A D | fsl,fec.yaml | 21 - fsl,imx25-fec 22 - fsl,imx27-fec 23 - fsl,imx28-fec 24 - fsl,imx6q-fec 25 - fsl,mvf600-fec 26 - fsl,s32v234-fec 29 - fsl,imx53-fec 34 - fsl,imx35-fec 35 - fsl,imx51-fec 237 compatible = "fsl,imx51-fec", "fsl,imx27-fec"; [all …]
|
/linux-6.3-rc2/drivers/md/ |
A D | dm-verity-fec.c | 18 return v->fec && v->fec->dev; in verity_fec_is_enabled() 51 par[i] = fec[i]; in fec_decode_rs8() 156 offset += v->fec->roots; in fec_decode_bufs() 234 bufio = v->fec->data_bufio; in fec_read_bufs() 535 v->fec->dev->name, in verity_fec_status_table() 538 v->fec->roots); in verity_fec_status_table() 565 v->fec = NULL; in verity_fec_dtr() 623 v->fec->blocks = num_ll; in verity_fec_parse_opt_args() 632 v->fec->start = num_ll; in verity_fec_parse_opt_args() 641 v->fec->roots = num_c; in verity_fec_parse_opt_args() [all …]
|
/linux-6.3-rc2/drivers/net/netdevsim/ |
A D | ethtool.c | 122 memcpy(fecparam, &ns->ethtool.fec, sizeof(ns->ethtool.fec)); in nsim_get_fecparam() 130 u32 fec; in nsim_set_fecparam() local 134 memcpy(&ns->ethtool.fec, fecparam, sizeof(ns->ethtool.fec)); in nsim_set_fecparam() 135 fec = fecparam->fec; in nsim_set_fecparam() 136 if (fec == ETHTOOL_FEC_AUTO) in nsim_set_fecparam() 137 fec |= ETHTOOL_FEC_OFF; in nsim_set_fecparam() 138 fec |= ETHTOOL_FEC_NONE; in nsim_set_fecparam() 139 ns->ethtool.fec.active_fec = 1 << (fls(fec) - 1); in nsim_set_fecparam() 174 ns->ethtool.fec.fec = ETHTOOL_FEC_NONE; in nsim_ethtool_init() 175 ns->ethtool.fec.active_fec = ETHTOOL_FEC_NONE; in nsim_ethtool_init()
|
/linux-6.3-rc2/arch/arm64/boot/dts/freescale/ |
A D | imx8qxp-ss-conn.dtsi | 20 compatible = "fsl,imx8qxp-fec", "fsl,imx8qm-fec", "fsl,imx6sx-fec"; 24 compatible = "fsl,imx8qxp-fec", "fsl,imx8qm-fec", "fsl,imx6sx-fec";
|
A D | imx8qm-ss-conn.dtsi | 8 compatible = "fsl,imx8qm-fec", "fsl,imx6sx-fec"; 12 compatible = "fsl,imx8qm-fec", "fsl,imx6sx-fec";
|
/linux-6.3-rc2/drivers/dma/bestcomm/ |
A D | Makefile | 8 bestcomm-fec-objs := fec.o bcom_fec_rx_task.o bcom_fec_tx_task.o 13 obj-$(CONFIG_PPC_BESTCOMM_FEC) += bestcomm-fec.o
|
/linux-6.3-rc2/arch/powerpc/boot/dts/ |
A D | adder875-redboot.dts | 79 compatible = "fsl,mpc875-fec-mdio", "fsl,pq1-fec-mdio"; 95 compatible = "fsl,mpc875-fec-enet", 96 "fsl,pq1-fec-enet"; 107 compatible = "fsl,mpc875-fec-enet", 108 "fsl,pq1-fec-enet";
|
A D | adder875-uboot.dts | 78 compatible = "fsl,mpc875-fec-mdio", "fsl,pq1-fec-mdio"; 94 compatible = "fsl,mpc875-fec-enet", 95 "fsl,pq1-fec-enet"; 106 compatible = "fsl,mpc875-fec-enet", 107 "fsl,pq1-fec-enet";
|
A D | ep88xc.dts | 77 compatible = "fsl,mpc885-fec-mdio", "fsl,pq1-fec-mdio"; 93 compatible = "fsl,mpc885-fec-enet", 94 "fsl,pq1-fec-enet"; 105 compatible = "fsl,mpc885-fec-enet", 106 "fsl,pq1-fec-enet";
|
A D | mpc885ads.dts | 78 compatible = "fsl,mpc885-fec-mdio", "fsl,pq1-fec-mdio"; 98 compatible = "fsl,mpc885-fec-enet", 99 "fsl,pq1-fec-enet"; 110 compatible = "fsl,mpc885-fec-enet", 111 "fsl,pq1-fec-enet";
|
/linux-6.3-rc2/drivers/media/dvb-frontends/ |
A D | cx24123.c | 329 if (((int)fec < FEC_NONE) || (fec > FEC_AUTO)) in cx24123_set_fec() 330 fec = FEC_AUTO; in cx24123_set_fec() 340 switch (fec) { in cx24123_set_fec() 398 *fec = FEC_1_2; in cx24123_get_fec() 401 *fec = FEC_2_3; in cx24123_get_fec() 404 *fec = FEC_3_4; in cx24123_get_fec() 407 *fec = FEC_4_5; in cx24123_get_fec() 410 *fec = FEC_5_6; in cx24123_get_fec() 413 *fec = FEC_6_7; in cx24123_get_fec() 416 *fec = FEC_7_8; in cx24123_get_fec() [all …]
|
A D | cx24110.c | 168 static int cx24110_set_fec(struct cx24110_state *state, enum fe_code_rate fec) in cx24110_set_fec() argument 178 if (fec > FEC_AUTO) in cx24110_set_fec() 179 fec = FEC_AUTO; in cx24110_set_fec() 181 if (fec == FEC_AUTO) { /* (re-)establish AutoAcq behaviour */ in cx24110_set_fec() 197 if (rate[fec] < 0) in cx24110_set_fec() 200 cx24110_writereg(state, 0x05, (cx24110_readreg(state, 0x05) & 0xf0) | rate[fec]); in cx24110_set_fec() 202 cx24110_writereg(state, 0x22, (cx24110_readreg(state, 0x22) & 0xf0) | rate[fec]); in cx24110_set_fec() 204 cx24110_writereg(state, 0x1a, g1[fec]); in cx24110_set_fec() 205 cx24110_writereg(state, 0x1b, g2[fec]); in cx24110_set_fec()
|
/linux-6.3-rc2/drivers/net/ethernet/marvell/prestera/ |
A D | prestera_ethtool.c | 360 u8 fec, u8 type) in prestera_modes_to_eth() argument 376 if ((port_fec_caps[mode].pr_fec & fec) == 0) in prestera_modes_to_eth() 384 u64 *link_modes, u8 *fec, u8 type) in prestera_modes_from_eth() argument 408 *fec = fec_modes; in prestera_modes_from_eth() 690 fecparam->fec = 0; in prestera_ethtool_get_fecparam() 713 u8 fec; in prestera_ethtool_set_fecparam() local 725 fec = PRESTERA_PORT_FEC_MAX; in prestera_ethtool_set_fecparam() 729 fec = mode; in prestera_ethtool_set_fecparam() 736 if (fec == cfg_mac.fec) in prestera_ethtool_set_fecparam() 739 if (fec == PRESTERA_PORT_FEC_MAX) { in prestera_ethtool_set_fecparam() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/marvell/octeontx2/nic/ |
A D | otx2_ethtool.c | 1006 const int fec[] = { in otx2_get_fecparam() local 1013 fecparam->active_fec = fec[pfvf->linfo.fec]; in otx2_get_fecparam() 1023 fecparam->fec = fec[rsp->fwdata.supported_fec]; in otx2_get_fecparam() 1034 int err = 0, fec = 0; in otx2_set_fecparam() local 1040 fec = OTX2_FEC_OFF; in otx2_set_fecparam() 1043 fec = OTX2_FEC_RS; in otx2_set_fecparam() 1054 if (fec == pfvf->linfo.fec) in otx2_set_fecparam() 1063 req->fec = fec; in otx2_set_fecparam() 1070 if (rsp->fec >= 0) in otx2_set_fecparam() 1071 pfvf->linfo.fec = rsp->fec; in otx2_set_fecparam() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/sfc/siena/ |
A D | mcdi_port_common.c | 619 struct ethtool_fecparam *fec) in efx_siena_mcdi_phy_get_fecparam() argument 640 fec->fec = mcdi_fec_caps_to_ethtool(caps, is_25g); in efx_siena_mcdi_phy_get_fecparam() 643 fec->fec &= ~ETHTOOL_FEC_BASER; in efx_siena_mcdi_phy_get_fecparam() 648 fec->active_fec = ETHTOOL_FEC_OFF; in efx_siena_mcdi_phy_get_fecparam() 651 fec->active_fec = ETHTOOL_FEC_BASER; in efx_siena_mcdi_phy_get_fecparam() 654 fec->active_fec = ETHTOOL_FEC_RS; in efx_siena_mcdi_phy_get_fecparam() 663 fec->active_fec = ETHTOOL_FEC_AUTO; in efx_siena_mcdi_phy_get_fecparam() 685 const struct ethtool_fecparam *fec) in efx_siena_mcdi_phy_set_fecparam() argument 691 rc = ethtool_fec_supported(phy_cfg->supported_cap, fec->fec); in efx_siena_mcdi_phy_set_fecparam() 704 caps |= ethtool_fec_caps_to_mcdi(phy_cfg->supported_cap, fec->fec); in efx_siena_mcdi_phy_set_fecparam() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/sfc/ |
A D | mcdi_port_common.c | 614 int efx_mcdi_phy_get_fecparam(struct efx_nic *efx, struct ethtool_fecparam *fec) in efx_mcdi_phy_get_fecparam() argument 635 fec->fec = mcdi_fec_caps_to_ethtool(caps, is_25g); in efx_mcdi_phy_get_fecparam() 638 fec->fec &= ~ETHTOOL_FEC_BASER; in efx_mcdi_phy_get_fecparam() 643 fec->active_fec = ETHTOOL_FEC_OFF; in efx_mcdi_phy_get_fecparam() 646 fec->active_fec = ETHTOOL_FEC_BASER; in efx_mcdi_phy_get_fecparam() 649 fec->active_fec = ETHTOOL_FEC_RS; in efx_mcdi_phy_get_fecparam() 658 fec->active_fec = ETHTOOL_FEC_AUTO; in efx_mcdi_phy_get_fecparam() 679 int efx_mcdi_phy_set_fecparam(struct efx_nic *efx, const struct ethtool_fecparam *fec) in efx_mcdi_phy_set_fecparam() argument 685 rc = ethtool_fec_supported(phy_cfg->supported_cap, fec->fec); in efx_mcdi_phy_set_fecparam() 698 caps |= ethtool_fec_caps_to_mcdi(phy_cfg->supported_cap, fec->fec); in efx_mcdi_phy_set_fecparam() [all …]
|
/linux-6.3-rc2/drivers/mtd/ubi/ |
A D | fastmap.c | 1137 struct ubi_fm_ec *fec; in ubi_write_fastmap() local 1225 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap() 1228 fm_pos += sizeof(*fec); in ubi_write_fastmap() 1238 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap() 1241 fm_pos += sizeof(*fec); in ubi_write_fastmap() 1250 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap() 1253 fm_pos += sizeof(*fec); in ubi_write_fastmap() 1263 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap() 1266 fm_pos += sizeof(*fec); in ubi_write_fastmap() 1281 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap() [all …]
|