| /kernel/linux/linux-5.10/drivers/net/ethernet/freescale/ |
| D | fec_mpc52xx.h | 34 u32 fec_id; /* FEC + 0x000 */ 35 u32 ievent; /* FEC + 0x004 */ 36 u32 imask; /* FEC + 0x008 */ 38 u32 reserved0[1]; /* FEC + 0x00C */ 39 u32 r_des_active; /* FEC + 0x010 */ 40 u32 x_des_active; /* FEC + 0x014 */ 41 u32 r_des_active_cl; /* FEC + 0x018 */ 42 u32 x_des_active_cl; /* FEC + 0x01C */ 43 u32 ivent_set; /* FEC + 0x020 */ 44 u32 ecntrl; /* FEC + 0x024 */ [all …]
|
| D | fec_mpc52xx.c | 47 #include <linux/fsl/bestcomm/fec.h> 51 #define DRIVER_NAME "mpc52xx-fec" 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() [all …]
|
| D | Kconfig | 23 config FEC config 24 tristate "FEC ethernet controller (of ColdFire and some i.MX CPUs)" 36 tristate "FEC MPC52xx driver" 47 bool "FEC MPC52xx MDIO bus driver" 51 The MPC5200's FEC can connect to the Ethernet either with 54 If your board uses an external PHY connected to FEC, enable this. 99 and MPC86xx family of chips, the eTSEC on LS1021A and the FEC
|
| 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() 136 { .compatible = "mpc5200b-fec-phy", }, 143 .name = "mpc5200b-fec-phy", 151 /* let fec driver call it, since this has to be registered before it */
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/freescale/ |
| D | fec_mpc52xx.h | 34 u32 fec_id; /* FEC + 0x000 */ 35 u32 ievent; /* FEC + 0x004 */ 36 u32 imask; /* FEC + 0x008 */ 38 u32 reserved0[1]; /* FEC + 0x00C */ 39 u32 r_des_active; /* FEC + 0x010 */ 40 u32 x_des_active; /* FEC + 0x014 */ 41 u32 r_des_active_cl; /* FEC + 0x018 */ 42 u32 x_des_active_cl; /* FEC + 0x01C */ 43 u32 ivent_set; /* FEC + 0x020 */ 44 u32 ecntrl; /* FEC + 0x024 */ [all …]
|
| D | fec_mpc52xx.c | 49 #include <linux/fsl/bestcomm/fec.h> 53 #define DRIVER_NAME "mpc52xx-fec" 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() [all …]
|
| D | Kconfig | 23 config FEC config 24 tristate "FEC ethernet controller (of ColdFire and some i.MX CPUs)" 39 tristate "FEC MPC52xx driver" 50 bool "FEC MPC52xx MDIO bus driver" 54 The MPC5200's FEC can connect to the Ethernet either with 57 If your board uses an external PHY connected to FEC, enable this. 103 and MPC86xx family of chips, the eTSEC on LS1021A and the FEC
|
| 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() 135 { .compatible = "mpc5200b-fec-phy", }, 142 .name = "mpc5200b-fec-phy", 150 /* let fec driver call it, since this has to be registered before it */
|
| /kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/netdevsim/ |
| D | ethtool-fec.sh | 12 s=$($ETHTOOL --show-fec $NSIM_NETDEV | tail -2) 13 check $? "$s" "Configured FEC encodings: None 14 Active FEC encoding: None" 17 $ETHTOOL --set-fec $NSIM_NETDEV encoding auto 19 s=$($ETHTOOL --show-fec $NSIM_NETDEV | tail -2) 20 check $? "$s" "Configured FEC encodings: Auto 21 Active FEC encoding: Off" 25 $ETHTOOL --set-fec $NSIM_NETDEV encoding $o 27 s=$($ETHTOOL --show-fec $NSIM_NETDEV | tail -2) 28 check $? "$s" "Configured FEC encodings: Off [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/net/ |
| D | fsl,fec.yaml | 4 $id: http://devicetree.org/schemas/net/fsl,fec.yaml# 7 title: Freescale Fast Ethernet Controller (FEC) 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 [all …]
|
| /kernel/linux/linux-6.6/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 …]
|
| /kernel/linux/linux-5.10/drivers/net/ethernet/freescale/fs_enet/ |
| D | mii-fec.c | 42 #include "fec.h" 44 /* Make MII read/write commands for the FEC. 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() [all …]
|
| D | mac-fec.c | 43 #include "fec.h" 74 * Delay to wait for FEC reset command to complete (in us) 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() 101 if (!fep->fec.fecp) 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() [all …]
|
| /kernel/linux/linux-6.6/drivers/md/ |
| 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; 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() 73 position = (index + rsb) * v->fec->roots; in fec_read_parity() [all …]
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/freescale/fs_enet/ |
| D | mac-fec.c | 42 #include "fec.h" 73 * Delay to wait for FEC reset command to complete (in us) 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() [all …]
|
| D | mii-fec.c | 43 #include "fec.h" 45 /* Make MII read/write commands for the FEC. 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() [all …]
|
| /kernel/linux/linux-5.10/Documentation/misc-devices/ |
| D | xilinx_sdfec.rst | 4 Xilinx SD-FEC Driver 10 This driver supports SD-FEC Integrated Block for Zynq |Ultrascale+ (TM)| RFSoCs. 15 For a full description of SD-FEC core features, see the `SD-FEC Product Guide (PG256) <https://www.… 24 Missing features, known issues, and limitations of the SD-FEC driver are as 28 - Reset of the SD-FEC Integrated Block is not controlled by this driver 32 …indings/misc/xlnx,sd-fec.txt <https://github.com/Xilinx/linux-xlnx/blob/master/Documentation/devic… 38 The driver works with the SD-FEC core in two modes of operation: 50 - Activate the SD-FEC core 51 - Monitor the SD-FEC core for errors 52 - Retrieve the status and configuration of the SD-FEC core [all …]
|
| /kernel/linux/linux-6.6/Documentation/misc-devices/ |
| D | xilinx_sdfec.rst | 4 Xilinx SD-FEC Driver 10 This driver supports SD-FEC Integrated Block for Zynq |Ultrascale+ (TM)| RFSoCs. 15 For a full description of SD-FEC core features, see the `SD-FEC Product Guide (PG256) <https://www.… 24 Missing features, known issues, and limitations of the SD-FEC driver are as 28 - Reset of the SD-FEC Integrated Block is not controlled by this driver 32 …indings/misc/xlnx,sd-fec.txt <https://github.com/Xilinx/linux-xlnx/blob/master/Documentation/devic… 38 The driver works with the SD-FEC core in two modes of operation: 50 - Activate the SD-FEC core 51 - Monitor the SD-FEC core for errors 52 - Retrieve the status and configuration of the SD-FEC core [all …]
|
| /kernel/linux/linux-5.10/drivers/md/ |
| 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; 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() [all …]
|
| /kernel/linux/linux-6.6/include/uapi/misc/ |
| D | xilinx_sdfec.h | 3 * Xilinx SD-FEC 193 * struct xsdfec_status - Status of SD-FEC core. 194 * @state: State of the SD-FEC core 195 * @activity: Describes if the SD-FEC instance is Active 213 * struct xsdfec_config - Configuration of SD-FEC core. 214 * @code: The codes being used by the SD-FEC instance 252 * struct xsdfec_ldpc_param_table_sizes - Used to store sizes of SD-FEC table 274 * ioctl to start SD-FEC core 284 * ioctl to stop the SD-FEC core 292 * ioctl that returns status of SD-FEC core [all …]
|
| /kernel/linux/linux-5.10/include/uapi/misc/ |
| D | xilinx_sdfec.h | 3 * Xilinx SD-FEC 193 * struct xsdfec_status - Status of SD-FEC core. 194 * @state: State of the SD-FEC core 195 * @activity: Describes if the SD-FEC instance is Active 213 * struct xsdfec_config - Configuration of SD-FEC core. 214 * @code: The codes being used by the SD-FEC instance 252 * struct xsdfec_ldpc_param_table_sizes - Used to store sizes of SD-FEC table 274 * ioctl to start SD-FEC core 284 * ioctl to stop the SD-FEC core 292 * ioctl that returns status of SD-FEC core [all …]
|
| /kernel/linux/linux-6.6/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()
|
| /kernel/linux/linux-6.6/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";
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/net/ |
| D | fsl-fec.txt | 1 * Freescale Fast Ethernet Controller (FEC) 4 - compatible : Should be "fsl,<soc>-fec" 6 - interrupts : Should contain fec interrupt 44 - mdio : specifies the mdio bus in the FEC, used as a container for phy nodes 49 directory, and point the fec's "phy-handle" property to it. Then use 67 compatible = "fsl,imx51-fec", "fsl,imx27-fec"; 79 compatible = "fsl,imx51-fec", "fsl,imx27-fec";
|
| /kernel/linux/linux-6.6/Documentation/ABI/testing/ |
| D | sysfs-bus-dfl-devices-n3000-nios | 5 Description: Read-only. Returns the FEC mode of the 25G links of the 7 Solomon FEC, "kr" for Fire Code FEC, "no" for NO FEC. 8 "not supported" if the FEC mode setting is not supported, this
|