Home
last modified time | relevance | path

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

123

/linux-6.3-rc2/drivers/net/ethernet/cavium/liquidio/
A 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.3-rc2/drivers/vfio/pci/mlx5/
A Dmain.c166 size_t copy_len; in mlx5vf_buf_read() local
170 while (copy_len) { in mlx5vf_buf_read()
688 copy_len = to_copy; in mlx5vf_resume_read_image()
696 *len -= copy_len; in mlx5vf_resume_read_image()
719 copy_len = to_copy; in mlx5vf_resume_read_header_data()
727 *len -= copy_len; in mlx5vf_resume_read_header_data()
764 size_t copy_len; in mlx5vf_resume_read_header() local
780 *buf += copy_len; in mlx5vf_resume_read_header()
781 *pos += copy_len; in mlx5vf_resume_read_header()
782 *done += copy_len; in mlx5vf_resume_read_header()
[all …]
/linux-6.3-rc2/fs/btrfs/
A Dlzo.c169 u32 copy_len = min_t(u32, sectorsize - *cur_out % sectorsize, in copy_compressed_data_to_page() local
188 compressed_data + *cur_out - orig_out, copy_len); in copy_compressed_data_to_page()
190 *cur_out += copy_len; in copy_compressed_data_to_page()
316 u32 copy_len = min_t(u32, PAGE_SIZE - offset_in_page(*cur_in), in copy_compressed_segment() local
319 ASSERT(copy_len); in copy_compressed_segment()
323 offset_in_page(*cur_in), copy_len); in copy_compressed_segment()
325 *cur_in += copy_len; in copy_compressed_segment()
A Dcompression.c1121 size_t copy_len; in btrfs_decompress_buf2page() local
1138 copy_len = min(bvec_offset + bvec.bv_len, in btrfs_decompress_buf2page()
1140 ASSERT(copy_len); in btrfs_decompress_buf2page()
1148 buf + copy_start - decompressed, copy_len); in btrfs_decompress_buf2page()
1149 cur_offset += copy_len; in btrfs_decompress_buf2page()
1151 bio_advance(orig_bio, copy_len); in btrfs_decompress_buf2page()
/linux-6.3-rc2/drivers/gpu/drm/tegra/
A 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.3-rc2/drivers/net/ethernet/sfc/falcon/
A 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.3-rc2/drivers/infiniband/hw/cxgb4/
A 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.3-rc2/drivers/scsi/isci/
A 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.3-rc2/drivers/net/ethernet/sfc/siena/
A 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.3-rc2/drivers/net/wireless/intersil/hostap/
A Dhostap_info.c308 int i, result_size, copy_len, new_count; in prism2_info_hostscanresults() local
323 copy_len = result_size = le16_to_cpu(*pos); in prism2_info_hostscanresults()
329 if (copy_len > sizeof(struct hfa384x_hostscan_result)) in prism2_info_hostscanresults()
330 copy_len = sizeof(struct hfa384x_hostscan_result); in prism2_info_hostscanresults()
344 memcpy(&results[i], ptr, copy_len); in prism2_info_hostscanresults()
/linux-6.3-rc2/kernel/bpf/
A Dstackmap.c392 u32 trace_nr, copy_len, elem_size, num_elem, max_depth; in __bpf_get_stack() local
436 copy_len = trace_nr * elem_size; in __bpf_get_stack()
442 memcpy(buf, ips, copy_len); in __bpf_get_stack()
444 if (size > copy_len) in __bpf_get_stack()
445 memset(buf + copy_len, 0, size - copy_len); in __bpf_get_stack()
446 return copy_len; in __bpf_get_stack()
/linux-6.3-rc2/net/xfrm/
A Dxfrm_compat.c400 size_t size, int copy_len, int payload) in xfrm_attr_cpy32() argument
409 if (WARN_ON_ONCE(copy_len > payload)) in xfrm_attr_cpy32()
410 copy_len = payload; in xfrm_attr_cpy32()
417 memcpy(nla, src, nla_attr_size(copy_len)); in xfrm_attr_cpy32()
419 *pos += nla_attr_size(copy_len); in xfrm_attr_cpy32()
422 memset(dst + *pos, 0, payload - copy_len); in xfrm_attr_cpy32()
423 *pos += payload - copy_len; in xfrm_attr_cpy32()
/linux-6.3-rc2/drivers/scsi/libfc/
A 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.3-rc2/include/linux/
A Dfortify-string.h397 size_t p_len, copy_len; in strncat() local
404 copy_len = strnlen(q, count); in strncat()
405 if (p_size < p_len + copy_len + 1) in strncat()
407 __underlying_memcpy(p + p_len, q, copy_len); in strncat()
408 p[p_len + copy_len] = '\0'; in strncat()
/linux-6.3-rc2/net/sunrpc/xprtrdma/
A 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.3-rc2/drivers/net/ethernet/sfc/
A 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.3-rc2/drivers/memstick/host/
A Dr592.c332 int copy_len = kfifo_in(&dev->pio_fifo, buffer, len); in r592_write_fifo_pio() local
336 len -= copy_len; in r592_write_fifo_pio()
337 buffer += copy_len; in r592_write_fifo_pio()
339 copy_len = kfifo_out(&dev->pio_fifo, tmp, 4); in r592_write_fifo_pio()
340 WARN_ON(copy_len != 4); in r592_write_fifo_pio()
/linux-6.3-rc2/drivers/hwmon/
A 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 strncpy(buf, hash_pos + 1, copy_len); in get_sensor_index_attr()
/linux-6.3-rc2/net/bridge/netfilter/
A Debt_nflog.c31 li.u.ulog.copy_len = info->len; in ebt_nflog_tg()
/linux-6.3-rc2/drivers/net/ethernet/synopsys/
A 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.3-rc2/fs/debugfs/
A Dfile.c873 int copy_len, len; in debugfs_read_file_str() local
888 copy_len = strscpy(copy, str, len); in debugfs_read_file_str()
890 if (copy_len < 0) { in debugfs_read_file_str()
892 return copy_len; in debugfs_read_file_str()
895 copy[copy_len] = '\n'; in debugfs_read_file_str()
/linux-6.3-rc2/drivers/infiniband/core/
A Duverbs_std_types_device.c277 size_t copy_len; in copy_gid_entries_to_user() local
288 copy_len = min_t(size_t, user_entry_size, sizeof(*entries)); in copy_gid_entries_to_user()
295 if (copy_to_user(user_entries, entries, copy_len)) in copy_gid_entries_to_user()
/linux-6.3-rc2/net/netfilter/
A Dxt_NFLOG.c28 li.u.ulog.copy_len = info->len; in nflog_tg()
A Dnft_log.c200 li->u.ulog.copy_len = in nft_log_init()
270 htonl(li->u.ulog.copy_len))) in nft_log_dump()
/linux-6.3-rc2/include/net/netfilter/
A Dnf_log.h27 u_int32_t copy_len; member

Completed in 68 milliseconds

123