• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/media/dvb/b2c2/

Lines Matching refs:fc

10 static void flexcop_rcv_data_ctrl(struct flexcop_device *fc, int onoff)
17 void flexcop_smc_ctrl(struct flexcop_device *fc, int onoff)
22 static void flexcop_null_filter_ctrl(struct flexcop_device *fc, int onoff)
27 void flexcop_set_mac_filter(struct flexcop_device *fc, u8 mac[6])
30 v41c = fc->read_ibi_reg(fc,mac_address_41c);
39 fc->write_ibi_reg(fc,mac_address_418,v418);
40 fc->write_ibi_reg(fc,mac_address_41c,v41c);
43 void flexcop_mac_filter_ctrl(struct flexcop_device *fc, int onoff)
48 static void flexcop_pid_group_filter(struct flexcop_device *fc, u16 pid, u16 mask)
54 fc->write_ibi_reg(fc,pid_filter_30c,v30c);
57 static void flexcop_pid_group_filter_ctrl(struct flexcop_device *fc, int onoff)
67 flexcop_ibi_value vpid = fc->read_ibi_reg(fc, vregname), \
68 v208 = fc->read_ibi_reg(fc, ctrl_208); \
74 fc->write_ibi_reg(fc,vregname,vpid); \
75 fc->write_ibi_reg(fc,ctrl_208,v208);
77 static void flexcop_pid_Stream1_PID_ctrl(struct flexcop_device *fc, u16 pid, int onoff)
82 static void flexcop_pid_Stream2_PID_ctrl(struct flexcop_device *fc, u16 pid, int onoff)
87 static void flexcop_pid_PCR_PID_ctrl(struct flexcop_device *fc, u16 pid, int onoff)
92 static void flexcop_pid_PMT_PID_ctrl(struct flexcop_device *fc, u16 pid, int onoff)
97 static void flexcop_pid_EMM_PID_ctrl(struct flexcop_device *fc, u16 pid, int onoff)
102 static void flexcop_pid_ECM_PID_ctrl(struct flexcop_device *fc, u16 pid, int onoff)
107 static void flexcop_pid_control(struct flexcop_device *fc, int index, u16 pid,int onoff)
117 case 0: flexcop_pid_Stream1_PID_ctrl(fc,pid,onoff); break;
118 case 1: flexcop_pid_Stream2_PID_ctrl(fc,pid,onoff); break;
119 case 2: flexcop_pid_PCR_PID_ctrl(fc,pid,onoff); break;
120 case 3: flexcop_pid_PMT_PID_ctrl(fc,pid,onoff); break;
121 case 4: flexcop_pid_EMM_PID_ctrl(fc,pid,onoff); break;
122 case 5: flexcop_pid_ECM_PID_ctrl(fc,pid,onoff); break;
124 if (fc->has_32_hw_pid_filter && index < 38) {
128 vid = fc->read_ibi_reg(fc,index_reg_310);
130 fc->write_ibi_reg(fc,index_reg_310, vid);
132 vpid = fc->read_ibi_reg(fc,pid_n_reg_314);
135 fc->write_ibi_reg(fc,pid_n_reg_314, vpid);
141 static int flexcop_toggle_fullts_streaming(struct flexcop_device *fc,int onoff)
143 if (fc->fullts_streaming_state != onoff) {
145 flexcop_pid_group_filter(fc, 0, 0x1fe0 * (!onoff));
146 flexcop_pid_group_filter_ctrl(fc,onoff);
147 fc->fullts_streaming_state = onoff;
152 int flexcop_pid_feed_control(struct flexcop_device *fc, struct dvb_demux_feed *dvbdmxfeed, int onoff)
154 int max_pid_filter = 6 + fc->has_32_hw_pid_filter*32;
156 fc->feedcount += onoff ? 1 : -1; /* the number of PIDs/Feed currently requested */
158 fc->extra_feedcount += onoff ? 1 : -1;
166 if (!fc->pid_filtering && fc->feedcount == onoff)
167 flexcop_toggle_fullts_streaming(fc,onoff);
169 if (fc->pid_filtering) {
170 flexcop_pid_control(fc,dvbdmxfeed->index,dvbdmxfeed->pid,onoff);
172 if (fc->extra_feedcount > 0)
173 flexcop_toggle_fullts_streaming(fc,1);
175 flexcop_toggle_fullts_streaming(fc,onoff);
177 flexcop_toggle_fullts_streaming(fc,0);
181 if (fc->feedcount == onoff) {
182 flexcop_rcv_data_ctrl(fc,onoff);
183 if (fc->stream_control) /* device specific stream control */
184 fc->stream_control(fc,onoff);
188 flexcop_reset_block_300(fc);
189 flexcop_hw_filter_init(fc);
196 void flexcop_hw_filter_init(struct flexcop_device *fc)
200 for (i = 0; i < 6 + 32*fc->has_32_hw_pid_filter; i++)
201 flexcop_pid_control(fc,i,0x1fff,0);
203 flexcop_pid_group_filter(fc, 0, 0x1fe0);
204 flexcop_pid_group_filter_ctrl(fc,0);
206 v = fc->read_ibi_reg(fc,pid_filter_308);
209 fc->write_ibi_reg(fc,pid_filter_308,v);
211 flexcop_null_filter_ctrl(fc, 1);