Lines Matching refs:max_count
278 int ret, i, count_skip = 0, max_count;
285 max_count = count_skip + ch->oversampling_ratio;
287 max_count = 1;
290 if (sizeof(*tx_buf) * max_count > PAGE_SIZE)
293 tx_buf = kcalloc(max_count, sizeof(*tx_buf), GFP_KERNEL);
297 rx_buf = kcalloc(max_count, sizeof(*rx_buf), GFP_KERNEL);
309 for (i = 0; i < max_count - 1; i++)
318 xfer.len = sizeof(*tx_buf) * max_count;
335 for (i = 0; i < max_count - count_skip; i++) {
340 ret = DIV_ROUND_UP(val_normalized, max_count - count_skip);
356 unsigned int max_count, count_skip;
363 max_count = count_skip + ch->oversampling_ratio;
367 cur->count = max_count;
370 return sizeof(*priv->tx) * max_count;