Lines Matching defs:bytes
1102 * @bytes: bytes to access from offset
1104 * Check that the @offset/@bytes are within the size of the given
1118 binder_size_t offset, size_t bytes)
1122 return buffer_size >= bytes &&
1123 offset <= buffer_size - bytes &&
1174 size_t bytes = binder_alloc_buffer_size(alloc, buffer);
1177 while (bytes) {
1185 size = min_t(size_t, bytes, PAGE_SIZE - pgoff);
1189 bytes -= size;
1200 * @bytes: bytes to copy
1202 * Copy bytes from source userspace to target buffer.
1204 * Return: bytes remaining to be copied
1211 size_t bytes)
1213 if (!check_buffer(alloc, buffer, buffer_offset, bytes))
1214 return bytes;
1216 while (bytes) {
1225 size = min_t(size_t, bytes, PAGE_SIZE - pgoff);
1230 return bytes - size + ret;
1231 bytes -= size;
1243 size_t bytes)
1246 if (!check_buffer(alloc, buffer, buffer_offset, bytes))
1249 while (bytes) {
1258 size = min_t(size_t, bytes, PAGE_SIZE - pgoff);
1270 bytes -= size;
1282 size_t bytes)
1285 src, bytes);
1292 size_t bytes)
1295 dest, bytes);