Lines Matching refs:onoff
86 static void cxusb_gpio_tuner(struct dvb_usb_device *d, int onoff) in cxusb_gpio_tuner() argument
91 if (st->gpio_write_state[GPIO_TUNER] == onoff) in cxusb_gpio_tuner()
95 o[1] = onoff; in cxusb_gpio_tuner()
101 st->gpio_write_state[GPIO_TUNER] = onoff; in cxusb_gpio_tuner()
127 static void cxusb_nano2_led(struct dvb_usb_device *d, int onoff) in cxusb_nano2_led() argument
129 cxusb_bluebird_gpio_rw(d, 0x40, onoff ? 0 : 0x40); in cxusb_nano2_led()
133 u8 addr, int onoff) in cxusb_d680_dmb_gpio_tuner() argument
135 u8 o[2] = {addr, onoff}; in cxusb_d680_dmb_gpio_tuner()
269 static int cxusb_power_ctrl(struct dvb_usb_device *d, int onoff) in cxusb_power_ctrl() argument
272 if (onoff) in cxusb_power_ctrl()
278 static int cxusb_aver_power_ctrl(struct dvb_usb_device *d, int onoff) in cxusb_aver_power_ctrl() argument
281 if (!onoff) in cxusb_aver_power_ctrl()
318 static int cxusb_bluebird_power_ctrl(struct dvb_usb_device *d, int onoff) in cxusb_bluebird_power_ctrl() argument
321 if (onoff) in cxusb_bluebird_power_ctrl()
327 static int cxusb_nano2_power_ctrl(struct dvb_usb_device *d, int onoff) in cxusb_nano2_power_ctrl() argument
331 rc = cxusb_power_ctrl(d, onoff); in cxusb_nano2_power_ctrl()
332 if (!onoff) in cxusb_nano2_power_ctrl()
338 static int cxusb_d680_dmb_power_ctrl(struct dvb_usb_device *d, int onoff) in cxusb_d680_dmb_power_ctrl() argument
342 ret = cxusb_power_ctrl(d, onoff); in cxusb_d680_dmb_power_ctrl()
343 if (!onoff) in cxusb_d680_dmb_power_ctrl()
352 static int cxusb_streaming_ctrl(struct dvb_usb_adapter *adap, int onoff) in cxusb_streaming_ctrl() argument
355 if (onoff) in cxusb_streaming_ctrl()
363 static int cxusb_aver_streaming_ctrl(struct dvb_usb_adapter *adap, int onoff) in cxusb_aver_streaming_ctrl() argument
365 if (onoff) in cxusb_aver_streaming_ctrl()
440 struct dvb_usb_adapter *adap, int onoff) in cxusb_d680_dmb_streaming_ctrl() argument
442 if (onoff) { in cxusb_d680_dmb_streaming_ctrl()
970 static int dib7070_tuner_reset(struct dvb_frontend *fe, int onoff) in dib7070_tuner_reset() argument
975 return state->dib7000p_ops.set_gpio(fe, 8, 0, !onoff); in dib7070_tuner_reset()
978 static int dib7070_tuner_sleep(struct dvb_frontend *fe, int onoff) in dib7070_tuner_sleep() argument