Defined in 1 files as a function:

Referenced in 11 files:

Smatch caller information:

drivers/gpu/drm/xe/xe_gsc_proxy.c proxy_query() -> xe_map_memcpy_to()

Type Parameter Key Value
PARAM_VALUE 1 dst 4096-ptr_max
PARAM_VALUE 2 dst_offset 36
PARAM_VALUE 3 src 4096-ptr_max
PARAM_VALUE 3 src->destination 65536,131072,196608
PARAM_VALUE 3 src->source 131072,196608
PARAM_VALUE 3 *src 0-255
PARAM_VALUE 4 len 16-s32max
CAPPED_DATA 3 src->destination 1
CAPPED_DATA 3 src->source 1
CAPPED_DATA 4 len 1
DATA_SOURCE 2 dst_offset r xe_gsc_emit_header
NOCHECK_CALL
UNITS 4 len unit_byte
LOCK2 &gsc->proxy.mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct xe_gsc)->proxy.mutex

drivers/gpu/drm/xe/xe_guc_ct.c h2g_write() -> xe_map_memcpy_to()

Type Parameter Key Value
PARAM_VALUE 1 dst 1560778987525853184
PARAM_VALUE 1 dst->vaddr 4096-ptr_max
PARAM_VALUE 1 dst->vaddr_iomem 4096-ptr_max
PARAM_VALUE 2 dst_offset 0
PARAM_VALUE 3 src 4096-ptr_max
PARAM_VALUE 4 len 8
BUF_SIZE 3 src 8
DATA_SOURCE 0 xe r ct_to_xe
NOCHECK_CALL
HALF_LOCKED2 &ct->fast_lock
HALF_LOCKED2 irq

drivers/gpu/drm/xe/xe_guc_ct.c h2g_write() -> xe_map_memcpy_to()

Type Parameter Key Value
PARAM_VALUE 1 dst 1560778987525853184
PARAM_VALUE 1 dst->vaddr 4096-ptr_max
PARAM_VALUE 1 dst->vaddr_iomem 4096-ptr_max
PARAM_VALUE 2 dst_offset 8
PARAM_VALUE 3 src 4097-18446744073709547521
PARAM_VALUE 4 len 0-17179869180
DATA_SOURCE 0 xe r ct_to_xe
DATA_SOURCE 3 src $1 [m]
NOCHECK_CALL
HALF_LOCKED2 &ct->fast_lock
HALF_LOCKED2 irq

drivers/gpu/drm/xe/xe_gsc.c memcpy_fw() -> xe_map_memcpy_to()

Type Parameter Key Value
PARAM_VALUE 1 dst 4096-ptr_max
PARAM_VALUE 2 dst_offset 0
PARAM_VALUE 3 src 16,4096-ptr_max
PARAM_VALUE 4 len 0-4000000
BUF_SIZE 3 src 0-u32max
BUF_SIZE 3 src 0-u32max
DATA_SOURCE 3 src r _kmalloc_noprof
NOCHECK_CALL
HOST_DATA 3 *src 0-255
UNITS 4 len unit_byte
BYTE_COUNT 3 ==src4 8050
HALF_LOCKED2 &pool->lock

drivers/gpu/drm/xe/xe_guc_submit.c wq_item_append() -> xe_map_memcpy_to()

Type Parameter Key Value
PARAM_VALUE 1 dst 6723105684572852224
PARAM_VALUE 1 dst->vaddr 4096-ptr_max
PARAM_VALUE 1 dst->vaddr_iomem 4096-ptr_max
PARAM_VALUE 2 dst_offset 0
PARAM_VALUE 3 src 4096-ptr_max
PARAM_VALUE 4 len 20-262152
BUF_SIZE 3 src 48
CAPPED_DATA 4 len 1
DATA_SOURCE 0 xe r guc_to_xe
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &adev->reset_domain->sem
HALF_LOCKED2 &attr->mutex
HALF_LOCKED2 &guc->submission_state.lock
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 &sched->job_list_lock

drivers/gpu/drm/xe/xe_guc_ads.c guc_capture_prep_lists() -> xe_map_memcpy_to()

Type Parameter Key Value
PARAM_VALUE 1 dst 4096-ptr_max
PARAM_VALUE 3 src 1-u64max
PARAM_VALUE 4 len 16
DATA_SOURCE 2 dst_offset r guc_ads_capture_offset
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 4 len

drivers/gpu/drm/xe/xe_guc_ads.c guc_capture_prep_lists() -> xe_map_memcpy_to()

Type Parameter Key Value
PARAM_VALUE 1 dst 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 2 dst_offset
NO_OVERFLOW_SIMPLE 4 len

drivers/gpu/drm/xe/xe_guc_ads.c guc_capture_prep_lists() -> xe_map_memcpy_to()

Type Parameter Key Value
PARAM_VALUE 1 dst 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 2 dst_offset
NO_OVERFLOW_SIMPLE 4 len

drivers/gpu/drm/xe/xe_guc_ads.c guc_capture_prep_lists() -> xe_map_memcpy_to()

Type Parameter Key Value
PARAM_VALUE 1 dst 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 2 dst_offset
NO_OVERFLOW_SIMPLE 4 len

drivers/gpu/drm/xe/xe_guc_ads.c guc_golden_lrc_populate() -> xe_map_memcpy_to()

Type Parameter Key Value
PARAM_VALUE 1 dst 4096-ptr_max
PARAM_VALUE 4 len 8192,12288,16384,20480,24576,28672,32768,36864,57344,61440
DATA_SOURCE 0 xe r ads_to_xe
DATA_SOURCE 4 len r xe_gt_lrc_size
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/gpu/drm/xe/xe_guc_ads.c guc_mmio_regset_write_one() -> xe_map_memcpy_to()

Type Parameter Key Value
PARAM_VALUE 1 dst 390895666977984512
PARAM_VALUE 3 src 840051693844434944
PARAM_VALUE 4 len 16
BUF_SIZE 3 src 16
DATA_SOURCE 1 dst $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 4 len unit_byte

drivers/gpu/drm/xe/xe_guc_ads.c guc_waklv_enable() -> xe_map_memcpy_to()

Type Parameter Key Value
PARAM_VALUE 1 dst 4096-ptr_max
PARAM_VALUE 2 dst_offset 4-4294967299
PARAM_VALUE 4 len 0-8
BUF_SIZE 3 src (-1),4,8
DATA_SOURCE 3 src $1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 2 dst_offset unit_byte

drivers/gpu/drm/xe/xe_bo.c xe_bo_restore_pinned() -> xe_map_memcpy_to()

Type Parameter Key Value
PARAM_VALUE 0 xe 4096-ptr_max
PARAM_VALUE 1 dst 4096-ptr_max
PARAM_VALUE 2 dst_offset 0
BUF_SIZE 3 src s32min-(-2),1-s32max
DATA_SOURCE 0 xe r ttm_to_xe_device
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 3 src unit_byte
LOCK2 bo->ttm.base.resv

drivers/gpu/drm/xe/xe_bo.c xe_managed_bo_create_from_data() -> xe_map_memcpy_to()

Type Parameter Key Value
PARAM_VALUE 0 xe->drm.dev->devres_head.prev 4096-ptr_max
PARAM_VALUE 0 xe->drm.dev->devres_head.prev->next 4096-ptr_max
PARAM_VALUE 0 xe->drm.dev->devres_head.prev->next->next 4096-ptr_max
PARAM_VALUE 0 xe->ttm.dev_mapping->host->i_sb->s_export_op->encode_fh 0,2,1398972869330624512,1616549510479982592,2037984473558433792
PARAM_VALUE 0 xe->ttm.dev_mapping->host->i_sb->s_export_op->fh_to_dentry 0,8684,447817974243774464,687732489194512384,742201802719268864
PARAM_VALUE 0 xe->ttm.dev_mapping->host->i_sb->s_export_op->fh_to_parent 0,4672,148606482432692224,436469935444291584,457356038048772096
PARAM_VALUE 0 xe->ttm.dev_mapping->host->i_sb->s_export_op->get_parent 0,8931,264940071972966400,291591359766798336,565128213429456896
PARAM_VALUE 0 xe->ttm.dev_mapping->i_mmap_rwsem.first_waiter->handoff_set 0-1
PARAM_VALUE 0 xe->ttm.dev_mapping->i_mmap_rwsem.first_waiter->type 0-1
PARAM_VALUE 0 xe->ttm.pool.dev->iommu->attach_deferred 0-1
PARAM_VALUE 0 xe->ttm.pool.dev->iommu->pci_32bit_workaround 0-1
PARAM_VALUE 0 xe->ttm.vma_manager->vm_lock.dep_map->name 0-255
PARAM_VALUE 0 xe->val.lock.first_waiter->handoff_set 0-1
PARAM_VALUE 1 dst 4096-ptr_max
PARAM_VALUE 2 dst_offset 0
BUF_SIZE 3 src s32min-(-2),1-s32max
BUF_SIZE 3 src s32min-(-2),1-s32max
DATA_SOURCE 0 xe $0
DATA_SOURCE 3 src $2
DATA_SOURCE 4 len $3
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 3 src unit_byte
UNITS 4 len unit_byte

drivers/gpu/drm/xe/xe_bo.c xe_ttm_access_memory() -> xe_map_memcpy_to()

Type Parameter Key Value
PARAM_VALUE 0 xe 4096-ptr_max
PARAM_VALUE 1 dst 4076072236734345216
PARAM_VALUE 1 dst->is_iomem 1
PARAM_VALUE 1 dst->vaddr 4096-ptr_max
PARAM_VALUE 1 dst->vaddr_iomem 4096-ptr_max
PARAM_VALUE 2 dst_offset 0-4095
PARAM_VALUE 4 len 1-4096
BUF_SIZE 3 src (-1),4,8,15,24,64,128,168-s32max
BUF_SIZE 3 src (-1),4,8,15,24,64,128,168-s32max
CAPPED_DATA 4 len 1
DATA_SOURCE 0 xe r ttm_to_xe_device
DATA_SOURCE 3 src $2 [m]
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 3 *src s64min-s64max
USER_DATA 2 dst_offset 0-4095[c]
USER_DATA 3 src 4096-ptr_max[c][u]
USER_DATA 4 len 1-4096[c]
USER_PTR 3 src
LOCK2 ttm_bo->base.resv
HALF_LOCKED2 &pool->lock

drivers/gpu/drm/xe/xe_lrc.c __xe_lrc_write_ring() -> xe_map_memcpy_to()

Type Parameter Key Value
PARAM_VALUE 1 dst 4096-ptr_max
PARAM_VALUE 1 dst->vaddr 4096-ptr_max
PARAM_VALUE 1 dst->vaddr_iomem 4096-ptr_max
PARAM_VALUE 2 dst_offset 0
BUF_SIZE 3 src (-1),4,8,12,40,296
BUF_SIZE 3 src (-1),4,8,12,40,296
CAPPED_DATA 4 len 1
CAPPED_DATA 4 len 1
DATA_SOURCE 0 xe r lrc_to_xe
DATA_SOURCE 3 src $2
DATA_SOURCE 4 len $3
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 3 src unit_byte
UNITS 4 len unit_byte

drivers/gpu/drm/xe/xe_lrc.c finish_bo() -> xe_map_memcpy_to()

Type Parameter Key Value
PARAM_VALUE 1 dst 4096-ptr_max
PARAM_VALUE 1 dst->is_iomem 1
BUF_SIZE 3 src 4032,4096
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/gpu/drm/xe/xe_lrc.c xe_lrc_ctx_init() -> xe_map_memcpy_to()

Type Parameter Key Value
PARAM_VALUE 1 dst 7688495835782656000
PARAM_VALUE 2 dst_offset 4096
PARAM_VALUE 3 src 4096-ptr_max
PARAM_VALUE 4 len 4096,8192,12288,16384,20480,24576,28672,32768,53248,57344
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/gpu/drm/xe/xe_lrc.c xe_lrc_ctx_init() -> xe_map_memcpy_to()

Type Parameter Key Value
PARAM_VALUE 1 dst 7688495835782656000
PARAM_VALUE 2 dst_offset 4096
PARAM_VALUE 3 src 1-u64max
PARAM_VALUE 4 len 4096,8192,12288,20480,28672,53248
BUF_SIZE 3 src (-1),4096,8192,12288,20480,28672,53248
BUF_SIZE 3 src (-1),4096,8192,12288,20480,28672,53248
DATA_SOURCE 3 src $3
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/gpu/drm/xe/xe_lrc.c xe_lrc_ctx_init() -> xe_map_memcpy_to()

Type Parameter Key Value
PARAM_VALUE 1 dst 7688495835782656000
PARAM_VALUE 2 dst_offset 0
PARAM_VALUE 3 src 4096-ptr_max
PARAM_VALUE 4 len 8192,12288,16384,20480,24576,28672,32768,36864,57344,61440
BUF_SIZE 3 src s32min-s32max
DATA_SOURCE 3 src r empty_lrc_data
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/gpu/drm/xe/xe_lrc.c xe_lrc_update_memirq_regs_with_address() -> xe_map_memcpy_to()

Type Parameter Key Value
PARAM_VALUE 1 dst 7270513640042909696
PARAM_VALUE 2 dst_offset 0
PARAM_VALUE 4 len 320,384
DATA_SOURCE 3 src $2
DATA_SOURCE 4 len r xe_lrc_reg_size
NOCHECK_CALL
LOCK2 &guc->submission_state.lock
LOCK2 &pool->lock
TYPE_LOCK (struct xe_guc)->submission_state.lock

drivers/gpu/drm/xe/xe_sa.c xe_sa_bo_flush_write() -> xe_map_memcpy_to()

Type Parameter Key Value
PARAM_VALUE 1 dst 4096-ptr_max
PARAM_VALUE 1 dst->is_iomem 1
PARAM_VALUE 3 src 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/gpu/drm/xe/xe_sa.c xe_sa_bo_sync_shadow() -> xe_map_memcpy_to()

Type Parameter Key Value
PARAM_VALUE 1 dst 4096-ptr_max
PARAM_VALUE 3 src 4096-ptr_max
NOCHECK_CALL

drivers/gpu/drm/xe/xe_mem_pool.c xe_mem_pool_bo_flush_write() -> xe_map_memcpy_to()

Type Parameter Key Value
PARAM_VALUE 1 dst 4096-ptr_max
PARAM_VALUE 1 dst->is_iomem 1
PARAM_VALUE 3 src 4096-ptr_max
NOCHECK_CALL
UNITS 3 src unit_byte

drivers/gpu/drm/xe/xe_mem_pool.c xe_mem_pool_sync() -> xe_map_memcpy_to()

Type Parameter Key Value
PARAM_VALUE 1 dst 4096-ptr_max
PARAM_VALUE 2 dst_offset 0
BUF_SIZE 3 src s32min-(-2),1-s32max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 3 src unit_byte

drivers/gpu/drm/xe/xe_mem_pool.c xe_mem_pool_sync_shadow_locked() -> xe_map_memcpy_to()

Type Parameter Key Value
PARAM_VALUE 1 dst 4096-ptr_max
PARAM_VALUE 3 src 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 3 src unit_byte
LOCK2 _T->lock
HALF_LOCKED2 ttm_bo->base.resv

drivers/gpu/drm/xe/xe_pxp_submit.c gsccs_send_message() -> xe_map_memcpy_to()

Type Parameter Key Value
PARAM_VALUE 1 dst 4096-ptr_max
PARAM_VALUE 2 dst_offset 36
PARAM_VALUE 3 src 3070438196070203392,4183671347333111808
PARAM_VALUE 4 len 28,76
BUF_SIZE 3 src 28,76
BUF_SIZE 3 src 28,76
CAPPED_DATA 4 len 1
CAPPED_DATA 4 len 1
DATA_SOURCE 2 dst_offset r xe_gsc_emit_header
DATA_SOURCE 3 src $1
DATA_SOURCE 4 len $2
HARD_MAX 4 len 76
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 4 len unit_byte