Home
last modified time | relevance | path

Searched full:remain (Results 1 – 25 of 1018) sorted by relevance

12345678910>>...41

/linux/include/linux/
H A Diov_iter.h28 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, consume in iterate_bvec() local
163 size_t part, remain, consumed; iterate_folioq() local
213 size_t remain, consumed, offset, part, flen; iterate_xarray() local
[all...]
/linux/virt/kvm/
H A Dbinary_stats.c59 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 -= copylen; in kvm_stats_read()
[all …]
/linux/arch/um/kernel/skas/
H A Duaccess.c98 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/drivers/staging/fbtft/
H A Dfbtft-bus.c125 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()
153 dev_dbg(par->info->device, "to_copy=%zu, remain=%zu\n", 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()
[all …]
H A Dfb_ra8875.c241 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()
261 dev_dbg(par->info->device, " to_copy=%zu, remain=%zu\n", in write_vmem16_bus8()
262 to_copy, remain - to_copy); in write_vmem16_bus8()
272 remain -= to_copy; in write_vmem16_bus8()
/linux/arch/riscv/lib/
H A Driscv_v_helpers.c25 size_t remain, copied; in enter_vector_usercopy() local
32 remain = enable_sum ? __asm_vector_usercopy(dst, src, n) : in enter_vector_usercopy()
36 if (remain) { in enter_vector_usercopy()
37 copied = n - remain; in enter_vector_usercopy()
40 n = remain; in enter_vector_usercopy()
44 return remain; in enter_vector_usercopy()
/linux/fs/adfs/
H A 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 …]
/linux/drivers/gpu/drm/qxl/
H A 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()
/linux/drivers/gpu/drm/xe/
H A Dxe_guc_log.c70 size_t remain; in xe_guc_log_snapshot_alloc() local
90 remain = snapshot->size; in xe_guc_log_snapshot_alloc()
92 size_t size = min(GUC_LOG_CHUNK_SIZE, remain); in xe_guc_log_snapshot_alloc()
97 remain -= size; in xe_guc_log_snapshot_alloc()
149 size_t remain; in xe_guc_log_snapshot_capture() local
159 remain = snapshot->size; in xe_guc_log_snapshot_capture()
161 size_t size = min(GUC_LOG_CHUNK_SIZE, remain); in xe_guc_log_snapshot_capture()
165 remain -= size; in xe_guc_log_snapshot_capture()
191 size_t remain; in xe_guc_log_snapshot_print() local
208 remain = snapshot->size; in xe_guc_log_snapshot_print()
[all …]
H A Dxe_guc_ads.c290 u32 *offset, u32 *remain) in guc_waklv_enable_one_word() argument
303 if (*remain < size) { in guc_waklv_enable_one_word()
310 *remain -= size; in guc_waklv_enable_one_word()
315 enum xe_guc_klv_ids klv_id, u32 *offset, u32 *remain) in guc_waklv_enable_simple() argument
327 if (xe_gt_WARN(ads_to_gt(ads), *remain < size, in guc_waklv_enable_simple()
334 *remain -= size; in guc_waklv_enable_simple()
341 u32 offset, remain, size; in guc_waklv_init() local
344 remain = guc_ads_waklv_size(ads); in guc_waklv_init()
349 &offset, &remain); in guc_waklv_init()
353 &offset, &remain); in guc_waklv_init()
[all …]
/linux/drivers/gpu/drm/i915/
H A Di915_ioctl.c49 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()
/linux/drivers/mmc/host/
H A 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()
313 u32 *sgp, len = 0, remain, status; in moxart_transfer_pio() local
319 remain = host->data_remain; in moxart_transfer_pio()
322 while (remain > 0) { in moxart_transfer_pio()
329 for (len = 0; len < remain && len < host->fifo_width;) { in moxart_transfer_pio()
334 remain -= len; in moxart_transfer_pio()
338 while (remain > 0) { in moxart_transfer_pio()
[all …]
/linux/drivers/media/usb/stk1160/
H A Dstk1160-video.c106 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 Dpanel-samsung-s6e63m0-dsi.c43 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/staging/gpib/common/
H A Dgpib_os.c877 unsigned long remain; in read_ioctl() local
901 remain = read_cmd.requested_transfer_count - read_cmd.completed_transfer_count; in read_ioctl()
904 if (!access_ok(userbuf, remain)) in read_ioctl()
910 while (remain > 0 && end_flag == 0) { in read_ioctl()
912 read_ret = ibrd(board, board->buffer, (board->buffer_length < remain) ? in read_ioctl()
913 board->buffer_length : remain, &end_flag, &nbytes); in read_ioctl()
921 remain -= nbytes; in read_ioctl()
926 read_cmd.completed_transfer_count = read_cmd.requested_transfer_count - remain; in read_ioctl()
934 if (remain == 0 || end_flag) in read_ioctl()
953 unsigned long remain; in command_ioctl() local
[all …]
/linux/drivers/usb/gadget/udc/aspeed-vhub/
H A Dep0.c238 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/misc/mei/
H A Dvsc-fw-loader.c586 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/drivers/acpi/apei/
H A Dbert.c51 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/drivers/net/wireless/intel/iwlwifi/fw/api/
H A Dtime-event.h287 * and remain on the given channel. This is done by using the Aux framework in
299 * @sta_id_and_color: station id and color, resumed during "Remain On Channel"
356 * Command requests the firmware to remain on a channel for a certain duration.
362 * @sta_id: station id, resumed during "Remain On Channel" activity.
367 * @duration: remain on channel duration in TU
383 * Command requests the firmware to remain on a channel for a certain duration.
389 * @sta_id: station id, resumed during "Remain On Channel" activity.
394 * @duration: remain on channel duration in TU
/linux/fs/ocfs2/
H A Dfilecheck.c303 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/rust/kernel/
H A Drevocable.rs6 //! of a [`RevocableGuard`] ensures that objects remain valid.
97 /// remain accessible while the guard is alive. In such cases, callers are not allowed to sleep
102 // Since `self.is_available` is true, data is initialised and has to remain valid in try_access()
115 /// remain accessible while the rcu read side guard is alive. In such cases, callers are not
120 // SAFETY: Since `self.is_available` is true, data is initialised and has to remain in try_access_with_guard()
260 // guaranteed to remain valid. in deref()
/linux/lib/
H A Dgenalloc.c81 * users set the same bit, one user will return remain bits, otherwise
117 * users clear the same bit, one user will return remain bits,
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()
[all …]
/linux/arch/alpha/lib/
H A Dmemchr.S72 # 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
/linux/fs/omfs/
H A Dfile.c230 int remain; in omfs_get_block() local
253 offset = find_block(inode, entry, block, extent_count, &remain); in omfs_get_block()
257 if (remain > max_blocks) in omfs_get_block()
258 remain = max_blocks; in omfs_get_block()
259 bh_result->b_size = (remain << inode->i_blkbits); in omfs_get_block()
/linux/include/uapi/linux/
H A Dtps6594_pfsm.h17 * @gpio_retention: if enabled, power rails associated with GPIO retention remain active
18 * @ddr_retention: if enabled, power rails associated with DDR retention remain active

12345678910>>...41