Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

drivers/gpu/drm/xe/xe_bo.c xe_bo_migrate() -> xe_bo_can_migrate()

Type Parameter Key Value
PARAM_VALUE 0 bo 4096-ptr_max
DATA_SOURCE 0 bo $0
DATA_SOURCE 1 mem_type $1
PARAM_COMPARE 0 bo->ttm.resource->mem_type != $1
PARAM_COMPARE 1 mem_type != $0->ttm.resource->mem_type
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 bo->ttm.base.size
NO_OVERFLOW_SIMPLE 0 bo->ttm.ttm->dma_ttm.sg->orig_nents
HALF_LOCKED2 &vm->lock
HALF_LOCKED2 global &drm_unplug_srcu
HALF_LOCKED2 0 bo->ttm.base.resv

drivers/gpu/drm/xe/xe_dma_buf.c xe_dma_buf_attach() -> xe_bo_can_migrate()

Type Parameter Key Value
PARAM_VALUE 0 bo 4096-ptr_max
PARAM_VALUE 1 mem_type 1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dev->object_name_lock
HALF_LOCKED2 &file_priv->prime.lock

drivers/gpu/drm/xe/xe_dma_buf.c xe_dma_buf_map() -> xe_bo_can_migrate()

Type Parameter Key Value
PARAM_VALUE 0 bo 4096-ptr_max
PARAM_VALUE 1 mem_type 1
DATA_SOURCE 0 bo r gem_to_xe_bo
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &bo->lock
HALF_LOCKED2 &dbc->ch_lock
HALF_LOCKED2 &qdev->dev_lock
HALF_LOCKED2 &usr->qddev_lock
HALF_LOCKED2 attach->dmabuf->resv
HALF_LOCKED2 bo->base.base.resv
HALF_LOCKED2 dmabuf->resv
HALF_LOCKED2 resv