/linux/fs/verity/ |
H A D | read_metadata.c | 43 unsigned int bytes_to_copy = min_t(u64, end_offset - offset, in fsverity_read_merkle_tree() local 58 if (copy_to_user(buf, virt + offs_in_page, bytes_to_copy)) { in fsverity_read_merkle_tree() 67 retval += bytes_to_copy; in fsverity_read_merkle_tree() 68 buf += bytes_to_copy; in fsverity_read_merkle_tree() 69 offset += bytes_to_copy; in fsverity_read_merkle_tree()
|
/linux/fs/squashfs/ |
H A D | block.c | 50 int bytes_to_copy = min_t(int, bvec->bv_len - offset, in copy_bio_to_actor() local 53 bytes_to_copy = min_t(int, bytes_to_copy, in copy_bio_to_actor() 57 offset, bytes_to_copy); in copy_bio_to_actor() 59 actor_offset += bytes_to_copy; in copy_bio_to_actor() 60 copied_bytes += bytes_to_copy; in copy_bio_to_actor() 61 offset += bytes_to_copy; in copy_bio_to_actor()
|
/linux/fs/ |
H A D | exec.c | 482 int offset, bytes_to_copy; in copy_strings() local 494 bytes_to_copy = offset; in copy_strings() 495 if (bytes_to_copy > len) in copy_strings() 496 bytes_to_copy = len; in copy_strings() 498 offset -= bytes_to_copy; in copy_strings() 499 pos -= bytes_to_copy; in copy_strings() 500 str -= bytes_to_copy; in copy_strings() 501 len -= bytes_to_copy; in copy_strings() 522 if (copy_from_user(kaddr+offset, str, bytes_to_copy)) { in copy_strings() 558 unsigned int bytes_to_copy = min_t(unsigned int, len, in copy_string_kernel() local [all …]
|
/linux/drivers/net/ethernet/brocade/bna/ |
H A D | bfa_msgq.c | 59 cmdq->bytes_to_copy = 0; in cmdq_sm_stopped_entry() 258 if (cmdq->bytes_to_copy) in bfa_msgq_cmdq_copy_next() 270 cmdq->bytes_to_copy = ntohs(req->len); in bfa_msgq_cmdq_copy_req() 285 copied = (cmdq->bytes_to_copy >= BFI_CMD_COPY_SZ) ? BFI_CMD_COPY_SZ : in bfa_msgq_cmdq_copy_rsp() 286 cmdq->bytes_to_copy; in bfa_msgq_cmdq_copy_rsp() 292 cmdq->bytes_to_copy -= copied; in bfa_msgq_cmdq_copy_rsp()
|
H A D | bfa_msgq.h | 72 int bytes_to_copy; member
|
/linux/drivers/media/usb/cx231xx/ |
H A D | cx231xx-vbi.h | 48 u8 *p_buffer, u32 bytes_to_copy);
|
/linux/drivers/gpu/drm/i915/gt/uc/ |
H A D | intel_guc_log.c | 376 unsigned int buffer_size, read_offset, write_offset, bytes_to_copy, full_cnt; in _guc_log_copy_debuglogs_for_relay() local 462 bytes_to_copy = buffer_size - read_offset; in _guc_log_copy_debuglogs_for_relay() 464 bytes_to_copy = write_offset - read_offset; in _guc_log_copy_debuglogs_for_relay() 467 src_data + read_offset, bytes_to_copy); in _guc_log_copy_debuglogs_for_relay()
|
/linux/tools/bpf/bpftool/ |
H A D | btf_dumper.c | 357 int bytes_to_copy; in btf_dumper_bitfield() local 361 bytes_to_copy = BITS_ROUNDUP_BYTES(bits_to_copy); in btf_dumper_bitfield() 363 memcpy(print_num, data, bytes_to_copy); in btf_dumper_bitfield()
|
/linux/net/vmw_vsock/ |
H A D | virtio_transport_common.c | 751 size_t bytes_to_copy; in virtio_transport_seqpacket_do_dequeue() local 753 bytes_to_copy = min(user_buf_len, pkt_len); in virtio_transport_seqpacket_do_dequeue() 755 if (bytes_to_copy) { in virtio_transport_seqpacket_do_dequeue() 765 bytes_to_copy); in virtio_transport_seqpacket_do_dequeue() 772 user_buf_len -= bytes_to_copy; in virtio_transport_seqpacket_do_dequeue()
|
/linux/drivers/net/wireless/marvell/mwifiex/ |
H A D | scan.c | 1194 u8 bytes_to_copy; in mwifiex_update_bss_desc_with_ie() local 1318 bytes_to_copy = in mwifiex_update_bss_desc_with_ie() 1322 bytes_to_copy = element_len; in mwifiex_update_bss_desc_with_ie() 1326 memcpy(rate, current_ptr + 2, bytes_to_copy); in mwifiex_update_bss_desc_with_ie() 1330 memcpy(rate, current_ptr + 2, bytes_to_copy); in mwifiex_update_bss_desc_with_ie()
|
/linux/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_mcp.c | 3062 u32 bytes_left = len, offset = 0, bytes_to_copy, read_len = 0; in qed_mcp_nvm_read() local 3073 bytes_to_copy = min_t(u32, bytes_left, MCP_DRV_NVM_BUF_LEN); in qed_mcp_nvm_read() 3078 (bytes_to_copy << in qed_mcp_nvm_read() 3201 u32 bytes_left, bytes_to_copy, buf_size, nvm_offset = 0; in qed_mcp_phy_sfp_read() local 3214 bytes_to_copy = min_t(u32, bytes_left, in qed_mcp_phy_sfp_read() 3221 nvm_offset |= (bytes_to_copy << in qed_mcp_phy_sfp_read()
|
/linux/drivers/scsi/ |
H A D | ipr.c | 3056 u32 max_dump_size, bytes_to_copy, bytes_copied, rc; in ipr_get_ioa_dump() local 3125 bytes_to_copy = offsetof(struct ipr_sdt, entry) + in ipr_get_ioa_dump() 3128 bytes_to_copy / sizeof(__be32)); in ipr_get_ioa_dump() 3165 bytes_to_copy = be32_to_cpu(sdt->entry[i].end_token); in ipr_get_ioa_dump() 3171 bytes_to_copy = end_off - start_off; in ipr_get_ioa_dump() 3176 if (bytes_to_copy > max_dump_size) { in ipr_get_ioa_dump() 3183 bytes_to_copy); in ipr_get_ioa_dump() 3187 if (bytes_copied != bytes_to_copy) { in ipr_get_ioa_dump()
|