• 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 defs:onoff

10 static void flexcop_rcv_data_ctrl(struct flexcop_device *fc, int onoff)
12 flexcop_set_ibi_value(ctrl_208,Rcv_Data_sig,onoff);
14 deb_ts("rcv_data is now: '%s'\n",onoff ? "on" : "off");
17 void flexcop_smc_ctrl(struct flexcop_device *fc, int onoff)
19 flexcop_set_ibi_value(ctrl_208,SMC_Enable_sig,onoff);
22 static void flexcop_null_filter_ctrl(struct flexcop_device *fc, int onoff)
24 flexcop_set_ibi_value(ctrl_208,Null_filter_sig,onoff);
43 void flexcop_mac_filter_ctrl(struct flexcop_device *fc, int onoff)
45 flexcop_set_ibi_value(ctrl_208,MAC_filter_Mode_sig,onoff);
57 static void flexcop_pid_group_filter_ctrl(struct flexcop_device *fc, int onoff)
59 flexcop_set_ibi_value(ctrl_208,Mask_filter_sig,onoff);
70 vpid.vregname.field = onoff ? pid : 0x1fff; \
72 v208.ctrl_208.enablefield = onoff; \
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)
112 deb_ts("setting pid: %5d %04x at index %d '%s'\n",pid,pid,index,onoff ? "on" : "off");
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;
133 vpid.pid_n_reg_314.PID = onoff ? pid : 0x1fff;
134 vpid.pid_n_reg_314.PID_enable_bit = onoff;
141 static int flexcop_toggle_fullts_streaming(struct flexcop_device *fc,int onoff)
143 if (fc->fullts_streaming_state != onoff) {
144 deb_ts("%s full TS transfer\n",onoff ? "enabling" : "disabling");
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)
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);
170 flexcop_pid_control(fc,dvbdmxfeed->index,dvbdmxfeed->pid,onoff);
175 flexcop_toggle_fullts_streaming(fc,onoff);
181 if (fc->feedcount == onoff) {
182 flexcop_rcv_data_ctrl(fc,onoff);
184 fc->stream_control(fc,onoff);
187 if (onoff == 0) {