Home
last modified time | relevance | path

Searched refs:fep (Results 1 – 14 of 14) sorted by relevance

/drivers/net/ethernet/freescale/
Dfec_ptp.c98 static int fec_ptp_enable_pps(struct fec_enet_private *fep, uint enable) in fec_ptp_enable_pps() argument
106 if (fep->pps_enable == enable) in fec_ptp_enable_pps()
109 fep->pps_channel = DEFAULT_PPS_CHANNEL; in fec_ptp_enable_pps()
110 fep->reload_period = PPS_OUPUT_RELOAD_PERIOD; in fec_ptp_enable_pps()
112 spin_lock_irqsave(&fep->tmreg_lock, flags); in fec_ptp_enable_pps()
117 writel(FEC_T_TF_MASK, fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
123 val = readl(fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
126 writel(val, fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
127 val = readl(fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
131 timecounter_read(&fep->tc); in fec_ptp_enable_pps()
[all …]
Dfec_main.c333 struct fec_enet_private *fep = netdev_priv(ndev); in fec_dump() local
341 txq = fep->tx_queue[0]; in fec_dump()
385 struct fec_enet_private *fep = netdev_priv(ndev); in fec_enet_txq_submit_frag_skb() local
411 if (fep->bufdesc_ex) { in fec_enet_txq_submit_frag_skb()
414 SKBTX_HW_TSTAMP && fep->hwts_tx_en)) in fec_enet_txq_submit_frag_skb()
419 if (fep->bufdesc_ex) { in fec_enet_txq_submit_frag_skb()
420 if (fep->quirks & FEC_QUIRK_HAS_AVB) in fec_enet_txq_submit_frag_skb()
431 if (((unsigned long) bufaddr) & fep->tx_align || in fec_enet_txq_submit_frag_skb()
432 fep->quirks & FEC_QUIRK_SWAP_FRAME) { in fec_enet_txq_submit_frag_skb()
436 if (fep->quirks & FEC_QUIRK_SWAP_FRAME) in fec_enet_txq_submit_frag_skb()
[all …]
/drivers/net/ethernet/freescale/fs_enet/
Dfs_enet-main.c71 struct fs_enet_private *fep = netdev_priv(dev); in fs_set_multicast_list() local
73 (*fep->ops->set_multicast_list)(dev); in fs_set_multicast_list()
87 struct fs_enet_private *fep = container_of(napi, struct fs_enet_private, napi); in fs_enet_napi() local
88 struct net_device *dev = fep->ndev; in fs_enet_napi()
89 const struct fs_platform_info *fpi = fep->fpi; in fs_enet_napi()
98 spin_lock(&fep->tx_lock); in fs_enet_napi()
99 bdp = fep->dirty_tx; in fs_enet_napi()
102 (*fep->ops->napi_clear_event)(dev); in fs_enet_napi()
106 dirtyidx = bdp - fep->tx_bd_base; in fs_enet_napi()
108 if (fep->tx_free == fep->tx_ring) in fs_enet_napi()
[all …]
Dmac-fcc.c79 static inline int fcc_cr_cmd(struct fs_enet_private *fep, u32 op) in fcc_cr_cmd() argument
81 const struct fs_platform_info *fpi = fep->fpi; in fcc_cr_cmd()
86 static int do_pd_setup(struct fs_enet_private *fep) in do_pd_setup() argument
88 struct platform_device *ofdev = to_platform_device(fep->dev); in do_pd_setup()
89 struct fs_platform_info *fpi = fep->fpi; in do_pd_setup()
92 fep->interrupt = irq_of_parse_and_map(ofdev->dev.of_node, 0); in do_pd_setup()
93 if (!fep->interrupt) in do_pd_setup()
96 fep->fcc.fccp = of_iomap(ofdev->dev.of_node, 0); in do_pd_setup()
97 if (!fep->fcc.fccp) in do_pd_setup()
100 fep->fcc.ep = of_iomap(ofdev->dev.of_node, 1); in do_pd_setup()
[all …]
Dmac-fec.c92 static int do_pd_setup(struct fs_enet_private *fep) in do_pd_setup() argument
94 struct platform_device *ofdev = to_platform_device(fep->dev); in do_pd_setup()
96 fep->interrupt = irq_of_parse_and_map(ofdev->dev.of_node, 0); in do_pd_setup()
97 if (!fep->interrupt) in do_pd_setup()
100 fep->fec.fecp = of_iomap(ofdev->dev.of_node, 0); in do_pd_setup()
101 if (!fep->fec.fecp) in do_pd_setup()
114 struct fs_enet_private *fep = netdev_priv(dev); in setup_data() local
116 if (do_pd_setup(fep) != 0) in setup_data()
119 fep->fec.hthi = 0; in setup_data()
120 fep->fec.htlo = 0; in setup_data()
[all …]
Dmac-scc.c84 static inline int scc_cr_cmd(struct fs_enet_private *fep, u32 op) in scc_cr_cmd() argument
86 const struct fs_platform_info *fpi = fep->fpi; in scc_cr_cmd()
91 static int do_pd_setup(struct fs_enet_private *fep) in do_pd_setup() argument
93 struct platform_device *ofdev = to_platform_device(fep->dev); in do_pd_setup()
95 fep->interrupt = irq_of_parse_and_map(ofdev->dev.of_node, 0); in do_pd_setup()
96 if (!fep->interrupt) in do_pd_setup()
99 fep->scc.sccp = of_iomap(ofdev->dev.of_node, 0); in do_pd_setup()
100 if (!fep->scc.sccp) in do_pd_setup()
103 fep->scc.ep = of_iomap(ofdev->dev.of_node, 1); in do_pd_setup()
104 if (!fep->scc.ep) { in do_pd_setup()
[all …]
/drivers/media/dvb-frontends/
Ddib3000mc.c671 struct dtv_frontend_properties *fep) in dib3000mc_get_frontend() argument
676 fep->inversion = INVERSION_AUTO; in dib3000mc_get_frontend()
678 fep->bandwidth_hz = state->current_bandwidth; in dib3000mc_get_frontend()
681 case 0: fep->transmission_mode = TRANSMISSION_MODE_2K; break; in dib3000mc_get_frontend()
682 case 1: fep->transmission_mode = TRANSMISSION_MODE_8K; break; in dib3000mc_get_frontend()
686 case 0: fep->guard_interval = GUARD_INTERVAL_1_32; break; in dib3000mc_get_frontend()
687 case 1: fep->guard_interval = GUARD_INTERVAL_1_16; break; in dib3000mc_get_frontend()
688 case 2: fep->guard_interval = GUARD_INTERVAL_1_8; break; in dib3000mc_get_frontend()
689 case 3: fep->guard_interval = GUARD_INTERVAL_1_4; break; in dib3000mc_get_frontend()
693 case 0: fep->modulation = QPSK; break; in dib3000mc_get_frontend()
[all …]
Ddib7000m.c1159 struct dtv_frontend_properties *fep) in dib7000m_get_frontend() argument
1164 fep->inversion = INVERSION_AUTO; in dib7000m_get_frontend()
1166 fep->bandwidth_hz = BANDWIDTH_TO_HZ(state->current_bandwidth); in dib7000m_get_frontend()
1169 case 0: fep->transmission_mode = TRANSMISSION_MODE_2K; break; in dib7000m_get_frontend()
1170 case 1: fep->transmission_mode = TRANSMISSION_MODE_8K; break; in dib7000m_get_frontend()
1175 case 0: fep->guard_interval = GUARD_INTERVAL_1_32; break; in dib7000m_get_frontend()
1176 case 1: fep->guard_interval = GUARD_INTERVAL_1_16; break; in dib7000m_get_frontend()
1177 case 2: fep->guard_interval = GUARD_INTERVAL_1_8; break; in dib7000m_get_frontend()
1178 case 3: fep->guard_interval = GUARD_INTERVAL_1_4; break; in dib7000m_get_frontend()
1182 case 0: fep->modulation = QPSK; break; in dib7000m_get_frontend()
[all …]
Ddib7000p.c1422 struct dtv_frontend_properties *fep) in dib7000p_get_frontend() argument
1427 fep->inversion = INVERSION_AUTO; in dib7000p_get_frontend()
1429 fep->bandwidth_hz = BANDWIDTH_TO_HZ(state->current_bandwidth); in dib7000p_get_frontend()
1433 fep->transmission_mode = TRANSMISSION_MODE_2K; in dib7000p_get_frontend()
1436 fep->transmission_mode = TRANSMISSION_MODE_8K; in dib7000p_get_frontend()
1443 fep->guard_interval = GUARD_INTERVAL_1_32; in dib7000p_get_frontend()
1446 fep->guard_interval = GUARD_INTERVAL_1_16; in dib7000p_get_frontend()
1449 fep->guard_interval = GUARD_INTERVAL_1_8; in dib7000p_get_frontend()
1452 fep->guard_interval = GUARD_INTERVAL_1_4; in dib7000p_get_frontend()
1458 fep->modulation = QPSK; in dib7000p_get_frontend()
[all …]
/drivers/media/usb/dvb-usb/
Daf9005-fe.c1093 struct dtv_frontend_properties *fep = &fe->dtv_property_cache; in af9005_fe_set_frontend() local
1098 deb_info("af9005_fe_set_frontend freq %d bw %d\n", fep->frequency, in af9005_fe_set_frontend()
1099 fep->bandwidth_hz); in af9005_fe_set_frontend()
1159 ret = af9005_fe_select_bw(state->d, fep->bandwidth_hz); in af9005_fe_set_frontend()
1162 ret = af9005_fe_program_cfoe(state->d, fep->bandwidth_hz); in af9005_fe_set_frontend()
1218 struct dtv_frontend_properties *fep) in af9005_fe_get_frontend() argument
1235 fep->modulation = QPSK; in af9005_fe_get_frontend()
1239 fep->modulation = QAM_16; in af9005_fe_get_frontend()
1243 fep->modulation = QAM_64; in af9005_fe_get_frontend()
1258 fep->hierarchy = HIERARCHY_NONE; in af9005_fe_get_frontend()
[all …]
Ddtt200u-fe.c16 struct dtv_frontend_properties fep; member
149 struct dtv_frontend_properties *fep = &fe->dtv_property_cache; in dtt200u_fe_set_frontend() local
152 u16 freq = fep->frequency / 250000; in dtt200u_fe_set_frontend()
156 switch (fep->bandwidth_hz) { in dtt200u_fe_set_frontend()
188 struct dtv_frontend_properties *fep) in dtt200u_fe_get_frontend() argument
192 memcpy(fep, &state->fep, sizeof(struct dtv_frontend_properties)); in dtt200u_fe_get_frontend()
DcinergyT2-fe.c226 struct dtv_frontend_properties *fep = &fe->dtv_property_cache; in cinergyt2_fe_set_frontend() local
235 param->tps = cpu_to_le16(compute_tps(fep)); in cinergyt2_fe_set_frontend()
236 param->freq = cpu_to_le32(fep->frequency / 1000); in cinergyt2_fe_set_frontend()
239 switch (fep->bandwidth_hz) { in cinergyt2_fe_set_frontend()
Dvp702x-fe.c137 struct dtv_frontend_properties *fep = &fe->dtv_property_cache; in vp702x_fe_set_frontend() local
140 u32 freq = fep->frequency/1000; in vp702x_fe_set_frontend()
155 sr = (u64) (fep->symbol_rate/1000) << 20; in vp702x_fe_set_frontend()
162 fep->frequency, freq, freq, fep->symbol_rate, in vp702x_fe_set_frontend()
Dvp7045-fe.c105 struct dtv_frontend_properties *fep = &fe->dtv_property_cache; in vp7045_fe_set_frontend() local
108 u32 freq = fep->frequency / 1000; in vp7045_fe_set_frontend()
115 switch (fep->bandwidth_hz) { in vp7045_fe_set_frontend()