Lines Matching refs:count
45 ssize_t count;
52 count = seq_get_buf(sf, &buf);
53 if (count < PAGE_SIZE) {
59 count = ops->show(kobj, of->kn->priv, buf);
60 if (count < 0)
61 return count;
67 if (count >= (ssize_t)PAGE_SIZE) {
68 printk("fill_read_buffer: %pS returned bad count\n",
71 count = PAGE_SIZE - 1;
73 seq_commit(sf, count);
78 size_t count, loff_t pos)
84 if (!count)
90 if (pos + count > size)
91 count = size - pos;
97 return battr->read(of->file, kobj, battr, buf, pos, count);
102 size_t count, loff_t pos)
123 return min_t(ssize_t, count, len);
128 size_t count, loff_t pos)
133 if (!count)
136 return ops->store(kobj, of->kn->priv, buf, count);
141 size_t count, loff_t pos)
150 count = min_t(ssize_t, count, size - pos);
152 if (!count)
158 return battr->write(of->file, kobj, battr, buf, pos, count);