Lines Matching refs:count
233 ssize_t count = 0;
236 count += sprintf(buf, "aat2870 registers\n");
238 count += sprintf(buf + count, "0x%02x: ", addr);
239 if (count >= PAGE_SIZE - 1)
244 count += snprintf(buf + count, PAGE_SIZE - count,
247 count += snprintf(buf + count, PAGE_SIZE - count,
250 if (count >= PAGE_SIZE - 1)
253 count += snprintf(buf + count, PAGE_SIZE - count, "\n");
254 if (count >= PAGE_SIZE - 1)
258 /* Truncate count; min() would cause a warning */
259 if (count >= PAGE_SIZE)
260 count = PAGE_SIZE - 1;
262 return count;
273 size_t count, loff_t *ppos)
285 ret = simple_read_from_buffer(user_buf, count, ppos, buf, ret);
293 const char __user *user_buf, size_t count,
303 buf_size = min(count, (sizeof(buf)-1));