Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/gpu/drm/drm_pagemap.c __drm_pagemap_migrate_to_ram() -> (struct drm_pagemap_devmem_ops)->copy_to_ram()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pages | 4096-ptr_max |
| PARAM_VALUE | 1 | pagemap_addr | 4096-ptr_max |
| PARAM_VALUE | 2 | npages | 0-4503599627370495 |
| PARAM_VALUE | 3 | pre_migrate_fence | 0 |
| CAPPED_DATA | 2 | npages | 1 |
| CAPPED_DATA | 2 | npages | 1 |
| DATA_SOURCE | 2 | npages | r npages_in_range |
| PARAM_COMPARE | 0 | pages | >= $2 |
| PARAM_COMPARE | 1 | pagemap_addr | >= $2 |
| PARAM_COMPARE | 2 | npages | < $0 |
| PARAM_COMPARE | 2 | npages | < $1 |
| PARAM_COMPARE | 2 | npages | <= $0 |
| PARAM_COMPARE | 2 | npages | <= $0 |
| PARAM_COMPARE | 2 | npages | <= $1 |
| PARAM_COMPARE | 2 | npages | <= $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | npages | 0-s32max[c] |
| HALF_LOCKED2 | &mm->mmap_lock |
drivers/gpu/drm/drm_pagemap.c drm_pagemap_evict_to_ram() -> (struct drm_pagemap_devmem_ops)->copy_to_ram()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | pages | 4096-ptr_max |
| PARAM_VALUE | 1 | pagemap_addr | 4096-ptr_max |
| PARAM_VALUE | 2 | npages | 0-4503599627370495 |
| PARAM_VALUE | 3 | pre_migrate_fence | 0 |
| CAPPED_DATA | 2 | npages | 1 |
| CAPPED_DATA | 2 | npages | 1 |
| PARAM_COMPARE | 2 | npages | < $0 |
| PARAM_COMPARE | 2 | npages | < $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 2 | npages | |
| HALF_LOCKED2 | ttm_bo->base.resv |
drivers/gpu/drm/drm_pagemap.c drm_pagemap_migrate_remote_to_local() -> (struct drm_pagemap_devmem_ops)->copy_to_ram()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | npages | 1-4503599627370495 |
| DATA_SOURCE | 0 | pages | $4 |
| DATA_SOURCE | 1 | pagemap_addr | $5 |
| DATA_SOURCE | 2 | npages | $6 |
| LOCK2 | &driver_migrate_lock | ||
| LOCK2 | &mm->mmap_lock | ||
| LOCK2 | &vm->lock | ||
| LOCK2 | global &drm_unplug_srcu | ||
| TYPE_LOCK | (struct mm_struct)->mmap_lock | ||
| TYPE_LOCK | (struct xe_vm)->lock |