Lines Matching refs:range
373 unsigned int val, range; in arizona_hpdet_read() local
409 &range); in arizona_hpdet_read()
410 range = (range & ARIZONA_HP_IMPEDANCE_RANGE_MASK) in arizona_hpdet_read()
413 if (range < ARRAY_SIZE(arizona_hpdet_b_ranges) - 1 && in arizona_hpdet_read()
414 (val < arizona_hpdet_b_ranges[range].threshold || in arizona_hpdet_read()
416 range++; in arizona_hpdet_read()
418 range); in arizona_hpdet_read()
422 range << in arizona_hpdet_read()
428 if (val < arizona_hpdet_b_ranges[range].threshold || in arizona_hpdet_read()
435 val, range); in arizona_hpdet_read()
437 val = arizona_hpdet_b_ranges[range].factor_b in arizona_hpdet_read()
439 arizona_hpdet_b_ranges[range].factor_a); in arizona_hpdet_read()
457 &range); in arizona_hpdet_read()
458 range = (range & ARIZONA_HP_IMPEDANCE_RANGE_MASK) in arizona_hpdet_read()
462 if (range < ARRAY_SIZE(arizona_hpdet_c_ranges) - 1 && in arizona_hpdet_read()
463 (val >= arizona_hpdet_c_ranges[range].max)) { in arizona_hpdet_read()
464 range++; in arizona_hpdet_read()
466 arizona_hpdet_c_ranges[range].min, in arizona_hpdet_read()
467 arizona_hpdet_c_ranges[range].max); in arizona_hpdet_read()
471 range << in arizona_hpdet_read()
476 if (range && (val < arizona_hpdet_c_ranges[range].min)) { in arizona_hpdet_read()
478 arizona_hpdet_c_ranges[range].min); in arizona_hpdet_read()
479 val = arizona_hpdet_c_ranges[range].min; in arizona_hpdet_read()