Lines Matching refs:onoff
285 static int opera1_power_ctrl(struct dvb_usb_device *d, int onoff) in opera1_power_ctrl() argument
287 u8 val = onoff ? 0x01 : 0x00; in opera1_power_ctrl()
290 info("power %s", onoff ? "on" : "off"); in opera1_power_ctrl()
295 static int opera1_streaming_ctrl(struct dvb_usb_adapter *adap, int onoff) in opera1_streaming_ctrl() argument
300 {.addr = ADDR_B1A6_STREAM_CTRL,.buf = onoff ? buf_start : buf_stop,.len = 2}, in opera1_streaming_ctrl()
303 info("streaming %s", onoff ? "on" : "off"); in opera1_streaming_ctrl()
309 int onoff) in opera1_pid_filter() argument
317 onoff ? "on" : "off"); in opera1_pid_filter()
319 b_pid[1] = onoff ? (pid & 0xff) : (0x00); in opera1_pid_filter()
320 b_pid[2] = onoff ? ((pid >> 8) & 0xff) : (0x00); in opera1_pid_filter()
325 static int opera1_pid_filter_control(struct dvb_usb_adapter *adap, int onoff) in opera1_pid_filter_control() argument
333 info("%s hw-pidfilter", onoff ? "enable" : "disable"); in opera1_pid_filter_control()