Lines Matching defs:size

82 		     "%d: add free buffer, size %zd, at %pK\n",
344 * Find the amount and size of buffers allocated by the current caller;
368 * async space (which is 25% of total buffer size).
372 "%d: pid %d spamming oneway? %zd buffers allocated for a total size of %zd\n",
391 size_t size, data_offsets_size;
406 "%d: got transaction with invalid size %zd-%zd\n",
410 size = data_offsets_size + ALIGN(extra_buffers_size, sizeof(void *));
411 if (size < data_offsets_size || size < extra_buffers_size) {
418 /* Pad 0-size buffers so they get assigned unique addresses */
419 size = max(size, sizeof(void *));
421 if (is_async && alloc->free_async_space < size) {
423 "%d: binder_alloc_buf size %zd failed, no async space left\n",
424 alloc->pid, size);
433 if (size < buffer_size) {
436 } else if (size > buffer_size)
470 "%d: binder_alloc_buf size %zd failed, no address space\n",
471 alloc->pid, size);
485 "%d: binder_alloc_buf size %zd got buffer %pK size %zd\n",
486 alloc->pid, size, buffer, buffer_size);
490 WARN_ON(n && buffer_size != size);
492 (void __user *)PAGE_ALIGN((uintptr_t)buffer->user_data + size);
500 if (buffer_size != size) {
509 new_buffer->user_data = (u8 __user *)buffer->user_data + size;
520 "%d: binder_alloc_buf size %zd got %pK\n",
521 alloc->pid, size, buffer);
528 alloc->free_async_space -= size;
530 "%d: binder_alloc_buf size %zd async free %zd\n",
531 alloc->pid, size, alloc->free_async_space);
536 * buffer size).
553 * @data_size: size of user data buffer
555 * @extra_buffers_size: size of extra space for meta-data (eg, security context)
560 * the kernel version of the buffer pointer. The size allocated
645 size_t size, buffer_size;
649 size = ALIGN(buffer->data_size, sizeof(void *)) +
654 "%d: binder_free_buf %pK size %zd buffer_size %zd\n",
655 alloc->pid, buffer, size, buffer_size);
658 BUG_ON(size > buffer_size);
666 "%d: binder_free_buf size %zd async free %zd\n",
667 alloc->pid, size, alloc->free_async_space);
870 seq_printf(m, "%s %d: %pK size %zd:%zd:%zd %s\n",
1104 * Check that the @offset/@bytes are within the size of the given
1178 unsigned long size;
1185 size = min_t(size_t, bytes, PAGE_SIZE - pgoff);
1187 memset(kptr, 0, size);
1189 bytes -= size;
1190 buffer_offset += size;
1217 unsigned long size;
1225 size = min_t(size_t, bytes, PAGE_SIZE - pgoff);
1227 ret = copy_from_user(kptr, from, size);
1230 return bytes - size + ret;
1231 bytes -= size;
1232 from += size;
1233 buffer_offset += size;
1245 /* All copies must be 32-bit aligned and 32-bit size */
1250 unsigned long size;
1258 size = min_t(size_t, bytes, PAGE_SIZE - pgoff);
1262 memcpy(tmpptr, ptr, size);
1264 memcpy(ptr, tmpptr, size);
1270 bytes -= size;
1272 ptr = ptr + size;
1273 buffer_offset += size;