Lines Matching defs:count
94 size_t count, loff_t *pos)
105 __func__, __LINE__, count, *pos, userbuf, kernelbuf);
108 if (*pos >= size || !count)
111 if (*pos + count > size) {
113 "%s:%u Truncating count from %zu to %llu\n", __func__,
114 __LINE__, count, size - *pos);
115 count = size - *pos;
121 remaining = count;
155 return count;
163 const void *kernelbuf, size_t count, loff_t *pos)
174 __func__, __LINE__, count, *pos, userbuf, kernelbuf);
177 if (*pos >= size || !count)
180 if (*pos + count > size) {
182 "%s:%u Truncating count from %zu to %llu\n", __func__,
183 __LINE__, count, size - *pos);
184 count = size - *pos;
190 remaining = count;
230 return count;
238 size_t count, loff_t *pos)
240 return ps3flash_read(buf, NULL, count, pos);
244 size_t count, loff_t *pos)
246 return ps3flash_write(buf, NULL, count, pos);
249 static ssize_t ps3flash_kernel_read(void *buf, size_t count, loff_t pos)
251 return ps3flash_read(NULL, buf, count, &pos);
254 static ssize_t ps3flash_kernel_write(const void *buf, size_t count,
260 res = ps3flash_write(NULL, buf, count, &pos);