Home
last modified time | relevance | path

Searched refs:remaining (Results 1 – 25 of 423) sorted by relevance

12345678910>>...17

/linux-6.1.9/drivers/vfio/pci/
Dvfio_pci_igd.c51 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()
91 size_t bytes = min_t(size_t, remaining, in vfio_pci_igd_rw()
103 &pos, &remaining, bytes)) in vfio_pci_igd_rw()
[all …]
/linux-6.1.9/sound/soc/sof/
Dipc3-loader.c146 ssize_t remaining; in sof_ipc3_fw_parse_ext_man() local
151 remaining = head->full_size - head->header_size; in sof_ipc3_fw_parse_ext_man()
170 while (remaining > sizeof(*elem_hdr)) { in sof_ipc3_fw_parse_ext_man()
177 elem_hdr->size > remaining) { in sof_ipc3_fw_parse_ext_man()
218 remaining -= elem_hdr->size; in sof_ipc3_fw_parse_ext_man()
222 if (remaining) { in sof_ipc3_fw_parse_ext_man()
237 size_t remaining; in sof_ipc3_parse_module_memcpy() local
245 remaining = module->size; in sof_ipc3_parse_module_memcpy()
248 if (remaining < sizeof(*block)) { in sof_ipc3_parse_module_memcpy()
254 remaining -= sizeof(*block); in sof_ipc3_parse_module_memcpy()
[all …]
Dipc4-loader.c27 ssize_t remaining; in sof_ipc4_fw_parse_ext_man() local
36 remaining = fw->size; in sof_ipc4_fw_parse_ext_man()
37 if (remaining <= sizeof(*ext_man_hdr)) { in sof_ipc4_fw_parse_ext_man()
38 dev_err(sdev->dev, "Firmware size is too small: %zu\n", remaining); in sof_ipc4_fw_parse_ext_man()
59 if (remaining <= ext_man_hdr->len + fw_hdr_offset + sizeof(*fw_header)) { in sof_ipc4_fw_parse_ext_man()
61 remaining, ext_man_hdr->len + fw_hdr_offset + sizeof(*fw_header)); in sof_ipc4_fw_parse_ext_man()
67 remaining -= (ext_man_hdr->len + fw_hdr_offset); in sof_ipc4_fw_parse_ext_man()
69 if (remaining <= fw_header->len) { in sof_ipc4_fw_parse_ext_man()
90 remaining -= fw_header->len; in sof_ipc4_fw_parse_ext_man()
92 if (remaining < fw_header->num_module_entries * sizeof(*fm_entry)) { in sof_ipc4_fw_parse_ext_man()
[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 …]
/linux-6.1.9/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()
/linux-6.1.9/drivers/gpu/drm/amd/amdgpu/
Damdgpu_res_cursor.h39 uint64_t remaining; member
89 cur->remaining = size; in amdgpu_res_first()
99 cur->remaining = size; in amdgpu_res_first()
111 cur->remaining = size; in amdgpu_res_first()
131 BUG_ON(size > cur->remaining); in amdgpu_res_next()
133 cur->remaining -= size; in amdgpu_res_next()
134 if (!cur->remaining) in amdgpu_res_next()
152 cur->size = min(amdgpu_vram_mgr_block_size(block), cur->remaining); in amdgpu_res_next()
159 cur->size = min(node->size << PAGE_SHIFT, cur->remaining); in amdgpu_res_next()
Datombios_i2c.c112 int i, remaining, current_count, buffer_offset, max_bytes, ret; in amdgpu_atombios_i2c_xfer() local
129 remaining = p->len; in amdgpu_atombios_i2c_xfer()
139 while (remaining) { in amdgpu_atombios_i2c_xfer()
140 if (remaining > max_bytes) in amdgpu_atombios_i2c_xfer()
143 current_count = remaining; in amdgpu_atombios_i2c_xfer()
149 remaining -= current_count; in amdgpu_atombios_i2c_xfer()
/linux-6.1.9/drivers/vfio/
Diova_bitmap.c298 unsigned long remaining, bytes; in iova_bitmap_mapped_remaining() local
302 remaining = bitmap->mapped_total_index - bitmap->mapped_base_index; in iova_bitmap_mapped_remaining()
303 remaining = min_t(unsigned long, remaining, in iova_bitmap_mapped_remaining()
306 return remaining; in iova_bitmap_mapped_remaining()
316 unsigned long remaining; in iova_bitmap_mapped_length() local
324 remaining = iova_bitmap_index_to_offset(bitmap, in iova_bitmap_mapped_length()
327 if (iova + remaining - 1 > max_iova) in iova_bitmap_mapped_length()
328 remaining -= ((iova + remaining - 1) - max_iova); in iova_bitmap_mapped_length()
330 return remaining; in iova_bitmap_mapped_length()
/linux-6.1.9/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()
/linux-6.1.9/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(remaining, (size_t)MAX_CHUNK_SIZE); in trace_avs_msg_payload()
30 remaining -= chunk; in trace_avs_msg_payload()
/linux-6.1.9/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 …]
/linux-6.1.9/drivers/md/bcache/
Dclosure.h156 atomic_t remaining; member
183 if ((atomic_read(&cl->remaining) & CLOSURE_REMAINING_MASK) != 1) in closure_sync()
224 atomic_sub(CLOSURE_RUNNING, &cl->remaining); in closure_set_stopped()
259 BUG_ON((atomic_inc_return(&cl->remaining) & in closure_get()
262 atomic_inc(&cl->remaining); in closure_get()
279 atomic_set(&cl->remaining, CLOSURE_REMAINING_INITIALIZER); in closure_init()
288 atomic_set(&cl->remaining, CLOSURE_REMAINING_INITIALIZER); in closure_init_stack()
Dclosure.c25 atomic_set(&cl->remaining, in closure_put_after_sub()
46 closure_put_after_sub(cl, atomic_sub_return(v, &cl->remaining)); in closure_sub()
54 closure_put_after_sub(cl, atomic_dec_return(&cl->remaining)); in closure_put()
87 if (atomic_read(&cl->remaining) & CLOSURE_WAITING) in closure_wait()
91 atomic_add(CLOSURE_WAITING + 1, &cl->remaining); in closure_wait()
169 int r = atomic_read(&cl->remaining); in debug_show()
/linux-6.1.9/net/sunrpc/xprtrdma/
Dsvc_rdma_sendto.c377 u32 *remaining, unsigned int segno) in svc_rdma_encode_write_segment() argument
388 length = min_t(u32, *remaining, segment->rs_length); in svc_rdma_encode_write_segment()
389 *remaining -= length; in svc_rdma_encode_write_segment()
414 u32 remaining = chunk->ch_payload_length; in svc_rdma_encode_write_chunk() local
430 ret = svc_rdma_encode_write_segment(sctxt, chunk, &remaining, segno); in svc_rdma_encode_write_chunk()
578 unsigned int len, remaining; in svc_rdma_xb_dma_map() local
589 remaining = xdr->page_len; in svc_rdma_xb_dma_map()
590 while (remaining) { in svc_rdma_xb_dma_map()
591 len = min_t(u32, PAGE_SIZE - pageoff, remaining); in svc_rdma_xb_dma_map()
597 remaining -= len; in svc_rdma_xb_dma_map()
[all …]
/linux-6.1.9/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()
/linux-6.1.9/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()
/linux-6.1.9/drivers/iio/imu/bno055/
Dbno055_ser_core.c386 int remaining = size; in bno055_ser_receive_buf() local
406 remaining--; in bno055_ser_receive_buf()
416 if (remaining == 0) in bno055_ser_receive_buf()
420 if (remaining > 1) { in bno055_ser_receive_buf()
434 remaining--; in bno055_ser_receive_buf()
441 if (remaining == 0) in bno055_ser_receive_buf()
444 if (priv->rx.databuf_count + remaining > priv->rx.expected_len) { in bno055_ser_receive_buf()
469 (priv->rx.databuf_count + remaining <= priv->expected_data_len)) in bno055_ser_receive_buf()
471 buf, remaining); in bno055_ser_receive_buf()
474 priv->rx.databuf_count += remaining; in bno055_ser_receive_buf()
/linux-6.1.9/net/mptcp/
Doptions.c440 unsigned int remaining, in mptcp_established_options_mp() argument
554 unsigned int remaining, in mptcp_established_options_dss() argument
578 remaining -= map_size; in mptcp_established_options_dss()
648 unsigned int remaining, in mptcp_established_options_add_addr() argument
663 !mptcp_pm_add_addr_signal(msk, skb, opt_size, remaining, &opts->addr, in mptcp_established_options_add_addr()
668 remaining += opt_size; in mptcp_established_options_add_addr()
670 if (remaining < len) in mptcp_established_options_add_addr()
700 unsigned int remaining, in mptcp_established_options_rm_addr() argument
709 !(mptcp_pm_rm_addr_signal(msk, remaining, &rm_list))) in mptcp_established_options_rm_addr()
715 if (remaining < len) in mptcp_established_options_rm_addr()
[all …]
/linux-6.1.9/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()
/linux-6.1.9/tools/lib/bpf/
Dnlattr.c25 static struct nlattr *nla_next(const struct nlattr *nla, int *remaining) in nla_next() argument
29 *remaining -= totlen; in nla_next()
33 static int nla_ok(const struct nlattr *nla, int remaining) in nla_ok() argument
35 return remaining >= (int)sizeof(*nla) && in nla_ok()
37 nla->nla_len <= remaining; in nla_ok()
/linux-6.1.9/lib/zstd/common/
Dentropy_common.c67 int remaining; in FSE_readNCount_body() local
95 remaining = (1<<nbBits)+1; in FSE_readNCount_body()
150 int const max = (2*threshold-1) - remaining; in FSE_readNCount_body()
167 remaining -= count; in FSE_readNCount_body()
170 remaining += count; in FSE_readNCount_body()
176 if (remaining < threshold) { in FSE_readNCount_body()
181 if (remaining <= 1) break; in FSE_readNCount_body()
182 nbBits = BIT_highbit32(remaining) + 1; in FSE_readNCount_body()
197 if (remaining != 1) return ERROR(corruption_detected); in FSE_readNCount_body()
/linux-6.1.9/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()
/linux-6.1.9/drivers/net/ethernet/rocker/
Drocker_tlv.h30 int *remaining) in rocker_tlv_next() argument
34 *remaining -= totlen; in rocker_tlv_next()
38 static inline int rocker_tlv_ok(const struct rocker_tlv *tlv, int remaining) in rocker_tlv_ok() argument
40 return remaining >= (int) ROCKER_TLV_HDRLEN && in rocker_tlv_ok()
42 tlv->len <= remaining; in rocker_tlv_ok()
/linux-6.1.9/drivers/firmware/tegra/
Dbpmp-debugfs.c200 int remaining, err; in mrq_debug_read() local
213 remaining = len; in mrq_debug_read()
215 while (remaining > 0) { in mrq_debug_read()
224 if (resp.frd.readlen > remaining) { in mrq_debug_read()
232 remaining -= resp.frd.readlen; in mrq_debug_read()
263 size_t remaining; in mrq_debug_write() local
277 remaining = sz_data; in mrq_debug_write()
279 while (remaining > 0) { in mrq_debug_write()
280 len = min(remaining, sizeof(req.fwr.data)); in mrq_debug_write()
293 remaining -= req.fwr.datalen; in mrq_debug_write()
[all …]

12345678910>>...17