Home
last modified time | relevance | path

Searched refs:onoff (Results 1 – 25 of 108) sorted by relevance

12345

/drivers/media/common/b2c2/
Dflexcop-hw-filter.c8 static void flexcop_rcv_data_ctrl(struct flexcop_device *fc, int onoff) in flexcop_rcv_data_ctrl() argument
10 flexcop_set_ibi_value(ctrl_208, Rcv_Data_sig, onoff); in flexcop_rcv_data_ctrl()
11 deb_ts("rcv_data is now: '%s'\n", onoff ? "on" : "off"); in flexcop_rcv_data_ctrl()
14 void flexcop_smc_ctrl(struct flexcop_device *fc, int onoff) in flexcop_smc_ctrl() argument
16 flexcop_set_ibi_value(ctrl_208, SMC_Enable_sig, onoff); in flexcop_smc_ctrl()
19 static void flexcop_null_filter_ctrl(struct flexcop_device *fc, int onoff) in flexcop_null_filter_ctrl() argument
21 flexcop_set_ibi_value(ctrl_208, Null_filter_sig, onoff); in flexcop_null_filter_ctrl()
40 void flexcop_mac_filter_ctrl(struct flexcop_device *fc, int onoff) in flexcop_mac_filter_ctrl() argument
42 flexcop_set_ibi_value(ctrl_208, MAC_filter_Mode_sig, onoff); in flexcop_mac_filter_ctrl()
55 static void flexcop_pid_group_filter_ctrl(struct flexcop_device *fc, int onoff) in flexcop_pid_group_filter_ctrl() argument
[all …]
Dflexcop-common.h127 flexcop_dma_index_t no, int onoff);
129 flexcop_dma_index_t no, int onoff);
134 int onoff);
178 struct dvb_demux_feed *dvbdmxfeed, int onoff);
181 void flexcop_smc_ctrl(struct flexcop_device *fc, int onoff);
184 void flexcop_mac_filter_ctrl(struct flexcop_device *fc, int onoff);
/drivers/media/pci/b2c2/
Dflexcop-dma.c73 int onoff) in flexcop_dma_xfer_control() argument
97 v0x0.dma_0x0.dma_0start = onoff; in flexcop_dma_xfer_control()
100 v0xc.dma_0xc.dma_1start = onoff; in flexcop_dma_xfer_control()
113 int onoff) in flexcop_dma_remap() argument
118 v.dma_0xc.remap_enable = onoff; in flexcop_dma_remap()
125 int onoff) in flexcop_dma_control_size_irq() argument
130 v.ctrl_208.DMA1_IRQ_Enable_sig = onoff; in flexcop_dma_control_size_irq()
133 v.ctrl_208.DMA2_IRQ_Enable_sig = onoff; in flexcop_dma_control_size_irq()
142 int onoff) in flexcop_dma_control_timer_irq() argument
147 v.ctrl_208.DMA1_Timer_Enable_sig = onoff; in flexcop_dma_control_timer_irq()
[all …]
/drivers/media/usb/dvb-usb/
Ddibusb-common.c26 int dibusb_streaming_ctrl(struct dvb_usb_adapter *adap, int onoff) in dibusb_streaming_ctrl() argument
31 if (st->ops.fifo_ctrl(adap->fe_adap[0].fe, onoff)) { in dibusb_streaming_ctrl()
40 int dibusb_pid_filter(struct dvb_usb_adapter *adap, int index, u16 pid, int onoff) in dibusb_pid_filter() argument
46 index, pid, onoff); in dibusb_pid_filter()
52 int dibusb_pid_filter_ctrl(struct dvb_usb_adapter *adap, int onoff) in dibusb_pid_filter_ctrl() argument
57 if (st->ops.pid_parse(adap->fe_adap[0].fe, onoff) < 0) in dibusb_pid_filter_ctrl()
64 int dibusb_power_ctrl(struct dvb_usb_device *d, int onoff) in dibusb_power_ctrl() argument
70 b[2] = onoff ? DIBUSB_IOCTL_POWER_WAKEUP : DIBUSB_IOCTL_POWER_SLEEP; in dibusb_power_ctrl()
77 int dibusb2_0_streaming_ctrl(struct dvb_usb_adapter *adap, int onoff) in dibusb2_0_streaming_ctrl() argument
82 if ((ret = dibusb_streaming_ctrl(adap,onoff)) < 0) in dibusb2_0_streaming_ctrl()
[all …]
Dopera1.c286 static int opera1_power_ctrl(struct dvb_usb_device *d, int onoff) in opera1_power_ctrl() argument
288 u8 val = onoff ? 0x01 : 0x00; in opera1_power_ctrl()
291 info("power %s", onoff ? "on" : "off"); in opera1_power_ctrl()
296 static int opera1_streaming_ctrl(struct dvb_usb_adapter *adap, int onoff) in opera1_streaming_ctrl() argument
301 {.addr = ADDR_B1A6_STREAM_CTRL,.buf = onoff ? buf_start : buf_stop,.len = 2}, in opera1_streaming_ctrl()
304 info("streaming %s", onoff ? "on" : "off"); in opera1_streaming_ctrl()
310 int onoff) in opera1_pid_filter() argument
318 onoff ? "on" : "off"); in opera1_pid_filter()
320 b_pid[1] = onoff ? (pid & 0xff) : (0x00); in opera1_pid_filter()
321 b_pid[2] = onoff ? ((pid >> 8) & 0xff) : (0x00); in opera1_pid_filter()
[all …]
Ddtt200u.c23 static int dtt200u_power_ctrl(struct dvb_usb_device *d, int onoff) in dtt200u_power_ctrl() argument
27 if (onoff) in dtt200u_power_ctrl()
33 static int dtt200u_streaming_ctrl(struct dvb_usb_adapter *adap, int onoff) in dtt200u_streaming_ctrl() argument
35 u8 b_streaming[2] = { SET_STREAMING, onoff }; in dtt200u_streaming_ctrl()
40 if (onoff == 0) in dtt200u_streaming_ctrl()
45 static int dtt200u_pid_filter(struct dvb_usb_adapter *adap, int index, u16 pid, int onoff) in dtt200u_pid_filter() argument
48 pid = onoff ? pid : 0; in dtt200u_pid_filter()
Dcxusb.c84 static void cxusb_gpio_tuner(struct dvb_usb_device *d, int onoff) in cxusb_gpio_tuner() argument
89 if (st->gpio_write_state[GPIO_TUNER] == onoff) in cxusb_gpio_tuner()
93 o[1] = onoff; in cxusb_gpio_tuner()
99 st->gpio_write_state[GPIO_TUNER] = onoff; in cxusb_gpio_tuner()
125 static void cxusb_nano2_led(struct dvb_usb_device *d, int onoff) in cxusb_nano2_led() argument
127 cxusb_bluebird_gpio_rw(d, 0x40, onoff ? 0 : 0x40); in cxusb_nano2_led()
131 u8 addr, int onoff) in cxusb_d680_dmb_gpio_tuner() argument
133 u8 o[2] = {addr, onoff}; in cxusb_d680_dmb_gpio_tuner()
267 static int cxusb_power_ctrl(struct dvb_usb_device *d, int onoff) in cxusb_power_ctrl() argument
270 if (onoff) in cxusb_power_ctrl()
[all …]
Ddvb-usb-dvb.c12 static int dvb_usb_ctrl_feed(struct dvb_demux_feed *dvbdmxfeed, int onoff) in dvb_usb_ctrl_feed() argument
25 newfeedcount = adap->feedcount + (onoff ? 1 : -1); in dvb_usb_ctrl_feed()
47 dvbdmxfeed->index, onoff ? "on" : "off"); in dvb_usb_ctrl_feed()
51 adap->props.fe[adap->active_fe].pid_filter(adap, dvbdmxfeed->index, dvbdmxfeed->pid, onoff); in dvb_usb_ctrl_feed()
56 if (adap->feedcount == onoff && adap->feedcount > 0) { in dvb_usb_ctrl_feed()
227 static int dvb_usb_set_active_fe(struct dvb_frontend *fe, int onoff) in dvb_usb_set_active_fe() argument
232 adap->props.frontend_ctrl(fe, onoff) : 0; in dvb_usb_set_active_fe()
238 if (onoff) in dvb_usb_set_active_fe()
Daf9005.c771 int af9005_led_control(struct dvb_usb_device *d, int onoff) in af9005_led_control() argument
776 if (onoff && dvb_usb_af9005_led) in af9005_led_control()
875 static int af9005_power_ctrl(struct dvb_usb_device *d, int onoff) in af9005_power_ctrl() argument
881 static int af9005_pid_filter_control(struct dvb_usb_adapter *adap, int onoff) in af9005_pid_filter_control() argument
884 deb_info("pid filter control onoff %d\n", onoff); in af9005_pid_filter_control()
885 if (onoff) { in af9005_pid_filter_control()
907 u16 pid, int onoff) in af9005_pid_filter() argument
912 pid, onoff); in af9005_pid_filter()
913 if (onoff) { in af9005_pid_filter()
918 ret = af9005_pid_filter_control(adap, onoff); in af9005_pid_filter()
[all …]
Ddvb-usb-init.c227 int dvb_usb_device_power_ctrl(struct dvb_usb_device *d, int onoff) in dvb_usb_device_power_ctrl() argument
229 if (onoff) in dvb_usb_device_power_ctrl()
234 …if (d->powered == 0 || (onoff && d->powered == 1)) { /* when switching from 1 to 0 or from 0 to 1 … in dvb_usb_device_power_ctrl()
235 deb_info("power control: %d\n", onoff); in dvb_usb_device_power_ctrl()
237 return d->props.power_ctrl(d, onoff); in dvb_usb_device_power_ctrl()
/drivers/media/dvb-frontends/
Ddib3000.h38 int (*pid_parse)(struct dvb_frontend *fe, int onoff);
39 int (*fifo_ctrl)(struct dvb_frontend *fe, int onoff);
40 int (*pid_ctrl)(struct dvb_frontend *fe, int index, int pid, int onoff);
41 int (*tuner_pass_ctrl)(struct dvb_frontend *fe, int onoff, u8 pll_ctrl);
Ddib7000m.h50 extern int dib7000m_pid_filter(struct dvb_frontend *, u8 id, u16 pid, u8 onoff);
51 extern int dib7000m_pid_filter_ctrl(struct dvb_frontend *fe, u8 onoff);
70 u16 pid, u8 onoff) in dib7000m_pid_filter() argument
77 uint8_t onoff) in dib7000m_pid_filter_ctrl() argument
Ddib3000mb.c713 static int dib3000mb_pid_control(struct dvb_frontend *fe,int index, int pid,int onoff) in dib3000mb_pid_control() argument
716 pid = (onoff ? pid | DIB3000_ACTIVATE_PID_FILTERING : 0); in dib3000mb_pid_control()
721 static int dib3000mb_fifo_control(struct dvb_frontend *fe, int onoff) in dib3000mb_fifo_control() argument
725 deb_xfer("%s fifo\n",onoff ? "enabling" : "disabling"); in dib3000mb_fifo_control()
726 if (onoff) { in dib3000mb_fifo_control()
734 static int dib3000mb_pid_parse(struct dvb_frontend *fe, int onoff) in dib3000mb_pid_parse() argument
737 deb_xfer("%s pid parsing\n",onoff ? "enabling" : "disabling"); in dib3000mb_pid_parse()
738 wr(DIB3000MB_REG_PID_PARSE,onoff); in dib3000mb_pid_parse()
742 static int dib3000mb_tuner_pass_ctrl(struct dvb_frontend *fe, int onoff, u8 pll_addr) in dib3000mb_tuner_pass_ctrl() argument
745 if (onoff) { in dib3000mb_tuner_pass_ctrl()
Ddib9000.h36 extern int dib9000_fw_pid_filter_ctrl(struct dvb_frontend *fe, u8 onoff);
37 extern int dib9000_fw_pid_filter(struct dvb_frontend *fe, u8 id, u16 pid, u8 onoff);
76 static inline int dib9000_fw_pid_filter_ctrl(struct dvb_frontend *fe, u8 onoff) in dib9000_fw_pid_filter_ctrl() argument
82 static inline int dib9000_fw_pid_filter(struct dvb_frontend *fe, u8 id, u16 pid, u8 onoff) in dib9000_fw_pid_filter() argument
Ddib7000p.h59 int (*pid_filter_ctrl)(struct dvb_frontend *fe, u8 onoff);
60 int (*pid_filter)(struct dvb_frontend *fe, u8 id, u16 pid, u8 onoff);
63 int (*tuner_sleep)(struct dvb_frontend *fe, int onoff);
Ddib8000.h49 int (*tuner_sleep)(struct dvb_frontend *fe, int onoff);
61 int (*pid_filter_ctrl)(struct dvb_frontend *fe, u8 onoff);
62 int (*pid_filter)(struct dvb_frontend *fe, u8 id, u16 pid, u8 onoff);
Daf9033.h96 int (*pid_filter_ctrl)(struct dvb_frontend *fe, int onoff);
98 int onoff);
/drivers/media/usb/dvb-usb-v2/
Dmxl111sf.c254 static int mxl111sf_power_ctrl(struct dvb_usb_device *d, int onoff)
343 static int mxl111sf_ep6_streaming_ctrl(struct dvb_frontend *fe, int onoff) in mxl111sf_ep6_streaming_ctrl() argument
349 pr_debug("%s(%d)\n", __func__, onoff); in mxl111sf_ep6_streaming_ctrl()
351 if (onoff) { in mxl111sf_ep6_streaming_ctrl()
368 static int mxl111sf_ep5_streaming_ctrl(struct dvb_frontend *fe, int onoff) in mxl111sf_ep5_streaming_ctrl() argument
373 pr_debug("%s(%d)\n", __func__, onoff); in mxl111sf_ep5_streaming_ctrl()
375 if (onoff) { in mxl111sf_ep5_streaming_ctrl()
388 ret = mxl111sf_config_spi(state, onoff); in mxl111sf_ep5_streaming_ctrl()
394 static int mxl111sf_ep4_streaming_ctrl(struct dvb_frontend *fe, int onoff) in mxl111sf_ep4_streaming_ctrl() argument
399 pr_debug("%s(%d)\n", __func__, onoff); in mxl111sf_ep4_streaming_ctrl()
[all …]
Dmxl111sf-phy.c97 int mxl1x1sf_top_master_ctrl(struct mxl111sf_state *state, int onoff) in mxl1x1sf_top_master_ctrl() argument
99 mxl_debug("(%d)", onoff); in mxl1x1sf_top_master_ctrl()
101 return mxl111sf_write_reg(state, 0x01, onoff ? 0x01 : 0x00); in mxl1x1sf_top_master_ctrl()
274 int mxl111sf_config_spi(struct mxl111sf_state *state, int onoff) in mxl111sf_config_spi() argument
279 mxl_debug("(%d)", onoff); in mxl111sf_config_spi()
289 if (onoff) in mxl111sf_config_spi()
Drtl28xxu.c1426 static int rtl2831u_power_ctrl(struct dvb_usb_device *d, int onoff) in rtl2831u_power_ctrl() argument
1431 dev_dbg(&d->intf->dev, "onoff=%d\n", onoff); in rtl2831u_power_ctrl()
1445 if (onoff) { in rtl2831u_power_ctrl()
1479 if (onoff) in rtl2831u_power_ctrl()
1488 static int rtl2832u_power_ctrl(struct dvb_usb_device *d, int onoff) in rtl2832u_power_ctrl() argument
1492 dev_dbg(&d->intf->dev, "onoff=%d\n", onoff); in rtl2832u_power_ctrl()
1494 if (onoff) { in rtl2832u_power_ctrl()
1546 static int rtl28xxu_power_ctrl(struct dvb_usb_device *d, int onoff) in rtl28xxu_power_ctrl() argument
1551 return rtl2831u_power_ctrl(d, onoff); in rtl28xxu_power_ctrl()
1553 return rtl2832u_power_ctrl(d, onoff); in rtl28xxu_power_ctrl()
[all …]
Dmxl111sf-phy.h28 int mxl1x1sf_top_master_ctrl(struct mxl111sf_state *state, int onoff);
42 int mxl111sf_config_spi(struct mxl111sf_state *state, int onoff);
/drivers/media/common/siano/
Dsms-cards.c291 int sms_board_power(struct smscore_device_t *coredev, int onoff) in sms_board_power() argument
300 board->led_power, onoff ? 1 : 0); in sms_board_power()
305 if (!onoff) in sms_board_power()
336 int sms_board_lna_control(struct smscore_device_t *coredev, int onoff) in sms_board_lna_control() argument
341 pr_debug("%s: LNA %s\n", __func__, onoff ? "enabled" : "disabled"); in sms_board_lna_control()
347 board->rf_switch, onoff ? 1 : 0); in sms_board_lna_control()
349 board->lna_ctrl, onoff ? 1 : 0); in sms_board_lna_control()
/drivers/media/pci/cx23885/
Daltera-ci.c520 u16 pid, int onoff) in altera_pid_control() argument
537 if (onoff)/* 0 - on, 1 - off */ in altera_pid_control()
547 pid_filt->nr, pid, pid, onoff ? "off" : "on"); in altera_pid_control()
551 int filt_nr, int onoff) in altera_toggle_fullts_streaming() argument
558 onoff ? "off" : "on"); in altera_toggle_fullts_streaming()
560 if (onoff)/* 0 - on, 1 - off */ in altera_toggle_fullts_streaming()
581 struct dvb_demux_feed *feed, int onoff) in altera_pid_feed_control() argument
587 altera_pid_control(pid_filt, feed->pid, onoff ? 0 : 1); in altera_pid_feed_control()
589 if (onoff) in altera_pid_feed_control()
596 onoff ? 0 : 1); in altera_pid_feed_control()
/drivers/s390/cio/
Dccwgroup.c81 if (atomic_cmpxchg(&gdev->onoff, 0, 1) != 0) in ccwgroup_set_online()
92 atomic_set(&gdev->onoff, 0); in ccwgroup_set_online()
110 if (atomic_cmpxchg(&gdev->onoff, 0, 1) != 0) in ccwgroup_set_offline()
121 atomic_set(&gdev->onoff, 0); in ccwgroup_set_offline()
190 if (atomic_cmpxchg(&gdev->onoff, 0, 1) != 0) in ccwgroup_ungroup_store()
204 atomic_set(&gdev->onoff, 0); in ccwgroup_ungroup_store()
330 atomic_set(&gdev->onoff, 0); in ccwgroup_create_dev()
485 if (atomic_read(&gdev->onoff)) in ccwgroup_pm_prepare()
/drivers/net/can/usb/peak_usb/
Dpcan_usb.c186 static int pcan_usb_set_bus(struct peak_usb_device *dev, u8 onoff) in pcan_usb_set_bus() argument
189 [0] = !!onoff, in pcan_usb_set_bus()
195 static int pcan_usb_set_silent(struct peak_usb_device *dev, u8 onoff) in pcan_usb_set_silent() argument
198 [0] = !!onoff, in pcan_usb_set_silent()
204 static int pcan_usb_set_ext_vcc(struct peak_usb_device *dev, u8 onoff) in pcan_usb_set_ext_vcc() argument
207 [0] = !!onoff, in pcan_usb_set_ext_vcc()
240 static int pcan_usb_write_mode(struct peak_usb_device *dev, u8 onoff) in pcan_usb_write_mode() argument
244 err = pcan_usb_set_bus(dev, onoff); in pcan_usb_write_mode()
248 if (!onoff) { in pcan_usb_write_mode()

12345