Home
last modified time | relevance | path

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

12

/drivers/net/ethernet/freescale/
Dfec_mpc52xx.c57 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, *(u32 *)(&mac[0])); in mpc52xx_fec_set_paddr()
110 out_be32(&fec->paddr2, (*(u16 *)(&mac[4]) << 16) | FEC_PADDR2_TYPE); in mpc52xx_fec_set_paddr()
116 struct mpc52xx_fec __iomem *fec = priv->fec; in mpc52xx_fec_get_paddr() local
118 *(u32 *)(&mac[0]) = in_be32(&fec->paddr1); in mpc52xx_fec_get_paddr()
119 *(u16 *)(&mac[4]) = in_be32(&fec->paddr2) >> 16; in mpc52xx_fec_get_paddr()
183 struct mpc52xx_fec __iomem *fec = priv->fec; in mpc52xx_fec_adjust_link() local
190 rcntrl = in_be32(&fec->r_cntrl); in mpc52xx_fec_adjust_link()
191 tcntrl = in_be32(&fec->x_cntrl); in mpc52xx_fec_adjust_link()
[all …]
Dfec_mpc52xx_phy.c32 struct mpc52xx_fec __iomem *fec = priv->regs; in mpc52xx_fec_mdio_transfer() local
38 out_be32(&fec->ievent, FEC_IEVENT_MII); in mpc52xx_fec_mdio_transfer()
39 out_be32(&fec->mii_data, value); in mpc52xx_fec_mdio_transfer()
42 while (!(in_be32(&fec->ievent) & FEC_IEVENT_MII) && --tries) in mpc52xx_fec_mdio_transfer()
49 in_be32(&fec->mii_data) & FEC_MII_DATA_DATAMSK : 0; in mpc52xx_fec_mdio_transfer()
DMakefile5 obj-$(CONFIG_FEC) += fec.o
/drivers/net/ethernet/freescale/fs_enet/
Dmac-fec.c83 static int whack_reset(struct fec __iomem *fecp) in whack_reset()
105 fep->fec.fecp = of_iomap(ofdev->dev.of_node, 0); in do_pd_setup()
125 fep->fec.hthi = 0; in setup_data()
126 fep->fec.htlo = 0; in setup_data()
171 struct fec __iomem *fecp = fep->fec.fecp; in set_promiscuous_mode()
180 fep->fec.hthi = 0; in set_multicast_start()
181 fep->fec.htlo = 0; in set_multicast_start()
211 fep->fec.hthi |= csrVal; in set_multicast_one()
213 fep->fec.htlo |= csrVal; in set_multicast_one()
219 struct fec __iomem *fecp = fep->fec.fecp; in set_multicast_finish()
[all …]
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()
110 struct fec_info *fec; in fs_enet_mdio_probe() local
123 fec = kzalloc(sizeof(struct fec_info), GFP_KERNEL); in fs_enet_mdio_probe()
124 if (!fec) in fs_enet_mdio_probe()
127 new_bus->priv = fec; in fs_enet_mdio_probe()
139 fec->fecp = ioremap(res.start, resource_size(&res)); in fs_enet_mdio_probe()
140 if (!fec->fecp) in fs_enet_mdio_probe()
[all …]
DMakefile8 fs_enet-$(CONFIG_FS_ENET_HAS_FEC) += mac-fec.o
11 obj-$(CONFIG_FS_ENET_MDIO_FEC) += mii-fec.o
Dfs_enet.h23 struct fec { struct
65 struct fec __iomem *fecp;
164 } fec; member
/drivers/media/dvb/frontends/
Dcx24123.c337 static int cx24123_set_fec(struct cx24123_state *state, fe_code_rate_t fec) in cx24123_set_fec() argument
341 if ((fec < FEC_NONE) || (fec > FEC_AUTO)) in cx24123_set_fec()
342 fec = FEC_AUTO; in cx24123_set_fec()
345 if (fec == FEC_1_2) in cx24123_set_fec()
352 switch (fec) { in cx24123_set_fec()
399 static int cx24123_get_fec(struct cx24123_state *state, fe_code_rate_t *fec) in cx24123_get_fec() argument
410 *fec = FEC_1_2; in cx24123_get_fec()
413 *fec = FEC_2_3; in cx24123_get_fec()
416 *fec = FEC_3_4; in cx24123_get_fec()
419 *fec = FEC_4_5; in cx24123_get_fec()
[all …]
Dcx24110.c180 static int cx24110_set_fec (struct cx24110_state* state, fe_code_rate_t fec) in cx24110_set_fec() argument
192 if (fec>FEC_AUTO) in cx24110_set_fec()
193 fec=FEC_AUTO; in cx24110_set_fec()
195 if (fec==FEC_AUTO) { /* (re-)establish AutoAcq behaviour */ in cx24110_set_fec()
210 if(rate[fec]>0) { in cx24110_set_fec()
211 cx24110_writereg(state,0x05,(cx24110_readreg(state,0x05)&0xf0)|rate[fec]); in cx24110_set_fec()
213 cx24110_writereg(state,0x22,(cx24110_readreg(state,0x22)&0xf0)|rate[fec]); in cx24110_set_fec()
215 cx24110_writereg(state,0x1a,g1[fec]); in cx24110_set_fec()
216 cx24110_writereg(state,0x1b,g2[fec]); in cx24110_set_fec()
Dtda8083.c109 static int tda8083_set_fec (struct tda8083_state* state, fe_code_rate_t fec) in tda8083_set_fec() argument
111 if (fec == FEC_AUTO) in tda8083_set_fec()
114 if (fec >= FEC_1_2 && fec <= FEC_8_9) in tda8083_set_fec()
115 return tda8083_writereg (state, 0x07, 1 << (FEC_8_9 - fec)); in tda8083_set_fec()
Dves1x93.c159 static int ves1x93_set_fec (struct ves1x93_state* state, fe_code_rate_t fec) in ves1x93_set_fec() argument
161 if (fec == FEC_AUTO) in ves1x93_set_fec()
163 else if (fec < FEC_1_2 || fec > FEC_8_9) in ves1x93_set_fec()
166 return ves1x93_writereg (state, 0x0d, fec - FEC_1_2); in ves1x93_set_fec()
Dstv0900_priv.h274 enum fe_stv0900_fec fec; member
287 enum fe_stv0900_fec fec; member
325 enum fe_stv0900_fec fec[2]; member
Dcx24116.c164 fe_code_rate_t fec; member
378 fe_code_rate_t fec; member
427 (f == CX24116_MODFEC_MODES[i].fec)) { in cx24116_lookup_fecmod()
437 fe_delivery_system_t delsys, fe_modulation_t mod, fe_code_rate_t fec) in cx24116_set_fec() argument
441 dprintk("%s(0x%02x,0x%02x)\n", __func__, mod, fec); in cx24116_set_fec()
443 ret = cx24116_lookup_fecmod(state, delsys, mod, fec); in cx24116_set_fec()
448 state->dnxt.fec = fec; in cx24116_set_fec()
1337 state->dcur.fec, state->dcur.fec_mask, state->dcur.fec_val); in cx24116_set_frontend()
Ddib8000.c2155 switch (state->fe[0]->dtv_property_cache.layer[i].fec) { in dib8000_set_channel()
2600 state->fe[0]->dtv_property_cache.layer[0].fec = FEC_2_3; in dib8000_autosearch_start()
2838 …ndex_frontend]->dtv_property_cache.layer[i].fec = state->fe[index_frontend]->dtv_property_cache.la… in dib8000_get_frontend()
2899 fe->dtv_property_cache.layer[i].fec = FEC_1_2; in dib8000_get_frontend()
2903 fe->dtv_property_cache.layer[i].fec = FEC_2_3; in dib8000_get_frontend()
2907 fe->dtv_property_cache.layer[i].fec = FEC_3_4; in dib8000_get_frontend()
2911 fe->dtv_property_cache.layer[i].fec = FEC_5_6; in dib8000_get_frontend()
2915 fe->dtv_property_cache.layer[i].fec = FEC_7_8; in dib8000_get_frontend()
2952 state->fe[index_frontend]->dtv_property_cache.layer[i].fec = fe->dtv_property_cache.layer[i].fec; in dib8000_get_frontend()
3028 (state->fe[0]->dtv_property_cache.layer[0].fec == FEC_AUTO))) || in dib8000_set_frontend()
[all …]
Dtda10071_priv.h57 fe_code_rate_t fec; member
Dstv0900_sw.c704 enum fe_stv0900_fec fec, in stv0900_set_viterbi_standard() argument
718 switch (fec) { in stv0900_set_viterbi_standard()
744 switch (fec) { in stv0900_set_viterbi_standard()
1228 result->fec = stv0900_get_vit_fec(intp, d); in stv0900_get_signal_params()
1764 intp->fec[demod], demod); in stv0900_set_search_standard()
1817 intp->fec[demod], demod); in stv0900_set_search_standard()
Dstv090x_priv.h258 enum stv090x_fec fec; member
Dstv0299.c137 static int stv0299_set_FEC (struct stv0299_state* state, fe_code_rate_t fec) in stv0299_set_FEC() argument
141 switch (fec) { in stv0299_set_FEC()
Dstv0900_core.c1586 p_search.fec = STV0900_FEC_UNKNOWN; in stv0900_search()
1600 intp->fec[demod] = p_search.fec; in stv0900_search()
1607 p_result.fec = intp->result[demod].fec; in stv0900_search()
Dstv090x.c1013 switch (state->fec) { in stv090x_set_viterbi()
1048 switch (state->fec) { in stv090x_set_viterbi()
2561 state->fec = STV090x_PR12; in stv090x_get_viterbi()
2565 state->fec = STV090x_PR23; in stv090x_get_viterbi()
2569 state->fec = STV090x_PR34; in stv090x_get_viterbi()
2573 state->fec = STV090x_PR56; in stv090x_get_viterbi()
2577 state->fec = STV090x_PR67; in stv090x_get_viterbi()
2581 state->fec = STV090x_PR78; in stv090x_get_viterbi()
2585 state->fec = STV090x_PRERR; in stv090x_get_viterbi()
2874 if (state->fec == STV090x_PR12) { in stv090x_optimize_track()
[all …]
Dm88rs2000.c655 fe_code_rate_t fec) in m88rs2000_set_fec() argument
659 switch (fec) { in m88rs2000_set_fec()
/drivers/media/dvb/bt8xx/
Ddst_common.h118 fe_code_rate_t fec; member
/drivers/media/dvb/dvb-core/
Ddvb_frontend.c943 c->layer[i].fec = FEC_AUTO; in dvb_frontend_clear_cache()
1329 tvp->u.data = c->layer[0].fec; in dtv_property_process_get()
1341 tvp->u.data = c->layer[1].fec; in dtv_property_process_get()
1353 tvp->u.data = c->layer[2].fec; in dtv_property_process_get()
1553 c->layer[i].fec = FEC_AUTO; in set_delivery_system()
1670 c->layer[0].fec = tvp->u.data; in dtv_property_process_set()
1682 c->layer[1].fec = tvp->u.data; in dtv_property_process_set()
1694 c->layer[2].fec = tvp->u.data; in dtv_property_process_set()
Ddvb_frontend.h365 fe_code_rate_t fec; member
/drivers/net/wan/
Dpc300.h238 u16 fec; member

12