/Linux-v4.19/drivers/net/ethernet/freescale/ |
D | fec_mpc52xx.c | 60 struct mpc52xx_fec __iomem *fec; member 105 struct mpc52xx_fec __iomem *fec = priv->fec; in mpc52xx_fec_set_paddr() local 107 out_be32(&fec->paddr1, *(u32 *)(&mac[0])); in mpc52xx_fec_set_paddr() 108 out_be32(&fec->paddr2, (*(u16 *)(&mac[4]) << 16) | FEC_PADDR2_TYPE); in mpc52xx_fec_set_paddr() 172 struct mpc52xx_fec __iomem *fec = priv->fec; in mpc52xx_fec_adjust_link() local 179 rcntrl = in_be32(&fec->r_cntrl); in mpc52xx_fec_adjust_link() 180 tcntrl = in_be32(&fec->x_cntrl); in mpc52xx_fec_adjust_link() 189 out_be32(&fec->r_cntrl, rcntrl); in mpc52xx_fec_adjust_link() 190 out_be32(&fec->x_cntrl, tcntrl); in mpc52xx_fec_adjust_link() 444 struct mpc52xx_fec __iomem *fec = priv->fec; in mpc52xx_fec_interrupt() local [all …]
|
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()
|
D | Makefile | 6 obj-$(CONFIG_FEC) += fec.o 7 fec-objs :=fec_main.o fec_ptp.o
|
/Linux-v4.19/drivers/net/ethernet/freescale/fs_enet/ |
D | mii-fec.c | 54 struct fec_info* fec = bus->priv; in fs_enet_fec_mii_read() local 55 struct fec __iomem *fecp = fec->fecp; in fs_enet_fec_mii_read() 77 struct fec_info* fec = bus->priv; in fs_enet_fec_mii_write() local 78 struct fec __iomem *fecp = fec->fecp; in fs_enet_fec_mii_write() 104 struct fec_info *fec; in fs_enet_mdio_probe() local 117 fec = kzalloc(sizeof(struct fec_info), GFP_KERNEL); in fs_enet_mdio_probe() 118 if (!fec) in fs_enet_mdio_probe() 121 new_bus->priv = fec; in fs_enet_mdio_probe() 132 fec->fecp = ioremap(res.start, resource_size(&res)); in fs_enet_mdio_probe() 133 if (!fec->fecp) { in fs_enet_mdio_probe() [all …]
|
D | mac-fec.c | 78 static int whack_reset(struct fec __iomem *fecp) in whack_reset() 100 fep->fec.fecp = of_iomap(ofdev->dev.of_node, 0); in do_pd_setup() 119 fep->fec.hthi = 0; in setup_data() 120 fep->fec.htlo = 0; in setup_data() 164 struct fec __iomem *fecp = fep->fec.fecp; in set_promiscuous_mode() 173 fep->fec.hthi = 0; in set_multicast_start() 174 fep->fec.htlo = 0; in set_multicast_start() 193 fep->fec.hthi |= csrVal; in set_multicast_one() 195 fep->fec.htlo |= csrVal; in set_multicast_one() 201 struct fec __iomem *fecp = fep->fec.fecp; in set_multicast_finish() [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-v4.19/drivers/md/ |
D | dm-verity-fec.c | 22 return v->fec && v->fec->dev; in verity_fec_is_enabled() 41 mod = do_div(offset, v->fec->rsn); in fec_interleave() 42 return offset + mod * (v->fec->rounds << v->data_dev_block_bits); in fec_interleave() 49 u8 *data, u8 *fec, int neras) in fec_decode_rs8() argument 54 for (i = 0; i < v->fec->roots; i++) in fec_decode_rs8() 55 par[i] = fec[i]; in fec_decode_rs8() 57 return decode_rs8(fio->rs, data, par, v->fec->rsn, NULL, neras, in fec_decode_rs8() 71 position = (index + rsb) * v->fec->roots; in fec_read_parity() 75 res = dm_bufio_read(v->fec->bufio, v->fec->start + block, buf); in fec_read_parity() 79 (unsigned long long)(v->fec->start + block), in fec_read_parity() [all …]
|
/Linux-v4.19/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-v4.19/arch/powerpc/boot/dts/ |
D | adder875-redboot.dts | 83 compatible = "fsl,mpc875-fec-mdio", "fsl,pq1-fec-mdio"; 99 compatible = "fsl,mpc875-fec-enet", 100 "fsl,pq1-fec-enet"; 111 compatible = "fsl,mpc875-fec-enet", 112 "fsl,pq1-fec-enet";
|
D | adder875-uboot.dts | 82 compatible = "fsl,mpc875-fec-mdio", "fsl,pq1-fec-mdio"; 98 compatible = "fsl,mpc875-fec-enet", 99 "fsl,pq1-fec-enet"; 110 compatible = "fsl,mpc875-fec-enet", 111 "fsl,pq1-fec-enet";
|
D | ep88xc.dts | 81 compatible = "fsl,mpc885-fec-mdio", "fsl,pq1-fec-mdio"; 97 compatible = "fsl,mpc885-fec-enet", 98 "fsl,pq1-fec-enet"; 109 compatible = "fsl,mpc885-fec-enet", 110 "fsl,pq1-fec-enet";
|
D | mpc885ads.dts | 82 compatible = "fsl,mpc885-fec-mdio", "fsl,pq1-fec-mdio"; 102 compatible = "fsl,mpc885-fec-enet", 103 "fsl,pq1-fec-enet"; 114 compatible = "fsl,mpc885-fec-enet", 115 "fsl,pq1-fec-enet";
|
D | mpc866ads.dts | 71 compatible = "fsl,mpc866-fec-mdio", "fsl,pq1-fec-mdio"; 82 compatible = "fsl,mpc866-fec-enet", 83 "fsl,pq1-fec-enet";
|
D | tqm8xx.dts | 104 compatible = "fsl,mpc866-fec-mdio", "fsl,pq1-fec-mdio"; 115 compatible = "fsl,mpc866-fec-enet", 116 "fsl,pq1-fec-enet";
|
/Linux-v4.19/drivers/media/dvb-frontends/ |
D | cx24123.c | 334 static int cx24123_set_fec(struct cx24123_state *state, enum fe_code_rate fec) in cx24123_set_fec() argument 338 if (((int)fec < FEC_NONE) || (fec > FEC_AUTO)) in cx24123_set_fec() 339 fec = FEC_AUTO; in cx24123_set_fec() 342 if (fec == FEC_1_2) in cx24123_set_fec() 349 switch (fec) { in cx24123_set_fec() 396 static int cx24123_get_fec(struct cx24123_state *state, enum fe_code_rate *fec) in cx24123_get_fec() argument 407 *fec = FEC_1_2; in cx24123_get_fec() 410 *fec = FEC_2_3; in cx24123_get_fec() 413 *fec = FEC_3_4; in cx24123_get_fec() 416 *fec = FEC_4_5; in cx24123_get_fec() [all …]
|
D | cx24110.c | 181 static int cx24110_set_fec(struct cx24110_state *state, enum fe_code_rate fec) in cx24110_set_fec() argument 191 if (fec > FEC_AUTO) in cx24110_set_fec() 192 fec = FEC_AUTO; in cx24110_set_fec() 194 if (fec == FEC_AUTO) { /* (re-)establish AutoAcq behaviour */ in cx24110_set_fec() 210 if (rate[fec] < 0) in cx24110_set_fec() 213 cx24110_writereg(state, 0x05, (cx24110_readreg(state, 0x05) & 0xf0) | rate[fec]); in cx24110_set_fec() 215 cx24110_writereg(state, 0x22, (cx24110_readreg(state, 0x22) & 0xf0) | rate[fec]); in cx24110_set_fec() 217 cx24110_writereg(state, 0x1a, g1[fec]); in cx24110_set_fec() 218 cx24110_writereg(state, 0x1b, g2[fec]); in cx24110_set_fec()
|
D | tda8083.c | 110 static int tda8083_set_fec(struct tda8083_state *state, enum fe_code_rate fec) in tda8083_set_fec() argument 112 if (fec == FEC_AUTO) in tda8083_set_fec() 115 if (fec >= FEC_1_2 && fec <= FEC_8_9) in tda8083_set_fec() 116 return tda8083_writereg (state, 0x07, 1 << (FEC_8_9 - fec)); in tda8083_set_fec()
|
D | cx24120.c | 122 enum fe_code_rate fec; member 770 enum fe_code_rate fec; member 808 int fec; in cx24120_get_fec() local 811 fec = ret & 0x3f; /* Lower 6 bits */ in cx24120_get_fec() 813 dev_dbg(&state->i2c->dev, "raw fec = %d\n", fec); in cx24120_get_fec() 818 if (modfec_lookup_table[idx].val != fec) in cx24120_get_fec() 831 c->fec_inner = modfec_lookup_table[idx].fec; in cx24120_get_fec() 877 enum fe_code_rate fec; member 939 if (clock_ratios_table[idx].fec != c->fec_inner) in cx24120_set_clock_ratios() 1018 enum fe_code_rate fec; member [all …]
|
D | ves1x93.c | 160 static int ves1x93_set_fec(struct ves1x93_state *state, enum fe_code_rate fec) in ves1x93_set_fec() argument 162 if (fec == FEC_AUTO) in ves1x93_set_fec() 164 else if (fec < FEC_1_2 || fec > FEC_8_9) in ves1x93_set_fec() 167 return ves1x93_writereg (state, 0x0d, fec - FEC_1_2); in ves1x93_set_fec()
|
/Linux-v4.19/Documentation/devicetree/bindings/net/ |
D | fsl-fec.txt | 4 - compatible : Should be "fsl,<soc>-fec" 6 - interrupts : Should contain fec interrupt 58 compatible = "fsl,imx51-fec", "fsl,imx27-fec"; 70 compatible = "fsl,imx51-fec", "fsl,imx27-fec";
|
/Linux-v4.19/drivers/net/ethernet/netronome/nfp/ |
D | nfp_net_ethtool.c | 707 static int nfp_port_fec_ethtool_to_nsp(u32 fec) in nfp_port_fec_ethtool_to_nsp() argument 709 switch (fec) { in nfp_port_fec_ethtool_to_nsp() 724 static u32 nfp_port_fec_nsp_to_ethtool(u32 fec) in nfp_port_fec_nsp_to_ethtool() argument 728 if (fec & NFP_FEC_AUTO) in nfp_port_fec_nsp_to_ethtool() 730 if (fec & NFP_FEC_BASER) in nfp_port_fec_nsp_to_ethtool() 732 if (fec & NFP_FEC_REED_SOLOMON) in nfp_port_fec_nsp_to_ethtool() 734 if (fec & NFP_FEC_DISABLED) in nfp_port_fec_nsp_to_ethtool() 748 param->fec = ETHTOOL_FEC_NONE_BIT; in nfp_port_get_fecparam() 758 param->fec = nfp_port_fec_nsp_to_ethtool(eth_port->fec_modes_supported); in nfp_port_get_fecparam() 759 param->active_fec = nfp_port_fec_nsp_to_ethtool(eth_port->fec); in nfp_port_get_fecparam() [all …]
|
/Linux-v4.19/drivers/mtd/ubi/ |
D | fastmap.c | 1138 struct ubi_fm_ec *fec; in ubi_write_fastmap() local 1222 fec = (struct ubi_fm_ec *)(fm_raw + fm_pos); in ubi_write_fastmap() 1224 fec->pnum = cpu_to_be32(wl_e->pnum); in ubi_write_fastmap() 1226 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap() 1229 fm_pos += sizeof(*fec); in ubi_write_fastmap() 1235 fec = (struct ubi_fm_ec *)(fm_raw + fm_pos); in ubi_write_fastmap() 1237 fec->pnum = cpu_to_be32(wl_e->pnum); in ubi_write_fastmap() 1239 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap() 1242 fm_pos += sizeof(*fec); in ubi_write_fastmap() 1247 fec = (struct ubi_fm_ec *)(fm_raw + fm_pos); in ubi_write_fastmap() [all …]
|
/Linux-v4.19/arch/arm/boot/dts/ |
D | imx53-kp-hsc.dts | 15 &fec { 38 ethernet = <&fec>;
|
/Linux-v4.19/drivers/net/ethernet/sfc/ |
D | mcdi_port.c | 672 struct ethtool_fecparam *fec) in efx_mcdi_phy_get_fecparam() argument 693 fec->fec = mcdi_fec_caps_to_ethtool(caps, is_25g); in efx_mcdi_phy_get_fecparam() 696 fec->fec &= ~ETHTOOL_FEC_BASER; in efx_mcdi_phy_get_fecparam() 701 fec->active_fec = ETHTOOL_FEC_OFF; in efx_mcdi_phy_get_fecparam() 704 fec->active_fec = ETHTOOL_FEC_BASER; in efx_mcdi_phy_get_fecparam() 707 fec->active_fec = ETHTOOL_FEC_RS; in efx_mcdi_phy_get_fecparam() 716 fec->active_fec = ETHTOOL_FEC_AUTO; in efx_mcdi_phy_get_fecparam() 724 const struct ethtool_fecparam *fec) in efx_mcdi_phy_set_fecparam() argument 739 caps |= ethtool_fec_caps_to_mcdi(fec->fec); in efx_mcdi_phy_set_fecparam() 746 efx->fec_config = fec->fec; in efx_mcdi_phy_set_fecparam()
|
/Linux-v4.19/drivers/net/ethernet/netronome/nfp/nfpcore/ |
D | nfp_nsp_eth.c | 159 unsigned int fec; in nfp_eth_port_translate() local 195 fec = FIELD_GET(NSP_ETH_PORT_FEC_SUPP_BASER, port); in nfp_eth_port_translate() 196 dst->fec_modes_supported |= fec << NFP_FEC_BASER_BIT; in nfp_eth_port_translate() 197 fec = FIELD_GET(NSP_ETH_PORT_FEC_SUPP_RS, port); in nfp_eth_port_translate() 198 dst->fec_modes_supported |= fec << NFP_FEC_REED_SOLOMON_BIT; in nfp_eth_port_translate() 202 dst->fec = 1 << FIELD_GET(NSP_ETH_STATE_FEC, state); in nfp_eth_port_translate()
|