/linux/virt/kvm/ |
H A D | binary_stats.c | 59 ssize_t remain = size; in kvm_stats_read() local 70 len = min(len, remain); in kvm_stats_read() 73 remain = len; in kvm_stats_read() 84 copylen = min(copylen, remain); in kvm_stats_read() 89 remain -= copylen; in kvm_stats_read() 104 copylen = min(copylen, remain); in kvm_stats_read() 109 remain -= copylen; in kvm_stats_read() 122 copylen = min(copylen, remain); in kvm_stats_read() 127 remain -= copylen; in kvm_stats_read() 134 copylen = min(copylen, remain); in kvm_stats_read()
|
/linux/include/linux/ |
H A D | iov_iter.h | 28 size_t progress = 0, remain; in iterate_ubuf() local 30 remain = step(base + iter->iov_offset, 0, len, priv, priv2); in iterate_ubuf() 31 progress = len - remain; in iterate_ubuf() 48 size_t remain, consumed; in iterate_iovec() local 52 remain = step(p->iov_base + skip, progress, part, priv, priv2); in iterate_iovec() 53 consumed = part - remain; in iterate_iovec() 82 size_t remain, consumed; in iterate_kvec() local 86 remain = step(p->iov_base + skip, progress, part, priv, priv2); in iterate_kvec() 87 consumed = part - remain; in iterate_kvec() 116 size_t remain, consumed; in iterate_bvec() local [all …]
|
/linux/arch/um/kernel/skas/ |
H A D | uaccess.c | 98 long size, remain, n; in buffer_op() local 101 remain = len; in buffer_op() 105 remain = (n < 0 ? remain : 0); in buffer_op() 110 remain -= size; in buffer_op() 111 if (remain == 0) in buffer_op() 114 while (addr < ((addr + remain) & PAGE_MASK)) { in buffer_op() 117 remain = (n < 0 ? remain : 0); in buffer_op() 122 remain -= PAGE_SIZE; in buffer_op() 124 if (remain == 0) in buffer_op() 127 n = do_op_one_page(addr, remain, is_write, op, arg); in buffer_op() [all …]
|
/linux/arch/riscv/lib/ |
H A D | riscv_v_helpers.c | 22 size_t remain, copied; in enter_vector_usercopy() local 29 remain = __asm_vector_usercopy(dst, src, n); in enter_vector_usercopy() 32 if (remain) { in enter_vector_usercopy() 33 copied = n - remain; in enter_vector_usercopy() 36 n = remain; in enter_vector_usercopy() 40 return remain; in enter_vector_usercopy()
|
/linux/drivers/staging/fbtft/ |
H A D | fbtft-bus.c | 125 size_t remain; in fbtft_write_vmem16_bus8() local 132 remain = len / 2; in fbtft_write_vmem16_bus8() 151 while (remain) { in fbtft_write_vmem16_bus8() 152 to_copy = min(tx_array_size, remain); in fbtft_write_vmem16_bus8() 154 to_copy, remain - to_copy); in fbtft_write_vmem16_bus8() 164 remain -= to_copy; in fbtft_write_vmem16_bus8() 176 size_t remain; in fbtft_write_vmem16_bus9() local 187 remain = len; in fbtft_write_vmem16_bus9() 192 while (remain) { in fbtft_write_vmem16_bus9() 193 to_copy = min(tx_array_size, remain); in fbtft_write_vmem16_bus9() [all …]
|
H A D | fb_ra8875.c | 241 size_t remain; in write_vmem16_bus8() local 251 remain = len / 2; in write_vmem16_bus8() 259 while (remain) { in write_vmem16_bus8() 260 to_copy = min(tx_array_size, remain); in write_vmem16_bus8() 262 to_copy, remain - to_copy); in write_vmem16_bus8() 272 remain -= to_copy; in write_vmem16_bus8()
|
/linux/arch/um/drivers/ |
H A D | net_user.c | 52 int remain, ret, expected; in read_output() local 62 ret = read(fd, &remain, sizeof(remain)); in read_output() 64 if (ret != sizeof(remain)) { in read_output() 67 expected = sizeof(remain); in read_output() 72 while (remain != 0) { in read_output() 73 expected = (remain < len) ? remain : len; in read_output() 81 remain -= ret; in read_output()
|
H A D | umcast_kern.c | 73 char *port_str = NULL, *ttl_str = NULL, *remain; in mcast_setup() local 81 remain = split_if_spec(str, mac_out, &init->addr, &port_str, &ttl_str, in mcast_setup() 83 if (remain != NULL) { in mcast_setup() 85 "specification : '%s'\n", remain); in mcast_setup() 119 char *lport_str = NULL, *rport_str = NULL, *remain; in ucast_setup() local 127 remain = split_if_spec(str, mac_out, &init->addr, in ucast_setup() 129 if (remain != NULL) { in ucast_setup() 131 "specification : '%s'\n", remain); in ucast_setup()
|
H A D | vde_kern.c | 73 char *remain, *port_str = NULL, *mode_str = NULL, *last; in vde_setup() local 82 remain = split_if_spec(str, &init->vde_switch, mac_out, &port_str, in vde_setup() 85 if (remain != NULL) in vde_setup() 87 "'%s'\n", remain); in vde_setup()
|
H A D | daemon_kern.c | 64 char *remain; in daemon_setup() local 70 remain = split_if_spec(str, mac_out, &init->sock_type, &init->ctl_sock, in daemon_setup() 72 if (remain != NULL) in daemon_setup()
|
/linux/fs/adfs/ |
H A D | dir.c | 21 unsigned int index, remain; in adfs_dir_copyfrom() local 25 remain = sb->s_blocksize - offset; in adfs_dir_copyfrom() 26 if (index + (remain < len) >= dir->nr_buffers) in adfs_dir_copyfrom() 29 if (remain < len) { in adfs_dir_copyfrom() 30 memcpy(dst, dir->bhs[index]->b_data + offset, remain); in adfs_dir_copyfrom() 31 dst += remain; in adfs_dir_copyfrom() 32 len -= remain; in adfs_dir_copyfrom() 46 unsigned int index, remain; in adfs_dir_copyto() local 50 remain = sb->s_blocksize - offset; in adfs_dir_copyto() 51 if (index + (remain < len) >= dir->nr_buffers) in adfs_dir_copyto() [all …]
|
/linux/drivers/gpu/drm/qxl/ |
H A D | qxl_image.c | 136 int remain; in qxl_image_init_helper() local 141 remain = linesize * height; in qxl_image_init_helper() 145 while (remain > 0) { in qxl_image_init_helper() 156 size = min(size, remain); in qxl_image_init_helper() 162 remain -= size; in qxl_image_init_helper() 170 remain = linesize; in qxl_image_init_helper() 173 while (remain > 0) { in qxl_image_init_helper() 176 size = min((int)(PAGE_SIZE - page_offset), remain); in qxl_image_init_helper() 182 remain -= size; in qxl_image_init_helper()
|
/linux/drivers/gpu/drm/i915/ |
H A D | i915_ioctl.c | 49 int remain; in i915_reg_read_ioctl() local 53 remain = ARRAY_SIZE(reg_read_whitelist); in i915_reg_read_ioctl() 54 while (remain) { in i915_reg_read_ioctl() 65 remain--; in i915_reg_read_ioctl() 68 if (!remain) in i915_reg_read_ioctl()
|
H A D | i915_gem.c | 232 u64 remain; in i915_gem_shmem_pread() local 250 remain = args->size; in i915_gem_shmem_pread() 253 for (idx = args->offset >> PAGE_SHIFT; remain; idx++) { in i915_gem_shmem_pread() 255 unsigned int length = min_t(u64, remain, PAGE_SIZE - offset); in i915_gem_shmem_pread() 262 remain -= length; in i915_gem_shmem_pread() 384 unsigned long remain, offset; in i915_gem_gtt_pread() local 391 if (overflows_type(args->size, remain) || in i915_gem_gtt_pread() 404 remain = args->size; in i915_gem_gtt_pread() 407 while (remain > 0) { in i915_gem_gtt_pread() 417 page_length = remain < page_length ? remain : page_length; in i915_gem_gtt_pread() [all …]
|
/linux/drivers/gpu/drm/ |
H A D | drm_print.c | 84 if (!iterator->remain) in __drm_puts_coredump() 99 if (copy > iterator->remain) in __drm_puts_coredump() 100 copy = iterator->remain; in __drm_puts_coredump() 108 iterator->remain -= copy; in __drm_puts_coredump() 112 len = min_t(ssize_t, strlen(str), iterator->remain); in __drm_puts_coredump() 118 iterator->remain -= len; in __drm_puts_coredump() 129 if (!iterator->remain) in __drm_printfn_coredump() 142 if ((iterator->offset >= iterator->start) && (len < iterator->remain)) { in __drm_printfn_coredump() 147 iterator->remain, "%pV", vaf); in __drm_printfn_coredump() 150 iterator->remain -= len; in __drm_printfn_coredump()
|
/linux/drivers/media/usb/stk1160/ |
H A D | stk1160-video.c | 106 int remain; in stk1160_copy_video() local 121 remain = len; in stk1160_copy_video() 133 lencopy = min(remain, bytesperline - lineoff); in stk1160_copy_video() 146 remain = lencopy; in stk1160_copy_video() 150 if (lencopy == 0 || remain == 0) in stk1160_copy_video() 169 remain -= lencopy; in stk1160_copy_video() 172 while (remain > 0) { in stk1160_copy_video() 178 lencopy = min(remain, bytesperline); in stk1160_copy_video() 191 remain = lencopy; in stk1160_copy_video() 195 if (lencopy == 0 || remain == 0) in stk1160_copy_video() [all …]
|
/linux/drivers/gpu/drm/panel/ |
H A D | panel-samsung-s6e63m0-dsi.c | 43 int remain; in s6e63m0_dsi_dcs_write() local 53 remain = len - 1; in s6e63m0_dsi_dcs_write() 54 chunk = remain; in s6e63m0_dsi_dcs_write() 67 while (cmdwritten < remain) { in s6e63m0_dsi_dcs_write() 68 chunk = remain - cmdwritten; in s6e63m0_dsi_dcs_write()
|
/linux/drivers/acpi/apei/ |
H A D | bert.c | 51 int remain = region_len; in bert_print_all() local 55 while (remain >= sizeof(struct acpi_bert_region)) { in bert_print_all() 57 if (remain < estatus_len) { in bert_print_all() 89 remain -= estatus_len; in bert_print_all()
|
/linux/fs/netfs/ |
H A D | misc.c | 128 size_t remain = subreq->len - subreq->transferred; in netfs_reset_iter() local 130 if (io_iter->count > remain) in netfs_reset_iter() 131 iov_iter_advance(io_iter, io_iter->count - remain); in netfs_reset_iter() 132 else if (io_iter->count < remain) in netfs_reset_iter() 133 iov_iter_revert(io_iter, remain - io_iter->count); in netfs_reset_iter() 134 iov_iter_truncate(&subreq->io_iter, remain); in netfs_reset_iter()
|
/linux/drivers/usb/gadget/udc/aspeed-vhub/ |
H A D | ep0.c | 238 unsigned int remain; in ast_vhub_ep0_do_receive() local 242 remain = req->req.length - req->req.actual; in ast_vhub_ep0_do_receive() 244 EPVDBG(ep, "receive got=%d remain=%d\n", len, remain); in ast_vhub_ep0_do_receive() 247 if (len > remain) { in ast_vhub_ep0_do_receive() 249 len - remain); in ast_vhub_ep0_do_receive() 250 len = remain; in ast_vhub_ep0_do_receive() 255 if (len < ep->ep.maxpacket && len != remain) { in ast_vhub_ep0_do_receive() 257 len = remain; in ast_vhub_ep0_do_receive() 265 if (len < ep->ep.maxpacket || len == remain) { in ast_vhub_ep0_do_receive()
|
/linux/drivers/gpu/drm/xe/ |
H A D | xe_guc_ads.c | 293 u32 *offset, u32 *remain) in guc_waklv_enable_one_word() argument 306 if (*remain < size) { in guc_waklv_enable_one_word() 313 *remain -= size; in guc_waklv_enable_one_word() 318 enum xe_guc_klv_ids klv_id, u32 *offset, u32 *remain) in guc_waklv_enable_simple() argument 330 if (xe_gt_WARN(ads_to_gt(ads), *remain < size, in guc_waklv_enable_simple() 337 *remain -= size; in guc_waklv_enable_simple() 344 u32 offset, remain, size; in guc_waklv_init() local 347 remain = guc_ads_waklv_size(ads); in guc_waklv_init() 352 &offset, &remain); in guc_waklv_init() 356 &offset, &remain); in guc_waklv_init() [all …]
|
/linux/lib/ |
H A D | genalloc.c | 283 unsigned long nbits, start_bit, end_bit, remain; in gen_pool_alloc_algo_owner() local 308 remain = bitmap_set_ll(chunk->bits, start_bit, nbits); in gen_pool_alloc_algo_owner() 309 if (remain) { in gen_pool_alloc_algo_owner() 310 remain = bitmap_clear_ll(chunk->bits, start_bit, in gen_pool_alloc_algo_owner() 311 nbits - remain); in gen_pool_alloc_algo_owner() 312 BUG_ON(remain); in gen_pool_alloc_algo_owner() 492 unsigned long start_bit, nbits, remain; in gen_pool_free_owner() local 507 remain = bitmap_clear_ll(chunk->bits, start_bit, nbits); in gen_pool_free_owner() 508 BUG_ON(remain); in gen_pool_free_owner()
|
/linux/fs/ocfs2/ |
H A D | filecheck.c | 303 ssize_t ret = 0, total = 0, remain = PAGE_SIZE; in ocfs2_filecheck_attr_show() local 314 total = snprintf(buf, remain, "%u\n", ent->fs_fcheck->fc_max); in ocfs2_filecheck_attr_show() 319 ret = snprintf(buf, remain, "INO\t\tDONE\tERROR\n"); in ocfs2_filecheck_attr_show() 321 remain -= ret; in ocfs2_filecheck_attr_show() 327 ret = snprintf(buf + total, remain, "%lu\t\t%u\t%s\n", in ocfs2_filecheck_attr_show() 330 if (ret >= remain) { in ocfs2_filecheck_attr_show() 336 remain -= ret; in ocfs2_filecheck_attr_show()
|
/linux/drivers/misc/mei/ |
H A D | vsc-fw-loader.c | 586 size_t remain; in vsc_download_bootloader() local 614 remain = frag->size; in vsc_download_bootloader() 617 while (remain > 0) { in vsc_download_bootloader() 618 len = min(remain, sizeof(cmd->data.dl_cont.payload)); in vsc_download_bootloader() 623 cmd->data.dl_cont.end_flag = remain == len; in vsc_download_bootloader() 631 remain -= len; in vsc_download_bootloader() 666 u32 remain; in vsc_download_firmware() local 683 remain = frag->size; in vsc_download_firmware() 686 while (remain > 0) { in vsc_download_firmware() 687 u32 len = min(remain, VSC_FW_PKG_SIZE); in vsc_download_firmware() [all …]
|
/linux/arch/alpha/lib/ |
H A D | memchr.S | 72 # Deal with the case where at most 8 bytes remain to be searched 103 # Deal with the case where $18 > 8 bytes remain to be 127 # At least two quads remain to be accessed. 133 # At least three quads remain to be accessed
|