Lines Matching refs:range
411 unsigned int val, range; in arizona_hpdet_read() local
447 &range); in arizona_hpdet_read()
448 range = (range & ARIZONA_HP_IMPEDANCE_RANGE_MASK) in arizona_hpdet_read()
451 if (range < ARRAY_SIZE(arizona_hpdet_b_ranges) - 1 && in arizona_hpdet_read()
452 (val < arizona_hpdet_b_ranges[range].threshold || in arizona_hpdet_read()
454 range++; in arizona_hpdet_read()
456 range); in arizona_hpdet_read()
460 range << in arizona_hpdet_read()
466 if (val < arizona_hpdet_b_ranges[range].threshold || in arizona_hpdet_read()
473 val, range); in arizona_hpdet_read()
475 val = arizona_hpdet_b_ranges[range].factor_b in arizona_hpdet_read()
477 arizona_hpdet_b_ranges[range].factor_a); in arizona_hpdet_read()
492 &range); in arizona_hpdet_read()
493 range = (range & ARIZONA_HP_IMPEDANCE_RANGE_MASK) in arizona_hpdet_read()
497 if (range < ARRAY_SIZE(arizona_hpdet_c_ranges) - 1 && in arizona_hpdet_read()
498 (val >= arizona_hpdet_c_ranges[range].max)) { in arizona_hpdet_read()
499 range++; in arizona_hpdet_read()
501 arizona_hpdet_c_ranges[range].min, in arizona_hpdet_read()
502 arizona_hpdet_c_ranges[range].max); in arizona_hpdet_read()
506 range << in arizona_hpdet_read()
511 if (range && (val < arizona_hpdet_c_ranges[range].min)) { in arizona_hpdet_read()
513 arizona_hpdet_c_ranges[range].min); in arizona_hpdet_read()
514 val = arizona_hpdet_c_ranges[range].min; in arizona_hpdet_read()