/Linux-v6.6/drivers/vfio/pci/ |
D | vfio_pci_igd.c | 39 * @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 …]
|
/Linux-v6.6/sound/soc/sof/ |
D | ipc3-loader.c | 145 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() 248 dev_err(sdev->dev, "not enough data remaining\n"); in sof_ipc3_parse_module_memcpy() [all …]
|
D | sof-client-ipc-msg-injector.c | 80 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 …]
|
D | ipc4-loader.c | 30 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-v6.6/arch/alpha/lib/ |
D | srm_puts.c | 12 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-v6.6/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_res_cursor.h | 39 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()
|
D | atombios_i2c.c | 112 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-v6.6/sound/soc/intel/avs/ |
D | cldma.c | 48 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 …]
|
D | trace.c | 21 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-v6.6/include/net/ |
D | rtnh.h | 8 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-v6.6/drivers/target/tcm_fc/ |
D | tfc_io.c | 48 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-v6.6/drivers/gpu/drm/msm/ |
D | msm_gem_shrinker.c | 110 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-v6.6/drivers/vfio/ |
D | iova_bitmap.c | 294 * Returns the remaining bitmap indexes from mapped_total_index to process for 299 unsigned long remaining, bytes; in iova_bitmap_mapped_remaining() local 303 remaining = bitmap->mapped_total_index - bitmap->mapped_base_index; in iova_bitmap_mapped_remaining() 304 remaining = min_t(unsigned long, remaining, in iova_bitmap_mapped_remaining() 307 return remaining; in iova_bitmap_mapped_remaining() 317 unsigned long remaining; in iova_bitmap_mapped_length() local 325 remaining = iova_bitmap_index_to_offset(bitmap, in iova_bitmap_mapped_length() 328 if (iova + remaining - 1 > max_iova) in iova_bitmap_mapped_length() 329 remaining -= ((iova + remaining - 1) - max_iova); in iova_bitmap_mapped_length() 331 return remaining; in iova_bitmap_mapped_length()
|
/Linux-v6.6/drivers/gpu/drm/radeon/ |
D | atombios_i2c.c | 105 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-v6.6/net/sunrpc/xprtrdma/ |
D | svc_rdma_sendto.c | 57 * 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 …]
|
/Linux-v6.6/drivers/firmware/tegra/ |
D | bpmp-debugfs.c | 196 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 …]
|
/Linux-v6.6/drivers/net/wwan/iosm/ |
D | iosm_ipc_coredump.c | 22 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-v6.6/drivers/char/ |
D | ps3flash.c | 100 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-v6.6/lib/xz/ |
D | xz_dec_test.c | 105 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-v6.6/drivers/md/bcache/ |
D | closure.c | 25 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()
|
D | closure.h | 124 * must be cleared before remaining hits 0. Primarily to help guard 156 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()
|
/Linux-v6.6/net/mptcp/ |
D | options.c | 650 unsigned int remaining, in mptcp_established_options_add_addr() argument 665 !mptcp_pm_add_addr_signal(msk, skb, opt_size, remaining, &opts->addr, in mptcp_established_options_add_addr() 670 remaining += opt_size; in mptcp_established_options_add_addr() 672 if (remaining < len) in mptcp_established_options_add_addr() 705 unsigned int remaining, in mptcp_established_options_rm_addr() argument 714 !(mptcp_pm_rm_addr_signal(msk, remaining, &rm_list))) in mptcp_established_options_rm_addr() 720 if (remaining < len) in mptcp_established_options_rm_addr() 735 unsigned int remaining, in mptcp_established_options_mp_prio() argument 747 if (remaining < TCPOLEN_MPTCP_PRIO_ALIGN) in mptcp_established_options_mp_prio() 761 unsigned int remaining, in mptcp_established_options_rst() argument [all …]
|
/Linux-v6.6/drivers/usb/musb/ |
D | tusb6010_omap.c | 107 unsigned long remaining, flags, pio; in tusb_omap_dma_cb() local 115 remaining = musb_readl(ep_conf, TUSB_EP_TX_OFFSET); in tusb_omap_dma_cb() 117 remaining = musb_readl(ep_conf, TUSB_EP_RX_OFFSET); in tusb_omap_dma_cb() 119 remaining = TUSB_EP_CONFIG_XFR_SIZE(remaining); in tusb_omap_dma_cb() 122 if (unlikely(remaining > chdat->transfer_len)) { in tusb_omap_dma_cb() 124 chdat->tx ? "tx" : "rx", remaining); in tusb_omap_dma_cb() 125 remaining = 0; in tusb_omap_dma_cb() 128 channel->actual_len = chdat->transfer_len - remaining; in tusb_omap_dma_cb() 131 dev_dbg(musb->controller, "DMA remaining %lu/%u\n", remaining, chdat->transfer_len); in tusb_omap_dma_cb() 133 /* Transfer remaining 1 - 31 bytes */ in tusb_omap_dma_cb() [all …]
|
/Linux-v6.6/drivers/net/wireless/intel/iwlwifi/fw/ |
D | paging.c | 174 int remaining = image->sec[sec_idx].len - offset; in iwl_fill_paging_mem() local 178 * For the last block, we copy all that is remaining, in iwl_fill_paging_mem() 182 len = remaining; in iwl_fill_paging_mem() 183 if (remaining != in iwl_fill_paging_mem() 187 remaining); in iwl_fill_paging_mem() 191 } else if (block->fw_paging_size > remaining) { in iwl_fill_paging_mem() 194 idx, remaining); in iwl_fill_paging_mem()
|
/Linux-v6.6/lib/zstd/common/ |
D | entropy_common.c | 66 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()
|