Lines Matching refs:adap
207 static int af9015_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[], in af9015_i2c_xfer() argument
210 struct dvb_usb_device *d = i2c_get_adapdata(adap); in af9015_i2c_xfer()
810 static int af9015_af9013_frontend_attach(struct dvb_usb_adapter *adap) in af9015_af9013_frontend_attach() argument
813 struct af9015_state *state = adap_to_priv(adap); in af9015_af9013_frontend_attach()
815 if (adap->id == 0) { in af9015_af9013_frontend_attach()
820 } else if (adap->id == 1) { in af9015_af9013_frontend_attach()
828 ret = af9015_copy_firmware(adap_to_d(adap)); in af9015_af9013_frontend_attach()
830 dev_err(&adap_to_d(adap)->udev->dev, in af9015_af9013_frontend_attach()
843 adap->fe[0] = dvb_attach(af9013_attach, in af9015_af9013_frontend_attach()
844 &state->af9013_config[adap->id], &adap_to_d(adap)->i2c_adap); in af9015_af9013_frontend_attach()
853 if (adap->fe[0]) { in af9015_af9013_frontend_attach()
854 state->set_frontend[adap->id] = in af9015_af9013_frontend_attach()
855 adap->fe[0]->ops.set_frontend; in af9015_af9013_frontend_attach()
856 adap->fe[0]->ops.set_frontend = in af9015_af9013_frontend_attach()
859 state->read_status[adap->id] = in af9015_af9013_frontend_attach()
860 adap->fe[0]->ops.read_status; in af9015_af9013_frontend_attach()
861 adap->fe[0]->ops.read_status = in af9015_af9013_frontend_attach()
864 state->init[adap->id] = adap->fe[0]->ops.init; in af9015_af9013_frontend_attach()
865 adap->fe[0]->ops.init = af9015_af9013_init; in af9015_af9013_frontend_attach()
867 state->sleep[adap->id] = adap->fe[0]->ops.sleep; in af9015_af9013_frontend_attach()
868 adap->fe[0]->ops.sleep = af9015_af9013_sleep; in af9015_af9013_frontend_attach()
871 return adap->fe[0] == NULL ? -ENODEV : 0; in af9015_af9013_frontend_attach()
937 static int af9015_tuner_attach(struct dvb_usb_adapter *adap) in af9015_tuner_attach() argument
939 struct dvb_usb_device *d = adap_to_d(adap); in af9015_tuner_attach()
944 switch (state->af9013_config[adap->id].tuner) { in af9015_tuner_attach()
947 ret = dvb_attach(mt2060_attach, adap->fe[0], in af9015_tuner_attach()
948 &adap_to_d(adap)->i2c_adap, &af9015_mt2060_config, in af9015_tuner_attach()
949 state->mt2060_if1[adap->id]) in af9015_tuner_attach()
954 ret = dvb_attach(qt1010_attach, adap->fe[0], in af9015_tuner_attach()
955 &adap_to_d(adap)->i2c_adap, in af9015_tuner_attach()
959 ret = dvb_attach(tda18271_attach, adap->fe[0], 0xc0, in af9015_tuner_attach()
960 &adap_to_d(adap)->i2c_adap, in af9015_tuner_attach()
964 ret = dvb_attach(tda18218_attach, adap->fe[0], in af9015_tuner_attach()
965 &adap_to_d(adap)->i2c_adap, in af9015_tuner_attach()
969 ret = dvb_attach(mxl5005s_attach, adap->fe[0], in af9015_tuner_attach()
970 &adap_to_d(adap)->i2c_adap, in af9015_tuner_attach()
975 ret = dvb_attach(mxl5005s_attach, adap->fe[0], in af9015_tuner_attach()
976 &adap_to_d(adap)->i2c_adap, in af9015_tuner_attach()
980 ret = dvb_attach(dvb_pll_attach, adap->fe[0], 0xc0, in af9015_tuner_attach()
981 &adap_to_d(adap)->i2c_adap, in af9015_tuner_attach()
985 ret = dvb_attach(mc44s803_attach, adap->fe[0], in af9015_tuner_attach()
986 &adap_to_d(adap)->i2c_adap, in af9015_tuner_attach()
990 ret = dvb_attach(mxl5007t_attach, adap->fe[0], in af9015_tuner_attach()
991 &adap_to_d(adap)->i2c_adap, in af9015_tuner_attach()
998 state->af9013_config[adap->id].tuner); in af9015_tuner_attach()
1002 if (adap->fe[0]->ops.tuner_ops.init) { in af9015_tuner_attach()
1003 state->tuner_init[adap->id] = in af9015_tuner_attach()
1004 adap->fe[0]->ops.tuner_ops.init; in af9015_tuner_attach()
1005 adap->fe[0]->ops.tuner_ops.init = af9015_tuner_init; in af9015_tuner_attach()
1008 if (adap->fe[0]->ops.tuner_ops.sleep) { in af9015_tuner_attach()
1009 state->tuner_sleep[adap->id] = in af9015_tuner_attach()
1010 adap->fe[0]->ops.tuner_ops.sleep; in af9015_tuner_attach()
1011 adap->fe[0]->ops.tuner_ops.sleep = af9015_tuner_sleep; in af9015_tuner_attach()
1017 static int af9015_pid_filter_ctrl(struct dvb_usb_adapter *adap, int onoff) in af9015_pid_filter_ctrl() argument
1019 struct dvb_usb_device *d = adap_to_d(adap); in af9015_pid_filter_ctrl()
1031 static int af9015_pid_filter(struct dvb_usb_adapter *adap, int index, u16 pid, in af9015_pid_filter() argument
1034 struct dvb_usb_device *d = adap_to_d(adap); in af9015_pid_filter()