Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 2 files as a function:
Referenced in 11 files:
- drivers/dax/device.c, line 435
- drivers/dax/fsdev.c, line 320
- drivers/gpu/drm/amd/amdkfd/kfd_migrate.c, line 1068
- drivers/gpu/drm/xe/xe_svm.c, line 1904
- drivers/hv/mshv_vtl_main.c, line 421
- drivers/nvdimm/pmem.c
- drivers/pci/p2pdma.c, line 437
- drivers/s390/block/dcssblk.c, line 697
- fs/fuse/virtio_fs.c, line 1126
- mm/memremap.c, line 389
- tools/testing/nvdimm/test/iomap.c, line 122
Smatch caller information:
drivers/dax/device.c dev_dax_probe() -> devm_memremap_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | pgmap | 4096-ptr_max |
| PARAM_VALUE | 1 | pgmap->ranges | 0 |
| PARAM_VALUE | 1 | pgmap->type | 4 |
| BUF_SIZE | 0 | dev | 1616 |
| BUF_SIZE | 1 | pgmap | 216-u64max |
| BUF_SIZE | 1 | pgmap | 216-u64max |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/nvdimm/pmem.c pmem_attach_disk() -> devm_memremap_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dma_ops->alloc | 0,1744715142275031040,2065280936184246272,2938795245442469888 |
| PARAM_VALUE | 0 | dev->dma_ops->alloc_pages_op | 0,4686288359180861440,6350905364812603392,6978773206971854848 |
| PARAM_VALUE | 0 | dev->dma_ops->cache_sync | 0 |
| PARAM_VALUE | 0 | dev->dma_ops->dma_supported | 0,2528523692154392576,3617072262637035520,5023592177070743552,5276104885786021888 |
| PARAM_VALUE | 0 | dev->dma_ops->free | 0,4778164490434129920,7144974343242604544,7861694134817480704 |
| PARAM_VALUE | 0 | dev->dma_ops->free_pages | 0,239457316199952384,5196233516945883136,7413093576918179840 |
| PARAM_VALUE | 0 | dev->dma_ops->get_merge_boundary | 0 |
| PARAM_VALUE | 0 | dev->dma_ops->get_required_mask | 0,7770840938859397120 |
| PARAM_VALUE | 0 | dev->dma_ops->get_sgtable | 0,1322759480623644672 |
| PARAM_VALUE | 0 | dev->dma_ops->map_phys | 0,2506261230157742080,4169194063996235776,4848421345171935232,6326163439792029696 |
| PARAM_VALUE | 0 | dev->dma_ops->map_sg | 0,2118452656510775296,2518538481676259328,5872201013595766784,6630017431831871488 |
| PARAM_VALUE | 0 | dev->dma_ops->max_mapping_size | 0,8830639662091943936 |
| PARAM_VALUE | 0 | dev->dma_ops->mmap | 0,5761417605877342208,7694740394750603264 |
| PARAM_VALUE | 0 | dev->dma_ops->opt_mapping_size | 0 |
| PARAM_VALUE | 0 | dev->dma_ops->sync_sg_for_cpu | 0,4862850025765572608 |
| PARAM_VALUE | 0 | dev->dma_ops->sync_sg_for_device | 0,3732476178258022400 |
| PARAM_VALUE | 0 | dev->dma_ops->sync_single_for_cpu | 0,1155325867376779264 |
| PARAM_VALUE | 0 | dev->dma_ops->sync_single_for_device | 0,8781567156597239808 |
| PARAM_VALUE | 0 | dev->dma_ops->unmap_phys | 0,3634718672199266304,5690836758666383360,6257189515678003200,7756707427785986048 |
| PARAM_VALUE | 0 | dev->dma_ops->unmap_sg | 0,1256335292805263360,8472845699660435456,8676762248147066880,8920167536469053440 |
| PARAM_VALUE | 0 | dev->driver_data | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->iommu_group->owner_cnt | 0-4294967295 |
| PARAM_VALUE | 0 | dev->kobj.parent->sd->attr.open->nr_mmapped | 0-4294967295 |
| PARAM_VALUE | 0 | dev->kobj.release.wq->dfl_pwq | 0-s64max |
| PARAM_VALUE | 0 | dev->kobj.release.wq->saved_max_active | s32min-s32max |
| PARAM_VALUE | 0 | dev->kobj.release.wq->saved_min_active | s32min-s32max |
| PARAM_VALUE | 0 | dev->kobj.sd->attr.open->nr_mmapped | 0-4294967295 |
| PARAM_VALUE | 0 | dev->parent | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->parent->type | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->type | 4096-2603152832429473791,2603152832429473793-ptr_max |
| PARAM_VALUE | 1 | pgmap | 4096-ptr_max |
| PARAM_VALUE | 1 | pgmap->nr_range | 0-1 |
| PARAM_VALUE | 1 | pgmap->ops | 5265943000216674304 |
| PARAM_VALUE | 1 | pgmap->owner | 4096-ptr_max |
| PARAM_VALUE | 1 | pgmap->type | 3 |
| BUF_SIZE | 0 | dev | (-1)-0,4,16,24-s32max |
| BUF_SIZE | 0 | dev | (-1)-0,4,16,24-s32max |
| CAPPED_DATA | 0 | dev | 1 |
| DATA_SOURCE | 0 | dev | $0 |
| MEM_ZERO | 1 | pgmap | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | dev->flags | 4096-u32max |
| HALF_LOCKED2 | 0 | &dev->mutex |
drivers/nvdimm/pmem.c pmem_attach_disk() -> devm_memremap_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dma_ops->alloc | 0,1744715142275031040,2065280936184246272,2938795245442469888 |
| PARAM_VALUE | 0 | dev->dma_ops->alloc_pages_op | 0,4686288359180861440,6350905364812603392,6978773206971854848 |
| PARAM_VALUE | 0 | dev->dma_ops->cache_sync | 0 |
| PARAM_VALUE | 0 | dev->dma_ops->dma_supported | 0,2528523692154392576,3617072262637035520,5023592177070743552,5276104885786021888 |
| PARAM_VALUE | 0 | dev->dma_ops->free | 0,4778164490434129920,7144974343242604544,7861694134817480704 |
| PARAM_VALUE | 0 | dev->dma_ops->free_pages | 0,239457316199952384,5196233516945883136,7413093576918179840 |
| PARAM_VALUE | 0 | dev->dma_ops->get_merge_boundary | 0 |
| PARAM_VALUE | 0 | dev->dma_ops->get_required_mask | 0,7770840938859397120 |
| PARAM_VALUE | 0 | dev->dma_ops->get_sgtable | 0,1322759480623644672 |
| PARAM_VALUE | 0 | dev->dma_ops->map_phys | 0,2506261230157742080,4169194063996235776,4848421345171935232,6326163439792029696 |
| PARAM_VALUE | 0 | dev->dma_ops->map_sg | 0,2118452656510775296,2518538481676259328,5872201013595766784,6630017431831871488 |
| PARAM_VALUE | 0 | dev->dma_ops->max_mapping_size | 0,8830639662091943936 |
| PARAM_VALUE | 0 | dev->dma_ops->mmap | 0,5761417605877342208,7694740394750603264 |
| PARAM_VALUE | 0 | dev->dma_ops->opt_mapping_size | 0 |
| PARAM_VALUE | 0 | dev->dma_ops->sync_sg_for_cpu | 0,4862850025765572608 |
| PARAM_VALUE | 0 | dev->dma_ops->sync_sg_for_device | 0,3732476178258022400 |
| PARAM_VALUE | 0 | dev->dma_ops->sync_single_for_cpu | 0,1155325867376779264 |
| PARAM_VALUE | 0 | dev->dma_ops->sync_single_for_device | 0,8781567156597239808 |
| PARAM_VALUE | 0 | dev->dma_ops->unmap_phys | 0,3634718672199266304,5690836758666383360,6257189515678003200,7756707427785986048 |
| PARAM_VALUE | 0 | dev->dma_ops->unmap_sg | 0,1256335292805263360,8472845699660435456,8676762248147066880,8920167536469053440 |
| PARAM_VALUE | 0 | dev->driver_data | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->iommu_group->owner_cnt | 0-4294967295 |
| PARAM_VALUE | 0 | dev->kobj.parent->sd->attr.open->nr_mmapped | 0-4294967295 |
| PARAM_VALUE | 0 | dev->kobj.release.wq->dfl_pwq | 0-s64max |
| PARAM_VALUE | 0 | dev->kobj.release.wq->saved_max_active | s32min-s32max |
| PARAM_VALUE | 0 | dev->kobj.release.wq->saved_min_active | s32min-s32max |
| PARAM_VALUE | 0 | dev->kobj.sd->attr.open->nr_mmapped | 0-4294967295 |
| PARAM_VALUE | 0 | dev->parent | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->parent->type | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->type | 0-2603152832429473791,2603152832429473793-u64max |
| PARAM_VALUE | 1 | pgmap | 4096-ptr_max |
| PARAM_VALUE | 1 | pgmap->nr_range | 1 |
| PARAM_VALUE | 1 | pgmap->ops | 5265943000216674304 |
| PARAM_VALUE | 1 | pgmap->owner | 4096-ptr_max |
| PARAM_VALUE | 1 | pgmap->type | 3 |
| BUF_SIZE | 0 | dev | (-1)-0,4,16,24-s32max |
| BUF_SIZE | 0 | dev | (-1)-0,4,16,24-s32max |
| CAPPED_DATA | 0 | dev | 1 |
| DATA_SOURCE | 0 | dev | $0 |
| MEM_ZERO | 1 | pgmap | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | dev->flags | 4096-u32max |
| HALF_LOCKED2 | 0 | &dev->mutex |
drivers/pci/p2pdma.c pci_p2pdma_add_resource() -> devm_memremap_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 1 | pgmap | 4096-ptr_max |
| PARAM_VALUE | 1 | pgmap->nr_range | 1 |
| PARAM_VALUE | 1 | pgmap->ops | 1726399467723894784 |
| PARAM_VALUE | 1 | pgmap->type | 5 |
| BUF_SIZE | 1 | pgmap | 216 |
| BUF_SIZE | 1 | pgmap->ops | 32 |
| MEM_ZERO | 1 | pgmap | |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/nvdimm/../../tools/testing/nvdimm/test/iomap.c __wrap_devm_memremap_pages() -> devm_memremap_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | pgmap | 4096-ptr_max |
| DATA_SOURCE | 0 | dev | $0 |
| DATA_SOURCE | 1 | pgmap | $1 |
drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_migrate.c kgd2kfd_init_zone_device() -> devm_memremap_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | pgmap | 4096-ptr_max |
| PARAM_VALUE | 1 | pgmap->flags | 0 |
| PARAM_VALUE | 1 | pgmap->nr_range | 1 |
| PARAM_VALUE | 1 | pgmap->ops | 6966299180101042176 |
| PARAM_VALUE | 1 | pgmap->owner | 1-u64max |
| PARAM_VALUE | 1 | pgmap->type | 1-2 |
| BUF_SIZE | 1 | pgmap | 216 |
| BUF_SIZE | 1 | pgmap->ops | 32 |
| FUZZY_MAX | 1 | pgmap->type | 2 |
| HARD_MAX | 1 | pgmap->type | 2 |
| MEM_ZERO | 1 | pgmap | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | dev | unit_byte |
| HALF_LOCKED2 | &hive->hive_lock | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | &tmp_adev->reset_domain->sem |
drivers/dax/fsdev.c fsdev_dax_probe() -> devm_memremap_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 1 | pgmap | 4096-ptr_max |
| PARAM_VALUE | 1 | pgmap->ops | 6605139770032939008 |
| PARAM_VALUE | 1 | pgmap->owner | 4096-ptr_max |
| PARAM_VALUE | 1 | pgmap->type | 3 |
| BUF_SIZE | 0 | dev | 1616 |
| BUF_SIZE | 1 | pgmap | s32min-s32max |
| BUF_SIZE | 1 | pgmap->ops | 32 |
| DATA_SOURCE | 1 | pgmap | r fsdev_acquire_pgmap |
| RX_PATH | |||
| TASK_NOT_RUNNING |
fs/fuse/virtio_fs.c virtio_fs_setup_dax() -> devm_memremap_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->bus | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->class | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->driver | 0,4096-ptr_max |
| PARAM_VALUE | 1 | pgmap | 4096-ptr_max |
| PARAM_VALUE | 1 | pgmap->nr_range | 1 |
| PARAM_VALUE | 1 | pgmap->type | 3 |
| BUF_SIZE | 1 | pgmap | 216 |
| DATA_SOURCE | 1 | pgmap | r devm_kzalloc |
| MEM_ZERO | 1 | pgmap | |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/gpu/drm/xe/xe_svm.c xe_pagemap_create() -> devm_memremap_pages()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 1 | pgmap | 4096-ptr_max |
| PARAM_VALUE | 1 | pgmap->nr_range | 1 |
| PARAM_VALUE | 1 | pgmap->ops | 5041756526254845952 |
| PARAM_VALUE | 1 | pgmap->owner | 4096-ptr_max |
| PARAM_VALUE | 1 | pgmap->type | 1 |
| BUF_SIZE | 1 | pgmap | 216 |
| BUF_SIZE | 1 | pgmap->ops | 32 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 0 | dev | unit_byte |
| LOCK2 | &cache->lookup_mutex | ||
| HALF_LOCKED2 | &vm->lock | ||
| HALF_LOCKED2 | global &drm_unplug_srcu | ||
| TYPE_LOCK | (struct drm_pagemap_cache)->lookup_mutex |