/openbmc/linux/drivers/net/wireless/intel/iwlwifi/pcie/ |
H A D | tx-gen2.c | 37 u16 copy_size, cmd_size, tb0_size; in iwl_pcie_gen2_enqueue_hcmd() local 56 if (copy_size < IWL_FIRST_TB_SIZE) { in iwl_pcie_gen2_enqueue_hcmd() 63 copy_size += copy; in iwl_pcie_gen2_enqueue_hcmd() 95 copy_size += cmdlen[i]; in iwl_pcie_gen2_enqueue_hcmd() 163 copy_size += copy; in iwl_pcie_gen2_enqueue_hcmd() 178 if (copy_size < IWL_FIRST_TB_SIZE) { in iwl_pcie_gen2_enqueue_hcmd() 179 copy = IWL_FIRST_TB_SIZE - copy_size; in iwl_pcie_gen2_enqueue_hcmd() 183 copy_size += copy; in iwl_pcie_gen2_enqueue_hcmd() 200 if (copy_size > tb0_size) { in iwl_pcie_gen2_enqueue_hcmd() 203 copy_size - tb0_size, in iwl_pcie_gen2_enqueue_hcmd() [all …]
|
H A D | tx.c | 894 u16 copy_size, cmd_size, tb0_size; in iwl_pcie_enqueue_hcmd() local 927 if (copy_size < IWL_FIRST_TB_SIZE) { in iwl_pcie_enqueue_hcmd() 934 copy_size += copy; in iwl_pcie_enqueue_hcmd() 966 copy_size += cmdlen[i]; in iwl_pcie_enqueue_hcmd() 980 cmd->id, copy_size)) { in iwl_pcie_enqueue_hcmd() 1044 copy_size += copy; in iwl_pcie_enqueue_hcmd() 1059 if (copy_size < IWL_FIRST_TB_SIZE) { in iwl_pcie_enqueue_hcmd() 1060 copy = IWL_FIRST_TB_SIZE - copy_size; in iwl_pcie_enqueue_hcmd() 1064 copy_size += copy; in iwl_pcie_enqueue_hcmd() 1083 if (copy_size > tb0_size) { in iwl_pcie_enqueue_hcmd() [all …]
|
/openbmc/linux/drivers/firmware/broadcom/ |
H A D | bcm47xx_nvram.c | 51 size_t copy_size; in bcm47xx_nvram_copy() local 53 copy_size = header->len; in bcm47xx_nvram_copy() 54 if (copy_size > res_size) { in bcm47xx_nvram_copy() 56 copy_size = res_size; in bcm47xx_nvram_copy() 58 if (copy_size >= NVRAM_SPACE) { in bcm47xx_nvram_copy() 60 copy_size, NVRAM_SPACE - 1); in bcm47xx_nvram_copy() 61 copy_size = NVRAM_SPACE - 1; in bcm47xx_nvram_copy() 64 __ioread32_copy(nvram_buf, nvram_start, DIV_ROUND_UP(copy_size, 4)); in bcm47xx_nvram_copy() 66 nvram_len = copy_size; in bcm47xx_nvram_copy()
|
/openbmc/linux/drivers/dma/idxd/ |
H A D | irq.c | 234 int copied, copy_size; in idxd_evl_fault_work() local 242 copy_size = cr_size; in idxd_evl_fault_work() 258 copy_size = cr_size; in idxd_evl_fault_work() 261 copy_size = 0; in idxd_evl_fault_work() 266 if (copy_size == 0) in idxd_evl_fault_work() 274 cr, copy_size); in idxd_evl_fault_work() 286 if (copied != copy_size) { in idxd_evl_fault_work() 289 copy_size, copied); in idxd_evl_fault_work() 295 if (copied != copy_size) { in idxd_evl_fault_work() 298 copy_size, copied); in idxd_evl_fault_work() [all …]
|
/openbmc/qemu/hw/net/ |
H A D | opencores_eth.c | 416 if (copy_size > size) { 417 copy_size = size; 433 cpu_physical_memory_write(desc->buf_ptr, buf, copy_size); 435 if (GET_REGBIT(s, MODER, PAD) && copy_size < minfl) { 436 if (minfl - copy_size > fcsl) { 439 fcsl -= minfl - copy_size; 441 while (copy_size < minfl) { 443 minfl - copy_size : sizeof(zero); 447 copy_size += zero_sz; 456 copy_size += fcsl; [all …]
|
H A D | e1000.c | 955 size_t copy_size = size - desc_offset; in e1000_receive_iov() local 956 if (copy_size > s->rxbuf_size) { in e1000_receive_iov() 957 copy_size = s->rxbuf_size; in e1000_receive_iov() 960 iov_copy = MIN(copy_size, iov->iov_len - iov_ofs); in e1000_receive_iov() 962 copy_size -= iov_copy; in e1000_receive_iov() 969 } while (copy_size); in e1000_receive_iov()
|
H A D | igb_core.c | 1754 size_t *copy_size) in igb_write_header_to_rx_buffers() argument 1774 *copy_size -= iov_copy; in igb_write_header_to_rx_buffers() 1830 size_t *copy_size) in igb_write_payload_to_rx_buffers() argument 1836 while (*copy_size) { in igb_write_payload_to_rx_buffers() 1837 iov_copy = MIN(*copy_size, pdma_st->iov->iov_len - pdma_st->iov_ofs); in igb_write_payload_to_rx_buffers() 1844 *copy_size -= iov_copy; in igb_write_payload_to_rx_buffers() 1867 size_t copy_size; in igb_write_to_rx_buffers() local 1881 copy_size = pdma_st->size - pdma_st->desc_offset; in igb_write_to_rx_buffers() 1882 igb_truncate_to_descriptor_size(pdma_st, ©_size); in igb_write_to_rx_buffers() 1886 igb_write_header_to_rx_buffers(core, pkt, d, pdma_st, ©_size); in igb_write_to_rx_buffers() [all …]
|
/openbmc/linux/fs/reiserfs/ |
H A D | resize.c | 36 int copy_size; in reiserfs_resize() local 100 copy_size = min(bmap_nr_new, bmap_nr); in reiserfs_resize() 101 copy_size = in reiserfs_resize() 102 copy_size * sizeof(struct reiserfs_list_bitmap_node *); in reiserfs_resize() 106 memcpy(jbitmap[i].bitmaps, jb->bitmaps, copy_size); in reiserfs_resize()
|
/openbmc/linux/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_blit.c | 367 u32 copy_size = bytes_to_copy; in vmw_bo_cpu_blit_line() local 376 copy_size = min_t(u32, copy_size, PAGE_SIZE - dst_page_offset); in vmw_bo_cpu_blit_line() 377 copy_size = min_t(u32, copy_size, PAGE_SIZE - src_page_offset); in vmw_bo_cpu_blit_line() 415 d->src_addr + src_page_offset, copy_size); in vmw_bo_cpu_blit_line() 417 bytes_to_copy -= copy_size; in vmw_bo_cpu_blit_line() 418 dst_offset += copy_size; in vmw_bo_cpu_blit_line() 419 src_offset += copy_size; in vmw_bo_cpu_blit_line()
|
/openbmc/linux/lib/xz/ |
H A D | xz_dec_lzma2.c | 381 size_t copy_size; in dict_uncompressed() local 389 if (copy_size > *left) in dict_uncompressed() 390 copy_size = *left; in dict_uncompressed() 392 *left -= copy_size; in dict_uncompressed() 402 dict->pos += copy_size; in dict_uncompressed() 416 copy_size); in dict_uncompressed() 421 b->out_pos += copy_size; in dict_uncompressed() 422 b->in_pos += copy_size; in dict_uncompressed() 457 copy_size); in dict_flush() 461 b->out_pos += copy_size; in dict_flush() [all …]
|
H A D | xz_dec_bcj.c | 401 size_t copy_size; in bcj_flush() local 403 copy_size = min_t(size_t, s->temp.filtered, b->out_size - b->out_pos); in bcj_flush() 404 memcpy(b->out + b->out_pos, s->temp.buf, copy_size); in bcj_flush() 405 b->out_pos += copy_size; in bcj_flush() 407 s->temp.filtered -= copy_size; in bcj_flush() 408 s->temp.size -= copy_size; in bcj_flush() 409 memmove(s->temp.buf, s->temp.buf + copy_size, s->temp.size); in bcj_flush()
|
H A D | xz_dec_stream.c | 159 size_t copy_size = min_t(size_t, in fill_temp() local 162 memcpy(s->temp.buf + s->temp.pos, b->in + b->in_pos, copy_size); in fill_temp() 163 b->in_pos += copy_size; in fill_temp() 164 s->temp.pos += copy_size; in fill_temp()
|
/openbmc/linux/drivers/char/ |
H A D | lp.c | 309 size_t copy_size = count; in lp_write() local 321 if (copy_size > LP_BUFFER_SIZE) in lp_write() 322 copy_size = LP_BUFFER_SIZE; in lp_write() 327 if (copy_from_user(kbuf, buf, copy_size)) { in lp_write() 346 written = parport_write(port, kbuf, copy_size); in lp_write() 348 copy_size -= written; in lp_write() 361 if (copy_size > 0) { in lp_write() 390 copy_size = count; in lp_write() 391 if (copy_size > LP_BUFFER_SIZE) in lp_write() 392 copy_size = LP_BUFFER_SIZE; in lp_write() [all …]
|
/openbmc/linux/drivers/infiniband/hw/erdma/ |
H A D | erdma_qp.c | 211 u32 remain_size, copy_size, data_off, bytes = 0; in fill_inline_data() local 229 copy_size = min(remain_size, SQEBB_SIZE - sgl_offset); in fill_inline_data() 234 copy_size); in fill_inline_data() 235 remain_size -= copy_size; in fill_inline_data() 236 data_off += copy_size; in fill_inline_data() 237 sgl_offset += copy_size; in fill_inline_data()
|
/openbmc/linux/drivers/dma/sh/ |
H A D | shdma-base.c | 508 size_t copy_size = *len; in shdma_add_desc() local 510 if (!copy_size) in shdma_add_desc() 520 ops->desc_setup(schan, new, *src, *dst, ©_size); in shdma_add_desc() 533 copy_size, *len, src, dst, &new->async_tx, in shdma_add_desc() 541 *len -= copy_size; in shdma_add_desc() 543 *src += copy_size; in shdma_add_desc() 545 *dst += copy_size; in shdma_add_desc()
|
/openbmc/linux/drivers/gpu/drm/amd/amdkfd/ |
H A D | kfd_debug.c | 744 uint32_t copy_size; in kfd_dbg_trap_enable() local 762 copy_size = min((size_t)(*runtime_size), sizeof(target->runtime_info)); in kfd_dbg_trap_enable() 785 if (copy_to_user(runtime_info, (void *)&target->runtime_info, copy_size)) { in kfd_dbg_trap_enable() 905 uint32_t copy_size, actual_info_size = 0; in kfd_dbg_trap_query_exception_info() local 969 copy_size = min((size_t)(*info_size), pdd->vm_fault_exc_data_size); in kfd_dbg_trap_query_exception_info() 971 if (copy_to_user(info, pdd->vm_fault_exc_data, copy_size)) { in kfd_dbg_trap_query_exception_info() 991 copy_size = min((size_t)(*info_size), sizeof(target->runtime_info)); in kfd_dbg_trap_query_exception_info() 993 if (copy_to_user(info, (void *)&target->runtime_info, copy_size)) { in kfd_dbg_trap_query_exception_info()
|
/openbmc/linux/net/bpf/ |
H A D | test_run.c | 443 u32 copy_size = size; in bpf_test_finish() local 449 copy_size > kattr->test.data_size_out) { in bpf_test_finish() 450 copy_size = kattr->test.data_size_out; in bpf_test_finish() 455 int len = sinfo ? copy_size - sinfo->xdp_frags_size : copy_size; in bpf_test_finish() 472 if (offset >= copy_size) { in bpf_test_finish() 477 data_len = min_t(u32, copy_size - offset, in bpf_test_finish() 818 u32 copy_size = size; in bpf_ctx_finish() local 823 if (copy_size > kattr->test.ctx_size_out) { in bpf_ctx_finish() 824 copy_size = kattr->test.ctx_size_out; in bpf_ctx_finish() 828 if (copy_to_user(data_out, data, copy_size)) in bpf_ctx_finish()
|
/openbmc/linux/drivers/acpi/acpica/ |
H A D | utcopy.c | 646 acpi_size copy_size; in acpi_ut_copy_simple_object() local 657 copy_size = sizeof(union acpi_operand_object); in acpi_ut_copy_simple_object() 659 copy_size = sizeof(struct acpi_namespace_node); in acpi_ut_copy_simple_object() 663 ACPI_CAST_PTR(char, source_desc), copy_size); in acpi_ut_copy_simple_object()
|
/openbmc/linux/drivers/crypto/hisilicon/sec2/ |
H A D | sec_crypto.c | 900 int copy_size, pbuf_length; in GEN_SEC_SETKEY_FUNC() local 909 copy_size = c_req->c_len; in GEN_SEC_SETKEY_FUNC() 912 qp_ctx->res[req_id].pbuf, copy_size); in GEN_SEC_SETKEY_FUNC() 913 if (unlikely(pbuf_length != copy_size)) { in GEN_SEC_SETKEY_FUNC() 936 int copy_size, pbuf_length; in sec_cipher_pbuf_unmap() local 940 copy_size = c_req->c_len + aead_req->assoclen; in sec_cipher_pbuf_unmap() 942 copy_size = c_req->c_len; in sec_cipher_pbuf_unmap() 945 qp_ctx->res[req_id].pbuf, copy_size); in sec_cipher_pbuf_unmap() 946 if (unlikely(pbuf_length != copy_size)) in sec_cipher_pbuf_unmap() 957 size_t copy_size; in sec_aead_mac_init() local [all …]
|
/openbmc/qemu/hw/ufs/ |
H A D | ufs.c | 158 uint32_t copy_size; in ufs_dma_read_req_upiu() local 174 copy_size = sizeof(UtpUpiuHeader) + UFS_TRANSACTION_SPECIFIC_FIELD_SIZE + in ufs_dma_read_req_upiu() 177 if (copy_size > sizeof(req->req_upiu)) { in ufs_dma_read_req_upiu() 178 copy_size = sizeof(req->req_upiu); in ufs_dma_read_req_upiu() 181 ret = ufs_addr_read(u, req_upiu_base_addr, &req->req_upiu, copy_size); in ufs_dma_read_req_upiu() 276 uint32_t copy_size = sizeof(UtpUpiuHeader) + in ufs_dma_write_rsp_upiu() local 281 if (copy_size > rsp_upiu_byte_len) { in ufs_dma_write_rsp_upiu() 282 copy_size = rsp_upiu_byte_len; in ufs_dma_write_rsp_upiu() 285 if (copy_size > sizeof(req->rsp_upiu)) { in ufs_dma_write_rsp_upiu() 286 copy_size = sizeof(req->rsp_upiu); in ufs_dma_write_rsp_upiu() [all …]
|
/openbmc/linux/arch/s390/kernel/ |
H A D | debug.c | 474 size_t copy_size; in debug_output() local 479 copy_size = min(user_buf_residue, formatted_line_residue); in debug_output() 480 if (copy_size) { in debug_output() 482 + entry_offset, copy_size)) in debug_output() 484 count += copy_size; in debug_output() 485 entry_offset += copy_size; in debug_output() 487 if (copy_size == formatted_line_residue) { in debug_output()
|
/openbmc/linux/drivers/net/vmxnet3/ |
H A D | vmxnet3_drv.c | 744 BUG_ON(ctx->copy_size > skb_headlen(skb)); in vmxnet3_map_pkt() 753 if (ctx->copy_size) { in vmxnet3_map_pkt() 775 len = skb_headlen(skb) - ctx->copy_size; in vmxnet3_map_pkt() 776 buf_offset = ctx->copy_size; in vmxnet3_map_pkt() 960 ctx->copy_size = min(ctx->l4_offset + in vmxnet3_parse_hdr() 966 ctx->copy_size = min_t(unsigned int, in vmxnet3_parse_hdr() 972 ctx->copy_size = skb->len; in vmxnet3_parse_hdr() 981 ctx->copy_size = 0; in vmxnet3_parse_hdr() 1011 memcpy(tdd->data, skb->data, ctx->copy_size); in vmxnet3_copy_hdr() 1014 ctx->copy_size, tq->tx_ring.next2fill); in vmxnet3_copy_hdr() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_controlq.c | 1078 u16 copy_size = le16_to_cpu(desc->datalen); in ice_sq_send_cmd() local 1080 if (copy_size > buf_size) { in ice_sq_send_cmd() 1082 copy_size, buf_size); in ice_sq_send_cmd() 1085 memcpy(buf, dma_buf->va, copy_size); in ice_sq_send_cmd()
|
/openbmc/linux/fs/jfs/ |
H A D | namei.c | 995 u32 copy_size = min_t(u32, ssize, PSIZE); in jfs_symlink() local 1005 memcpy(mp->data, name, copy_size); in jfs_symlink() 1007 ssize -= copy_size; in jfs_symlink() 1008 name += copy_size; in jfs_symlink()
|
/openbmc/linux/drivers/s390/block/ |
H A D | dasd_ioctl.c | 564 size_t copy_size) in dasd_ioctl_information() argument 574 if (!error && copy_to_user(argp, dasd_info, copy_size)) in dasd_ioctl_information()
|