Home
last modified time | relevance | path

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

/drivers/net/ethernet/freescale/
Dfec_ptp.c110 static int fec_ptp_enable_pps(struct fec_enet_private *fep, uint enable) in fec_ptp_enable_pps() argument
119 if (!(fep->hwts_tx_en || fep->hwts_rx_en)) { in fec_ptp_enable_pps()
120 dev_err(&fep->pdev->dev, "No ptp stack is running\n"); in fec_ptp_enable_pps()
124 if (fep->pps_enable == enable) in fec_ptp_enable_pps()
127 fep->pps_channel = DEFAULT_PPS_CHANNEL; in fec_ptp_enable_pps()
128 fep->reload_period = PPS_OUPUT_RELOAD_PERIOD; in fec_ptp_enable_pps()
129 inc = fep->ptp_inc; in fec_ptp_enable_pps()
131 spin_lock_irqsave(&fep->tmreg_lock, flags); in fec_ptp_enable_pps()
136 writel(FEC_T_TF_MASK, fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
142 val = readl(fep->hwp + FEC_TCSR(fep->pps_channel)); in fec_ptp_enable_pps()
[all …]
Dfec_main.c225 struct fec_enet_private *fep, in fec_enet_get_nextdesc() argument
230 struct fec_enet_priv_tx_q *txq = fep->tx_queue[queue_id]; in fec_enet_get_nextdesc()
231 struct fec_enet_priv_rx_q *rxq = fep->rx_queue[queue_id]; in fec_enet_get_nextdesc()
246 if (fep->bufdesc_ex) in fec_enet_get_nextdesc()
256 struct fec_enet_private *fep, in fec_enet_get_prevdesc() argument
261 struct fec_enet_priv_tx_q *txq = fep->tx_queue[queue_id]; in fec_enet_get_prevdesc()
262 struct fec_enet_priv_rx_q *rxq = fep->rx_queue[queue_id]; in fec_enet_get_prevdesc()
277 if (fep->bufdesc_ex) in fec_enet_get_prevdesc()
285 struct fec_enet_private *fep) in fec_enet_get_bd_index() argument
287 return ((const char *)bdp - (const char *)base) / fep->bufdesc_size; in fec_enet_get_bd_index()
[all …]
Dfec.h572 uint fec_ptp_check_pps_event(struct fec_enet_private *fep);
/drivers/net/ethernet/freescale/fs_enet/
Dfs_enet-main.c69 struct fs_enet_private *fep = netdev_priv(dev); in fs_set_multicast_list() local
71 (*fep->ops->set_multicast_list)(dev); in fs_set_multicast_list()
85 struct fs_enet_private *fep = container_of(napi, struct fs_enet_private, napi); in fs_enet_rx_napi() local
86 struct net_device *dev = fep->ndev; in fs_enet_rx_napi()
87 const struct fs_platform_info *fpi = fep->fpi; in fs_enet_rx_napi()
101 bdp = fep->cur_rx; in fs_enet_rx_napi()
104 (*fep->ops->napi_clear_rx_event)(dev); in fs_enet_rx_napi()
107 curidx = bdp - fep->rx_bd_base; in fs_enet_rx_napi()
114 dev_warn(fep->dev, "rcv is not +last\n"); in fs_enet_rx_napi()
121 fep->stats.rx_errors++; in fs_enet_rx_napi()
[all …]
Dmac-fec.c97 static int do_pd_setup(struct fs_enet_private *fep) in do_pd_setup() argument
99 struct platform_device *ofdev = to_platform_device(fep->dev); in do_pd_setup()
101 fep->interrupt = irq_of_parse_and_map(ofdev->dev.of_node, 0); in do_pd_setup()
102 if (fep->interrupt == NO_IRQ) in do_pd_setup()
105 fep->fec.fecp = of_iomap(ofdev->dev.of_node, 0); in do_pd_setup()
106 if (!fep->fcc.fccp) in do_pd_setup()
121 struct fs_enet_private *fep = netdev_priv(dev); in setup_data() local
123 if (do_pd_setup(fep) != 0) in setup_data()
126 fep->fec.hthi = 0; in setup_data()
127 fep->fec.htlo = 0; in setup_data()
[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 == NO_IRQ) 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-scc.c90 static inline int scc_cr_cmd(struct fs_enet_private *fep, u32 op) in scc_cr_cmd() argument
92 const struct fs_platform_info *fpi = fep->fpi; in scc_cr_cmd()
97 static int do_pd_setup(struct fs_enet_private *fep) in do_pd_setup() argument
99 struct platform_device *ofdev = to_platform_device(fep->dev); in do_pd_setup()
101 fep->interrupt = irq_of_parse_and_map(ofdev->dev.of_node, 0); in do_pd_setup()
102 if (fep->interrupt == NO_IRQ) in do_pd_setup()
105 fep->scc.sccp = of_iomap(ofdev->dev.of_node, 0); in do_pd_setup()
106 if (!fep->scc.sccp) in do_pd_setup()
109 fep->scc.ep = of_iomap(ofdev->dev.of_node, 1); in do_pd_setup()
110 if (!fep->scc.ep) { in do_pd_setup()
[all …]
/drivers/media/dvb-frontends/
Ddib3000mc.c641 struct dtv_frontend_properties *fep = &fe->dtv_property_cache; in dib3000mc_get_frontend() local
645 fep->inversion = INVERSION_AUTO; in dib3000mc_get_frontend()
647 fep->bandwidth_hz = state->current_bandwidth; in dib3000mc_get_frontend()
650 case 0: fep->transmission_mode = TRANSMISSION_MODE_2K; break; in dib3000mc_get_frontend()
651 case 1: fep->transmission_mode = TRANSMISSION_MODE_8K; break; in dib3000mc_get_frontend()
655 case 0: fep->guard_interval = GUARD_INTERVAL_1_32; break; in dib3000mc_get_frontend()
656 case 1: fep->guard_interval = GUARD_INTERVAL_1_16; break; in dib3000mc_get_frontend()
657 case 2: fep->guard_interval = GUARD_INTERVAL_1_8; break; in dib3000mc_get_frontend()
658 case 3: fep->guard_interval = GUARD_INTERVAL_1_4; break; in dib3000mc_get_frontend()
662 case 0: fep->modulation = QPSK; break; in dib3000mc_get_frontend()
[all …]
Ddib7000m.c1156 struct dtv_frontend_properties *fep = &fe->dtv_property_cache; in dib7000m_get_frontend() local
1160 fep->inversion = INVERSION_AUTO; in dib7000m_get_frontend()
1162 fep->bandwidth_hz = BANDWIDTH_TO_HZ(state->current_bandwidth); in dib7000m_get_frontend()
1165 case 0: fep->transmission_mode = TRANSMISSION_MODE_2K; break; in dib7000m_get_frontend()
1166 case 1: fep->transmission_mode = TRANSMISSION_MODE_8K; break; in dib7000m_get_frontend()
1171 case 0: fep->guard_interval = GUARD_INTERVAL_1_32; break; in dib7000m_get_frontend()
1172 case 1: fep->guard_interval = GUARD_INTERVAL_1_16; break; in dib7000m_get_frontend()
1173 case 2: fep->guard_interval = GUARD_INTERVAL_1_8; break; in dib7000m_get_frontend()
1174 case 3: fep->guard_interval = GUARD_INTERVAL_1_4; break; in dib7000m_get_frontend()
1178 case 0: fep->modulation = QPSK; break; in dib7000m_get_frontend()
[all …]
Ddib7000p.c1410 struct dtv_frontend_properties *fep = &fe->dtv_property_cache; in dib7000p_get_frontend() local
1414 fep->inversion = INVERSION_AUTO; in dib7000p_get_frontend()
1416 fep->bandwidth_hz = BANDWIDTH_TO_HZ(state->current_bandwidth); in dib7000p_get_frontend()
1420 fep->transmission_mode = TRANSMISSION_MODE_2K; in dib7000p_get_frontend()
1423 fep->transmission_mode = TRANSMISSION_MODE_8K; in dib7000p_get_frontend()
1430 fep->guard_interval = GUARD_INTERVAL_1_32; in dib7000p_get_frontend()
1433 fep->guard_interval = GUARD_INTERVAL_1_16; in dib7000p_get_frontend()
1436 fep->guard_interval = GUARD_INTERVAL_1_8; in dib7000p_get_frontend()
1439 fep->guard_interval = GUARD_INTERVAL_1_4; in dib7000p_get_frontend()
1445 fep->modulation = QPSK; in dib7000p_get_frontend()
[all …]
/drivers/media/usb/dvb-usb/
Daf9005-fe.c1106 struct dtv_frontend_properties *fep = &fe->dtv_property_cache; in af9005_fe_set_frontend() local
1111 deb_info("af9005_fe_set_frontend freq %d bw %d\n", fep->frequency, in af9005_fe_set_frontend()
1112 fep->bandwidth_hz); in af9005_fe_set_frontend()
1172 ret = af9005_fe_select_bw(state->d, fep->bandwidth_hz); in af9005_fe_set_frontend()
1175 ret = af9005_fe_program_cfoe(state->d, fep->bandwidth_hz); in af9005_fe_set_frontend()
1232 struct dtv_frontend_properties *fep = &fe->dtv_property_cache; in af9005_fe_get_frontend() local
1248 fep->modulation = QPSK; in af9005_fe_get_frontend()
1252 fep->modulation = QAM_16; in af9005_fe_get_frontend()
1256 fep->modulation = QAM_64; in af9005_fe_get_frontend()
1271 fep->hierarchy = HIERARCHY_NONE; in af9005_fe_get_frontend()
[all …]
Ddtt200u-fe.c19 struct dtv_frontend_properties fep; member
106 struct dtv_frontend_properties *fep = &fe->dtv_property_cache; in dtt200u_fe_set_frontend() local
110 u16 freq = fep->frequency / 250000; in dtt200u_fe_set_frontend()
113 switch (fep->bandwidth_hz) { in dtt200u_fe_set_frontend()
145 struct dtv_frontend_properties *fep = &fe->dtv_property_cache; in dtt200u_fe_get_frontend() local
147 memcpy(fep, &state->fep, sizeof(struct dtv_frontend_properties)); in dtt200u_fe_get_frontend()
Dvp702x-fe.c141 struct dtv_frontend_properties *fep = &fe->dtv_property_cache; in vp702x_fe_set_frontend() local
144 u32 freq = fep->frequency/1000; in vp702x_fe_set_frontend()
159 sr = (u64) (fep->symbol_rate/1000) << 20; in vp702x_fe_set_frontend()
166 fep->frequency, freq, freq, fep->symbol_rate, in vp702x_fe_set_frontend()
DcinergyT2-fe.c267 struct dtv_frontend_properties *fep = &fe->dtv_property_cache; in cinergyt2_fe_set_frontend() local
274 param.tps = cpu_to_le16(compute_tps(fep)); in cinergyt2_fe_set_frontend()
275 param.freq = cpu_to_le32(fep->frequency / 1000); in cinergyt2_fe_set_frontend()
278 switch (fep->bandwidth_hz) { in cinergyt2_fe_set_frontend()
Dvp7045-fe.c109 struct dtv_frontend_properties *fep = &fe->dtv_property_cache; in vp7045_fe_set_frontend() local
112 u32 freq = fep->frequency / 1000; in vp7045_fe_set_frontend()
119 switch (fep->bandwidth_hz) { in vp7045_fe_set_frontend()
/drivers/misc/mic/scif/
Dscif_fd.c171 struct scif_endpt *fep = NULL; in scif_fdioctl() local
186 fep = tmpep; in scif_fdioctl()
191 if (!fep) { in scif_fdioctl()
Dscif_api.c95 struct scif_endpt *fep = NULL; in scif_disconnect_ep() local
121 fep = tmpep; in scif_disconnect_ep()
127 if (!fep) { in scif_disconnect_ep()