Lines Matching refs:adap_state

269 	struct mxl111sf_adap_state *adap_state = &state->adap_state[fe->id];  in mxl111sf_adap_fe_init()  local
282 state->alt_mode = adap_state->alt_mode; in mxl111sf_adap_fe_init()
291 err = mxl1x1sf_set_device_mode(state, adap_state->device_mode); in mxl111sf_adap_fe_init()
299 if ((MXL111SF_GPIO_MOD_DVBT != adap_state->gpio_mode) && in mxl111sf_adap_fe_init()
307 state->gpio_mode = adap_state->gpio_mode; in mxl111sf_adap_fe_init()
317 return (adap_state->fe_init) ? adap_state->fe_init(fe) : 0; in mxl111sf_adap_fe_init()
325 struct mxl111sf_adap_state *adap_state = &state->adap_state[fe->id]; in mxl111sf_adap_fe_sleep() local
336 err = (adap_state->fe_sleep) ? adap_state->fe_sleep(fe) : 0; in mxl111sf_adap_fe_sleep()
349 struct mxl111sf_adap_state *adap_state = &state->adap_state[fe->id]; in mxl111sf_ep6_streaming_ctrl() local
358 adap_state->ep6_clockphase, in mxl111sf_ep6_streaming_ctrl()
429 struct mxl111sf_adap_state *adap_state = &state->adap_state[fe_id]; in mxl111sf_lgdt3305_frontend_attach() local
436 adap_state->alt_mode = (dvb_usb_mxl111sf_isoc) ? 2 : 1; in mxl111sf_lgdt3305_frontend_attach()
437 state->alt_mode = adap_state->alt_mode; in mxl111sf_lgdt3305_frontend_attach()
443 adap_state->gpio_mode = state->gpio_mode; in mxl111sf_lgdt3305_frontend_attach()
444 adap_state->device_mode = MXL_TUNER_MODE; in mxl111sf_lgdt3305_frontend_attach()
445 adap_state->ep6_clockphase = 1; in mxl111sf_lgdt3305_frontend_attach()
454 ret = mxl1x1sf_set_device_mode(state, adap_state->device_mode); in mxl111sf_lgdt3305_frontend_attach()
477 adap_state->fe_init = adap->fe[fe_id]->ops.init; in mxl111sf_lgdt3305_frontend_attach()
479 adap_state->fe_sleep = adap->fe[fe_id]->ops.sleep; in mxl111sf_lgdt3305_frontend_attach()
500 struct mxl111sf_adap_state *adap_state = &state->adap_state[fe_id]; in mxl111sf_lg2160_frontend_attach() local
507 adap_state->alt_mode = (dvb_usb_mxl111sf_isoc) ? 2 : 1; in mxl111sf_lg2160_frontend_attach()
508 state->alt_mode = adap_state->alt_mode; in mxl111sf_lg2160_frontend_attach()
514 adap_state->gpio_mode = state->gpio_mode; in mxl111sf_lg2160_frontend_attach()
515 adap_state->device_mode = MXL_TUNER_MODE; in mxl111sf_lg2160_frontend_attach()
516 adap_state->ep6_clockphase = 1; in mxl111sf_lg2160_frontend_attach()
525 ret = mxl1x1sf_set_device_mode(state, adap_state->device_mode); in mxl111sf_lg2160_frontend_attach()
552 adap_state->fe_init = adap->fe[fe_id]->ops.init; in mxl111sf_lg2160_frontend_attach()
554 adap_state->fe_sleep = adap->fe[fe_id]->ops.sleep; in mxl111sf_lg2160_frontend_attach()
585 struct mxl111sf_adap_state *adap_state = &state->adap_state[fe_id]; in mxl111sf_lg2161_frontend_attach() local
592 adap_state->alt_mode = (dvb_usb_mxl111sf_isoc) ? 2 : 1; in mxl111sf_lg2161_frontend_attach()
593 state->alt_mode = adap_state->alt_mode; in mxl111sf_lg2161_frontend_attach()
599 adap_state->gpio_mode = state->gpio_mode; in mxl111sf_lg2161_frontend_attach()
600 adap_state->device_mode = MXL_TUNER_MODE; in mxl111sf_lg2161_frontend_attach()
601 adap_state->ep6_clockphase = 1; in mxl111sf_lg2161_frontend_attach()
610 ret = mxl1x1sf_set_device_mode(state, adap_state->device_mode); in mxl111sf_lg2161_frontend_attach()
639 adap_state->fe_init = adap->fe[fe_id]->ops.init; in mxl111sf_lg2161_frontend_attach()
641 adap_state->fe_sleep = adap->fe[fe_id]->ops.sleep; in mxl111sf_lg2161_frontend_attach()
672 struct mxl111sf_adap_state *adap_state = &state->adap_state[fe_id]; in mxl111sf_lg2161_ep6_frontend_attach() local
679 adap_state->alt_mode = (dvb_usb_mxl111sf_isoc) ? 2 : 1; in mxl111sf_lg2161_ep6_frontend_attach()
680 state->alt_mode = adap_state->alt_mode; in mxl111sf_lg2161_ep6_frontend_attach()
686 adap_state->gpio_mode = state->gpio_mode; in mxl111sf_lg2161_ep6_frontend_attach()
687 adap_state->device_mode = MXL_TUNER_MODE; in mxl111sf_lg2161_ep6_frontend_attach()
688 adap_state->ep6_clockphase = 0; in mxl111sf_lg2161_ep6_frontend_attach()
697 ret = mxl1x1sf_set_device_mode(state, adap_state->device_mode); in mxl111sf_lg2161_ep6_frontend_attach()
726 adap_state->fe_init = adap->fe[fe_id]->ops.init; in mxl111sf_lg2161_ep6_frontend_attach()
728 adap_state->fe_sleep = adap->fe[fe_id]->ops.sleep; in mxl111sf_lg2161_ep6_frontend_attach()
747 struct mxl111sf_adap_state *adap_state = &state->adap_state[fe_id]; in mxl111sf_attach_demod() local
754 adap_state->alt_mode = (dvb_usb_mxl111sf_isoc) ? 1 : 2; in mxl111sf_attach_demod()
755 state->alt_mode = adap_state->alt_mode; in mxl111sf_attach_demod()
761 adap_state->gpio_mode = state->gpio_mode; in mxl111sf_attach_demod()
762 adap_state->device_mode = MXL_SOC_MODE; in mxl111sf_attach_demod()
763 adap_state->ep6_clockphase = 1; in mxl111sf_attach_demod()
772 ret = mxl1x1sf_set_device_mode(state, adap_state->device_mode); in mxl111sf_attach_demod()
790 adap_state->fe_init = adap->fe[fe_id]->ops.init; in mxl111sf_attach_demod()
792 adap_state->fe_sleep = adap->fe[fe_id]->ops.sleep; in mxl111sf_attach_demod()