Home
last modified time | relevance | path

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

12345678910>>...19

/OK3568_Linux_fs/u-boot/drivers/net/
H A Dfec_mxc.c201 struct fec_priv *fec = (struct fec_priv *)dev->priv; in miiphy_restart_aneg() local
202 struct ethernet_regs *eth = fec->bus->priv; in miiphy_restart_aneg()
209 fec_mdio_write(eth, fec->phy_id, MII_DCOUNTER, 0x00FF); in miiphy_restart_aneg()
211 fec_mdio_write(eth, fec->phy_id, MII_BMCR, BMCR_RESET); in miiphy_restart_aneg()
215 fec_mdio_write(eth, fec->phy_id, MII_ADVERTISE, in miiphy_restart_aneg()
218 fec_mdio_write(eth, fec->phy_id, MII_BMCR, in miiphy_restart_aneg()
221 if (fec->mii_postcall) in miiphy_restart_aneg()
222 ret = fec->mii_postcall(fec->phy_id); in miiphy_restart_aneg()
233 struct fec_priv *fec = (struct fec_priv *)dev->priv; in miiphy_wait_aneg() local
234 struct ethernet_regs *eth = fec->bus->priv; in miiphy_wait_aneg()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/freescale/
H A Dfec_mpc52xx.c60 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()
445 struct mpc52xx_fec __iomem *fec = priv->fec; in mpc52xx_fec_interrupt() local
[all …]
H A Dfec_mpc52xx_phy.c31 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()
/OK3568_Linux_fs/kernel/drivers/media/platform/rockchip/ispp/
H A Dfec.c33 struct rkispp_fec_dev *fec = video_drvdata(file); in fec_buf_add() local
40 v4l2_dbg(4, rkispp_debug, &fec->v4l2_dev, in fec_buf_add()
43 v4l2_err(&fec->v4l2_dev, "invalid dmabuf fd:%d for in picture", fd); in fec_buf_add()
47 v4l2_err(&fec->v4l2_dev, in fec_buf_add()
53 mutex_lock(&fec->hw->dev_lock); in fec_buf_add()
54 list_for_each_entry(buf, &fec->list, list) { in fec_buf_add()
62 mem = g_ops->attach_dmabuf(fec->hw->dev, dbuf, dbuf->size, DMA_BIDIRECTIONAL); in fec_buf_add()
64 v4l2_err(&fec->v4l2_dev, "failed to attach dmabuf, fd:%d\n", fd); in fec_buf_add()
69 v4l2_err(&fec->v4l2_dev, "failed to map, fd:%d\n", fd); in fec_buf_add()
87 list_add_tail(&buf->list, &fec->list); in fec_buf_add()
[all …]
H A Dstream_v20.c71 vdev->fec.is_end = true; in config_fec()
87 vdev->fec.uv_offset = addr_offs; in config_fec()
135 init_completion(&vdev->monitor.fec.cmpl); in config_fec()
136 schedule_work(&vdev->monitor.fec.work); in config_fec()
150 struct list_head *list = &vdev->fec.list_rd; in fec_free_buf()
153 if (vdev->fec.cur_rd) in fec_free_buf()
154 vdev->fec.cur_rd = NULL; in fec_free_buf()
198 struct list_head *list = &vdev->fec.list_rd; in fec_work_event()
213 spin_lock_irqsave(&vdev->fec.buf_lock, lock_flags); in fec_work_event()
216 vdev->fec.is_end = true; in fec_work_event()
[all …]
H A Dstream_v10.c64 t = vdev->fec.dbg.timestamp; in rkispp_frame_done_early()
65 seq = vdev->fec.dbg.id; in rkispp_frame_done_early()
552 vdev->fec.uv_offset = addr_offs; in config_nr_shp()
608 struct list_head *list = &vdev->fec.list_rd; in fec_free_buf()
610 if (vdev->fec.cur_rd) in fec_free_buf()
611 vdev->fec.cur_rd = NULL; in fec_free_buf()
624 vdev->fec.is_end = true; in config_fec()
661 init_completion(&vdev->monitor.fec.cmpl); in config_fec()
662 schedule_work(&vdev->monitor.fec.work); in config_fec()
790 if (!vdev->fec.is_end) { in nr_work_event()
[all …]
/OK3568_Linux_fs/kernel/drivers/net/ethernet/freescale/fs_enet/
H A Dmii-fec.c54 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 …]
H A Dmac-fec.c78 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()
193 fep->fec.hthi |= csrVal; in set_multicast_one()
195 fep->fec.htlo |= csrVal; in set_multicast_one()
[all …]
/OK3568_Linux_fs/kernel/drivers/md/
H A Ddm-verity-fec.c18 return v->fec && v->fec->dev; in verity_fec_is_enabled()
37 mod = do_div(offset, v->fec->rsn); in fec_interleave()
38 return offset + mod * (v->fec->rounds << v->data_dev_block_bits); in fec_interleave()
45 u8 *data, u8 *fec, int neras) in fec_decode_rs8() argument
50 for (i = 0; i < v->fec->roots; i++) in fec_decode_rs8()
51 par[i] = fec[i]; in fec_decode_rs8()
53 return decode_rs8(fio->rs, data, par, v->fec->rsn, NULL, neras, in fec_decode_rs8()
67 position = (index + rsb) * v->fec->roots; in fec_read_parity()
68 block = div64_u64_rem(position, v->fec->io_size, &rem); in fec_read_parity()
71 res = dm_bufio_read(v->fec->bufio, block, buf); in fec_read_parity()
[all …]
/OK3568_Linux_fs/kernel/drivers/media/dvb-frontends/
H A Dcx24123.c325 static int cx24123_set_fec(struct cx24123_state *state, enum fe_code_rate fec) in cx24123_set_fec() argument
329 if (((int)fec < FEC_NONE) || (fec > FEC_AUTO)) in cx24123_set_fec()
330 fec = FEC_AUTO; in cx24123_set_fec()
333 if (fec == FEC_1_2) in cx24123_set_fec()
340 switch (fec) { in cx24123_set_fec()
387 static int cx24123_get_fec(struct cx24123_state *state, enum fe_code_rate *fec) in cx24123_get_fec() argument
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()
[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()
/OK3568_Linux_fs/kernel/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";
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/hal_g6/phy/bb/
H A Dhalbb_plcp_gen.c253 out->fec = 0; in halbb_legacy_mcs_table()
275 out->valid = in->fec == BCC; in halbb_ht_mcs_table()
276 out->fec = 0; in halbb_ht_mcs_table()
285 out->n_es = in->fec == BCC ? ((in->mcs == 21 || in->mcs == 22 || in halbb_ht_mcs_table()
290 out->fec = in->fec; in halbb_ht_mcs_table()
352 out->valid = ((((in->fec == LDPC) && (in->mcs <= 11)) || in halbb_vht_mcs_table()
353 ((in->fec == BCC) && (in->mcs <= 9))) && in halbb_vht_mcs_table()
357 if ((in->fec == BCC) && (out->valid)) { in halbb_vht_mcs_table()
361 out->fec = in->fec; in halbb_vht_mcs_table()
366 out->fec = in->fec; in halbb_vht_mcs_table()
[all …]
H A Dhalbb_plcp_gen.h50 bool fec; member
65 bool fec; member
125 bool fec; member
171 bool fec; member
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hal_g6/phy/bb/
H A Dhalbb_plcp_gen.c253 out->fec = 0; in halbb_legacy_mcs_table()
275 out->valid = in->fec == BCC; in halbb_ht_mcs_table()
276 out->fec = 0; in halbb_ht_mcs_table()
285 out->n_es = in->fec == BCC ? ((in->mcs == 21 || in->mcs == 22 || in halbb_ht_mcs_table()
290 out->fec = in->fec; in halbb_ht_mcs_table()
352 out->valid = ((((in->fec == LDPC) && (in->mcs <= 11)) || in halbb_vht_mcs_table()
353 ((in->fec == BCC) && (in->mcs <= 9))) && in halbb_vht_mcs_table()
357 if ((in->fec == BCC) && (out->valid)) { in halbb_vht_mcs_table()
361 out->fec = in->fec; in halbb_vht_mcs_table()
366 out->fec = in->fec; in halbb_vht_mcs_table()
[all …]
H A Dhalbb_plcp_gen.h50 bool fec; member
65 bool fec; member
125 bool fec; member
171 bool fec; member
/OK3568_Linux_fs/kernel/drivers/net/ethernet/marvell/prestera/
H A Dprestera_ethtool.c366 u8 fec, u8 type) in prestera_modes_to_eth() argument
382 if ((port_fec_caps[mode].pr_fec & fec) == 0) in prestera_modes_to_eth()
390 u64 *link_modes, u8 *fec, u8 type) in prestera_modes_from_eth() argument
414 *fec = fec_modes; in prestera_modes_from_eth()
675 fecparam->fec = 0; in prestera_ethtool_get_fecparam()
681 fecparam->fec |= port_fec_caps[mode].eth_fec; in prestera_ethtool_get_fecparam()
696 u8 fec, active; in prestera_ethtool_set_fecparam() local
709 fec = PRESTERA_PORT_FEC_MAX; in prestera_ethtool_set_fecparam()
711 if ((port_fec_caps[mode].eth_fec & fecparam->fec) && in prestera_ethtool_set_fecparam()
713 fec = mode; in prestera_ethtool_set_fecparam()
[all …]
/OK3568_Linux_fs/kernel/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
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/net/
H A Dfsl-fec.txt4 - compatible : Should be "fsl,<soc>-fec"
6 - interrupts : Should contain fec interrupt
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";
/OK3568_Linux_fs/kernel/drivers/net/ethernet/sfc/
H A Dmcdi_port_common.c616 int efx_mcdi_phy_get_fecparam(struct efx_nic *efx, struct ethtool_fecparam *fec) in efx_mcdi_phy_get_fecparam() argument
637 fec->fec = mcdi_fec_caps_to_ethtool(caps, is_25g); in efx_mcdi_phy_get_fecparam()
640 fec->fec &= ~ETHTOOL_FEC_BASER; in efx_mcdi_phy_get_fecparam()
645 fec->active_fec = ETHTOOL_FEC_OFF; in efx_mcdi_phy_get_fecparam()
648 fec->active_fec = ETHTOOL_FEC_BASER; in efx_mcdi_phy_get_fecparam()
651 fec->active_fec = ETHTOOL_FEC_RS; in efx_mcdi_phy_get_fecparam()
660 fec->active_fec = ETHTOOL_FEC_AUTO; in efx_mcdi_phy_get_fecparam()
681 int efx_mcdi_phy_set_fecparam(struct efx_nic *efx, const struct ethtool_fecparam *fec) in efx_mcdi_phy_set_fecparam() argument
687 rc = ethtool_fec_supported(phy_cfg->supported_cap, fec->fec); in efx_mcdi_phy_set_fecparam()
700 caps |= ethtool_fec_caps_to_mcdi(phy_cfg->supported_cap, fec->fec); in efx_mcdi_phy_set_fecparam()
[all …]
/OK3568_Linux_fs/u-boot/drivers/mtd/ubi/
H A Dfastmap.c1110 struct ubi_fm_ec *fec; in ubi_write_fastmap() local
1190 fec = (struct ubi_fm_ec *)(fm_raw + fm_pos); in ubi_write_fastmap()
1192 fec->pnum = cpu_to_be32(wl_e->pnum); in ubi_write_fastmap()
1194 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap()
1197 fm_pos += sizeof(*fec); in ubi_write_fastmap()
1203 fec = (struct ubi_fm_ec *)(fm_raw + fm_pos); in ubi_write_fastmap()
1205 fec->pnum = cpu_to_be32(wl_e->pnum); in ubi_write_fastmap()
1207 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap()
1210 fm_pos += sizeof(*fec); in ubi_write_fastmap()
1215 fec = (struct ubi_fm_ec *)(fm_raw + fm_pos); in ubi_write_fastmap()
[all …]
/OK3568_Linux_fs/kernel/drivers/mtd/ubi/
H A Dfastmap.c1139 struct ubi_fm_ec *fec; in ubi_write_fastmap() local
1223 fec = (struct ubi_fm_ec *)(fm_raw + fm_pos); in ubi_write_fastmap()
1225 fec->pnum = cpu_to_be32(wl_e->pnum); in ubi_write_fastmap()
1227 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap()
1230 fm_pos += sizeof(*fec); in ubi_write_fastmap()
1236 fec = (struct ubi_fm_ec *)(fm_raw + fm_pos); in ubi_write_fastmap()
1238 fec->pnum = cpu_to_be32(wl_e->pnum); in ubi_write_fastmap()
1240 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap()
1243 fm_pos += sizeof(*fec); in ubi_write_fastmap()
1248 fec = (struct ubi_fm_ec *)(fm_raw + fm_pos); in ubi_write_fastmap()
[all …]

12345678910>>...19