/linux-master/tools/testing/selftests/drivers/net/netdevsim/ |
H A D | ethtool-fec.sh | 11 # Since commit 2b3ddcb35357 ("ethtool: fec: Change the prompt ...") 13 configured=$($ETHTOOL --show-fec $NSIM_NETDEV | tail -2 | head -1 | cut -d' ' -f1) 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 39 s=$($ETHTOOL --show-fec $NSIM_NETDEV | tail -2) 45 $ETHTOOL --set-fec [all...] |
H A D | Makefile | 7 ethtool-fec.sh \
|
/linux-master/drivers/dma/bestcomm/ |
H 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-master/drivers/net/ethernet/freescale/ |
H A D | fec_mpc52xx.c | 49 #include <linux/fsl/bestcomm/fec.h> 53 #define DRIVER_NAME "mpc52xx-fec" 62 struct mpc52xx_fec __iomem *fec; member in struct:mpc52xx_fec_priv 107 struct mpc52xx_fec __iomem *fec = priv->fec; local 109 out_be32(&fec->paddr1, *(const u32 *)(&mac[0])); 110 out_be32(&fec->paddr2, (*(const u16 *)(&mac[4]) << 16) | FEC_PADDR2_TYPE); 174 struct mpc52xx_fec __iomem *fec = priv->fec; local 181 rcntrl = in_be32(&fec 447 struct mpc52xx_fec __iomem *fec = priv->fec; local 487 struct mpc52xx_fec __iomem *fec = priv->fec; local 536 struct mpc52xx_fec __iomem *fec = priv->fec; local 553 struct mpc52xx_fec __iomem *fec = priv->fec; local 596 struct mpc52xx_fec __iomem *fec = priv->fec; local 647 struct mpc52xx_fec __iomem *fec = priv->fec; local 701 struct mpc52xx_fec __iomem *fec = priv->fec; local 741 struct mpc52xx_fec __iomem *fec = priv->fec; local 897 struct mpc52xx_fec __iomem *fec = priv->fec; local [all...] |
H A D | Makefile | 6 obj-$(CONFIG_FEC) += fec.o 7 fec-objs :=fec_main.o fec_ptp.o
|
H A D | fec_mpc52xx_phy.c | 33 struct mpc52xx_fec __iomem *fec = priv->regs; local 39 out_be32(&fec->ievent, FEC_IEVENT_MII); 40 out_be32(&fec->mii_data, value); 43 while (!(in_be32(&fec->ievent) & FEC_IEVENT_MII) && --tries) 50 in_be32(&fec->mii_data) & FEC_MII_DATA_DATAMSK : 0; 135 { .compatible = "mpc5200b-fec-phy", }, 142 .name = "mpc5200b-fec-phy", 150 /* let fec driver call it, since this has to be registered before it */
|
/linux-master/net/ethtool/ |
H A D | fec.c | 32 ethtool_fec_to_link_modes(u32 fec, unsigned long *link_modes, u8 *fec_auto) argument 35 *fec_auto = !!(fec & ETHTOOL_FEC_AUTO); 37 if (fec & ETHTOOL_FEC_OFF) 39 if (fec & ETHTOOL_FEC_RS) 41 if (fec & ETHTOOL_FEC_BASER) 43 if (fec & ETHTOOL_FEC_LLRS) 48 ethtool_link_modes_to_fecparam(struct ethtool_fecparam *fec, argument 51 memset(fec, 0, sizeof(*fec)); 54 fec 100 struct ethtool_fecparam fec = {}; local 242 struct ethtool_fecparam fec = {}; local [all...] |
H A D | Makefile | 10 tunnels.o fec.o eeprom.o stats.o phc_vclocks.o mm.o \
|
/linux-master/drivers/net/ethernet/freescale/fs_enet/ |
H A D | Makefile | 9 fs_enet-$(CONFIG_FS_ENET_HAS_FEC) += mac-fec.o 12 obj-$(CONFIG_FS_ENET_MDIO_FEC) += mii-fec.o
|
H A D | mac-fec.c | 42 #include "fec.h" 77 static int whack_reset(struct fec __iomem *fecp) 99 fep->fec.fecp = of_iomap(ofdev->dev.of_node, 0); 100 if (!fep->fec.fecp) 118 fep->fec.hthi = 0; 119 fep->fec.htlo = 0; 163 struct fec __iomem *fecp = fep->fec.fecp; 172 fep->fec.hthi = 0; 173 fep->fec [all...] |
H A D | mii-fec.c | 44 #include "fec.h" 56 struct fec_info* fec = bus->priv; local 57 struct fec __iomem *fecp = fec->fecp; 79 struct fec_info* fec = bus->priv; local 80 struct fec __iomem *fecp = fec->fecp; 104 struct fec_info *fec; local 114 fec = kzalloc(sizeof(struct fec_info), GFP_KERNEL); 115 if (!fec) 190 struct fec_info *fec = bus->priv; local [all...] |
H A D | fs_enet.h | 22 struct fec { struct 64 struct fec __iomem *fecp; 178 } fec; member in union:fs_enet_private::__anon377
|
/linux-master/drivers/media/test-drivers/vidtv/ |
H A D | vidtv_demod.h | 22 * @fec: see enum fe_fec_rate 35 u32 fec; member in struct:vidtv_demod_cnr_to_qual_s
|
/linux-master/drivers/net/netdevsim/ |
H A D | ethtool.c | 122 memcpy(fecparam, &ns->ethtool.fec, sizeof(ns->ethtool.fec)); 130 u32 fec; local 134 memcpy(&ns->ethtool.fec, fecparam, sizeof(ns->ethtool.fec)); 135 fec = fecparam->fec; 136 if (fec == ETHTOOL_FEC_AUTO) 137 fec |= ETHTOOL_FEC_OFF; 138 fec | [all...] |
/linux-master/drivers/md/ |
H A D | dm-verity-fec.c | 8 #include "dm-verity-fec.h" 11 #define DM_MSG_PREFIX "verity-fec" 18 return v->fec && v->fec->dev; 38 mod = do_div(offset, v->fec->rsn); 39 return offset + mod * (v->fec->rounds << v->data_dev_block_bits); 46 u8 *data, u8 *fec, int neras) 51 for (i = 0; i < v->fec->roots; i++) 52 par[i] = fec[i]; 54 return decode_rs8(fio->rs, data, par, v->fec 45 fec_decode_rs8(struct dm_verity *v, struct dm_verity_fec_io *fio, u8 *data, u8 *fec, int neras) argument [all...] |
/linux-master/drivers/net/ethernet/sfc/siena/ |
H A D | mcdi_port_common.h | 41 struct ethtool_fecparam *fec); 43 const struct ethtool_fecparam *fec);
|
H A D | mcdi_port_common.c | 619 struct ethtool_fecparam *fec) 640 fec->fec = mcdi_fec_caps_to_ethtool(caps, is_25g); 643 fec->fec &= ~ETHTOOL_FEC_BASER; 648 fec->active_fec = ETHTOOL_FEC_OFF; 651 fec->active_fec = ETHTOOL_FEC_BASER; 654 fec->active_fec = ETHTOOL_FEC_RS; 663 fec->active_fec = ETHTOOL_FEC_AUTO; 685 const struct ethtool_fecparam *fec) 618 efx_siena_mcdi_phy_get_fecparam(struct efx_nic *efx, struct ethtool_fecparam *fec) argument 684 efx_siena_mcdi_phy_set_fecparam(struct efx_nic *efx, const struct ethtool_fecparam *fec) argument [all...] |
/linux-master/drivers/net/ethernet/sfc/ |
H A D | mcdi_port_common.h | 52 int efx_mcdi_phy_get_fecparam(struct efx_nic *efx, struct ethtool_fecparam *fec); 53 int efx_mcdi_phy_set_fecparam(struct efx_nic *efx, const struct ethtool_fecparam *fec);
|
H A D | mcdi_port_common.c | 614 int efx_mcdi_phy_get_fecparam(struct efx_nic *efx, struct ethtool_fecparam *fec) argument 635 fec->fec = mcdi_fec_caps_to_ethtool(caps, is_25g); 638 fec->fec &= ~ETHTOOL_FEC_BASER; 643 fec->active_fec = ETHTOOL_FEC_OFF; 646 fec->active_fec = ETHTOOL_FEC_BASER; 649 fec->active_fec = ETHTOOL_FEC_RS; 658 fec->active_fec = ETHTOOL_FEC_AUTO; 679 int efx_mcdi_phy_set_fecparam(struct efx_nic *efx, const struct ethtool_fecparam *fec) argument [all...] |
/linux-master/drivers/net/ethernet/marvell/octeontx2/nic/ |
H A D | otx2_ethtool.c | 240 if (pfvf->linfo.fec == OTX2_FEC_BASER) { 1013 const int fec[] = { local 1019 if (pfvf->linfo.fec < FEC_MAX_INDEX) 1020 fecparam->active_fec = fec[pfvf->linfo.fec]; 1028 fecparam->fec = ETHTOOL_FEC_NONE; 1030 fecparam->fec = fec[rsp->fwdata.supported_fec]; 1041 int err = 0, fec = 0; local 1043 switch (fecparam->fec) { [all...] |
/linux-master/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_ethtool.c | 360 u8 fec, u8 type) 376 if ((port_fec_caps[mode].pr_fec & fec) == 0) 384 u64 *link_modes, u8 *fec, u8 type) 408 *fec = fec_modes; 690 fecparam->fec = 0; 696 fecparam->fec |= port_fec_caps[mode].eth_fec; 713 u8 fec; local 725 fec = PRESTERA_PORT_FEC_MAX; 727 if ((port_fec_caps[mode].eth_fec & fecparam->fec) && 729 fec 359 prestera_modes_to_eth(unsigned long *eth_modes, u64 link_modes, u8 fec, u8 type) argument 383 prestera_modes_from_eth(const unsigned long *eth_modes, u64 *link_modes, u8 *fec, u8 type) argument [all...] |
/linux-master/drivers/media/dvb-frontends/ |
H A D | cx24123.c | 325 static int cx24123_set_fec(struct cx24123_state *state, enum fe_code_rate fec) argument 329 if (((int)fec < FEC_NONE) || (fec > FEC_AUTO)) 330 fec = FEC_AUTO; 333 if (fec == FEC_1_2) 340 switch (fec) { 387 static int cx24123_get_fec(struct cx24123_state *state, enum fe_code_rate *fec) argument 398 *fec = FEC_1_2; 401 *fec = FEC_2_3; 404 *fec [all...] |
H A D | cx24110.c | 168 static int cx24110_set_fec(struct cx24110_state *state, enum fe_code_rate fec) argument 178 if (fec > FEC_AUTO) 179 fec = FEC_AUTO; 181 if (fec == FEC_AUTO) { /* (re-)establish AutoAcq behaviour */ 197 if (rate[fec] < 0) 200 cx24110_writereg(state, 0x05, (cx24110_readreg(state, 0x05) & 0xf0) | rate[fec]); 202 cx24110_writereg(state, 0x22, (cx24110_readreg(state, 0x22) & 0xf0) | rate[fec]); 204 cx24110_writereg(state, 0x1a, g1[fec]); 205 cx24110_writereg(state, 0x1b, g2[fec]);
|
H A D | stv0900_priv.h | 259 enum fe_stv0900_fec fec; member in struct:stv0900_search_params 272 enum fe_stv0900_fec fec; member in struct:stv0900_signal_info 310 enum fe_stv0900_fec fec[2]; member in struct:stv0900_internal
|
/linux-master/drivers/mtd/ubi/ |
H A D | fastmap.c | 1138 struct ubi_fm_ec *fec; local 1222 fec = (struct ubi_fm_ec *)(fm_raw + fm_pos); 1224 fec->pnum = cpu_to_be32(wl_e->pnum); 1226 fec->ec = cpu_to_be32(wl_e->ec); 1229 fm_pos += sizeof(*fec); 1235 fec = (struct ubi_fm_ec *)(fm_raw + fm_pos); 1237 fec->pnum = cpu_to_be32(wl_e->pnum); 1239 fec->ec = cpu_to_be32(wl_e->ec); 1242 fm_pos += sizeof(*fec); 1247 fec [all...] |