/drivers/media/common/b2c2/ |
D | flexcop-hw-filter.c | 8 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 …]
|
D | flexcop-common.h | 127 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/ |
D | flexcop-dma.c | 73 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/ |
D | dibusb-common.c | 25 int dibusb_streaming_ctrl(struct dvb_usb_adapter *adap, int onoff) in dibusb_streaming_ctrl() argument 30 if (st->ops.fifo_ctrl(adap->fe_adap[0].fe, onoff)) { in dibusb_streaming_ctrl() 39 int dibusb_pid_filter(struct dvb_usb_adapter *adap, int index, u16 pid, int onoff) in dibusb_pid_filter() argument 45 index, pid, onoff); in dibusb_pid_filter() 51 int dibusb_pid_filter_ctrl(struct dvb_usb_adapter *adap, int onoff) in dibusb_pid_filter_ctrl() argument 56 if (st->ops.pid_parse(adap->fe_adap[0].fe, onoff) < 0) in dibusb_pid_filter_ctrl() 63 int dibusb_power_ctrl(struct dvb_usb_device *d, int onoff) in dibusb_power_ctrl() argument 74 b[2] = onoff ? DIBUSB_IOCTL_POWER_WAKEUP : DIBUSB_IOCTL_POWER_SLEEP; in dibusb_power_ctrl() 86 int dibusb2_0_streaming_ctrl(struct dvb_usb_adapter *adap, int onoff) in dibusb2_0_streaming_ctrl() argument 95 if ((ret = dibusb_streaming_ctrl(adap,onoff)) < 0) in dibusb2_0_streaming_ctrl() [all …]
|
D | opera1.c | 286 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 …]
|
D | dtt200u.c | 27 static int dtt200u_power_ctrl(struct dvb_usb_device *d, int onoff) in dtt200u_power_ctrl() argument 36 if (onoff) in dtt200u_power_ctrl() 43 static int dtt200u_streaming_ctrl(struct dvb_usb_adapter *adap, int onoff) in dtt200u_streaming_ctrl() argument 51 st->data[1] = onoff; in dtt200u_streaming_ctrl() 57 if (onoff) in dtt200u_streaming_ctrl() 69 static int dtt200u_pid_filter(struct dvb_usb_adapter *adap, int index, u16 pid, int onoff) in dtt200u_pid_filter() argument 75 pid = onoff ? pid : 0; in dtt200u_pid_filter()
|
D | cxusb.c | 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() [all …]
|
D | dvb-usb-dvb.c | 13 static int dvb_usb_ctrl_feed(struct dvb_demux_feed *dvbdmxfeed, int onoff) in dvb_usb_ctrl_feed() argument 26 newfeedcount = adap->feedcount + (onoff ? 1 : -1); in dvb_usb_ctrl_feed() 48 dvbdmxfeed->index, onoff ? "on" : "off"); in dvb_usb_ctrl_feed() 52 adap->props.fe[adap->active_fe].pid_filter(adap, dvbdmxfeed->index, dvbdmxfeed->pid, onoff); in dvb_usb_ctrl_feed() 57 if (adap->feedcount == onoff && adap->feedcount > 0) { in dvb_usb_ctrl_feed() 229 static int dvb_usb_set_active_fe(struct dvb_frontend *fe, int onoff) in dvb_usb_set_active_fe() argument 234 adap->props.frontend_ctrl(fe, onoff) : 0; in dvb_usb_set_active_fe() 240 if (onoff) in dvb_usb_set_active_fe()
|
D | dvb-usb-init.c | 216 int dvb_usb_device_power_ctrl(struct dvb_usb_device *d, int onoff) in dvb_usb_device_power_ctrl() argument 218 if (onoff) in dvb_usb_device_power_ctrl() 223 …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() 224 deb_info("power control: %d\n", onoff); in dvb_usb_device_power_ctrl() 226 return d->props.power_ctrl(d, onoff); in dvb_usb_device_power_ctrl()
|
/drivers/media/dvb-frontends/ |
D | dib3000.h | 38 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);
|
D | dib7000m.h | 48 extern int dib7000m_pid_filter(struct dvb_frontend *, u8 id, u16 pid, u8 onoff); 49 extern int dib7000m_pid_filter_ctrl(struct dvb_frontend *fe, u8 onoff); 68 u16 pid, u8 onoff) in dib7000m_pid_filter() argument 75 uint8_t onoff) in dib7000m_pid_filter_ctrl() argument
|
D | dib3000mb.c | 714 static int dib3000mb_pid_control(struct dvb_frontend *fe,int index, int pid,int onoff) in dib3000mb_pid_control() argument 717 pid = (onoff ? pid | DIB3000_ACTIVATE_PID_FILTERING : 0); in dib3000mb_pid_control() 722 static int dib3000mb_fifo_control(struct dvb_frontend *fe, int onoff) in dib3000mb_fifo_control() argument 726 deb_xfer("%s fifo\n",onoff ? "enabling" : "disabling"); in dib3000mb_fifo_control() 727 if (onoff) { in dib3000mb_fifo_control() 735 static int dib3000mb_pid_parse(struct dvb_frontend *fe, int onoff) in dib3000mb_pid_parse() argument 738 deb_xfer("%s pid parsing\n",onoff ? "enabling" : "disabling"); in dib3000mb_pid_parse() 739 wr(DIB3000MB_REG_PID_PARSE,onoff); in dib3000mb_pid_parse() 743 static int dib3000mb_tuner_pass_ctrl(struct dvb_frontend *fe, int onoff, u8 pll_addr) in dib3000mb_tuner_pass_ctrl() argument 746 if (onoff) { in dib3000mb_tuner_pass_ctrl()
|
D | dib9000.h | 36 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
|
D | dib7000p.h | 57 int (*pid_filter_ctrl)(struct dvb_frontend *fe, u8 onoff); 58 int (*pid_filter)(struct dvb_frontend *fe, u8 id, u16 pid, u8 onoff); 61 int (*tuner_sleep)(struct dvb_frontend *fe, int onoff);
|
D | dib8000.h | 49 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);
|
D | af9033.h | 94 int (*pid_filter_ctrl)(struct dvb_frontend *fe, int onoff); 96 int onoff);
|
/drivers/media/usb/dvb-usb-v2/ |
D | mxl111sf.c | 259 static int mxl111sf_power_ctrl(struct dvb_usb_device *d, int onoff) 348 static int mxl111sf_ep6_streaming_ctrl(struct dvb_frontend *fe, int onoff) in mxl111sf_ep6_streaming_ctrl() argument 354 pr_debug("%s(%d)\n", __func__, onoff); in mxl111sf_ep6_streaming_ctrl() 356 if (onoff) { in mxl111sf_ep6_streaming_ctrl() 373 static int mxl111sf_ep5_streaming_ctrl(struct dvb_frontend *fe, int onoff) in mxl111sf_ep5_streaming_ctrl() argument 378 pr_debug("%s(%d)\n", __func__, onoff); in mxl111sf_ep5_streaming_ctrl() 380 if (onoff) { in mxl111sf_ep5_streaming_ctrl() 393 ret = mxl111sf_config_spi(state, onoff); in mxl111sf_ep5_streaming_ctrl() 399 static int mxl111sf_ep4_streaming_ctrl(struct dvb_frontend *fe, int onoff) in mxl111sf_ep4_streaming_ctrl() argument 404 pr_debug("%s(%d)\n", __func__, onoff); in mxl111sf_ep4_streaming_ctrl() [all …]
|
D | mxl111sf-phy.c | 97 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()
|
D | rtl28xxu.c | 1428 static int rtl2831u_power_ctrl(struct dvb_usb_device *d, int onoff) in rtl2831u_power_ctrl() argument 1433 dev_dbg(&d->intf->dev, "onoff=%d\n", onoff); in rtl2831u_power_ctrl() 1447 if (onoff) { in rtl2831u_power_ctrl() 1481 if (onoff) in rtl2831u_power_ctrl() 1490 static int rtl2832u_power_ctrl(struct dvb_usb_device *d, int onoff) in rtl2832u_power_ctrl() argument 1494 dev_dbg(&d->intf->dev, "onoff=%d\n", onoff); in rtl2832u_power_ctrl() 1496 if (onoff) { in rtl2832u_power_ctrl() 1548 static int rtl28xxu_power_ctrl(struct dvb_usb_device *d, int onoff) in rtl28xxu_power_ctrl() argument 1553 return rtl2831u_power_ctrl(d, onoff); in rtl28xxu_power_ctrl() 1555 return rtl2832u_power_ctrl(d, onoff); in rtl28xxu_power_ctrl() [all …]
|
D | mxl111sf-phy.h | 28 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/ |
D | sms-cards.c | 291 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/ |
D | altera-ci.c | 520 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/ |
D | ccwgroup.c | 81 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/ |
D | pcan_usb.c | 186 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()
|
/drivers/usb/serial/ |
D | whiteheat.c | 167 static int firm_set_rts(struct usb_serial_port *port, __u8 onoff); 168 static int firm_set_dtr(struct usb_serial_port *port, __u8 onoff); 169 static int firm_set_break(struct usb_serial_port *port, __u8 onoff); 754 static int firm_set_rts(struct usb_serial_port *port, __u8 onoff) in firm_set_rts() argument 759 rts_command.state = onoff; in firm_set_rts() 765 static int firm_set_dtr(struct usb_serial_port *port, __u8 onoff) in firm_set_dtr() argument 770 dtr_command.state = onoff; in firm_set_dtr() 776 static int firm_set_break(struct usb_serial_port *port, __u8 onoff) in firm_set_break() argument 781 break_command.state = onoff; in firm_set_break()
|