dib7000p_ops 2736 drivers/media/dvb-frontends/dib7000p.c static const struct dvb_frontend_ops dib7000p_ops; dib7000p_ops 2759 drivers/media/dvb-frontends/dib7000p.c memcpy(&st->demod.ops, &dib7000p_ops, sizeof(struct dvb_frontend_ops)); dib7000p_ops 2801 drivers/media/dvb-frontends/dib7000p.c void *dib7000p_attach(struct dib7000p_ops *ops) dib7000p_ops 2827 drivers/media/dvb-frontends/dib7000p.c static const struct dvb_frontend_ops dib7000p_ops = { dib7000p_ops 69 drivers/media/dvb-frontends/dib7000p.h void *dib7000p_attach(struct dib7000p_ops *ops); dib7000p_ops 71 drivers/media/dvb-frontends/dib7000p.h static inline void *dib7000p_attach(struct dib7000p_ops *ops) dib7000p_ops 980 drivers/media/pci/cx23885/cx23885-dvb.c struct dib7000p_ops *dib7000p_ops = fe->sec_priv; dib7000p_ops 982 drivers/media/pci/cx23885/cx23885-dvb.c return dib7000p_ops->set_gpio(fe, 8, 0, !onoff); dib7000p_ops 1189 drivers/media/pci/cx23885/cx23885-dvb.c struct dib7000p_ops dib7000p_ops; dib7000p_ops 1385 drivers/media/pci/cx23885/cx23885-dvb.c if (!dvb_attach(dib7000p_attach, &dib7000p_ops)) dib7000p_ops 1388 drivers/media/pci/cx23885/cx23885-dvb.c fe0->dvb.frontend = dib7000p_ops.init(&i2c_bus->i2c_adap, dib7000p_ops 1456 drivers/media/pci/cx23885/cx23885-dvb.c if (!dvb_attach(dib7000p_attach, &dib7000p_ops)) dib7000p_ops 1459 drivers/media/pci/cx23885/cx23885-dvb.c if (dib7000p_ops.i2c_enumeration(&i2c_bus->i2c_adap, 1, 0x12, &dib7070p_dib7000p_config) < 0) { dib7000p_ops 1463 drivers/media/pci/cx23885/cx23885-dvb.c fe0->dvb.frontend = dib7000p_ops.init(&i2c_bus->i2c_adap, 0x80, &dib7070p_dib7000p_config); dib7000p_ops 1467 drivers/media/pci/cx23885/cx23885-dvb.c fe0->dvb.frontend->sec_priv = kmemdup(&dib7000p_ops, sizeof(dib7000p_ops), GFP_KERNEL); dib7000p_ops 1470 drivers/media/pci/cx23885/cx23885-dvb.c tun_i2c = dib7000p_ops.get_i2c_master(fe0->dvb.frontend, DIBX000_I2C_INTERFACE_TUNER, 1); dib7000p_ops 1115 drivers/media/usb/dvb-usb/cxusb.c struct dib7000p_ops dib7000p_ops; dib7000p_ops 1129 drivers/media/usb/dvb-usb/cxusb.c if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) dib7000p_ops 1132 drivers/media/usb/dvb-usb/cxusb.c if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 18, dib7000p_ops 1138 drivers/media/usb/dvb-usb/cxusb.c adap->fe_adap[0].fe = state->dib7000p_ops.init(&adap->dev->i2c_adap, dib7000p_ops 1152 drivers/media/usb/dvb-usb/cxusb.c return state->dib7000p_ops.set_gpio(fe, 8, 0, !onoff); dib7000p_ops 1186 drivers/media/usb/dvb-usb/cxusb.c state->dib7000p_ops.set_wbd_ref(fe, offset + dib0070_wbd_offset(fe)); dib7000p_ops 1201 drivers/media/usb/dvb-usb/cxusb.c tun_i2c = st->dib7000p_ops.get_i2c_master(adap->fe_adap[0].fe, dib7000p_ops 34 drivers/media/usb/dvb-usb/dib0700_devices.c struct dib7000p_ops dib7000p_ops; dib7000p_ops 277 drivers/media/usb/dvb-usb/dib0700_devices.c if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) dib7000p_ops 290 drivers/media/usb/dvb-usb/dib0700_devices.c if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 18, dib7000p_ops 294 drivers/media/usb/dvb-usb/dib0700_devices.c dvb_detach(state->dib7000p_ops.set_wbd_ref); dib7000p_ops 299 drivers/media/usb/dvb-usb/dib0700_devices.c adap->fe_adap[0].fe = state->dib7000p_ops.init(&adap->dev->i2c_adap, dib7000p_ops 310 drivers/media/usb/dvb-usb/dib0700_devices.c if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) dib7000p_ops 324 drivers/media/usb/dvb-usb/dib0700_devices.c if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 2, 18, dib7000p_ops 328 drivers/media/usb/dvb-usb/dib0700_devices.c dvb_detach(state->dib7000p_ops.set_wbd_ref); dib7000p_ops 333 drivers/media/usb/dvb-usb/dib0700_devices.c adap->fe_adap[0].fe = state->dib7000p_ops.init(&adap->dev->i2c_adap, dib7000p_ops 345 drivers/media/usb/dvb-usb/dib0700_devices.c tun_i2c = state->dib7000p_ops.get_i2c_master(adap->fe_adap[0].fe, dib7000p_ops 428 drivers/media/usb/dvb-usb/dib0700_devices.c state->dib7000p_ops.set_gpio(adap->fe_adap[0].fe, 8, 0, 0); dib7000p_ops 430 drivers/media/usb/dvb-usb/dib0700_devices.c state->dib7000p_ops.set_gpio(adap->fe_adap[0].fe, 8, 0, 1); dib7000p_ops 459 drivers/media/usb/dvb-usb/dib0700_devices.c if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) dib7000p_ops 478 drivers/media/usb/dvb-usb/dib0700_devices.c if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 18, dib7000p_ops 482 drivers/media/usb/dvb-usb/dib0700_devices.c dvb_detach(state->dib7000p_ops.set_wbd_ref); dib7000p_ops 486 drivers/media/usb/dvb-usb/dib0700_devices.c adap->fe_adap[0].fe = state->dib7000p_ops.init(&adap->dev->i2c_adap, 0x80, dib7000p_ops 497 drivers/media/usb/dvb-usb/dib0700_devices.c tun_i2c = state->dib7000p_ops.get_i2c_master(adap->fe_adap[0].fe, dib7000p_ops 706 drivers/media/usb/dvb-usb/dib0700_devices.c if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) dib7000p_ops 725 drivers/media/usb/dvb-usb/dib0700_devices.c if (state->dib7000p_ops.dib7000pc_detection(&adap->dev->i2c_adap)) { dib7000p_ops 726 drivers/media/usb/dvb-usb/dib0700_devices.c adap->fe_adap[0].fe = state->dib7000p_ops.init(&adap->dev->i2c_adap, 18, &stk7700p_dib7000p_config); dib7000p_ops 729 drivers/media/usb/dvb-usb/dib0700_devices.c memset(&state->dib7000p_ops, 0, sizeof(state->dib7000p_ops)); dib7000p_ops 754 drivers/media/usb/dvb-usb/dib0700_devices.c tun_i2c = state->dib7000p_ops.get_i2c_master(adap->fe_adap[0].fe, DIBX000_I2C_INTERFACE_TUNER, 1); dib7000p_ops 802 drivers/media/usb/dvb-usb/dib0700_devices.c return state->dib7000p_ops.set_gpio(fe, 8, 0, !onoff); dib7000p_ops 811 drivers/media/usb/dvb-usb/dib0700_devices.c return state->dib7000p_ops.set_gpio(fe, 9, 0, onoff); dib7000p_ops 855 drivers/media/usb/dvb-usb/dib0700_devices.c state->dib7000p_ops.set_wbd_ref(fe, offset + dib0070_wbd_offset(fe)); dib7000p_ops 869 drivers/media/usb/dvb-usb/dib0700_devices.c state->dib7000p_ops.set_gpio(fe, 0, 0, 1); dib7000p_ops 874 drivers/media/usb/dvb-usb/dib0700_devices.c state->dib7000p_ops.set_gpio(fe, 0, 0, 0); dib7000p_ops 879 drivers/media/usb/dvb-usb/dib0700_devices.c state->dib7000p_ops.set_wbd_ref(fe, offset + dib0070_wbd_offset(fe)); dib7000p_ops 886 drivers/media/usb/dvb-usb/dib0700_devices.c struct i2c_adapter *tun_i2c = st->dib7000p_ops.get_i2c_master(adap->fe_adap[0].fe, dib7000p_ops 901 drivers/media/usb/dvb-usb/dib0700_devices.c struct i2c_adapter *tun_i2c = st->dib7000p_ops.get_i2c_master(adap->fe_adap[0].fe, DIBX000_I2C_INTERFACE_TUNER, 1); dib7000p_ops 923 drivers/media/usb/dvb-usb/dib0700_devices.c return state->dib7000p_ops.pid_filter(adapter->fe_adap[0].fe, index, pid, onoff); dib7000p_ops 932 drivers/media/usb/dvb-usb/dib0700_devices.c return state->dib7000p_ops.pid_filter_ctrl(adapter->fe_adap[0].fe, onoff); dib7000p_ops 939 drivers/media/usb/dvb-usb/dib0700_devices.c return state->dib7000p_ops.pid_filter(adapter->fe_adap[0].fe, index, pid, onoff); dib7000p_ops 945 drivers/media/usb/dvb-usb/dib0700_devices.c return state->dib7000p_ops.pid_filter_ctrl(adapter->fe_adap[0].fe, onoff); dib7000p_ops 989 drivers/media/usb/dvb-usb/dib0700_devices.c if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) dib7000p_ops 1010 drivers/media/usb/dvb-usb/dib0700_devices.c if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 18, dib7000p_ops 1014 drivers/media/usb/dvb-usb/dib0700_devices.c dvb_detach(state->dib7000p_ops.set_wbd_ref); dib7000p_ops 1018 drivers/media/usb/dvb-usb/dib0700_devices.c adap->fe_adap[0].fe = state->dib7000p_ops.init(&adap->dev->i2c_adap, 0x80, dib7000p_ops 1047 drivers/media/usb/dvb-usb/dib0700_devices.c if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) dib7000p_ops 1068 drivers/media/usb/dvb-usb/dib0700_devices.c if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 18, dib7000p_ops 1072 drivers/media/usb/dvb-usb/dib0700_devices.c dvb_detach(state->dib7000p_ops.set_wbd_ref); dib7000p_ops 1076 drivers/media/usb/dvb-usb/dib0700_devices.c adap->fe_adap[0].fe = state->dib7000p_ops.init(&adap->dev->i2c_adap, 0x80, dib7000p_ops 2647 drivers/media/usb/dvb-usb/dib0700_devices.c state->dib7000p_ops.set_wbd_ref(fe, target); dib7000p_ops 2653 drivers/media/usb/dvb-usb/dib0700_devices.c state->dib7000p_ops.update_pll(fe, &pll); dib7000p_ops 2654 drivers/media/usb/dvb-usb/dib0700_devices.c state->dib7000p_ops.ctrl_timf(fe, DEMOD_TIMF_SET, adc.timf); dib7000p_ops 2675 drivers/media/usb/dvb-usb/dib0700_devices.c state->dib7000p_ops.set_gpio(fe, 8, 0, 0); dib7000p_ops 2676 drivers/media/usb/dvb-usb/dib0700_devices.c state->dib7000p_ops.set_agc1_min(fe, 0); dib7000p_ops 2678 drivers/media/usb/dvb-usb/dib0700_devices.c state->dib7000p_ops.set_gpio(fe, 8, 0, 1); dib7000p_ops 2679 drivers/media/usb/dvb-usb/dib0700_devices.c state->dib7000p_ops.set_agc1_min(fe, 32768); dib7000p_ops 2829 drivers/media/usb/dvb-usb/dib0700_devices.c state->dib7000p_ops.set_gpio(fe, 5, 0, 0); dib7000p_ops 2830 drivers/media/usb/dvb-usb/dib0700_devices.c state->dib7000p_ops.set_agc1_min(fe, 0); dib7000p_ops 2832 drivers/media/usb/dvb-usb/dib0700_devices.c state->dib7000p_ops.set_gpio(fe, 5, 0, 1); dib7000p_ops 2833 drivers/media/usb/dvb-usb/dib0700_devices.c state->dib7000p_ops.set_agc1_min(fe, 32768); dib7000p_ops 3052 drivers/media/usb/dvb-usb/dib0700_devices.c if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) dib7000p_ops 3067 drivers/media/usb/dvb-usb/dib0700_devices.c if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 0x10, &nim7090_dib7000p_config) != 0) { dib7000p_ops 3069 drivers/media/usb/dvb-usb/dib0700_devices.c dvb_detach(state->dib7000p_ops.set_wbd_ref); dib7000p_ops 3072 drivers/media/usb/dvb-usb/dib0700_devices.c adap->fe_adap[0].fe = state->dib7000p_ops.init(&adap->dev->i2c_adap, 0x80, &nim7090_dib7000p_config); dib7000p_ops 3080 drivers/media/usb/dvb-usb/dib0700_devices.c struct i2c_adapter *tun_i2c = st->dib7000p_ops.get_i2c_tuner(adap->fe_adap[0].fe); dib7000p_ops 3082 drivers/media/usb/dvb-usb/dib0700_devices.c nim7090_dib0090_config.reset = st->dib7000p_ops.tuner_sleep, dib7000p_ops 3083 drivers/media/usb/dvb-usb/dib0700_devices.c nim7090_dib0090_config.sleep = st->dib7000p_ops.tuner_sleep, dib7000p_ops 3084 drivers/media/usb/dvb-usb/dib0700_devices.c nim7090_dib0090_config.get_adc_power = st->dib7000p_ops.get_adc_power; dib7000p_ops 3089 drivers/media/usb/dvb-usb/dib0700_devices.c st->dib7000p_ops.set_gpio(adap->fe_adap[0].fe, 8, 0, 1); dib7000p_ops 3101 drivers/media/usb/dvb-usb/dib0700_devices.c if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) dib7000p_ops 3120 drivers/media/usb/dvb-usb/dib0700_devices.c if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 1, 0x20, &tfe7090pvr_dib7000p_config[0]) != 0) { dib7000p_ops 3122 drivers/media/usb/dvb-usb/dib0700_devices.c dvb_detach(state->dib7000p_ops.set_wbd_ref); dib7000p_ops 3127 drivers/media/usb/dvb-usb/dib0700_devices.c adap->fe_adap[0].fe = state->dib7000p_ops.init(&adap->dev->i2c_adap, 0x90, &tfe7090pvr_dib7000p_config[0]); dib7000p_ops 3131 drivers/media/usb/dvb-usb/dib0700_devices.c state->dib7000p_ops.slave_reset(adap->fe_adap[0].fe); dib7000p_ops 3146 drivers/media/usb/dvb-usb/dib0700_devices.c if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) dib7000p_ops 3149 drivers/media/usb/dvb-usb/dib0700_devices.c i2c = state->dib7000p_ops.get_i2c_master(adap->dev->adapter[0].fe_adap[0].fe, DIBX000_I2C_INTERFACE_GPIO_6_7, 1); dib7000p_ops 3150 drivers/media/usb/dvb-usb/dib0700_devices.c if (state->dib7000p_ops.i2c_enumeration(i2c, 1, 0x10, &tfe7090pvr_dib7000p_config[1]) != 0) { dib7000p_ops 3152 drivers/media/usb/dvb-usb/dib0700_devices.c dvb_detach(state->dib7000p_ops.set_wbd_ref); dib7000p_ops 3156 drivers/media/usb/dvb-usb/dib0700_devices.c adap->fe_adap[0].fe = state->dib7000p_ops.init(i2c, 0x92, &tfe7090pvr_dib7000p_config[1]); dib7000p_ops 3165 drivers/media/usb/dvb-usb/dib0700_devices.c struct i2c_adapter *tun_i2c = st->dib7000p_ops.get_i2c_tuner(adap->fe_adap[0].fe); dib7000p_ops 3167 drivers/media/usb/dvb-usb/dib0700_devices.c tfe7090pvr_dib0090_config[0].reset = st->dib7000p_ops.tuner_sleep; dib7000p_ops 3168 drivers/media/usb/dvb-usb/dib0700_devices.c tfe7090pvr_dib0090_config[0].sleep = st->dib7000p_ops.tuner_sleep; dib7000p_ops 3169 drivers/media/usb/dvb-usb/dib0700_devices.c tfe7090pvr_dib0090_config[0].get_adc_power = st->dib7000p_ops.get_adc_power; dib7000p_ops 3174 drivers/media/usb/dvb-usb/dib0700_devices.c st->dib7000p_ops.set_gpio(adap->fe_adap[0].fe, 8, 0, 1); dib7000p_ops 3184 drivers/media/usb/dvb-usb/dib0700_devices.c struct i2c_adapter *tun_i2c = st->dib7000p_ops.get_i2c_tuner(adap->fe_adap[0].fe); dib7000p_ops 3186 drivers/media/usb/dvb-usb/dib0700_devices.c tfe7090pvr_dib0090_config[1].reset = st->dib7000p_ops.tuner_sleep; dib7000p_ops 3187 drivers/media/usb/dvb-usb/dib0700_devices.c tfe7090pvr_dib0090_config[1].sleep = st->dib7000p_ops.tuner_sleep; dib7000p_ops 3188 drivers/media/usb/dvb-usb/dib0700_devices.c tfe7090pvr_dib0090_config[1].get_adc_power = st->dib7000p_ops.get_adc_power; dib7000p_ops 3193 drivers/media/usb/dvb-usb/dib0700_devices.c st->dib7000p_ops.set_gpio(adap->fe_adap[0].fe, 8, 0, 1); dib7000p_ops 3205 drivers/media/usb/dvb-usb/dib0700_devices.c if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) dib7000p_ops 3223 drivers/media/usb/dvb-usb/dib0700_devices.c if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, dib7000p_ops 3227 drivers/media/usb/dvb-usb/dib0700_devices.c dvb_detach(state->dib7000p_ops.set_wbd_ref); dib7000p_ops 3230 drivers/media/usb/dvb-usb/dib0700_devices.c adap->fe_adap[0].fe = state->dib7000p_ops.init(&adap->dev->i2c_adap, dib7000p_ops 3240 drivers/media/usb/dvb-usb/dib0700_devices.c st->dib7000p_ops.get_i2c_tuner(adap->fe_adap[0].fe); dib7000p_ops 3243 drivers/media/usb/dvb-usb/dib0700_devices.c tfe7790p_dib0090_config.reset = st->dib7000p_ops.tuner_sleep; dib7000p_ops 3244 drivers/media/usb/dvb-usb/dib0700_devices.c tfe7790p_dib0090_config.sleep = st->dib7000p_ops.tuner_sleep; dib7000p_ops 3245 drivers/media/usb/dvb-usb/dib0700_devices.c tfe7790p_dib0090_config.get_adc_power = st->dib7000p_ops.get_adc_power; dib7000p_ops 3251 drivers/media/usb/dvb-usb/dib0700_devices.c st->dib7000p_ops.set_gpio(adap->fe_adap[0].fe, 8, 0, 1); dib7000p_ops 3310 drivers/media/usb/dvb-usb/dib0700_devices.c if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) dib7000p_ops 3318 drivers/media/usb/dvb-usb/dib0700_devices.c if (state->dib7000p_ops.i2c_enumeration(&adap->dev->i2c_adap, 2, 18, dib7000p_ops 3322 drivers/media/usb/dvb-usb/dib0700_devices.c dvb_detach(state->dib7000p_ops.set_wbd_ref); dib7000p_ops 3326 drivers/media/usb/dvb-usb/dib0700_devices.c adap->fe_adap[0].fe = state->dib7000p_ops.init(&adap->dev->i2c_adap, 0x80, &stk7070pd_dib7000p_config[0]); dib7000p_ops 3334 drivers/media/usb/dvb-usb/dib0700_devices.c if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) dib7000p_ops 3337 drivers/media/usb/dvb-usb/dib0700_devices.c adap->fe_adap[0].fe = state->dib7000p_ops.init(&adap->dev->i2c_adap, 0x82, &stk7070pd_dib7000p_config[1]); dib7000p_ops 3382 drivers/media/usb/dvb-usb/dib0700_devices.c if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) dib7000p_ops 3393 drivers/media/usb/dvb-usb/dib0700_devices.c if (state->dib7000p_ops.i2c_enumeration(&dev->i2c_adap, 2, 18, dib7000p_ops 3397 drivers/media/usb/dvb-usb/dib0700_devices.c dvb_detach(state->dib7000p_ops.set_wbd_ref); dib7000p_ops 3402 drivers/media/usb/dvb-usb/dib0700_devices.c adap->fe_adap[0].fe = state->dib7000p_ops.init(&dev->i2c_adap, dib7000p_ops 3516 drivers/media/usb/dvb-usb/dib0700_devices.c state->dib7000p_ops.set_gpio(adap->fe_adap[0].fe, 8, 0, 0); dib7000p_ops 3518 drivers/media/usb/dvb-usb/dib0700_devices.c state->dib7000p_ops.set_gpio(adap->fe_adap[0].fe, 8, 0, 1); dib7000p_ops 3606 drivers/media/usb/dvb-usb/dib0700_devices.c if (!dvb_attach(dib7000p_attach, &state->dib7000p_ops)) dib7000p_ops 3631 drivers/media/usb/dvb-usb/dib0700_devices.c if (state->dib7000p_ops.dib7000pc_detection(&adap->dev->i2c_adap) == 0) { dib7000p_ops 3633 drivers/media/usb/dvb-usb/dib0700_devices.c dvb_detach(state->dib7000p_ops.set_wbd_ref); dib7000p_ops 3637 drivers/media/usb/dvb-usb/dib0700_devices.c adap->fe_adap[0].fe = state->dib7000p_ops.init(&adap->dev->i2c_adap, 0x12, dib7000p_ops 3658 drivers/media/usb/dvb-usb/dib0700_devices.c tun_i2c = state->dib7000p_ops.get_i2c_master(adap->fe_adap[0].fe,