Lines Matching defs:step
150 s8 step;
1037 dprintk("total RF gain: %ddB, step: %d\n", (u32) cfg[0], dib0090_read_reg(state, 0x2a));
1056 dprintk("total BB gain: %ddB, step: %d\n", (u32) cfg[0], dib0090_read_reg(state, 0x33));
1665 *val |= state->step << state->dc->offset;
1703 state->step = 0;
1721 dprintk("adc_diff = %d, current step= %d\n", (u32) state->adc_diff, state->step);
1722 if (state->step == 0 && state->adc_diff < 0) {
1727 dprintk("adc_diff = %d, min_adc_diff = %d current_step = %d\n", state->adc_diff, state->min_adc_diff, state->step);
1730 if (state->step == 0) {
1732 state->step = 0x10;
1734 state->step = 0x10;
1738 if ((state->adc_diff & 0x8000) == (state->min_adc_diff & 0x8000) && steps(state->step) < 15) {
1740 state->step++;
1744 /* the minimum was what we have seen in the step before */
1746 dprintk("Since adc_diff N = %d > adc_diff step N-1 = %d, Come back one step\n", state->adc_diff, state->min_adc_diff);
1747 state->step--;
1752 state->dc->addr, state->adc_diff, state->step);
2097 state->step = state->captrim = state->fcaptrim = 64;
2103 state->step = 4;
2118 state->step /= 2;
2159 state->captrim += step_sign * state->step;
2160 if (state->step >= 1)
2167 } else if (*tune_state == CT_TUNER_STEP_2) { /* this step is only used by krosus < P1G */
2456 else if (*tune_state == CT_TUNER_STEP_0) { /* Warning : because of captrim cal, if you change this step, change it also in _cal.c file because it is the step following captrim cal state machine */