Home
last modified time | relevance | path

Searched refs:remain (Results 1 – 25 of 322) sorted by relevance

12345678910>>...13

/kernel/linux/linux-5.10/arch/um/kernel/skas/
Duaccess.c97 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 -= PAGE_SIZE; in buffer_op()
123 if (remain == 0) in buffer_op()
126 n = do_op_one_page(addr, remain, is_write, op, arg); in buffer_op()
[all …]
/kernel/liteos_a/lib/libscrew/src/
Dlos_cir_buf.c42 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 < size) ? remain : size; in OsCirBufReadLinear()
148 cirbufCB->remain += cpSize; in OsCirBufReadLinear()
[all …]
/kernel/linux/linux-5.10/arch/mips/netlogic/xlr/
Dsetup.c105 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/drivers/staging/fbtft/
Dfbtft-bus.c125 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()
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()
199 to_copy = min(tx_array_size, remain); in fbtft_write_vmem16_bus9()
[all …]
Dfb_ra8875.c248 size_t remain; in write_vmem16_bus8() local
258 remain = len / 2; in write_vmem16_bus8()
266 while (remain) { in write_vmem16_bus8()
267 to_copy = min(tx_array_size, remain); in write_vmem16_bus8()
269 to_copy, remain - to_copy); in write_vmem16_bus8()
279 remain -= to_copy; in write_vmem16_bus8()
/kernel/linux/linux-5.10/arch/um/drivers/
Dumcast_kern.c73 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()
Dnet_user.c52 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()
Dpcap_kern.c56 char *remain, *host_if = NULL, *options[2] = { NULL, NULL }; in pcap_setup() local
65 remain = split_if_spec(str, &host_if, &init->filter, in pcap_setup()
67 if (remain != NULL) { in pcap_setup()
69 "specification : '%s'\n", remain); in pcap_setup()
Dvde_kern.c73 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()
Ddaemon_kern.c64 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()
/kernel/linux/linux-5.10/drivers/gpu/drm/
Ddrm_print.c62 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 -= len; in __drm_printfn_coredump()
/kernel/linux/linux-5.10/drivers/gpu/drm/qxl/
Dqxl_image.c136 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-5.10/fs/adfs/
Ddir.c21 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 …]
/kernel/linux/linux-5.10/drivers/media/usb/stk1160/
Dstk1160-video.c106 int remain; in stk1160_copy_video() local
122 remain = len; in stk1160_copy_video()
134 if (remain < (bytesperline - lineoff)) in stk1160_copy_video()
135 lencopy = remain; in stk1160_copy_video()
145 remain = lencopy; in stk1160_copy_video()
149 if (lencopy == 0 || remain == 0) in stk1160_copy_video()
168 remain -= lencopy; in stk1160_copy_video()
171 while (remain > 0) { in stk1160_copy_video()
177 if (remain < bytesperline) in stk1160_copy_video()
178 lencopy = remain; in stk1160_copy_video()
[all …]
/kernel/linux/linux-5.10/drivers/remoteproc/
Dmtk_scp_ipi.c86 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-5.10/drivers/staging/rtl8188eu/hal/
Dfw.c48 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/
Dpanel-samsung-s6e63m0-dsi.c41 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-5.10/drivers/acpi/apei/
Dbert.c50 int remain = region_len; in bert_print_all() local
54 while (remain >= sizeof(struct acpi_bert_region)) { in bert_print_all()
56 if (remain < estatus_len) { in bert_print_all()
88 remain -= estatus_len; in bert_print_all()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/
Di915_gem.c311 u64 remain; in i915_gem_shmem_pread() local
331 remain = args->size; in i915_gem_shmem_pread()
334 for (idx = args->offset >> PAGE_SHIFT; remain; idx++) { in i915_gem_shmem_pread()
336 unsigned int length = min_t(u64, remain, PAGE_SIZE - offset); in i915_gem_shmem_pread()
343 remain -= length; in i915_gem_shmem_pread()
387 u64 remain, offset; in i915_gem_gtt_pread() local
425 remain = args->size; in i915_gem_gtt_pread()
428 while (remain > 0) { in i915_gem_gtt_pread()
438 page_length = remain < page_length ? remain : page_length; in i915_gem_gtt_pread()
453 remain -= page_length; in i915_gem_gtt_pread()
[all …]
/kernel/linux/linux-5.10/drivers/mmc/host/
Dmoxart-mmc.c164 int remain; in moxart_next_sg() local
172 remain = host->data_len - data->bytes_xfered; in moxart_next_sg()
173 if (remain > 0 && remain < host->data_remain) in moxart_next_sg()
174 host->data_remain = remain; in moxart_next_sg()
309 u32 *sgp, len = 0, remain, status; in moxart_transfer_pio() local
315 remain = host->data_remain; in moxart_transfer_pio()
318 while (remain > 0) { in moxart_transfer_pio()
325 for (len = 0; len < remain && len < host->fifo_width;) { in moxart_transfer_pio()
330 remain -= len; in moxart_transfer_pio()
334 while (remain > 0) { in moxart_transfer_pio()
[all …]
/kernel/linux/linux-5.10/drivers/spi/
Dspi-sh.c157 int remain = t->len; in spi_sh_send() local
166 while (remain > 0) { in spi_sh_send()
167 cur_len = min(SPI_SH_FIFO_SIZE, remain); in spi_sh_send()
184 remain -= cur_len; in spi_sh_send()
187 if (remain > 0) { in spi_sh_send()
222 int remain = t->len; in spi_sh_receive() local
238 while (remain > 0) { in spi_sh_receive()
239 if (remain >= SPI_SH_FIFO_SIZE) { in spi_sh_receive()
252 cur_len = min(SPI_SH_FIFO_SIZE, remain); in spi_sh_receive()
259 remain -= cur_len; in spi_sh_receive()
/kernel/linux/linux-5.10/arch/powerpc/kernel/
Dudbg.c102 int remain = n; in udbg_write() local
109 while (((c = *s++) != '\0') && (remain-- > 0)) { in udbg_write()
117 return n - remain; in udbg_write()
/kernel/linux/linux-5.10/drivers/staging/gasket/
Dgasket_page_table.c645 uint slot_idx, remain, len; in gasket_unmap_extended_pages() local
649 remain = num_pages; in gasket_unmap_extended_pages()
654 while (remain > 0) { in gasket_unmap_extended_pages()
656 len = min(remain, GASKET_PAGES_PER_SUBTABLE - slot_idx); in gasket_unmap_extended_pages()
666 remain -= len; in gasket_unmap_extended_pages()
912 uint remain, subtable_slot_idx, len; in gasket_alloc_extended_entries() local
916 remain = num_entries; in gasket_alloc_extended_entries()
923 while (remain > 0) { in gasket_alloc_extended_entries()
924 len = min(remain, in gasket_alloc_extended_entries()
940 remain -= len; in gasket_alloc_extended_entries()
[all …]
/kernel/linux/linux-5.10/lib/
Dgenalloc.c282 unsigned long nbits, start_bit, end_bit, remain; in gen_pool_alloc_algo_owner() local
307 remain = bitmap_set_ll(chunk->bits, start_bit, nbits); in gen_pool_alloc_algo_owner()
308 if (remain) { in gen_pool_alloc_algo_owner()
309 remain = bitmap_clear_ll(chunk->bits, start_bit, in gen_pool_alloc_algo_owner()
310 nbits - remain); in gen_pool_alloc_algo_owner()
311 BUG_ON(remain); in gen_pool_alloc_algo_owner()
491 unsigned long start_bit, nbits, remain; in gen_pool_free_owner() local
506 remain = bitmap_clear_ll(chunk->bits, start_bit, nbits); in gen_pool_free_owner()
507 BUG_ON(remain); in gen_pool_free_owner()
/kernel/linux/linux-5.10/fs/ocfs2/
Dfilecheck.c304 ssize_t ret = 0, total = 0, remain = PAGE_SIZE; in ocfs2_filecheck_attr_show() local
315 total = snprintf(buf, remain, "%u\n", ent->fs_fcheck->fc_max); in ocfs2_filecheck_attr_show()
320 ret = snprintf(buf, remain, "INO\t\tDONE\tERROR\n"); in ocfs2_filecheck_attr_show()
322 remain -= ret; in ocfs2_filecheck_attr_show()
328 ret = snprintf(buf + total, remain, "%lu\t\t%u\t%s\n", in ocfs2_filecheck_attr_show()
331 if (ret >= remain) { in ocfs2_filecheck_attr_show()
337 remain -= ret; in ocfs2_filecheck_attr_show()

12345678910>>...13