/linux/drivers/net/ethernet/freescale/ |
A D | fec_mpc52xx.c | 105 struct mpc52xx_fec __iomem *fec = priv->fec; in mpc52xx_fec_set_paddr() local 172 struct mpc52xx_fec __iomem *fec = priv->fec; in mpc52xx_fec_adjust_link() local 445 struct mpc52xx_fec __iomem *fec = priv->fec; in mpc52xx_fec_interrupt() local 485 struct mpc52xx_fec __iomem *fec = priv->fec; in mpc52xx_fec_get_stats() local 534 struct mpc52xx_fec __iomem *fec = priv->fec; in mpc52xx_fec_reset_stats() local 551 struct mpc52xx_fec __iomem *fec = priv->fec; in mpc52xx_fec_set_multicast_list() local 594 struct mpc52xx_fec __iomem *fec = priv->fec; in mpc52xx_fec_hw_init() local 645 struct mpc52xx_fec __iomem *fec = priv->fec; in mpc52xx_fec_start() local 699 struct mpc52xx_fec __iomem *fec = priv->fec; in mpc52xx_fec_stop() local 739 struct mpc52xx_fec __iomem *fec = priv->fec; in mpc52xx_fec_reset() local [all …]
|
A D | fec_mpc52xx_phy.c | 31 struct mpc52xx_fec __iomem *fec = priv->regs; in mpc52xx_fec_mdio_transfer() local 37 out_be32(&fec->ievent, FEC_IEVENT_MII); in mpc52xx_fec_mdio_transfer() 38 out_be32(&fec->mii_data, value); in mpc52xx_fec_mdio_transfer() 41 while (!(in_be32(&fec->ievent) & FEC_IEVENT_MII) && --tries) in mpc52xx_fec_mdio_transfer() 48 in_be32(&fec->mii_data) & FEC_MII_DATA_DATAMSK : 0; in mpc52xx_fec_mdio_transfer()
|
/linux/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/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/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() 271 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 | 19 - fsl,imx25-fec 20 - fsl,imx27-fec 21 - fsl,imx28-fec 22 - fsl,imx6q-fec 23 - fsl,mvf600-fec 26 - fsl,imx53-fec 27 - fsl,imx6sl-fec 31 - fsl,imx35-fec 32 - fsl,imx51-fec 218 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() 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/drivers/net/netdevsim/ |
A D | ethtool.c | 118 memcpy(fecparam, &ns->ethtool.fec, sizeof(ns->ethtool.fec)); in nsim_get_fecparam() 126 u32 fec; in nsim_set_fecparam() local 130 memcpy(&ns->ethtool.fec, fecparam, sizeof(ns->ethtool.fec)); in nsim_set_fecparam() 131 fec = fecparam->fec; in nsim_set_fecparam() 132 if (fec == ETHTOOL_FEC_AUTO) in nsim_set_fecparam() 133 fec |= ETHTOOL_FEC_OFF; in nsim_set_fecparam() 134 fec |= ETHTOOL_FEC_NONE; in nsim_set_fecparam() 135 ns->ethtool.fec.active_fec = 1 << (fls(fec) - 1); in nsim_set_fecparam() 170 ns->ethtool.fec.fec = ETHTOOL_FEC_NONE; in nsim_ethtool_init() 171 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"; 12 compatible = "fsl,imx8qm-fec", "fsl,imx6sx-fec";
|
/linux/drivers/net/ethernet/marvell/prestera/ |
A D | prestera_ethtool.c | 360 u8 fec, u8 type) in prestera_modes_to_eth() argument 408 *fec = fec_modes; in prestera_modes_from_eth() 684 fecparam->fec = 0; in prestera_ethtool_get_fecparam() 707 u8 fec; in prestera_ethtool_set_fecparam() local 719 fec = PRESTERA_PORT_FEC_MAX; in prestera_ethtool_set_fecparam() 723 fec = mode; in prestera_ethtool_set_fecparam() 730 if (fec == cfg_mac.fec) in prestera_ethtool_set_fecparam() 733 if (fec == PRESTERA_PORT_FEC_MAX) { in prestera_ethtool_set_fecparam() 738 cfg_mac.fec = fec; in prestera_ethtool_set_fecparam() 797 smac->fec = evt->data.mac.fec; in prestera_ethtool_port_state_changed() [all …]
|
/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/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()
|
A D | cx24120.c | 114 enum fe_code_rate fec; member 763 enum fe_code_rate fec; member 801 int fec; in cx24120_get_fec() local 804 fec = ret & 0x3f; /* Lower 6 bits */ in cx24120_get_fec() 811 if (modfec_lookup_table[idx].val != fec) in cx24120_get_fec() 824 c->fec_inner = modfec_lookup_table[idx].fec; in cx24120_get_fec() 870 enum fe_code_rate fec; member 1011 enum fe_code_rate fec; member 1043 enum fe_code_rate fec) in cx24120_set_fec() argument 1049 state->dnxt.fec = fec; in cx24120_set_fec() [all …]
|
/linux/drivers/net/ethernet/marvell/octeontx2/nic/ |
A D | otx2_ethtool.c | 938 const int fec[] = { in otx2_get_fecparam() local 945 fecparam->active_fec = fec[pfvf->linfo.fec]; in otx2_get_fecparam() 955 fecparam->fec = fec[rsp->fwdata.supported_fec]; in otx2_get_fecparam() 966 int err = 0, fec = 0; in otx2_set_fecparam() local 972 fec = OTX2_FEC_OFF; in otx2_set_fecparam() 975 fec = OTX2_FEC_RS; in otx2_set_fecparam() 986 if (fec == pfvf->linfo.fec) in otx2_set_fecparam() 995 req->fec = fec; in otx2_set_fecparam() 1002 if (rsp->fec >= 0) in otx2_set_fecparam() 1003 pfvf->linfo.fec = rsp->fec; in otx2_set_fecparam() [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/drivers/mtd/ubi/ |
A D | fastmap.c | 1129 struct ubi_fm_ec *fec; in ubi_write_fastmap() local 1217 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap() 1220 fm_pos += sizeof(*fec); in ubi_write_fastmap() 1231 fm_pos += sizeof(*fec); in ubi_write_fastmap() 1241 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap() 1244 fm_pos += sizeof(*fec); in ubi_write_fastmap() 1253 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap() 1256 fm_pos += sizeof(*fec); in ubi_write_fastmap() 1266 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap() 1269 fm_pos += sizeof(*fec); in ubi_write_fastmap() [all …]
|
/linux/drivers/net/ethernet/sfc/ |
A D | mcdi_port_common.c | 616 int efx_mcdi_phy_get_fecparam(struct efx_nic *efx, struct ethtool_fecparam *fec) in efx_mcdi_phy_get_fecparam() argument 637 fec->fec = mcdi_fec_caps_to_ethtool(caps, is_25g); in efx_mcdi_phy_get_fecparam() 640 fec->fec &= ~ETHTOOL_FEC_BASER; in efx_mcdi_phy_get_fecparam() 645 fec->active_fec = ETHTOOL_FEC_OFF; in efx_mcdi_phy_get_fecparam() 648 fec->active_fec = ETHTOOL_FEC_BASER; in efx_mcdi_phy_get_fecparam() 651 fec->active_fec = ETHTOOL_FEC_RS; in efx_mcdi_phy_get_fecparam() 660 fec->active_fec = ETHTOOL_FEC_AUTO; in efx_mcdi_phy_get_fecparam() 681 int efx_mcdi_phy_set_fecparam(struct efx_nic *efx, const struct ethtool_fecparam *fec) in efx_mcdi_phy_set_fecparam() argument 687 rc = ethtool_fec_supported(phy_cfg->supported_cap, fec->fec); in efx_mcdi_phy_set_fecparam() 700 caps |= ethtool_fec_caps_to_mcdi(phy_cfg->supported_cap, fec->fec); in efx_mcdi_phy_set_fecparam() [all …]
|
/linux/drivers/net/ethernet/netronome/nfp/ |
A D | nfp_net_ethtool.c | 784 static int nfp_port_fec_ethtool_to_nsp(u32 fec) in nfp_port_fec_ethtool_to_nsp() argument 786 switch (fec) { in nfp_port_fec_ethtool_to_nsp() 805 if (fec & NFP_FEC_AUTO) in nfp_port_fec_nsp_to_ethtool() 807 if (fec & NFP_FEC_BASER) in nfp_port_fec_nsp_to_ethtool() 809 if (fec & NFP_FEC_REED_SOLOMON) in nfp_port_fec_nsp_to_ethtool() 811 if (fec & NFP_FEC_DISABLED) in nfp_port_fec_nsp_to_ethtool() 825 param->fec = ETHTOOL_FEC_NONE; in nfp_port_get_fecparam() 847 int err, fec; in nfp_port_set_fecparam() local 857 fec = nfp_port_fec_ethtool_to_nsp(param->fec); in nfp_port_set_fecparam() 858 if (fec < 0) in nfp_port_set_fecparam() [all …]
|