/linux-6.6.21/tools/testing/selftests/drivers/net/netdevsim/ |
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 43 s=$($ETHTOOL --show-fec $NSIM_NETDEV | tail -2) 49 $ETHTOOL --set-fec $NSIM_NETDEV encoding rs llrs [all …]
|
/linux-6.6.21/drivers/net/ethernet/freescale/ |
D | fec_mpc52xx.c | 62 struct mpc52xx_fec __iomem *fec; member 107 struct mpc52xx_fec __iomem *fec = priv->fec; in mpc52xx_fec_set_paddr() local 109 out_be32(&fec->paddr1, *(const u32 *)(&mac[0])); in mpc52xx_fec_set_paddr() 110 out_be32(&fec->paddr2, (*(const u16 *)(&mac[4]) << 16) | FEC_PADDR2_TYPE); in mpc52xx_fec_set_paddr() 174 struct mpc52xx_fec __iomem *fec = priv->fec; in mpc52xx_fec_adjust_link() local 181 rcntrl = in_be32(&fec->r_cntrl); in mpc52xx_fec_adjust_link() 182 tcntrl = in_be32(&fec->x_cntrl); in mpc52xx_fec_adjust_link() 191 out_be32(&fec->r_cntrl, rcntrl); in mpc52xx_fec_adjust_link() 192 out_be32(&fec->x_cntrl, tcntrl); in mpc52xx_fec_adjust_link() 447 struct mpc52xx_fec __iomem *fec = priv->fec; in mpc52xx_fec_interrupt() local [all …]
|
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()
|
D | Makefile | 6 obj-$(CONFIG_FEC) += fec.o 7 fec-objs :=fec_main.o fec_ptp.o
|
/linux-6.6.21/drivers/net/ethernet/freescale/fs_enet/ |
D | mii-fec.c | 55 struct fec_info* fec = bus->priv; in fs_enet_fec_mii_read() local 56 struct fec __iomem *fecp = fec->fecp; in fs_enet_fec_mii_read() 78 struct fec_info* fec = bus->priv; in fs_enet_fec_mii_write() local 79 struct fec __iomem *fecp = fec->fecp; in fs_enet_fec_mii_write() 105 struct fec_info *fec; in fs_enet_mdio_probe() local 118 fec = kzalloc(sizeof(struct fec_info), GFP_KERNEL); in fs_enet_mdio_probe() 119 if (!fec) in fs_enet_mdio_probe() 122 new_bus->priv = fec; in fs_enet_mdio_probe() 133 fec->fecp = ioremap(res.start, resource_size(&res)); in fs_enet_mdio_probe() 134 if (!fec->fecp) { in fs_enet_mdio_probe() [all …]
|
D | mac-fec.c | 77 static int whack_reset(struct fec __iomem *fecp) in whack_reset() 99 fep->fec.fecp = of_iomap(ofdev->dev.of_node, 0); in do_pd_setup() 100 if (!fep->fec.fecp) in do_pd_setup() 118 fep->fec.hthi = 0; in setup_data() 119 fep->fec.htlo = 0; in setup_data() 163 struct fec __iomem *fecp = fep->fec.fecp; in set_promiscuous_mode() 172 fep->fec.hthi = 0; in set_multicast_start() 173 fep->fec.htlo = 0; in set_multicast_start() 192 fep->fec.hthi |= csrVal; in set_multicast_one() 194 fep->fec.htlo |= csrVal; in set_multicast_one() [all …]
|
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.6.21/net/ethtool/ |
D | fec.c | 32 ethtool_fec_to_link_modes(u32 fec, unsigned long *link_modes, u8 *fec_auto) in ethtool_fec_to_link_modes() argument 35 *fec_auto = !!(fec & ETHTOOL_FEC_AUTO); in ethtool_fec_to_link_modes() 37 if (fec & ETHTOOL_FEC_OFF) in ethtool_fec_to_link_modes() 39 if (fec & ETHTOOL_FEC_RS) in ethtool_fec_to_link_modes() 41 if (fec & ETHTOOL_FEC_BASER) in ethtool_fec_to_link_modes() 43 if (fec & ETHTOOL_FEC_LLRS) in ethtool_fec_to_link_modes() 48 ethtool_link_modes_to_fecparam(struct ethtool_fecparam *fec, in ethtool_link_modes_to_fecparam() argument 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() [all …]
|
/linux-6.6.21/Documentation/devicetree/bindings/net/ |
D | fsl,fec.yaml | 4 $id: http://devicetree.org/schemas/net/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 30 - fsl,imx6sl-fec 31 - const: fsl,imx25-fec [all …]
|
/linux-6.6.21/drivers/md/ |
D | dm-verity-fec.c | 18 return v->fec && v->fec->dev; in verity_fec_is_enabled() 38 mod = do_div(offset, v->fec->rsn); in fec_interleave() 39 return offset + mod * (v->fec->rounds << v->data_dev_block_bits); in fec_interleave() 46 u8 *data, u8 *fec, int neras) in fec_decode_rs8() argument 51 for (i = 0; i < v->fec->roots; i++) in fec_decode_rs8() 52 par[i] = fec[i]; in fec_decode_rs8() 54 return decode_rs8(fio->rs, data, par, v->fec->rsn, NULL, neras, in fec_decode_rs8() 68 position = (index + rsb) * v->fec->roots; in fec_read_parity() 69 block = div64_u64_rem(position, v->fec->io_size, &rem); in fec_read_parity() 72 res = dm_bufio_read(v->fec->bufio, block, buf); in fec_read_parity() [all …]
|
/linux-6.6.21/drivers/net/netdevsim/ |
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() 185 ns->ethtool.fec.fec = ETHTOOL_FEC_NONE; in nsim_ethtool_init() 186 ns->ethtool.fec.active_fec = ETHTOOL_FEC_NONE; in nsim_ethtool_init()
|
/linux-6.6.21/arch/arm64/boot/dts/freescale/ |
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";
|
D | imx8qm-ss-conn.dtsi | 8 compatible = "fsl,imx8qm-fec", "fsl,imx6sx-fec"; 12 compatible = "fsl,imx8qm-fec", "fsl,imx6sx-fec";
|
/linux-6.6.21/drivers/dma/bestcomm/ |
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.6.21/arch/powerpc/boot/dts/ |
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";
|
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";
|
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";
|
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.6.21/drivers/media/dvb-frontends/ |
D | cx24123.c | 325 static int cx24123_set_fec(struct cx24123_state *state, enum fe_code_rate fec) in cx24123_set_fec() argument 329 if (((int)fec < FEC_NONE) || (fec > FEC_AUTO)) in cx24123_set_fec() 330 fec = FEC_AUTO; in cx24123_set_fec() 333 if (fec == FEC_1_2) in cx24123_set_fec() 340 switch (fec) { in cx24123_set_fec() 387 static int cx24123_get_fec(struct cx24123_state *state, enum fe_code_rate *fec) in cx24123_get_fec() argument 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() [all …]
|
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.6.21/drivers/net/ethernet/marvell/prestera/ |
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() 696 fecparam->fec |= port_fec_caps[mode].eth_fec; 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() 727 if ((port_fec_caps[mode].eth_fec & fecparam->fec) && in prestera_ethtool_set_fecparam() 729 fec = mode; in prestera_ethtool_set_fecparam() [all …]
|
/linux-6.6.21/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_ethtool.c | 240 if (pfvf->linfo.fec == OTX2_FEC_BASER) { in otx2_get_ethtool_stats() 1021 const int fec[] = { in otx2_get_fecparam() local 1027 if (pfvf->linfo.fec < FEC_MAX_INDEX) in otx2_get_fecparam() 1028 fecparam->active_fec = fec[pfvf->linfo.fec]; in otx2_get_fecparam() 1036 fecparam->fec = ETHTOOL_FEC_NONE; in otx2_get_fecparam() 1038 fecparam->fec = fec[rsp->fwdata.supported_fec]; in otx2_get_fecparam() 1049 int err = 0, fec = 0; in otx2_set_fecparam() local 1051 switch (fecparam->fec) { in otx2_set_fecparam() 1055 fec = OTX2_FEC_OFF; in otx2_set_fecparam() 1058 fec = OTX2_FEC_RS; in otx2_set_fecparam() [all …]
|
/linux-6.6.21/drivers/net/ethernet/sfc/siena/ |
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.6.21/drivers/net/ethernet/sfc/ |
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.6.21/drivers/mtd/ubi/ |
D | fastmap.c | 1137 struct ubi_fm_ec *fec; in ubi_write_fastmap() local 1221 fec = (struct ubi_fm_ec *)(fm_raw + fm_pos); in ubi_write_fastmap() 1223 fec->pnum = cpu_to_be32(wl_e->pnum); in ubi_write_fastmap() 1225 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap() 1228 fm_pos += sizeof(*fec); in ubi_write_fastmap() 1234 fec = (struct ubi_fm_ec *)(fm_raw + fm_pos); in ubi_write_fastmap() 1236 fec->pnum = cpu_to_be32(wl_e->pnum); 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() 1246 fec = (struct ubi_fm_ec *)(fm_raw + fm_pos); in ubi_write_fastmap() [all …]
|