Home
last modified time | relevance | path

Searched full:remaining (Results 1 – 25 of 3911) sorted by relevance

12345678910>>...157

/kernel/linux/linux-6.6/drivers/vfio/pci/
Dvfio_pci_igd.c39 * @remaining: Decreased by bytes on return.
40 * @bytes: Bytes to copy and adjust off, pos and remaining.
51 size_t *remaining, in igd_opregion_shift_copy() argument
59 *remaining -= bytes; in igd_opregion_shift_copy()
71 size_t remaining; in vfio_pci_igd_rw() local
77 remaining = count; in vfio_pci_igd_rw()
80 if (remaining && pos < OPREGION_VERSION) { in vfio_pci_igd_rw()
81 size_t bytes = min_t(size_t, remaining, OPREGION_VERSION - pos); in vfio_pci_igd_rw()
85 &remaining, bytes)) in vfio_pci_igd_rw()
90 if (remaining && pos < OPREGION_VERSION + sizeof(__le16)) { in vfio_pci_igd_rw()
[all …]
/kernel/linux/linux-6.6/sound/soc/sof/
Dipc3-loader.c145 ssize_t remaining; in sof_ipc3_fw_parse_ext_man() local
150 remaining = head->full_size - head->header_size; in sof_ipc3_fw_parse_ext_man()
151 if (remaining < 0 || remaining > sdev->basefw.fw->size) in sof_ipc3_fw_parse_ext_man()
171 while (remaining > sizeof(*elem_hdr)) { in sof_ipc3_fw_parse_ext_man()
178 elem_hdr->size > remaining) { in sof_ipc3_fw_parse_ext_man()
219 remaining -= elem_hdr->size; in sof_ipc3_fw_parse_ext_man()
223 if (remaining) { in sof_ipc3_fw_parse_ext_man()
238 size_t remaining; in sof_ipc3_parse_module_memcpy() local
246 remaining = module->size; in sof_ipc3_parse_module_memcpy()
249 if (remaining < sizeof(*block)) { in sof_ipc3_parse_module_memcpy()
[all …]
Dsof-client-ipc-msg-injector.c80 size_t remaining; in sof_msg_inject_ipc4_dfs_read() local
89 remaining = header_size; in sof_msg_inject_ipc4_dfs_read()
94 remaining += ipc4_msg->data_size; in sof_msg_inject_ipc4_dfs_read()
96 if (count > remaining) in sof_msg_inject_ipc4_dfs_read()
97 count = remaining; in sof_msg_inject_ipc4_dfs_read()
98 else if (count < remaining) in sof_msg_inject_ipc4_dfs_read()
99 remaining = count; in sof_msg_inject_ipc4_dfs_read()
106 remaining -= header_size; in sof_msg_inject_ipc4_dfs_read()
108 if (!remaining) in sof_msg_inject_ipc4_dfs_read()
111 if (remaining > ipc4_msg->data_size) in sof_msg_inject_ipc4_dfs_read()
[all …]
/kernel/linux/linux-6.6/arch/alpha/lib/
Dsrm_puts.c12 long remaining, written; in srm_puts() local
17 for (remaining = len; remaining > 0; remaining -= written) in srm_puts()
19 written = callback_puts(0, str, remaining); in srm_puts()
/kernel/linux/linux-5.10/arch/alpha/lib/
Dsrm_puts.c12 long remaining, written; in srm_puts() local
17 for (remaining = len; remaining > 0; remaining -= written) in srm_puts()
19 written = callback_puts(0, str, remaining); in srm_puts()
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/amdgpu/
Damdgpu_res_cursor.h39 uint64_t remaining; member
89 cur->remaining = size; in amdgpu_res_first()
100 cur->remaining = size; in amdgpu_res_first()
112 cur->remaining = size; in amdgpu_res_first()
132 BUG_ON(size > cur->remaining); in amdgpu_res_next()
134 cur->remaining -= size; in amdgpu_res_next()
135 if (!cur->remaining) in amdgpu_res_next()
153 cur->size = min(amdgpu_vram_mgr_block_size(block), cur->remaining); in amdgpu_res_next()
161 cur->size = min(node->size << PAGE_SHIFT, cur->remaining); in amdgpu_res_next()
/kernel/linux/linux-6.6/sound/soc/intel/avs/
Dcldma.c48 unsigned int remaining; member
64 if (cl->remaining > cl->buffer_size) in hda_cldma_fill()
67 size = cl->remaining; in hda_cldma_fill()
78 cl->remaining -= ss; in hda_cldma_fill()
83 cl->remaining -= size; in hda_cldma_fill()
113 if (!cl->remaining) in cldma_memcpy_work()
126 if (!cl->remaining) in hda_cldma_transfer()
202 cl->remaining = size; in hda_cldma_set_data()
209 int remaining = cl->buffer_size; in cldma_setup_bdle() local
214 while (remaining > 0) { in cldma_setup_bdle()
[all …]
Dtrace.c21 size_t remaining = size; in trace_avs_msg_payload() local
24 while (remaining > 0) { in trace_avs_msg_payload()
27 chunk = min_t(size_t, remaining, MAX_CHUNK_SIZE); in trace_avs_msg_payload()
30 remaining -= chunk; in trace_avs_msg_payload()
/kernel/linux/linux-6.6/include/net/
Drtnh.h8 static inline int rtnh_ok(const struct rtnexthop *rtnh, int remaining) in rtnh_ok() argument
10 return remaining >= (int)sizeof(*rtnh) && in rtnh_ok()
12 rtnh->rtnh_len <= remaining; in rtnh_ok()
16 int *remaining) in rtnh_next() argument
20 *remaining -= totlen; in rtnh_next()
/kernel/linux/linux-5.10/include/net/
Drtnh.h8 static inline int rtnh_ok(const struct rtnexthop *rtnh, int remaining) in rtnh_ok() argument
10 return remaining >= (int)sizeof(*rtnh) && in rtnh_ok()
12 rtnh->rtnh_len <= remaining; in rtnh_ok()
16 int *remaining) in rtnh_next() argument
20 *remaining -= totlen; in rtnh_next()
/kernel/linux/linux-6.6/drivers/target/tcm_fc/
Dtfc_io.c48 size_t remaining; in ft_queue_data_in() local
74 remaining = se_cmd->data_length; in ft_queue_data_in()
79 BUG_ON(remaining && !se_cmd->t_data_sg); in ft_queue_data_in()
80 if (remaining) { in ft_queue_data_in()
88 use_sg = !(remaining % 4); in ft_queue_data_in()
90 while (remaining) { in ft_queue_data_in()
100 mem_len = min((size_t)sg->length, remaining); in ft_queue_data_in()
112 frame_len = min(frame_len, remaining); in ft_queue_data_in()
154 remaining -= tlen; in ft_queue_data_in()
159 if (!remaining) in ft_queue_data_in()
[all …]
/kernel/linux/linux-5.10/drivers/target/tcm_fc/
Dtfc_io.c49 size_t remaining; in ft_queue_data_in() local
75 remaining = se_cmd->data_length; in ft_queue_data_in()
80 BUG_ON(remaining && !se_cmd->t_data_sg); in ft_queue_data_in()
81 if (remaining) { in ft_queue_data_in()
89 use_sg = !(remaining % 4); in ft_queue_data_in()
91 while (remaining) { in ft_queue_data_in()
101 mem_len = min((size_t)sg->length, remaining); in ft_queue_data_in()
113 frame_len = min(frame_len, remaining); in ft_queue_data_in()
155 remaining -= tlen; in ft_queue_data_in()
160 if (!remaining) in ft_queue_data_in()
[all …]
/kernel/linux/linux-6.6/fs/xfs/
Dxfs_qm_bhv.c36 uint64_t remaining = 0; in xfs_fill_statvfs_from_dquot() local
39 remaining = limit - blkres->reserved; in xfs_fill_statvfs_from_dquot()
42 statp->f_bfree = min(statp->f_bfree, remaining); in xfs_fill_statvfs_from_dquot()
43 statp->f_bavail = min(statp->f_bavail, remaining); in xfs_fill_statvfs_from_dquot()
50 uint64_t remaining = 0; in xfs_fill_statvfs_from_dquot() local
53 remaining = limit - dqp->q_ino.reserved; in xfs_fill_statvfs_from_dquot()
56 statp->f_ffree = min(statp->f_ffree, remaining); in xfs_fill_statvfs_from_dquot()
/kernel/linux/linux-5.10/net/sunrpc/xprtrdma/
Dsvc_rdma_sendto.c57 * the svc_rqst will be recycled as soon as sendto returns. Remaining
363 * @remaining: remaining bytes of the payload left in the Write chunk
372 unsigned int *remaining) in svc_rdma_encode_write_segment() argument
385 if (*remaining < length) { in svc_rdma_encode_write_segment()
387 length = *remaining; in svc_rdma_encode_write_segment()
388 *remaining = 0; in svc_rdma_encode_write_segment()
391 *remaining -= length; in svc_rdma_encode_write_segment()
403 * @remaining: size in bytes of the payload in the Write chunk
416 unsigned int remaining) in svc_rdma_encode_write_chunk() argument
422 trace_svcrdma_encode_write_chunk(remaining); in svc_rdma_encode_write_chunk()
[all …]
/kernel/linux/linux-6.6/drivers/gpu/drm/msm/
Dmsm_gem_shrinker.c110 unsigned long remaining; in msm_gem_shrinker_scan() member
120 unsigned long remaining = 0; in msm_gem_shrinker_scan() local
127 &stages[i].remaining, in msm_gem_shrinker_scan()
131 remaining += stages[i].remaining; in msm_gem_shrinker_scan()
140 return (freed > 0 && remaining > 0) ? freed : SHRINK_STOP; in msm_gem_shrinker_scan()
190 unsigned long remaining = 0; in msm_gem_shrinker_vmap() local
195 &remaining, in msm_gem_shrinker_vmap()
/kernel/linux/linux-5.10/sound/soc/sof/
Dloader.c232 ssize_t remaining; in snd_sof_fw_ext_man_parse() local
237 remaining = head->full_size - head->header_size; in snd_sof_fw_ext_man_parse()
255 while (remaining > sizeof(*elem_hdr)) { in snd_sof_fw_ext_man_parse()
262 elem_hdr->size > remaining) { in snd_sof_fw_ext_man_parse()
294 remaining -= elem_hdr->size; in snd_sof_fw_ext_man_parse()
298 if (remaining) { in snd_sof_fw_ext_man_parse()
490 size_t remaining; in snd_sof_parse_module_memcpy() local
498 remaining = module->size; in snd_sof_parse_module_memcpy()
501 if (remaining < sizeof(*block)) { in snd_sof_parse_module_memcpy()
502 dev_err(sdev->dev, "error: not enough data remaining\n"); in snd_sof_parse_module_memcpy()
[all …]
/kernel/linux/linux-6.6/drivers/vfio/
Diova_bitmap.c295 * Returns the remaining bitmap indexes from mapped_total_index to process for
300 unsigned long remaining, bytes; in iova_bitmap_mapped_remaining() local
304 remaining = bitmap->mapped_total_index - bitmap->mapped_base_index; in iova_bitmap_mapped_remaining()
305 remaining = min_t(unsigned long, remaining, in iova_bitmap_mapped_remaining()
308 return remaining; in iova_bitmap_mapped_remaining()
318 unsigned long remaining; in iova_bitmap_mapped_length() local
326 remaining = iova_bitmap_index_to_offset(bitmap, in iova_bitmap_mapped_length()
329 if (iova + remaining - 1 > max_iova) in iova_bitmap_mapped_length()
330 remaining -= ((iova + remaining - 1) - max_iova); in iova_bitmap_mapped_length()
332 return remaining; in iova_bitmap_mapped_length()
/kernel/linux/linux-6.6/drivers/gpu/drm/radeon/
Datombios_i2c.c105 int i, remaining, current_count, buffer_offset, max_bytes, ret; in radeon_atom_hw_i2c_xfer() local
122 remaining = p->len; in radeon_atom_hw_i2c_xfer()
132 while (remaining) { in radeon_atom_hw_i2c_xfer()
133 if (remaining > max_bytes) in radeon_atom_hw_i2c_xfer()
136 current_count = remaining; in radeon_atom_hw_i2c_xfer()
142 remaining -= current_count; in radeon_atom_hw_i2c_xfer()
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/
Datombios_i2c.c105 int i, remaining, current_count, buffer_offset, max_bytes, ret; in radeon_atom_hw_i2c_xfer() local
122 remaining = p->len; in radeon_atom_hw_i2c_xfer()
132 while (remaining) { in radeon_atom_hw_i2c_xfer()
133 if (remaining > max_bytes) in radeon_atom_hw_i2c_xfer()
136 current_count = remaining; in radeon_atom_hw_i2c_xfer()
142 remaining -= current_count; in radeon_atom_hw_i2c_xfer()
/kernel/linux/linux-6.6/drivers/net/wwan/iosm/
Diosm_ipc_coredump.c22 s32 remaining; in ipc_coredump_collect() local
29 remaining = devlink->cd_file_info[entry].actual_size; in ipc_coredump_collect()
35 while (remaining > 0) { in ipc_coredump_collect()
36 bytes_to_read = min(remaining, MAX_DATA_SIZE); in ipc_coredump_collect()
44 remaining -= bytes_read; in ipc_coredump_collect()
/kernel/linux/linux-6.6/net/sunrpc/xprtrdma/
Dsvc_rdma_sendto.c57 * the svc_rqst will be recycled as soon as sendto returns. Remaining
372 * @remaining: remaining bytes of the payload left in the Write chunk
377 * that was consumed by the Write segment, and updates @remaining
382 u32 *remaining, unsigned int segno) in svc_rdma_encode_write_segment() argument
393 length = min_t(u32, *remaining, segment->rs_length); in svc_rdma_encode_write_segment()
394 *remaining -= length; in svc_rdma_encode_write_segment()
419 u32 remaining = chunk->ch_payload_length; in svc_rdma_encode_write_chunk() local
435 ret = svc_rdma_encode_write_segment(sctxt, chunk, &remaining, segno); in svc_rdma_encode_write_chunk()
583 unsigned int len, remaining; in svc_rdma_xb_dma_map() local
594 remaining = xdr->page_len; in svc_rdma_xb_dma_map()
[all …]
/kernel/linux/linux-6.6/drivers/firmware/tegra/
Dbpmp-debugfs.c196 int remaining, err, close_err; in mrq_debug_read() local
209 remaining = len; in mrq_debug_read()
211 while (remaining > 0) { in mrq_debug_read()
220 if (resp.frd.readlen > remaining) { in mrq_debug_read()
228 remaining -= resp.frd.readlen; in mrq_debug_read()
261 size_t remaining; in mrq_debug_write() local
275 remaining = sz_data; in mrq_debug_write()
277 while (remaining > 0) { in mrq_debug_write()
278 len = min(remaining, sizeof(req.fwr.data)); in mrq_debug_write()
291 remaining -= req.fwr.datalen; in mrq_debug_write()
[all …]
/kernel/linux/linux-5.10/drivers/char/
Dps3flash.c100 size_t remaining, n; in ps3flash_read() local
121 remaining = count; in ps3flash_read()
123 n = min_t(u64, remaining, dev->bounce_size - offset); in ps3flash_read()
150 remaining -= n; in ps3flash_read()
153 } while (remaining > 0); in ps3flash_read()
169 size_t remaining, n; in ps3flash_write() local
190 remaining = count; in ps3flash_write()
192 n = min_t(u64, remaining, dev->bounce_size - offset); in ps3flash_write()
225 remaining -= n; in ps3flash_write()
228 } while (remaining > 0); in ps3flash_write()
/kernel/linux/linux-6.6/drivers/char/
Dps3flash.c100 size_t remaining, n; in ps3flash_read() local
121 remaining = count; in ps3flash_read()
123 n = min_t(u64, remaining, dev->bounce_size - offset); in ps3flash_read()
150 remaining -= n; in ps3flash_read()
153 } while (remaining > 0); in ps3flash_read()
169 size_t remaining, n; in ps3flash_write() local
190 remaining = count; in ps3flash_write()
192 n = min_t(u64, remaining, dev->bounce_size - offset); in ps3flash_write()
225 remaining -= n; in ps3flash_write()
228 } while (remaining > 0); in ps3flash_write()
/kernel/linux/linux-5.10/lib/xz/
Dxz_dec_test.c105 size_t remaining; in xz_dec_test_write() local
119 remaining = size; in xz_dec_test_write()
120 while ((remaining > 0 || buffers.out_pos == buffers.out_size) in xz_dec_test_write()
124 buffers.in_size = min(remaining, sizeof(buffer_in)); in xz_dec_test_write()
129 remaining -= buffers.in_size; in xz_dec_test_write()
145 return size - remaining - (buffers.in_size - buffers.in_pos); in xz_dec_test_write()

12345678910>>...157