| /linux/tools/testing/selftests/drivers/net/netdevsim/ |
| A D | ethtool-fec.sh | 16 s=$($ETHTOOL --show-fec $NSIM_NETDEV | tail -2) 21 $ETHTOOL --set-fec $NSIM_NETDEV encoding auto 23 s=$($ETHTOOL --show-fec $NSIM_NETDEV | tail -2) 29 $ETHTOOL --set-fec $NSIM_NETDEV encoding $o 31 s=$($ETHTOOL --show-fec $NSIM_NETDEV | tail -2) 37 $ETHTOOL --set-fec $NSIM_NETDEV encoding $o 45 $ETHTOOL --set-fec $NSIM_NETDEV encoding $o 53 $ETHTOOL --set-fec $NSIM_NETDEV encoding rs llrs 55 s=$($ETHTOOL --show-fec $NSIM_NETDEV | tail -2) 61 s=$($ETHTOOL --show-fec $NSIM_NETDEV | tail -2) [all …]
|
| /linux/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 | 33 struct mpc52xx_fec __iomem *fec = priv->regs; in mpc52xx_fec_mdio_transfer() local 39 out_be32(&fec->ievent, FEC_IEVENT_MII); in mpc52xx_fec_mdio_transfer() 40 out_be32(&fec->mii_data, value); in mpc52xx_fec_mdio_transfer() 43 while (!(in_be32(&fec->ievent) & FEC_IEVENT_MII) && --tries) in mpc52xx_fec_mdio_transfer() 50 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/drivers/net/ethernet/freescale/fs_enet/ |
| A D | mii-fec.c | 54 struct fec __iomem *fecp = fec->fecp; in fs_enet_fec_mii_read() 77 struct fec __iomem *fecp = fec->fecp; in fs_enet_fec_mii_write() 101 struct fec_info *fec; in fs_enet_mdio_probe() local 112 if (!fec) in fs_enet_mdio_probe() 115 new_bus->priv = fec; in fs_enet_mdio_probe() 127 if (!fec->fecp) { in fs_enet_mdio_probe() 160 clrsetbits_be32(&fec->fecp->fec_mii_speed, 0x7E, fec->mii_speed); in fs_enet_mdio_probe() 174 iounmap(fec->fecp); in fs_enet_mdio_probe() 177 kfree(fec); in fs_enet_mdio_probe() 190 iounmap(fec->fecp); in fs_enet_mdio_remove() [all …]
|
| A D | mac-fec.c | 159 struct fec __iomem *fecp = fep->fec.fecp; in set_promiscuous_mode() 196 struct fec __iomem *fecp = fep->fec.fecp; in set_multicast_finish() 227 struct fec __iomem *fecp = fep->fec.fecp; in restart() 339 struct fec __iomem *fecp = fep->fec.fecp; in stop() 364 struct fec __iomem *fecp = fep->fec.fecp; in napi_clear_event_fs() 372 struct fec __iomem *fecp = fep->fec.fecp; in napi_enable_fs() 380 struct fec __iomem *fecp = fep->fec.fecp; in napi_disable_fs() 388 struct fec __iomem *fecp = fep->fec.fecp; in rx_bd_done() 396 struct fec __iomem *fecp = fep->fec.fecp; in tx_kickstart() 404 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/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/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 244 compatible = "fsl,imx51-fec", "fsl,imx27-fec"; [all …]
|
| /linux/drivers/md/ |
| A D | dm-verity-fec.c | 18 return v->fec && v->fec->dev; in verity_fec_is_enabled() 52 par[i] = fec[i]; in fec_decode_rs8() 159 offset += v->fec->roots; in fec_decode_bufs() 237 bufio = v->fec->data_bufio; in fec_read_bufs() 517 v->fec->dev->name, in verity_fec_status_table() 520 v->fec->roots); in verity_fec_status_table() 547 v->fec = NULL; in verity_fec_dtr() 605 v->fec->blocks = num_ll; in verity_fec_parse_opt_args() 614 v->fec->start = num_ll; in verity_fec_parse_opt_args() 623 v->fec->roots = num_c; in verity_fec_parse_opt_args() [all …]
|
| /linux/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() 196 ns->ethtool.fec.fec = ETHTOOL_FEC_NONE; in nsim_ethtool_init() 197 ns->ethtool.fec.active_fec = ETHTOOL_FEC_NONE; in nsim_ethtool_init()
|
| /linux/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"; 13 compatible = "fsl,imx8qm-fec", "fsl,imx6sx-fec";
|
| /linux/drivers/net/ethernet/meta/fbnic/ |
| A D | fbnic_mac.c | 461 if ((fbn->fec & FBNIC_FEC_MODE_MASK) == FBNIC_FEC_OFF) in __fbnic_mac_cmd_config_asic() 485 switch (fbn->fec & FBNIC_FEC_MODE_MASK) { in fbnic_mac_get_pcs_link_status() 503 switch (fbn->fec & FBNIC_FEC_MODE_MASK) { in fbnic_mac_get_pcs_link_status() 553 u8 fec = fbn->fec; in fbnic_pcs_get_fw_settings() local 556 if (fbn->fec & FBNIC_FEC_AUTO) { in fbnic_pcs_get_fw_settings() 559 fec = FBNIC_FEC_OFF; in fbnic_pcs_get_fw_settings() 562 fec = FBNIC_FEC_RS; in fbnic_pcs_get_fw_settings() 565 fec = FBNIC_FEC_BASER; in fbnic_pcs_get_fw_settings() 571 fbn->fec = fec; in fbnic_pcs_get_fw_settings() 585 fec = FBNIC_FEC_RS; in fbnic_pcs_get_fw_settings() [all …]
|
| /linux/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/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/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/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/drivers/net/ethernet/marvell/octeontx2/nic/ |
| A D | otx2_ethtool.c | 1011 const int fec[] = { in otx2_get_fecparam() local 1018 fecparam->active_fec = fec[pfvf->linfo.fec]; in otx2_get_fecparam() 1028 fecparam->fec = fec[rsp->fwdata.supported_fec]; in otx2_get_fecparam() 1039 int err = 0, fec = 0; in otx2_set_fecparam() local 1045 fec = OTX2_FEC_OFF; in otx2_set_fecparam() 1048 fec = OTX2_FEC_RS; in otx2_set_fecparam() 1059 if (fec == pfvf->linfo.fec) in otx2_set_fecparam() 1068 req->fec = fec; in otx2_set_fecparam() 1075 if (rsp->fec >= 0) in otx2_set_fecparam() 1076 pfvf->linfo.fec = rsp->fec; in otx2_set_fecparam() [all …]
|
| /linux/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/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 …]
|