/openbmc/linux/drivers/media/usb/cx231xx/ |
H A D | cx231xx-vbi.c | 495 u32 bytes_to_copy; in cx231xx_copy_vbi_line() local 513 bytes_to_copy = dma_q->bytes_left_in_line; in cx231xx_copy_vbi_line() 514 if (bytes_to_copy > length) in cx231xx_copy_vbi_line() 515 bytes_to_copy = length; in cx231xx_copy_vbi_line() 518 dma_q->bytes_left_in_line -= bytes_to_copy; in cx231xx_copy_vbi_line() 529 dma_q->bytes_left_in_line -= bytes_to_copy; in cx231xx_copy_vbi_line() 532 return bytes_to_copy; in cx231xx_copy_vbi_line() 536 cx231xx_do_vbi_copy(dev, dma_q, p_line, bytes_to_copy); in cx231xx_copy_vbi_line() 538 dma_q->pos += bytes_to_copy; in cx231xx_copy_vbi_line() 539 dma_q->bytes_left_in_line -= bytes_to_copy; in cx231xx_copy_vbi_line() [all …]
|
H A D | cx231xx-video.c | 546 u32 bytes_to_copy; in cx231xx_copy_video_line() local 562 bytes_to_copy = dma_q->bytes_left_in_line; in cx231xx_copy_video_line() 563 if (bytes_to_copy > length) in cx231xx_copy_video_line() 564 bytes_to_copy = length; in cx231xx_copy_video_line() 567 dma_q->bytes_left_in_line -= bytes_to_copy; in cx231xx_copy_video_line() 578 dma_q->bytes_left_in_line -= bytes_to_copy; in cx231xx_copy_video_line() 581 return bytes_to_copy; in cx231xx_copy_video_line() 585 cx231xx_do_copy(dev, dma_q, p_line, bytes_to_copy); in cx231xx_copy_video_line() 587 dma_q->pos += bytes_to_copy; in cx231xx_copy_video_line() 588 dma_q->bytes_left_in_line -= bytes_to_copy; in cx231xx_copy_video_line() [all …]
|
H A D | cx231xx-vbi.h | 48 u8 *p_buffer, u32 bytes_to_copy);
|
H A D | cx231xx.h | 805 u8 *p_buffer, u32 bytes_to_copy);
|
/openbmc/linux/fs/verity/ |
H A D | read_metadata.c | 42 unsigned int bytes_to_copy = min_t(u64, end_offset - offset, in fsverity_read_merkle_tree() local 57 if (copy_to_user(buf, virt + offs_in_page, bytes_to_copy)) { in fsverity_read_merkle_tree() 66 retval += bytes_to_copy; in fsverity_read_merkle_tree() 67 buf += bytes_to_copy; in fsverity_read_merkle_tree() 68 offset += bytes_to_copy; in fsverity_read_merkle_tree()
|
/openbmc/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()
|
/openbmc/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
|
/openbmc/linux/fs/ |
H A D | exec.c | 557 int offset, bytes_to_copy; in copy_strings() local 569 bytes_to_copy = offset; in copy_strings() 570 if (bytes_to_copy > len) in copy_strings() 571 bytes_to_copy = len; in copy_strings() 573 offset -= bytes_to_copy; in copy_strings() 574 pos -= bytes_to_copy; in copy_strings() 575 str -= bytes_to_copy; in copy_strings() 576 len -= bytes_to_copy; in copy_strings() 597 if (copy_from_user(kaddr+offset, str, bytes_to_copy)) { in copy_strings() 633 unsigned int bytes_to_copy = min_t(unsigned int, len, in copy_string_kernel() local [all …]
|
/openbmc/qemu/bsd-user/ |
H A D | elfload.c | 171 int bytes_to_copy = (len > offset) ? offset : len; in copy_elf_strings() local 172 tmp -= bytes_to_copy; in copy_elf_strings() 173 p -= bytes_to_copy; in copy_elf_strings() 174 offset -= bytes_to_copy; in copy_elf_strings() 175 len -= bytes_to_copy; in copy_elf_strings() 176 memcpy_fromfs(pag + offset, tmp, bytes_to_copy + 1); in copy_elf_strings()
|
/openbmc/qemu/hw/cxl/ |
H A D | cxl-mailbox-utils.c | 1191 uint16_t bytes_to_copy = 0; in cmd_features_get_feature() local 1218 bytes_to_copy = sizeof(CXLMemPatrolScrubReadAttrs) - in cmd_features_get_feature() 1220 bytes_to_copy = MIN(bytes_to_copy, get_feature->count); in cmd_features_get_feature() 1223 bytes_to_copy); in cmd_features_get_feature() 1228 bytes_to_copy = sizeof(CXLMemECSReadAttrs) - get_feature->offset; in cmd_features_get_feature() 1229 bytes_to_copy = MIN(bytes_to_copy, get_feature->count); in cmd_features_get_feature() 1232 bytes_to_copy); in cmd_features_get_feature() 1237 *len_out = bytes_to_copy; in cmd_features_get_feature() 1256 uint16_t bytes_to_copy = 0; in cmd_features_set_feature() local 1289 bytes_to_copy = len_in - sizeof(CXLSetFeatureInHeader); in cmd_features_set_feature() [all …]
|
/openbmc/qemu/hw/net/ |
H A D | cadence_gem.c | 1048 unsigned rxbufsize, bytes_to_copy; in gem_receive() local 1087 bytes_to_copy = size; in gem_receive() 1113 bytes_to_copy = size; in gem_receive() 1124 bytes_to_copy += 4; in gem_receive() 1139 while (bytes_to_copy) { in gem_receive() 1148 MIN(bytes_to_copy, rxbufsize), in gem_receive() 1155 MIN(bytes_to_copy, rxbufsize)); in gem_receive() 1156 rxbuf_ptr += MIN(bytes_to_copy, rxbufsize); in gem_receive() 1157 bytes_to_copy -= MIN(bytes_to_copy, rxbufsize); in gem_receive() 1166 if (bytes_to_copy == 0) { in gem_receive()
|
H A D | vmxnet3.c | 943 size_t bytes_to_copy) in vmxnet3_pci_dma_writev() argument 948 while (bytes_to_copy) { in vmxnet3_pci_dma_writev() 951 MIN((curr_off + iov->iov_len) - start_iov_off, bytes_to_copy); in vmxnet3_pci_dma_writev() 960 bytes_to_copy -= chunk_len; in vmxnet3_pci_dma_writev()
|
/openbmc/linux/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_blit.c | 362 u32 bytes_to_copy) in vmw_bo_cpu_blit_line() argument 366 while (bytes_to_copy) { in vmw_bo_cpu_blit_line() 367 u32 copy_size = bytes_to_copy; in vmw_bo_cpu_blit_line() 417 bytes_to_copy -= copy_size; in vmw_bo_cpu_blit_line()
|
/openbmc/linux/drivers/gpu/drm/i915/gt/uc/ |
H A D | intel_guc_log.c | 377 unsigned int buffer_size, read_offset, write_offset, bytes_to_copy, full_cnt; in _guc_log_copy_debuglogs_for_relay() local 463 bytes_to_copy = buffer_size - read_offset; in _guc_log_copy_debuglogs_for_relay() 465 bytes_to_copy = write_offset - read_offset; in _guc_log_copy_debuglogs_for_relay() 468 src_data + read_offset, bytes_to_copy); in _guc_log_copy_debuglogs_for_relay()
|
/openbmc/ipmitool/lib/ |
H A D | ipmi_delloem.c | 599 int bytes_to_copy; in ipmi_lcd_get_platform_model_name() local 614 bytes_to_copy = MIN(lcdstring_len, IPMI_DELL_LCD_STRING1_SIZE); in ipmi_lcd_get_platform_model_name() 616 bytes_to_copy); in ipmi_lcd_get_platform_model_name() 619 bytes_to_copy = MIN(lcdstring_len - bytes_copied, in ipmi_lcd_get_platform_model_name() 621 if (bytes_to_copy < 1) { in ipmi_lcd_get_platform_model_name() 627 lcdstringblock.lcd_string.selector_n_data, bytes_to_copy); in ipmi_lcd_get_platform_model_name() 629 bytes_copied += bytes_to_copy; in ipmi_lcd_get_platform_model_name() 872 int bytes_to_copy; in ipmi_lcd_get_single_line_text() local 889 bytes_to_copy = MIN(lcdstring_len, IPMI_DELL_LCD_STRING1_SIZE); in ipmi_lcd_get_single_line_text() 891 bytes_to_copy); in ipmi_lcd_get_single_line_text() [all …]
|
/openbmc/linux/net/vmw_vsock/ |
H A D | virtio_transport_common.c | 560 size_t bytes_to_copy; in virtio_transport_seqpacket_do_dequeue() local 562 bytes_to_copy = min(user_buf_len, pkt_len); in virtio_transport_seqpacket_do_dequeue() 564 if (bytes_to_copy) { in virtio_transport_seqpacket_do_dequeue() 572 err = memcpy_to_msg(msg, skb->data, bytes_to_copy); in virtio_transport_seqpacket_do_dequeue() 579 user_buf_len -= bytes_to_copy; in virtio_transport_seqpacket_do_dequeue()
|
/openbmc/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()
|
/openbmc/qemu/linux-user/ |
H A D | elfload.c | 2262 int bytes_to_copy = (len > offset) ? offset : len; in copy_elf_strings() local 2263 tmp -= bytes_to_copy; in copy_elf_strings() 2264 p -= bytes_to_copy; in copy_elf_strings() 2265 offset -= bytes_to_copy; in copy_elf_strings() 2266 len -= bytes_to_copy; in copy_elf_strings() 2268 memcpy_fromfs(scratch + offset, tmp, bytes_to_copy); in copy_elf_strings() 2293 int bytes_to_copy = (len > remaining) ? remaining : len; in copy_elf_strings() local 2295 memcpy_fromfs(scratch + (p - top), tmp, bytes_to_copy); in copy_elf_strings() 2297 tmp += bytes_to_copy; in copy_elf_strings() 2298 remaining -= bytes_to_copy; in copy_elf_strings() [all …]
|
/openbmc/linux/drivers/net/wireless/marvell/mwifiex/ |
H A D | scan.c | 1206 u8 bytes_to_copy; in mwifiex_update_bss_desc_with_ie() local 1330 bytes_to_copy = in mwifiex_update_bss_desc_with_ie() 1334 bytes_to_copy = element_len; in mwifiex_update_bss_desc_with_ie() 1338 memcpy(rate, current_ptr + 2, bytes_to_copy); in mwifiex_update_bss_desc_with_ie() 1342 memcpy(rate, current_ptr + 2, bytes_to_copy); in mwifiex_update_bss_desc_with_ie()
|
/openbmc/linux/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_mcp.c | 3068 u32 bytes_left = len, offset = 0, bytes_to_copy, read_len = 0; in qed_mcp_nvm_read() local 3079 bytes_to_copy = min_t(u32, bytes_left, MCP_DRV_NVM_BUF_LEN); in qed_mcp_nvm_read() 3084 (bytes_to_copy << in qed_mcp_nvm_read() 3214 u32 bytes_left, bytes_to_copy, buf_size, nvm_offset = 0; in qed_mcp_phy_sfp_read() local 3227 bytes_to_copy = min_t(u32, bytes_left, in qed_mcp_phy_sfp_read() 3234 nvm_offset |= (bytes_to_copy << in qed_mcp_phy_sfp_read()
|
H A D | qed_debug.c | 1882 u32 ret_mcp_resp, ret_mcp_param, ret_read_size, bytes_to_copy; in qed_nvram_read() local 1892 bytes_to_copy = in qed_nvram_read() 1900 SET_MFW_FIELD(param, DRV_MB_PARAM_NVM_LEN, bytes_to_copy); in qed_nvram_read()
|
/openbmc/linux/drivers/scsi/ |
H A D | ipr.c | 3055 u32 max_dump_size, bytes_to_copy, bytes_copied, rc; in ipr_get_ioa_dump() local 3124 bytes_to_copy = offsetof(struct ipr_sdt, entry) + in ipr_get_ioa_dump() 3127 bytes_to_copy / sizeof(__be32)); in ipr_get_ioa_dump() 3164 bytes_to_copy = be32_to_cpu(sdt->entry[i].end_token); in ipr_get_ioa_dump() 3170 bytes_to_copy = end_off - start_off; in ipr_get_ioa_dump() 3175 if (bytes_to_copy > max_dump_size) { in ipr_get_ioa_dump() 3182 bytes_to_copy); in ipr_get_ioa_dump() 3186 if (bytes_copied != bytes_to_copy) { in ipr_get_ioa_dump()
|