Home
last modified time | relevance | path

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

12

/drivers/net/ethernet/freescale/
Dfec_mpc52xx.c60 struct mpc52xx_fec __iomem *fec; member
106 struct mpc52xx_fec __iomem *fec = priv->fec; in mpc52xx_fec_set_paddr() local
108 out_be32(&fec->paddr1, *(u32 *)(&mac[0])); in mpc52xx_fec_set_paddr()
109 out_be32(&fec->paddr2, (*(u16 *)(&mac[4]) << 16) | FEC_PADDR2_TYPE); in mpc52xx_fec_set_paddr()
173 struct mpc52xx_fec __iomem *fec = priv->fec; in mpc52xx_fec_adjust_link() local
180 rcntrl = in_be32(&fec->r_cntrl); in mpc52xx_fec_adjust_link()
181 tcntrl = in_be32(&fec->x_cntrl); in mpc52xx_fec_adjust_link()
190 out_be32(&fec->r_cntrl, rcntrl); in mpc52xx_fec_adjust_link()
191 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 …]
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
6 fec-objs :=fec_main.o fec_ptp.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()
126 fep->fec.hthi = 0; in setup_data()
127 fep->fec.htlo = 0; in setup_data()
173 struct fec __iomem *fecp = fep->fec.fecp; in set_promiscuous_mode()
182 fep->fec.hthi = 0; in set_multicast_start()
183 fep->fec.htlo = 0; in set_multicast_start()
213 fep->fec.hthi |= csrVal; in set_multicast_one()
215 fep->fec.htlo |= csrVal; in set_multicast_one()
221 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()
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 …]
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;
170 } fec; member
/drivers/md/
Ddm-verity-fec.c23 return v->fec && v->fec->dev; in verity_fec_is_enabled()
42 mod = do_div(offset, v->fec->rsn); in fec_interleave()
43 return offset + mod * (v->fec->rounds << v->data_dev_block_bits); in fec_interleave()
50 u8 *data, u8 *fec, int neras) in fec_decode_rs8() argument
55 for (i = 0; i < v->fec->roots; i++) in fec_decode_rs8()
56 par[i] = fec[i]; in fec_decode_rs8()
58 return decode_rs8(fio->rs, data, par, v->fec->rsn, NULL, neras, in fec_decode_rs8()
72 position = (index + rsb) * v->fec->roots; in fec_read_parity()
76 res = dm_bufio_read(v->fec->bufio, v->fec->start + block, buf); in fec_read_parity()
80 (unsigned long long)(v->fec->start + block), in fec_read_parity()
[all …]
Ddm-android-verity.c281 static int extract_fec_header(dev_t dev, struct fec_header *fec, in extract_fec_header() argument
313 memcpy(fec, page_address(payload.page_io[0]), in extract_fec_header()
314 sizeof(*fec)); in extract_fec_header()
317 if (validate_fec_header(fec, device_size - FEC_BLOCK_SIZE)) { in extract_fec_header()
319 memcpy(fec, page_address(payload.page_io[0]) + FEC_BLOCK_SIZE in extract_fec_header()
320 - sizeof(*fec) , in extract_fec_header()
321 sizeof(*fec)); in extract_fec_header()
322 if (validate_fec_header(fec, device_size - in extract_fec_header()
328 populate_fec_metadata(fec, ecc); in extract_fec_header()
338 static void find_metadata_offset(struct fec_header *fec, in find_metadata_offset() argument
[all …]
/drivers/media/dvb-frontends/
Dcx24123.c338 static int cx24123_set_fec(struct cx24123_state *state, enum fe_code_rate fec) in cx24123_set_fec() argument
342 if (((int)fec < FEC_NONE) || (fec > FEC_AUTO)) in cx24123_set_fec()
343 fec = FEC_AUTO; in cx24123_set_fec()
346 if (fec == FEC_1_2) in cx24123_set_fec()
353 switch (fec) { in cx24123_set_fec()
400 static int cx24123_get_fec(struct cx24123_state *state, enum fe_code_rate *fec) in cx24123_get_fec() argument
411 *fec = FEC_1_2; in cx24123_get_fec()
414 *fec = FEC_2_3; in cx24123_get_fec()
417 *fec = FEC_3_4; in cx24123_get_fec()
420 *fec = FEC_4_5; in cx24123_get_fec()
[all …]
Dcx24110.c181 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()
Dcx24120.c122 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 …]
Dtda8083.c110 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()
Dves1x93.c160 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()
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 enum fe_code_rate fec; member
378 enum fe_code_rate fec; member
427 (f == CX24116_MODFEC_MODES[i].fec)) { in cx24116_lookup_fecmod()
439 enum fe_code_rate fec) in cx24116_set_fec() argument
443 dprintk("%s(0x%02x,0x%02x)\n", __func__, mod, fec); in cx24116_set_fec()
445 ret = cx24116_lookup_fecmod(state, delsys, mod, fec); in cx24116_set_fec()
450 state->dnxt.fec = fec; in cx24116_set_fec()
1339 state->dcur.fec, state->dcur.fec_mask, state->dcur.fec_val); in cx24116_set_frontend()
Dmb86a20s.c556 int mod, fec, guard; in mb86a20s_layer_bitrate() local
581 fec = 0; in mb86a20s_layer_bitrate()
584 fec = 1; in mb86a20s_layer_bitrate()
587 fec = 2; in mb86a20s_layer_bitrate()
590 fec = 3; in mb86a20s_layer_bitrate()
593 fec = 4; in mb86a20s_layer_bitrate()
614 rate = isdbt_rate[mod][fec][guard] * segment * BER_SAMPLING_RATE; in mb86a20s_layer_bitrate()
625 segment * isdbt_rate[mod][fec][guard]/1000, in mb86a20s_layer_bitrate()
679 c->layer[layer].fec = rc; in mb86a20s_get_frontend()
687 c->layer[layer].fec, in mb86a20s_get_frontend()
Dcx24117.c175 enum fe_code_rate fec; member
225 enum fe_code_rate fec; member
401 (f == cx24117_modfec_modes[i].fec)) { in cx24117_lookup_fecmod()
413 enum fe_code_rate fec) in cx24117_set_fec() argument
419 __func__, mod, fec, state->demod); in cx24117_set_fec()
421 ret = cx24117_lookup_fecmod(state, delsys, mod, fec); in cx24117_set_fec()
425 state->dnxt.fec = fec; in cx24117_set_fec()
1440 state->dcur.fec, state->dcur.fec_mask, state->dcur.fec_val); in cx24117_set_frontend()
1608 c->fec_inner = cx24117_modfec_modes[idx].fec; in cx24117_get_frontend()
Dtc90522.c230 c->layer[0].fec = c->fec_inner; in tc90522s_get_frontend()
236 c->layer[1].fec = fec_conv_sat[v]; in tc90522s_get_frontend()
377 c->layer[0].fec = fec_conv_ter[(val[1] & 0x1c) >> 2]; in tc90522t_get_frontend()
390 c->layer[1].fec = fec_conv_ter[(val[3] & 0xe0) >> 5]; in tc90522t_get_frontend()
402 c->layer[2].fec = fec_conv_ter[(val[4] & 0x07)]; in tc90522t_get_frontend()
Dtda10071_priv.h53 enum fe_code_rate fec; member
Ddib8000.c2010 switch (c->layer[layer_index].fec) { in dib8000_set_layer()
2541 c->layer[0].fec = FEC_2_3; in dib8000_autosearch_start()
2577 c->layer[0].fec = FEC_2_3; in dib8000_autosearch_start()
2972 (c->layer[i].fec == FEC_AUTO)) { in is_manual_mode()
3420 …ndex_frontend]->dtv_property_cache.layer[i].fec = state->fe[index_frontend]->dtv_property_cache.la… in dib8000_get_frontend()
3502 fe->dtv_property_cache.layer[i].fec = FEC_1_2; in dib8000_get_frontend()
3507 fe->dtv_property_cache.layer[i].fec = FEC_2_3; in dib8000_get_frontend()
3512 fe->dtv_property_cache.layer[i].fec = FEC_3_4; in dib8000_get_frontend()
3517 fe->dtv_property_cache.layer[i].fec = FEC_5_6; in dib8000_get_frontend()
3522 fe->dtv_property_cache.layer[i].fec = FEC_7_8; in dib8000_get_frontend()
[all …]
/drivers/dma/bestcomm/
DMakefile7 bestcomm-fec-objs := fec.o bcom_fec_rx_task.o bcom_fec_tx_task.o
12 obj-$(CONFIG_PPC_BESTCOMM_FEC) += bestcomm-fec.o
/drivers/mtd/ubi/
Dfastmap.c1127 struct ubi_fm_ec *fec; in ubi_write_fastmap() local
1207 fec = (struct ubi_fm_ec *)(fm_raw + fm_pos); in ubi_write_fastmap()
1209 fec->pnum = cpu_to_be32(wl_e->pnum); in ubi_write_fastmap()
1211 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap()
1214 fm_pos += sizeof(*fec); in ubi_write_fastmap()
1220 fec = (struct ubi_fm_ec *)(fm_raw + fm_pos); in ubi_write_fastmap()
1222 fec->pnum = cpu_to_be32(wl_e->pnum); in ubi_write_fastmap()
1224 fec->ec = cpu_to_be32(wl_e->ec); in ubi_write_fastmap()
1227 fm_pos += sizeof(*fec); in ubi_write_fastmap()
1232 fec = (struct ubi_fm_ec *)(fm_raw + fm_pos); in ubi_write_fastmap()
[all …]
/drivers/clk/mxs/
Dclk-imx28.c147 fec, can0, can1, usb0, usb1, usb0_phy, usb1_phy, enet_out, enumerator
230 clks[fec] = mxs_clk_gate("fec", "hbus", ENET, 30); in mx28_clocks_init()
/drivers/misc/genwqe/
Dcard_base.c641 u64 mask, fir, fec, uid, gfir, gfir_masked, sfir, sfec; in genwqe_fir_checking() local
685 fec = __genwqe_readq(cd, fec_addr); in genwqe_fir_checking()
687 dev_err(&pci_dev->dev, "* 0x%08x 0x%016llx\n", fec_addr, fec); in genwqe_fir_checking()
688 if (fec == IO_ILLEGAL_VALUE) in genwqe_fir_checking()

12