/kernel/linux/linux-5.10/arch/um/kernel/skas/ |
H A D | uaccess.c | 97 long size, remain, n; in buffer_op() local 100 remain = len; in buffer_op() 104 remain = (n < 0 ? remain : 0); in buffer_op() 109 remain -= size; in buffer_op() 110 if (remain == 0) in buffer_op() 113 while (addr < ((addr + remain) & PAGE_MASK)) { in buffer_op() 116 remain = (n < 0 ? remain : 0); in buffer_op() 121 remain in buffer_op() [all...] |
/kernel/liteos_a/lib/libscrew/src/ |
H A D | los_cir_buf.c | 42 size = cirbufCB->size - cirbufCB->remain; in LOS_CirBufUsedSize() 60 cpSize = (cirbufCB->remain < size) ? cirbufCB->remain : size; in OsCirBufWriteLinear() 66 err = memcpy_s(cirbufCB->fifo + cirbufCB->endIdx, cirbufCB->remain, buf, cpSize); in OsCirBufWriteLinear() 71 cirbufCB->remain -= cpSize; in OsCirBufWriteLinear() 90 cirbufCB->remain -= cpSize; in OsCirBufWriteLoop() 116 if ((cirbufCB->fifo == NULL) || (cirbufCB->remain == 0)) { in LOS_CirBufWrite() 133 UINT32 cpSize, remain; in OsCirBufReadLinear() local 136 remain = cirbufCB->endIdx - cirbufCB->startIdx; in OsCirBufReadLinear() 137 cpSize = (remain < siz in OsCirBufReadLinear() [all...] |
/kernel/linux/linux-6.6/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() 78 * The pos is 0 and the copylen and remain would be the size of header. 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 in kvm_stats_read() [all...] |
/kernel/linux/linux-6.6/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 in buffer_op() [all...] |
/kernel/linux/linux-5.10/arch/mips/netlogic/xlr/ |
H A D | setup.c | 105 int i, remain, len; in build_arcs_cmdline() local 108 remain = sizeof(arcs_cmdline) - 1; in build_arcs_cmdline() 113 if (len + 1 > remain) in build_arcs_cmdline() 117 remain -= len + 1; in build_arcs_cmdline() 124 if (len > remain) in build_arcs_cmdline() 127 remain -= len; in build_arcs_cmdline() 133 if (len > remain) in build_arcs_cmdline() 136 remain -= len; in build_arcs_cmdline()
|
/kernel/linux/linux-5.10/arch/um/drivers/ |
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 | 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()
|
/kernel/linux/linux-6.6/arch/um/drivers/ |
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 | 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()
|
/kernel/linux/linux-5.10/drivers/staging/fbtft/ |
H A D | fbtft-bus.c | 125 size_t remain; in fbtft_write_vmem16_bus8() local 135 remain = len / 2; in fbtft_write_vmem16_bus8() 154 while (remain) { in fbtft_write_vmem16_bus8() 155 to_copy = min(tx_array_size, remain); in fbtft_write_vmem16_bus8() 156 dev_dbg(par->info->device, "to_copy=%zu, remain=%zu\n", in fbtft_write_vmem16_bus8() 157 to_copy, remain - to_copy); in fbtft_write_vmem16_bus8() 167 remain -= to_copy; in fbtft_write_vmem16_bus8() 179 size_t remain; in fbtft_write_vmem16_bus9() local 193 remain = len; in fbtft_write_vmem16_bus9() 198 while (remain) { in fbtft_write_vmem16_bus9() [all...] |
/kernel/linux/linux-6.6/drivers/staging/fbtft/ |
H A D | fbtft-bus.c | 125 size_t remain; in fbtft_write_vmem16_bus8() local 135 remain = len / 2; in fbtft_write_vmem16_bus8() 154 while (remain) { in fbtft_write_vmem16_bus8() 155 to_copy = min(tx_array_size, remain); in fbtft_write_vmem16_bus8() 156 dev_dbg(par->info->device, "to_copy=%zu, remain=%zu\n", in fbtft_write_vmem16_bus8() 157 to_copy, remain - to_copy); in fbtft_write_vmem16_bus8() 167 remain -= to_copy; in fbtft_write_vmem16_bus8() 179 size_t remain; in fbtft_write_vmem16_bus9() local 193 remain = len; in fbtft_write_vmem16_bus9() 198 while (remain) { in fbtft_write_vmem16_bus9() [all...] |
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/drivers/remoteproc/ |
H A D | mtk_scp_ipi.c | 86 unsigned int i = 0, remain; in scp_memcpy_aligned() local 97 remain = (len - i) % 4; in scp_memcpy_aligned() 99 if (remain > 0) { in scp_memcpy_aligned() 100 val = readl_relaxed(dst + len - remain); in scp_memcpy_aligned() 101 memcpy(&val, src + len - remain, remain); in scp_memcpy_aligned() 102 writel_relaxed(val, dst + len - remain); in scp_memcpy_aligned()
|
/kernel/linux/linux-6.6/drivers/remoteproc/ |
H A D | mtk_scp_ipi.c | 90 unsigned int i = 0, remain; in scp_memcpy_aligned() local 101 remain = (len - i) % 4; in scp_memcpy_aligned() 103 if (remain > 0) { in scp_memcpy_aligned() 104 val = readl_relaxed(dst + len - remain); in scp_memcpy_aligned() 105 memcpy(&val, src + len - remain, remain); in scp_memcpy_aligned() 106 writel_relaxed(val, dst + len - remain); in scp_memcpy_aligned()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
H A D | drm_print.c | 62 if (!iterator->remain) in __drm_puts_coredump() 77 if (copy > iterator->remain) in __drm_puts_coredump() 78 copy = iterator->remain; in __drm_puts_coredump() 85 iterator->remain -= copy; in __drm_puts_coredump() 89 len = min_t(ssize_t, strlen(str), iterator->remain); in __drm_puts_coredump() 94 iterator->remain -= len; in __drm_puts_coredump() 105 if (!iterator->remain) in __drm_printfn_coredump() 118 if ((iterator->offset >= iterator->start) && (len < iterator->remain)) { in __drm_printfn_coredump() 122 iterator->remain, "%pV", vaf); in __drm_printfn_coredump() 125 iterator->remain in __drm_printfn_coredump() [all...] |
/kernel/linux/linux-6.6/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() 107 iterator->remain -= copy; in __drm_puts_coredump() 111 len = min_t(ssize_t, strlen(str), iterator->remain); in __drm_puts_coredump() 116 iterator->remain -= len; in __drm_puts_coredump() 127 if (!iterator->remain) in __drm_printfn_coredump() 140 if ((iterator->offset >= iterator->start) && (len < iterator->remain)) { in __drm_printfn_coredump() 144 iterator->remain, "%pV", vaf); in __drm_printfn_coredump() 147 iterator->remain in __drm_printfn_coredump() [all...] |
/kernel/linux/linux-5.10/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 < le in adfs_dir_copyto() [all...] |
/kernel/linux/linux-6.6/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 < le in adfs_dir_copyto() [all...] |
/kernel/linux/linux-5.10/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 if (remain < (bytesperline - lineoff)) in stk1160_copy_video() 134 lencopy = remain; in stk1160_copy_video() 144 remain = lencopy; in stk1160_copy_video() 148 if (lencopy == 0 || remain == 0) in stk1160_copy_video() 167 remain -= lencopy; in stk1160_copy_video() 170 while (remain > 0) { in stk1160_copy_video() 176 if (remain < bytesperline) in stk1160_copy_video() 177 lencopy = remain; in stk1160_copy_video() [all...] |
/kernel/linux/linux-6.6/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 if (remain < (bytesperline - lineoff)) in stk1160_copy_video() 134 lencopy = remain; in stk1160_copy_video() 144 remain = lencopy; in stk1160_copy_video() 148 if (lencopy == 0 || remain == 0) in stk1160_copy_video() 167 remain -= lencopy; in stk1160_copy_video() 170 while (remain > 0) { in stk1160_copy_video() 176 if (remain < bytesperline) in stk1160_copy_video() 177 lencopy = remain; in stk1160_copy_video() [all...] |
/kernel/linux/linux-5.10/drivers/staging/rtl8188eu/hal/ |
H A D | fw.c | 48 u32 i, write_address, blk_cnt, remain; in _rtl88e_fw_block_write() local 51 remain = size % blk_sz; in _rtl88e_fw_block_write() 59 for (i = 0; i < remain; i++, write_address++) in _rtl88e_fw_block_write() 78 u32 page_no, remain; in _rtl88e_write_fw() local 82 remain = size % FW_8192C_PAGE_SIZE; in _rtl88e_write_fw() 90 if (remain) { in _rtl88e_write_fw() 93 _rtl88e_fw_page_write(adapt, page, (buf_ptr + offset), remain); in _rtl88e_write_fw()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/panel/ |
H A D | panel-samsung-s6e63m0-dsi.c | 41 int remain; in s6e63m0_dsi_dcs_write() local 51 remain = len - 1; in s6e63m0_dsi_dcs_write() 52 chunk = remain; in s6e63m0_dsi_dcs_write() 65 while (cmdwritten < remain) { in s6e63m0_dsi_dcs_write() 66 chunk = remain - cmdwritten; in s6e63m0_dsi_dcs_write()
|
/kernel/linux/linux-6.6/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()
|