Home
last modified time | relevance | path

Searched refs:fec (Results 1 – 25 of 483) sorted by relevance

12345678910>>...20

/openbmc/u-boot/drivers/net/
H A Dfec_mxc.c143 if (fec) in fec_get_clk_rate()
258 ret = fec->mii_postcall(fec->phy_id); in miiphy_restart_aneg()
738 writew(status, &fec->tbd_base[fec->tbd_index].status); in fecmxc_send()
806 if (!(readw(&fec->tbd_base[fec->tbd_index].status) & in fecmxc_send()
816 readw(&fec->tbd_base[fec->tbd_index].status), in fecmxc_send()
843 struct fec_bd *rbd = &fec->rbd_base[fec->rbd_index]; in fecmxc_recv()
967 fec->rbd_index = (fec->rbd_index + 1) % FEC_RBD_NUM; in fecmxc_recv()
1105 if (!fec) { in fec_probe()
1112 memset(fec, 0, sizeof(*fec)); in fec_probe()
1126 fec->bd = bd; in fec_probe()
[all …]
/openbmc/linux/tools/testing/selftests/drivers/net/netdevsim/
H A Dethtool-fec.sh12 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 …]
/openbmc/linux/drivers/net/ethernet/freescale/
H A Dfec_mpc52xx.c107 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 …]
H A Dfec_mpc52xx_phy.c33 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()
H A DMakefile6 obj-$(CONFIG_FEC) += fec.o
7 fec-objs :=fec_main.o fec_ptp.o
/openbmc/linux/drivers/net/ethernet/freescale/fs_enet/
H A Dmii-fec.c56 struct fec __iomem *fecp = fec->fecp; in fs_enet_fec_mii_read()
79 struct fec __iomem *fecp = fec->fecp; in fs_enet_fec_mii_write()
105 struct fec_info *fec; in fs_enet_mdio_probe() local
119 if (!fec) in fs_enet_mdio_probe()
122 new_bus->priv = fec; in fs_enet_mdio_probe()
134 if (!fec->fecp) { in fs_enet_mdio_probe()
167 clrsetbits_be32(&fec->fecp->fec_mii_speed, 0x7E, fec->mii_speed); in fs_enet_mdio_probe()
181 iounmap(fec->fecp); in fs_enet_mdio_probe()
184 kfree(fec); in fs_enet_mdio_probe()
197 iounmap(fec->fecp); in fs_enet_mdio_remove()
[all …]
H A Dmac-fec.c163 struct fec __iomem *fecp = fep->fec.fecp; in set_promiscuous_mode()
200 struct fec __iomem *fecp = fep->fec.fecp; in set_multicast_finish()
230 struct fec __iomem *fecp = fep->fec.fecp; in restart()
342 struct fec __iomem *fecp = fep->fec.fecp; in stop()
367 struct fec __iomem *fecp = fep->fec.fecp; in napi_clear_event_fs()
375 struct fec __iomem *fecp = fep->fec.fecp; in napi_enable_fs()
383 struct fec __iomem *fecp = fep->fec.fecp; in napi_disable_fs()
391 struct fec __iomem *fecp = fep->fec.fecp; in rx_bd_done()
399 struct fec __iomem *fecp = fep->fec.fecp; in tx_kickstart()
407 struct fec __iomem *fecp = fep->fec.fecp; in get_int_events()
[all …]
H A DMakefile9 fs_enet-$(CONFIG_FS_ENET_HAS_FEC) += mac-fec.o
12 obj-$(CONFIG_FS_ENET_MDIO_FEC) += mii-fec.o
/openbmc/linux/net/ethtool/
H A Dfec.c37 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 …]
/openbmc/linux/Documentation/devicetree/bindings/net/
H A Dfsl,fec.yaml21 - 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
240 compatible = "fsl,imx51-fec", "fsl,imx27-fec";
[all …]
/openbmc/linux/drivers/md/
H A Ddm-verity-fec.c18 return v->fec && v->fec->dev; in verity_fec_is_enabled()
52 par[i] = fec[i]; in fec_decode_rs8()
157 offset += v->fec->roots; in fec_decode_bufs()
235 bufio = v->fec->data_bufio; in fec_read_bufs()
536 v->fec->dev->name, in verity_fec_status_table()
539 v->fec->roots); in verity_fec_status_table()
566 v->fec = NULL; in verity_fec_dtr()
624 v->fec->blocks = num_ll; in verity_fec_parse_opt_args()
633 v->fec->start = num_ll; in verity_fec_parse_opt_args()
642 v->fec->roots = num_c; in verity_fec_parse_opt_args()
[all …]
/openbmc/linux/drivers/net/netdevsim/
H A Dethtool.c122 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()
/openbmc/linux/arch/arm64/boot/dts/freescale/
H A Dimx8qxp-ss-conn.dtsi20 compatible = "fsl,imx8qxp-fec", "fsl,imx8qm-fec", "fsl,imx6sx-fec";
24 compatible = "fsl,imx8qxp-fec", "fsl,imx8qm-fec", "fsl,imx6sx-fec";
H A Dimx8qm-ss-conn.dtsi8 compatible = "fsl,imx8qm-fec", "fsl,imx6sx-fec";
12 compatible = "fsl,imx8qm-fec", "fsl,imx6sx-fec";
/openbmc/linux/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
/openbmc/linux/arch/powerpc/boot/dts/
H A Dadder875-redboot.dts79 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";
H A Dadder875-uboot.dts78 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";
H A Dep88xc.dts77 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";
H A Dmpc885ads.dts78 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";
/openbmc/linux/drivers/net/ethernet/marvell/prestera/
H A Dprestera_ethtool.c360 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 …]
/openbmc/linux/drivers/media/dvb-frontends/
H A Dcx24123.c329 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 …]
H A Dcx24110.c168 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()
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/nic/
H A Dotx2_ethtool.c1021 const int fec[] = { in otx2_get_fecparam() local
1028 fecparam->active_fec = fec[pfvf->linfo.fec]; 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
1055 fec = OTX2_FEC_OFF; in otx2_set_fecparam()
1058 fec = OTX2_FEC_RS; in otx2_set_fecparam()
1069 if (fec == pfvf->linfo.fec) in otx2_set_fecparam()
1078 req->fec = fec; in otx2_set_fecparam()
1085 if (rsp->fec >= 0) in otx2_set_fecparam()
1086 pfvf->linfo.fec = rsp->fec; in otx2_set_fecparam()
[all …]
/openbmc/linux/drivers/net/ethernet/sfc/
H A Dmcdi_port_common.c614 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 …]
/openbmc/linux/drivers/net/ethernet/sfc/siena/
H A Dmcdi_port_common.c619 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 …]

12345678910>>...20