Lines Matching defs:adap
214 static void lme2510_update_stats(struct dvb_usb_adapter *adap)
216 struct lme2510_state *st = adap_to_priv(adap);
217 struct dvb_frontend *fe = adap->fe[0];
269 struct dvb_usb_adapter *adap = lme_urb->context;
270 struct lme2510_state *st = adap_to_priv(adap);
302 if (!adap_to_d(adap)->rc_dev)
311 rc_keydown(adap_to_d(adap)->rc_dev, RC_PROTO_NEC32, key,
349 lme2510_update_stats(adap);
370 static int lme2510_int_read(struct dvb_usb_adapter *adap)
372 struct dvb_usb_device *d = adap_to_d(adap);
373 struct lme2510_state *lme_int = adap_to_priv(adap);
387 adap,
402 static int lme2510_pid_filter_ctrl(struct dvb_usb_adapter *adap, int onoff)
404 struct dvb_usb_device *d = adap_to_d(adap);
405 struct lme2510_state *st = adap_to_priv(adap);
428 static int lme2510_pid_filter(struct dvb_usb_adapter *adap, int index, u16 pid,
431 struct dvb_usb_device *d = adap_to_d(adap);
481 static int lme2510_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msg[],
484 struct dvb_usb_device *d = i2c_get_adapdata(adap);
555 struct dvb_usb_adapter *adap = fe_to_adap(fe);
556 struct dvb_usb_device *d = adap_to_d(adap);
557 struct lme2510_state *st = adap_to_priv(adap);
881 struct dvb_usb_adapter *adap = fe_to_adap(fe);
885 lme2510_update_stats(adap);
947 static int lme_name(struct dvb_usb_adapter *adap)
949 struct dvb_usb_device *d = adap_to_d(adap);
950 struct lme2510_state *st = adap_to_priv(adap);
955 char *name = adap->fe[0]->ops.info.name;
963 static int dm04_lme2510_frontend_attach(struct dvb_usb_adapter *adap)
965 struct dvb_usb_device *d = adap_to_d(adap);
974 adap->fe[0] = dvb_attach(tda10086_attach,
976 if (adap->fe[0]) {
990 adap->fe[0] = dvb_attach(stv0299_attach,
992 if (adap->fe[0]) {
1006 adap->fe[0] = dvb_attach(stv0288_attach, &lme_config,
1009 if (adap->fe[0]) {
1024 adap->fe[0] = dvb_attach(m88rs2000_attach,
1027 if (adap->fe[0]) {
1034 adap->fe[0]->ops.set_voltage;
1039 if (adap->fe[0] == NULL) {
1045 if (adap->fe[0]) {
1046 dvb_frontend_detach(adap->fe[0]);
1047 adap->fe[0] = NULL;
1053 st->fe_read_status = adap->fe[0]->ops.read_status;
1054 st->fe_read_signal_strength = adap->fe[0]->ops.read_signal_strength;
1055 st->fe_read_snr = adap->fe[0]->ops.read_snr;
1056 st->fe_read_ber = adap->fe[0]->ops.read_ber;
1057 st->fe_read_ucblocks = adap->fe[0]->ops.read_ucblocks;
1059 adap->fe[0]->ops.read_status = dm04_read_status;
1060 adap->fe[0]->ops.read_signal_strength = dm04_read_signal_strength;
1061 adap->fe[0]->ops.read_snr = dm04_read_snr;
1062 adap->fe[0]->ops.read_ber = dm04_read_ber;
1063 adap->fe[0]->ops.read_ucblocks = dm04_read_ucblocks;
1064 adap->fe[0]->ops.set_voltage = dm04_lme2510_set_voltage;
1066 ret = lme_name(adap);
1070 static int dm04_lme2510_tuner(struct dvb_usb_adapter *adap)
1072 struct dvb_usb_device *d = adap_to_d(adap);
1073 struct lme2510_state *st = adap_to_priv(adap);
1079 if (dvb_attach(tda826x_attach, adap->fe[0], 0x60,
1084 if (dvb_attach(ix2505v_attach , adap->fe[0], &lme_tuner,
1089 if (dvb_attach(dvb_pll_attach , adap->fe[0], 0x60,
1094 if (dvb_attach(ts2020_attach, adap->fe[0],
1110 ret = lme2510_int_read(adap);
1170 struct dvb_usb_adapter *adap = fe_to_adap(fe);
1173 if (adap == NULL)
1176 d = adap_to_d(adap);
1180 adap->pid_filtering = true;
1181 adap->max_feed_count = 15;
1201 struct dvb_usb_adapter *adap = &d->adapter[0];
1203 if (adap != NULL) {
1204 lme2510_kill_urb(&adap->stream);