Lines Matching refs:onoff
111 static void cxusb_gpio_tuner(struct dvb_usb_device *d, int onoff) in cxusb_gpio_tuner() argument
116 if (st->gpio_write_state[GPIO_TUNER] == onoff && in cxusb_gpio_tuner()
121 o[1] = onoff; in cxusb_gpio_tuner()
127 st->gpio_write_state[GPIO_TUNER] = onoff; in cxusb_gpio_tuner()
154 static void cxusb_nano2_led(struct dvb_usb_device *d, int onoff) in cxusb_nano2_led() argument
156 cxusb_bluebird_gpio_rw(d, 0x40, onoff ? 0 : 0x40); in cxusb_nano2_led()
160 u8 addr, int onoff) in cxusb_d680_dmb_gpio_tuner() argument
162 u8 o[2] = {addr, onoff}; in cxusb_d680_dmb_gpio_tuner()
295 static int _cxusb_power_ctrl(struct dvb_usb_device *d, int onoff) in _cxusb_power_ctrl() argument
299 dev_info(&d->udev->dev, "setting power %s\n", onoff ? "ON" : "OFF"); in _cxusb_power_ctrl()
301 if (onoff) in _cxusb_power_ctrl()
307 static int cxusb_power_ctrl(struct dvb_usb_device *d, int onoff) in cxusb_power_ctrl() argument
312 if (is_medion && !onoff) { in cxusb_power_ctrl()
324 ret = _cxusb_power_ctrl(d, onoff); in cxusb_power_ctrl()
327 if (is_medion && !onoff) { in cxusb_power_ctrl()
336 static int cxusb_aver_power_ctrl(struct dvb_usb_device *d, int onoff) in cxusb_aver_power_ctrl() argument
340 if (!onoff) in cxusb_aver_power_ctrl()
383 static int cxusb_bluebird_power_ctrl(struct dvb_usb_device *d, int onoff) in cxusb_bluebird_power_ctrl() argument
387 if (onoff) in cxusb_bluebird_power_ctrl()
393 static int cxusb_nano2_power_ctrl(struct dvb_usb_device *d, int onoff) in cxusb_nano2_power_ctrl() argument
397 rc = cxusb_power_ctrl(d, onoff); in cxusb_nano2_power_ctrl()
398 if (!onoff) in cxusb_nano2_power_ctrl()
404 static int cxusb_d680_dmb_power_ctrl(struct dvb_usb_device *d, int onoff) in cxusb_d680_dmb_power_ctrl() argument
409 ret = cxusb_power_ctrl(d, onoff); in cxusb_d680_dmb_power_ctrl()
410 if (!onoff) in cxusb_d680_dmb_power_ctrl()
419 static int cxusb_streaming_ctrl(struct dvb_usb_adapter *adap, int onoff) in cxusb_streaming_ctrl() argument
426 if (is_medion && onoff) { in cxusb_streaming_ctrl()
434 if (onoff) in cxusb_streaming_ctrl()
439 if (is_medion && !onoff) in cxusb_streaming_ctrl()
445 static int cxusb_aver_streaming_ctrl(struct dvb_usb_adapter *adap, int onoff) in cxusb_aver_streaming_ctrl() argument
447 if (onoff) in cxusb_aver_streaming_ctrl()
502 int onoff) in cxusb_d680_dmb_streaming_ctrl() argument
504 if (onoff) { in cxusb_d680_dmb_streaming_ctrl()
1144 static int dib7070_tuner_reset(struct dvb_frontend *fe, int onoff) in dib7070_tuner_reset() argument
1149 return state->dib7000p_ops.set_gpio(fe, 8, 0, !onoff); in dib7070_tuner_reset()
1152 static int dib7070_tuner_sleep(struct dvb_frontend *fe, int onoff) in dib7070_tuner_sleep() argument