Lines Matching refs:max_count
278 int ret, i, count_skip = 0, max_count; in tsc2046_adc_read_one() local
285 max_count = count_skip + ch->oversampling_ratio; in tsc2046_adc_read_one()
287 max_count = 1; in tsc2046_adc_read_one()
290 if (sizeof(struct tsc2046_adc_atom) * max_count > PAGE_SIZE) in tsc2046_adc_read_one()
293 struct tsc2046_adc_atom *tx_buf __free(kfree) = kcalloc(max_count, in tsc2046_adc_read_one()
299 struct tsc2046_adc_atom *rx_buf __free(kfree) = kcalloc(max_count, in tsc2046_adc_read_one()
311 for (i = 0; i < max_count - 1; i++) in tsc2046_adc_read_one()
320 xfer.len = sizeof(*tx_buf) * max_count; in tsc2046_adc_read_one()
337 for (i = 0; i < max_count - count_skip; i++) { in tsc2046_adc_read_one()
342 return DIV_ROUND_UP(val_normalized, max_count - count_skip); in tsc2046_adc_read_one()
351 unsigned int max_count, count_skip; in tsc2046_adc_group_set_layout() local
358 max_count = count_skip + ch->oversampling_ratio; in tsc2046_adc_group_set_layout()
362 cur->count = max_count; in tsc2046_adc_group_set_layout()
365 return sizeof(*priv->tx) * max_count; in tsc2046_adc_group_set_layout()