Lines Matching refs:adap_state
272 struct mxl111sf_adap_state *adap_state = &state->adap_state[fe->id]; in mxl111sf_adap_fe_init() local
285 state->alt_mode = adap_state->alt_mode; in mxl111sf_adap_fe_init()
294 err = mxl1x1sf_set_device_mode(state, adap_state->device_mode); in mxl111sf_adap_fe_init()
302 if ((MXL111SF_GPIO_MOD_DVBT != adap_state->gpio_mode) && in mxl111sf_adap_fe_init()
310 state->gpio_mode = adap_state->gpio_mode; in mxl111sf_adap_fe_init()
320 return (adap_state->fe_init) ? adap_state->fe_init(fe) : 0; in mxl111sf_adap_fe_init()
328 struct mxl111sf_adap_state *adap_state = &state->adap_state[fe->id]; in mxl111sf_adap_fe_sleep() local
339 err = (adap_state->fe_sleep) ? adap_state->fe_sleep(fe) : 0; in mxl111sf_adap_fe_sleep()
352 struct mxl111sf_adap_state *adap_state = &state->adap_state[fe->id]; in mxl111sf_ep6_streaming_ctrl() local
361 adap_state->ep6_clockphase, in mxl111sf_ep6_streaming_ctrl()
432 struct mxl111sf_adap_state *adap_state = &state->adap_state[fe_id]; in mxl111sf_lgdt3305_frontend_attach() local
439 adap_state->alt_mode = (dvb_usb_mxl111sf_isoc) ? 2 : 1; in mxl111sf_lgdt3305_frontend_attach()
440 state->alt_mode = adap_state->alt_mode; in mxl111sf_lgdt3305_frontend_attach()
446 adap_state->gpio_mode = state->gpio_mode; in mxl111sf_lgdt3305_frontend_attach()
447 adap_state->device_mode = MXL_TUNER_MODE; in mxl111sf_lgdt3305_frontend_attach()
448 adap_state->ep6_clockphase = 1; in mxl111sf_lgdt3305_frontend_attach()
457 ret = mxl1x1sf_set_device_mode(state, adap_state->device_mode); in mxl111sf_lgdt3305_frontend_attach()
480 adap_state->fe_init = adap->fe[fe_id]->ops.init; in mxl111sf_lgdt3305_frontend_attach()
482 adap_state->fe_sleep = adap->fe[fe_id]->ops.sleep; in mxl111sf_lgdt3305_frontend_attach()
503 struct mxl111sf_adap_state *adap_state = &state->adap_state[fe_id]; in mxl111sf_lg2160_frontend_attach() local
510 adap_state->alt_mode = (dvb_usb_mxl111sf_isoc) ? 2 : 1; in mxl111sf_lg2160_frontend_attach()
511 state->alt_mode = adap_state->alt_mode; in mxl111sf_lg2160_frontend_attach()
517 adap_state->gpio_mode = state->gpio_mode; in mxl111sf_lg2160_frontend_attach()
518 adap_state->device_mode = MXL_TUNER_MODE; in mxl111sf_lg2160_frontend_attach()
519 adap_state->ep6_clockphase = 1; in mxl111sf_lg2160_frontend_attach()
528 ret = mxl1x1sf_set_device_mode(state, adap_state->device_mode); in mxl111sf_lg2160_frontend_attach()
555 adap_state->fe_init = adap->fe[fe_id]->ops.init; in mxl111sf_lg2160_frontend_attach()
557 adap_state->fe_sleep = adap->fe[fe_id]->ops.sleep; in mxl111sf_lg2160_frontend_attach()
588 struct mxl111sf_adap_state *adap_state = &state->adap_state[fe_id]; in mxl111sf_lg2161_frontend_attach() local
595 adap_state->alt_mode = (dvb_usb_mxl111sf_isoc) ? 2 : 1; in mxl111sf_lg2161_frontend_attach()
596 state->alt_mode = adap_state->alt_mode; in mxl111sf_lg2161_frontend_attach()
602 adap_state->gpio_mode = state->gpio_mode; in mxl111sf_lg2161_frontend_attach()
603 adap_state->device_mode = MXL_TUNER_MODE; in mxl111sf_lg2161_frontend_attach()
604 adap_state->ep6_clockphase = 1; in mxl111sf_lg2161_frontend_attach()
613 ret = mxl1x1sf_set_device_mode(state, adap_state->device_mode); in mxl111sf_lg2161_frontend_attach()
642 adap_state->fe_init = adap->fe[fe_id]->ops.init; in mxl111sf_lg2161_frontend_attach()
644 adap_state->fe_sleep = adap->fe[fe_id]->ops.sleep; in mxl111sf_lg2161_frontend_attach()
675 struct mxl111sf_adap_state *adap_state = &state->adap_state[fe_id]; in mxl111sf_lg2161_ep6_frontend_attach() local
682 adap_state->alt_mode = (dvb_usb_mxl111sf_isoc) ? 2 : 1; in mxl111sf_lg2161_ep6_frontend_attach()
683 state->alt_mode = adap_state->alt_mode; in mxl111sf_lg2161_ep6_frontend_attach()
689 adap_state->gpio_mode = state->gpio_mode; in mxl111sf_lg2161_ep6_frontend_attach()
690 adap_state->device_mode = MXL_TUNER_MODE; in mxl111sf_lg2161_ep6_frontend_attach()
691 adap_state->ep6_clockphase = 0; in mxl111sf_lg2161_ep6_frontend_attach()
700 ret = mxl1x1sf_set_device_mode(state, adap_state->device_mode); in mxl111sf_lg2161_ep6_frontend_attach()
729 adap_state->fe_init = adap->fe[fe_id]->ops.init; in mxl111sf_lg2161_ep6_frontend_attach()
731 adap_state->fe_sleep = adap->fe[fe_id]->ops.sleep; in mxl111sf_lg2161_ep6_frontend_attach()
750 struct mxl111sf_adap_state *adap_state = &state->adap_state[fe_id]; in mxl111sf_attach_demod() local
757 adap_state->alt_mode = (dvb_usb_mxl111sf_isoc) ? 1 : 2; in mxl111sf_attach_demod()
758 state->alt_mode = adap_state->alt_mode; in mxl111sf_attach_demod()
764 adap_state->gpio_mode = state->gpio_mode; in mxl111sf_attach_demod()
765 adap_state->device_mode = MXL_SOC_MODE; in mxl111sf_attach_demod()
766 adap_state->ep6_clockphase = 1; in mxl111sf_attach_demod()
775 ret = mxl1x1sf_set_device_mode(state, adap_state->device_mode); in mxl111sf_attach_demod()
793 adap_state->fe_init = adap->fe[fe_id]->ops.init; in mxl111sf_attach_demod()
795 adap_state->fe_sleep = adap->fe[fe_id]->ops.sleep; in mxl111sf_attach_demod()