Lines Matching refs:samp_period
431 int ret, samp_period, prst; in ltr501_read_intr_prst() local
439 ret = ltr501_als_read_samp_period(data, &samp_period); in ltr501_read_intr_prst()
443 *val2 = samp_period * prst; in ltr501_read_intr_prst()
450 ret = ltr501_ps_read_samp_period(data, &samp_period); in ltr501_read_intr_prst()
455 *val2 = samp_period * prst; in ltr501_read_intr_prst()
468 int ret, samp_period, new_val; in ltr501_write_intr_prst() local
479 ret = ltr501_als_read_samp_period(data, &samp_period); in ltr501_write_intr_prst()
484 if (period < samp_period) in ltr501_write_intr_prst()
487 new_val = DIV_ROUND_UP(period, samp_period); in ltr501_write_intr_prst()
499 ret = ltr501_ps_read_samp_period(data, &samp_period); in ltr501_write_intr_prst()
504 if (period < samp_period) in ltr501_write_intr_prst()
507 new_val = DIV_ROUND_UP(period, samp_period); in ltr501_write_intr_prst()