Home
last modified time | relevance | path

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

12345678910>>...18

/linux-6.6.21/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.6.21/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()
169 while (remaining > sizeof(*elem_hdr)) { in sof_ipc3_fw_parse_ext_man()
176 elem_hdr->size > remaining) { in sof_ipc3_fw_parse_ext_man()
217 remaining -= elem_hdr->size; in sof_ipc3_fw_parse_ext_man()
221 if (remaining) { in sof_ipc3_fw_parse_ext_man()
236 size_t remaining; in sof_ipc3_parse_module_memcpy() local
244 remaining = module->size; in sof_ipc3_parse_module_memcpy()
247 if (remaining < sizeof(*block)) { in sof_ipc3_parse_module_memcpy()
253 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 …]
Dipc4-loader.c30 ssize_t remaining; in sof_ipc4_fw_parse_ext_man() local
39 remaining = fw->size; in sof_ipc4_fw_parse_ext_man()
40 if (remaining <= sizeof(*ext_man_hdr)) { in sof_ipc4_fw_parse_ext_man()
41 dev_err(sdev->dev, "Firmware size is too small: %zu\n", remaining); in sof_ipc4_fw_parse_ext_man()
62 if (remaining <= ext_man_hdr->len + fw_hdr_offset + sizeof(*fw_header)) { in sof_ipc4_fw_parse_ext_man()
64 remaining, ext_man_hdr->len + fw_hdr_offset + sizeof(*fw_header)); in sof_ipc4_fw_parse_ext_man()
70 remaining -= (ext_man_hdr->len + fw_hdr_offset); in sof_ipc4_fw_parse_ext_man()
72 if (remaining <= fw_header->len) { in sof_ipc4_fw_parse_ext_man()
93 remaining -= fw_header->len; in sof_ipc4_fw_parse_ext_man()
95 if (remaining < fw_header->num_module_entries * sizeof(*fm_entry)) { in sof_ipc4_fw_parse_ext_man()
[all …]
/linux-6.6.21/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()
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.6.21/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.6.21/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.6.21/drivers/vfio/
Diova_bitmap.c300 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()
/linux-6.6.21/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()
/linux-6.6.21/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()
/linux-6.6.21/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.6.21/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.6.21/net/sunrpc/xprtrdma/
Dsvc_rdma_sendto.c382 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()
595 while (remaining) { in svc_rdma_xb_dma_map()
596 len = min_t(u32, PAGE_SIZE - pageoff, remaining); in svc_rdma_xb_dma_map()
602 remaining -= len; in svc_rdma_xb_dma_map()
[all …]
/linux-6.6.21/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.6.21/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.6.21/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.6.21/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.6.21/lib/zstd/common/
Dentropy_common.c66 int remaining; in FSE_readNCount_body() local
94 remaining = (1<<nbBits)+1; in FSE_readNCount_body()
149 int const max = (2*threshold-1) - remaining; in FSE_readNCount_body()
166 remaining -= count; in FSE_readNCount_body()
169 remaining += count; in FSE_readNCount_body()
175 if (remaining < threshold) { in FSE_readNCount_body()
180 if (remaining <= 1) break; in FSE_readNCount_body()
181 nbBits = BIT_highbit32(remaining) + 1; in FSE_readNCount_body()
196 if (remaining != 1) return ERROR(corruption_detected); in FSE_readNCount_body()
/linux-6.6.21/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.6.21/net/mptcp/
Doptions.c651 unsigned int remaining, in mptcp_established_options_add_addr() argument
666 !mptcp_pm_add_addr_signal(msk, skb, opt_size, remaining, &opts->addr, in mptcp_established_options_add_addr()
671 remaining += opt_size; in mptcp_established_options_add_addr()
673 if (remaining < len) in mptcp_established_options_add_addr()
706 unsigned int remaining, in mptcp_established_options_rm_addr() argument
715 !(mptcp_pm_rm_addr_signal(msk, remaining, &rm_list))) in mptcp_established_options_rm_addr()
721 if (remaining < len) in mptcp_established_options_rm_addr()
736 unsigned int remaining, in mptcp_established_options_mp_prio() argument
748 if (remaining < TCPOLEN_MPTCP_PRIO_ALIGN) in mptcp_established_options_mp_prio()
762 unsigned int remaining, in mptcp_established_options_rst() argument
[all …]
/linux-6.6.21/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.6.21/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()

12345678910>>...18