Home
last modified time | relevance | path

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

123

/linux-6.1.9/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.1.9/fs/btrfs/
Dlzo.c167 u32 copy_len = min_t(u32, sectorsize - *cur_out % sectorsize, in copy_compressed_data_to_page() local
186 compressed_data + *cur_out - orig_out, copy_len); in copy_compressed_data_to_page()
188 *cur_out += copy_len; in copy_compressed_data_to_page()
314 u32 copy_len = min_t(u32, PAGE_SIZE - offset_in_page(*cur_in), in copy_compressed_segment() local
317 ASSERT(copy_len); in copy_compressed_segment()
321 offset_in_page(*cur_in), copy_len); in copy_compressed_segment()
323 *cur_in += copy_len; in copy_compressed_segment()
/linux-6.1.9/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 = kvmalloc(copy_len, GFP_KERNEL); in alloc_copy_user_array()
176 if (copy_from_user(data, from, copy_len)) { in alloc_copy_user_array()
189 size_t copy_len; in submit_copy_gather_data() local
196 if (check_mul_overflow((size_t)args->gather_data_words, (size_t)4, &copy_len)) { in submit_copy_gather_data()
211 bo->gather_data = dma_alloc_attrs(dev, copy_len, &bo->gather_data_dma, in submit_copy_gather_data()
219 if (copy_from_user(bo->gather_data, u64_to_user_ptr(args->gather_data_ptr), copy_len)) { in submit_copy_gather_data()
221 dma_free_attrs(dev, copy_len, bo->gather_data, bo->gather_data_dma, 0); in submit_copy_gather_data()
/linux-6.1.9/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.1.9/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.1.9/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.1.9/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.1.9/drivers/net/wireless/intersil/hostap/
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.1.9/kernel/bpf/
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.1.9/net/xfrm/
Dxfrm_compat.c399 size_t size, int copy_len, int payload) in xfrm_attr_cpy32() argument
408 if (WARN_ON_ONCE(copy_len > payload)) in xfrm_attr_cpy32()
409 copy_len = payload; in xfrm_attr_cpy32()
416 memcpy(nla, src, nla_attr_size(copy_len)); in xfrm_attr_cpy32()
418 *pos += nla_attr_size(copy_len); in xfrm_attr_cpy32()
421 memset(dst + *pos, 0, payload - copy_len); in xfrm_attr_cpy32()
422 *pos += payload - copy_len; in xfrm_attr_cpy32()
/linux-6.1.9/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.1.9/include/linux/
Dfortify-string.h281 size_t p_len, copy_len; in strncat() local
288 copy_len = strnlen(q, count); in strncat()
289 if (p_size < p_len + copy_len + 1) in strncat()
291 __underlying_memcpy(p + p_len, q, copy_len); in strncat()
292 p[p_len + copy_len] = '\0'; in strncat()
/linux-6.1.9/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.1.9/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.1.9/drivers/memstick/host/
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.1.9/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 strncpy(buf, hash_pos + 1, copy_len); in get_sensor_index_attr()
/linux-6.1.9/net/bridge/netfilter/
Debt_nflog.c31 li.u.ulog.copy_len = info->len; in ebt_nflog_tg()
/linux-6.1.9/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.1.9/fs/debugfs/
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.1.9/include/net/netfilter/
Dnf_log.h27 u_int32_t copy_len; member
/linux-6.1.9/net/netfilter/
Dxt_NFLOG.c28 li.u.ulog.copy_len = info->len; in nflog_tg()
Dnft_log.c200 li->u.ulog.copy_len = in nft_log_init()
269 htonl(li->u.ulog.copy_len))) in nft_log_dump()
/linux-6.1.9/drivers/infiniband/core/
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.1.9/arch/powerpc/perf/
Dhv-24x7.c1032 size_t copy_len; in catalog_read() local
1065 copy_len = 4096 - offset_in_page; in catalog_read()
1066 if (copy_len > count) in catalog_read()
1067 copy_len = count; in catalog_read()
1069 memcpy(buf, page+offset_in_page, copy_len); in catalog_read()
1070 ret = copy_len; in catalog_read()
/linux-6.1.9/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_io.c376 int copied, copy_len, descr_size; in qlcnic_tx_encap_pkt() local
406 copy_len = min(descr_size, (total_hdr_len - copied)); in qlcnic_tx_encap_pkt()
411 copy_len); in qlcnic_tx_encap_pkt()
412 copied += copy_len; in qlcnic_tx_encap_pkt()
464 int copied, offset, copy_len, size; in qlcnic_tx_pkt() local
523 copy_len = min((int)sizeof(struct cmd_desc_type0) - in qlcnic_tx_pkt()
533 copy_len - 16); in qlcnic_tx_pkt()
534 copied = copy_len - VLAN_HLEN; in qlcnic_tx_pkt()
541 copy_len = min(size, (hdr_len - copied)); in qlcnic_tx_pkt()
546 offset, copy_len); in qlcnic_tx_pkt()
[all …]

123