Searched refs:fec (Results 1 - 25 of 114) sorted by relevance

12345

/linux-master/tools/testing/selftests/drivers/net/netdevsim/
H A Dethtool-fec.sh11 # 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 DMakefile7 ethtool-fec.sh \
/linux-master/drivers/dma/bestcomm/
H A DMakefile8 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 Dfec_mpc52xx.c49 #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 DMakefile6 obj-$(CONFIG_FEC) += fec.o
7 fec-objs :=fec_main.o fec_ptp.o
H A Dfec_mpc52xx_phy.c33 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 Dfec.c32 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 DMakefile10 tunnels.o fec.o eeprom.o stats.o phc_vclocks.o mm.o \
/linux-master/drivers/net/ethernet/freescale/fs_enet/
H A DMakefile9 fs_enet-$(CONFIG_FS_ENET_HAS_FEC) += mac-fec.o
12 obj-$(CONFIG_FS_ENET_MDIO_FEC) += mii-fec.o
H A Dmac-fec.c42 #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 Dmii-fec.c44 #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 Dfs_enet.h22 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 Dvidtv_demod.h22 * @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 Dethtool.c122 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 Ddm-verity-fec.c8 #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 Dmcdi_port_common.h41 struct ethtool_fecparam *fec);
43 const struct ethtool_fecparam *fec);
H A Dmcdi_port_common.c619 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 Dmcdi_port_common.h52 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 Dmcdi_port_common.c614 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 Dotx2_ethtool.c240 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 Dprestera_ethtool.c360 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 Dcx24123.c325 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 Dcx24110.c168 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 Dstv0900_priv.h259 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 Dfastmap.c1138 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...]

Completed in 260 milliseconds

12345