Home
last modified time | relevance | path

Searched refs:copy_len (Results 1 – 25 of 57) sorted by relevance

123

/linux-6.12.1/drivers/net/ethernet/cavium/liquidio/
Docteon_mem_ops.c97 u32 copy_len = 0, index_reg_val = 0; in __octeon_pci_rw_core_mem() local
134 copy_len = (u32)(((addr & ~(0x3fffff)) + in __octeon_pci_rw_core_mem()
137 copy_len = len; in __octeon_pci_rw_core_mem()
142 copy_len); in __octeon_pci_rw_core_mem()
145 copy_len); in __octeon_pci_rw_core_mem()
148 len -= copy_len; in __octeon_pci_rw_core_mem()
149 addr += copy_len; in __octeon_pci_rw_core_mem()
150 hostbuf += copy_len; in __octeon_pci_rw_core_mem()
/linux-6.12.1/include/linux/
Dfortify-string.h363 size_t p_len, copy_len; in strlcat() local
371 copy_len = strlen(q); in strlcat()
372 wanted = actual = p_len + copy_len; in strlcat()
383 copy_len = avail - p_len - 1; in strlcat()
384 actual = p_len + copy_len; in strlcat()
390 __underlying_memcpy(p + p_len, q, copy_len); in strlcat()
448 size_t p_len, copy_len, total; in strncat() local
453 copy_len = strnlen(q, count); in strncat()
454 total = p_len + copy_len + 1; in strncat()
457 __underlying_memcpy(p + p_len, q, copy_len); in strncat()
[all …]
/linux-6.12.1/fs/btrfs/
Dlzo.c170 u32 copy_len = min_t(u32, sectorsize - *cur_out % sectorsize, in copy_compressed_data_to_page() local
189 compressed_data + *cur_out - orig_out, copy_len); in copy_compressed_data_to_page()
191 *cur_out += copy_len; in copy_compressed_data_to_page()
318 u32 copy_len = min_t(u32, PAGE_SIZE - offset_in_page(*cur_in), in copy_compressed_segment() local
321 ASSERT(copy_len); in copy_compressed_segment()
325 offset_in_folio(cur_folio, *cur_in), copy_len); in copy_compressed_segment()
327 *cur_in += copy_len; in copy_compressed_segment()
Dcompression.c1171 size_t copy_len; in btrfs_decompress_buf2page() local
1188 copy_len = min(bvec_offset + bvec.bv_len, in btrfs_decompress_buf2page()
1190 ASSERT(copy_len); in btrfs_decompress_buf2page()
1198 buf + copy_start - decompressed, copy_len); in btrfs_decompress_buf2page()
1199 cur_offset += copy_len; in btrfs_decompress_buf2page()
1201 bio_advance(orig_bio, copy_len); in btrfs_decompress_buf2page()
/linux-6.12.1/drivers/vfio/pci/mlx5/
Dmain.c159 size_t copy_len; in mlx5vf_buf_read() local
161 copy_len = min_t(size_t, in mlx5vf_buf_read()
163 while (copy_len) { in mlx5vf_buf_read()
176 page_len = min_t(size_t, copy_len, PAGE_SIZE - page_offset); in mlx5vf_buf_read()
186 copy_len -= page_len; in mlx5vf_buf_read()
742 size_t copy_len, to_copy; in mlx5vf_resume_read_image() local
746 copy_len = to_copy; in mlx5vf_resume_read_image()
754 *len -= copy_len; in mlx5vf_resume_read_image()
770 size_t copy_len, to_copy; in mlx5vf_resume_read_header_data() local
777 copy_len = to_copy; in mlx5vf_resume_read_header_data()
[all …]
/linux-6.12.1/drivers/gpu/drm/tegra/
Dsubmit.c163 size_t copy_len; in alloc_copy_user_array() local
166 if (check_mul_overflow(count, size, &copy_len)) in alloc_copy_user_array()
169 if (copy_len > 0x4000) in alloc_copy_user_array()
172 data = vmemdup_user(from, copy_len); in alloc_copy_user_array()
184 size_t copy_len; in submit_copy_gather_data() local
191 if (check_mul_overflow((size_t)args->gather_data_words, (size_t)4, &copy_len)) { in submit_copy_gather_data()
206 bo->gather_data = dma_alloc_attrs(dev, copy_len, &bo->gather_data_dma, in submit_copy_gather_data()
214 if (copy_from_user(bo->gather_data, u64_to_user_ptr(args->gather_data_ptr), copy_len)) { in submit_copy_gather_data()
216 dma_free_attrs(dev, copy_len, bo->gather_data, bo->gather_data_dma, 0); in submit_copy_gather_data()
/linux-6.12.1/drivers/net/ethernet/sfc/falcon/
Dtx.c152 unsigned int copy_len = skb->len; in ef4_enqueue_skb_copy() local
157 EF4_BUG_ON_PARANOID(copy_len > EF4_TX_CB_SIZE); in ef4_enqueue_skb_copy()
165 rc = skb_copy_bits(skb, 0, copy_buffer, copy_len); in ef4_enqueue_skb_copy()
167 if (unlikely(copy_len < min_len)) { in ef4_enqueue_skb_copy()
168 memset(copy_buffer + copy_len, 0, min_len - copy_len); in ef4_enqueue_skb_copy()
171 buffer->len = copy_len; in ef4_enqueue_skb_copy()
/linux-6.12.1/drivers/infiniband/hw/cxgb4/
Dmem.c117 int copy_len, num_wqe, i, ret = 0; in _c4iw_write_mem_inline() local
131 copy_len = len > C4IW_MAX_INLINE_SIZE ? C4IW_MAX_INLINE_SIZE : in _c4iw_write_mem_inline()
134 roundup(copy_len, T4_ULPTX_MIN_IO), in _c4iw_write_mem_inline()
158 DIV_ROUND_UP(copy_len, T4_ULPTX_MIN_IO))); in _c4iw_write_mem_inline()
165 sc->len = cpu_to_be32(roundup(copy_len, T4_ULPTX_MIN_IO)); in _c4iw_write_mem_inline()
170 memcpy(to_dp, from_dp, copy_len); in _c4iw_write_mem_inline()
172 memset(to_dp, 0, copy_len); in _c4iw_write_mem_inline()
173 if (copy_len % T4_ULPTX_MIN_IO) in _c4iw_write_mem_inline()
174 memset(to_dp + copy_len, 0, T4_ULPTX_MIN_IO - in _c4iw_write_mem_inline()
175 (copy_len % T4_ULPTX_MIN_IO)); in _c4iw_write_mem_inline()
/linux-6.12.1/drivers/scsi/isci/
Dprobe_roms.c68 size_t copy_len; in isci_request_oprom() local
72 copy_len = min(oem_hdr.len - sizeof(oem_hdr), in isci_request_oprom()
77 copy_len); in isci_request_oprom()
/linux-6.12.1/drivers/net/ethernet/sfc/siena/
Dtx.c86 unsigned int copy_len = skb->len; in efx_enqueue_skb_copy() local
91 EFX_WARN_ON_ONCE_PARANOID(copy_len > EFX_TX_CB_SIZE); in efx_enqueue_skb_copy()
99 rc = skb_copy_bits(skb, 0, copy_buffer, copy_len); in efx_enqueue_skb_copy()
101 buffer->len = copy_len; in efx_enqueue_skb_copy()
/linux-6.12.1/net/xfrm/
Dxfrm_compat.c405 size_t size, int copy_len, int payload) in xfrm_attr_cpy32() argument
414 if (WARN_ON_ONCE(copy_len > payload)) in xfrm_attr_cpy32()
415 copy_len = payload; in xfrm_attr_cpy32()
422 memcpy(nla, src, nla_attr_size(copy_len)); in xfrm_attr_cpy32()
424 *pos += nla_attr_size(copy_len); in xfrm_attr_cpy32()
427 memset(dst + *pos, 0, payload - copy_len); in xfrm_attr_cpy32()
428 *pos += payload - copy_len; in xfrm_attr_cpy32()
/linux-6.12.1/drivers/scsi/libfc/
Dfc_libfc.c105 u32 copy_len = 0; in fc_copy_buffer_to_sglist() local
140 copy_len += sg_bytes; in fc_copy_buffer_to_sglist()
142 return copy_len; in fc_copy_buffer_to_sglist()
/linux-6.12.1/kernel/bpf/
Dstackmap.c409 u32 trace_nr, copy_len, elem_size, num_elem, max_depth; in __bpf_get_stack() local
465 copy_len = trace_nr * elem_size; in __bpf_get_stack()
475 memcpy(buf, ips, copy_len); in __bpf_get_stack()
485 if (size > copy_len) in __bpf_get_stack()
486 memset(buf + copy_len, 0, size - copy_len); in __bpf_get_stack()
487 return copy_len; in __bpf_get_stack()
/linux-6.12.1/net/sunrpc/xprtrdma/
Drpc_rdma.c1040 rpcrdma_inline_fixup(struct rpc_rqst *rqst, char *srcp, int copy_len, int pad) in rpcrdma_inline_fixup() argument
1058 if (curlen > copy_len) in rpcrdma_inline_fixup()
1059 curlen = copy_len; in rpcrdma_inline_fixup()
1061 copy_len -= curlen; in rpcrdma_inline_fixup()
1067 if (copy_len && rqst->rq_rcv_buf.page_len) { in rpcrdma_inline_fixup()
1071 if (pagelist_len > copy_len) in rpcrdma_inline_fixup()
1072 pagelist_len = copy_len; in rpcrdma_inline_fixup()
1084 copy_len -= curlen; in rpcrdma_inline_fixup()
1105 if (copy_len || pad) { in rpcrdma_inline_fixup()
/linux-6.12.1/drivers/net/ethernet/sfc/
Dtx.c102 unsigned int copy_len = skb->len; in efx_enqueue_skb_copy() local
107 EFX_WARN_ON_ONCE_PARANOID(copy_len > EFX_TX_CB_SIZE); in efx_enqueue_skb_copy()
115 rc = skb_copy_bits(skb, 0, copy_buffer, copy_len); in efx_enqueue_skb_copy()
117 buffer->len = copy_len; in efx_enqueue_skb_copy()
/linux-6.12.1/drivers/memstick/host/
Dr592.c330 int copy_len = kfifo_in(&dev->pio_fifo, buffer, len); in r592_write_fifo_pio() local
334 len -= copy_len; in r592_write_fifo_pio()
335 buffer += copy_len; in r592_write_fifo_pio()
337 copy_len = kfifo_out(&dev->pio_fifo, tmp, 4); in r592_write_fifo_pio()
338 WARN_ON(copy_len != 4); in r592_write_fifo_pio()
/linux-6.12.1/drivers/hwmon/
Dibmpowernv.c223 u32 copy_len; in get_sensor_index_attr() local
233 copy_len = dash_pos - hash_pos - 1; in get_sensor_index_attr()
234 if (copy_len >= sizeof(buf)) in get_sensor_index_attr()
237 memcpy(buf, hash_pos + 1, copy_len); in get_sensor_index_attr()
/linux-6.12.1/drivers/iommu/iommufd/
Ddevice.c1182 unsigned int copy_len; in iommufd_get_hw_info() local
1216 copy_len = min(cmd->data_len, data_len); in iommufd_get_hw_info()
1217 if (copy_to_user(user_ptr, data, copy_len)) { in iommufd_get_hw_info()
1226 if (copy_len < cmd->data_len) { in iommufd_get_hw_info()
1227 if (clear_user(user_ptr + copy_len, cmd->data_len - copy_len)) { in iommufd_get_hw_info()
/linux-6.12.1/drivers/net/ethernet/synopsys/
Ddwc-xlgmac-net.c991 unsigned int copy_len; in xlgmac_create_skb() local
1009 copy_len = (desc_data->rx.hdr_len) ? desc_data->rx.hdr_len : len; in xlgmac_create_skb()
1010 copy_len = min(desc_data->rx.hdr.dma_len, copy_len); in xlgmac_create_skb()
1011 skb_copy_to_linear_data(skb, packet, copy_len); in xlgmac_create_skb()
1012 skb_put(skb, copy_len); in xlgmac_create_skb()
1014 len -= copy_len; in xlgmac_create_skb()
/linux-6.12.1/net/bridge/netfilter/
Debt_nflog.c31 li.u.ulog.copy_len = info->len; in ebt_nflog_tg()
/linux-6.12.1/net/xdp/
Dxsk.c204 u32 copy_len = min_t(u32, *from_len, to_len); in xsk_copy_xdp() local
206 memcpy(to, *from, copy_len); in xsk_copy_xdp()
207 copied += copy_len; in xsk_copy_xdp()
211 if (*from_len == copy_len) { in xsk_copy_xdp()
215 *from += copy_len; in xsk_copy_xdp()
216 *from_len -= copy_len; in xsk_copy_xdp()
218 if (to_len == copy_len) in xsk_copy_xdp()
221 to_len -= copy_len; in xsk_copy_xdp()
222 to += copy_len; in xsk_copy_xdp()
/linux-6.12.1/drivers/infiniband/core/
Duverbs_std_types_device.c278 size_t copy_len; in copy_gid_entries_to_user() local
289 copy_len = min_t(size_t, user_entry_size, sizeof(*entries)); in copy_gid_entries_to_user()
296 if (copy_to_user(user_entries, entries, copy_len)) in copy_gid_entries_to_user()
/linux-6.12.1/include/net/netfilter/
Dnf_log.h27 u_int32_t copy_len; member
/linux-6.12.1/arch/powerpc/perf/
Dhv-24x7.c1009 size_t copy_len; in catalog_read() local
1042 copy_len = 4096 - offset_in_page; in catalog_read()
1043 if (copy_len > count) in catalog_read()
1044 copy_len = count; in catalog_read()
1046 memcpy(buf, page+offset_in_page, copy_len); in catalog_read()
1047 ret = copy_len; in catalog_read()
/linux-6.12.1/drivers/net/ethernet/google/gve/
Dgve_tx_dqo.c720 u32 copy_len; in gve_tx_add_skb_copy_dqo() local
732 copy_len = min_t(u32, GVE_TX_BUF_SIZE_DQO, in gve_tx_add_skb_copy_dqo()
734 skb_copy_bits(skb, copy_offset, va, copy_len); in gve_tx_add_skb_copy_dqo()
736 copy_offset += copy_len; in gve_tx_add_skb_copy_dqo()
738 copy_len, DMA_TO_DEVICE); in gve_tx_add_skb_copy_dqo()
740 copy_len, in gve_tx_add_skb_copy_dqo()

123