Lines Matching defs:bytes
1103 * @bytes: bytes to access from offset
1105 * Check that the @offset/@bytes are within the size of the given
1119 binder_size_t offset, size_t bytes)
1123 return buffer_size >= bytes &&
1124 offset <= buffer_size - bytes &&
1175 size_t bytes = binder_alloc_buffer_size(alloc, buffer);
1178 while (bytes) {
1185 size = min_t(size_t, bytes, PAGE_SIZE - pgoff);
1187 bytes -= size;
1198 * @bytes: bytes to copy
1200 * Copy bytes from source userspace to target buffer.
1202 * Return: bytes remaining to be copied
1209 size_t bytes)
1211 if (!check_buffer(alloc, buffer, buffer_offset, bytes))
1212 return bytes;
1214 while (bytes) {
1223 size = min_t(size_t, bytes, PAGE_SIZE - pgoff);
1228 return bytes - size + ret;
1229 bytes -= size;
1241 size_t bytes)
1244 if (!check_buffer(alloc, buffer, buffer_offset, bytes))
1247 while (bytes) {
1254 size = min_t(size_t, bytes, PAGE_SIZE - pgoff);
1259 bytes -= size;
1271 size_t bytes)
1274 src, bytes);
1281 size_t bytes)
1284 dest, bytes);