Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 9 files:
- arch/powerpc/platforms/pseries/papr_scm.c, line 1277
- drivers/acpi/nfit/core.c
- drivers/cxl/pmem.c, line 497
- drivers/nvdimm/e820.c, line 30
- drivers/nvdimm/of_pmem.c, line 73
- drivers/nvdimm/ramdax.c, line 64
- drivers/nvdimm/region_devs.c, line 1071
- drivers/nvdimm/virtio_pmem.c, line 145
- tools/testing/nvdimm/test/ndtest.c, line 457
Smatch caller information:
drivers/nvdimm/e820.c e820_register_one() -> nvdimm_pmem_region_create()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nvdimm_bus | 0,4096-ptr_max |
| PARAM_VALUE | 1 | ndr_desc | 4702177640685268992 |
| PARAM_VALUE | 1 | ndr_desc->res | 3531049796075630592 |
| BUF_SIZE | 0 | nvdimm_bus | (-1),4,8-s32max |
| BUF_SIZE | 0 | nvdimm_bus | (-1),4,8-s32max |
| DATA_SOURCE | 0 | nvdimm_bus | $1 |
| MEM_ZERO | 1 | ndr_desc | |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/nvdimm/virtio_pmem.c virtio_pmem_probe() -> nvdimm_pmem_region_create()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nvdimm_bus | 4096-ptr_max |
| PARAM_VALUE | 0 | nvdimm_bus->dev.dma_io_tlb_mem->dyn_alloc.data.counter | 9007199250546704 |
| PARAM_VALUE | 0 | nvdimm_bus->dev.dma_io_tlb_mem->dyn_alloc.entry.prev | 1473117533515866344 |
| PARAM_VALUE | 0 | nvdimm_bus->dev.dma_io_tlb_mem->dyn_alloc.func | 1583282886040592384 |
| PARAM_VALUE | 0 | nvdimm_bus->dev.dma_io_tlb_mem->pools.prev | 1473117533515866320 |
| PARAM_VALUE | 0 | nvdimm_bus->dev.fwnode->dev->power.set_latency_tolerance | 5740181548905971712 |
| PARAM_VALUE | 0 | nvdimm_bus->dev.kobj->name | 0-255 |
| PARAM_VALUE | 0 | nvdimm_bus->dev.kobj.sd->active.counter | (-2147483647) |
| PARAM_VALUE | 0 | nvdimm_bus->dev.kobj.sd->attr.open->nr_mmapped | 0-4294967295 |
| PARAM_VALUE | 0 | nvdimm_bus->dev.p->klist_children.get | 2213798222526185472 |
| PARAM_VALUE | 0 | nvdimm_bus->dev.p->klist_children.put | 3126867300421632000 |
| PARAM_VALUE | 0 | nvdimm_bus->dev.p->knode_bus.n_ref.refcount.refs.counter | 1 |
| PARAM_VALUE | 0 | nvdimm_bus->dev.p->knode_class.n_ref.refcount.refs.counter | 1 |
| PARAM_VALUE | 0 | nvdimm_bus->dev.p->knode_parent.n_ref.refcount.refs.counter | 1 |
| PARAM_VALUE | 0 | nvdimm_bus->dev.physical_location->horizontal_position | 0-3 |
| PARAM_VALUE | 0 | nvdimm_bus->dev.physical_location->panel | 0-7 |
| PARAM_VALUE | 0 | nvdimm_bus->dev.physical_location->vertical_position | 0-3 |
| PARAM_VALUE | 0 | nvdimm_bus->id | 0-s32max |
| PARAM_VALUE | 0 | nvdimm_bus->nd_desc | 4096-ptr_max |
| PARAM_VALUE | 0 | nvdimm_bus->reconfig_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | ndr_desc | 6919275375307108352 |
| PARAM_VALUE | 1 | ndr_desc->attr_groups | 0 |
| PARAM_VALUE | 1 | ndr_desc->flags | 0 |
| PARAM_VALUE | 1 | ndr_desc->flush | 9209520105405718528 |
| PARAM_VALUE | 1 | ndr_desc->mapping | 0 |
| PARAM_VALUE | 1 | ndr_desc->memregion | 0 |
| PARAM_VALUE | 1 | ndr_desc->nd_set | 0 |
| PARAM_VALUE | 1 | ndr_desc->num_lanes | 0 |
| PARAM_VALUE | 1 | ndr_desc->num_mappings | 0 |
| PARAM_VALUE | 1 | ndr_desc->of_node | 0 |
| PARAM_VALUE | 1 | ndr_desc->provider_data | 4096-ptr_max |
| PARAM_VALUE | 1 | ndr_desc->res | 3065901561576206336 |
| BUF_SIZE | 0 | nvdimm_bus | 2000 |
| BUF_SIZE | 0 | nvdimm_bus | 2000 |
| DATA_SOURCE | 0 | nvdimm_bus | r nvdimm_bus_register |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/acpi/nfit/core.c acpi_nfit_register_region() -> nvdimm_pmem_region_create()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nvdimm_bus | 1-u64max |
| PARAM_VALUE | 1 | ndr_desc | 8815695616203354112 |
| PARAM_VALUE | 1 | ndr_desc->attr_groups | 613737295620186112 |
| PARAM_VALUE | 1 | ndr_desc->mapping | 4096-ptr_max |
| PARAM_VALUE | 1 | ndr_desc->nd_set | 4096-ptr_max |
| PARAM_VALUE | 1 | ndr_desc->num_mappings | 0 |
| PARAM_VALUE | 1 | ndr_desc->provider_data | 4096-ptr_max |
| PARAM_VALUE | 1 | ndr_desc->res | 2545983945644699648 |
| PARAM_VALUE | 1 | ndr_desc->res->end | 0 |
| PARAM_VALUE | 1 | ndr_desc->res->start | 0 |
| BUF_SIZE | 0 | nvdimm_bus | (-1),2000 |
| BUF_SIZE | 0 | nvdimm_bus | (-1),2000 |
| BUF_SIZE | 1 | ndr_desc | 96 |
| BUF_SIZE | 1 | ndr_desc->attr_groups | 16 |
| BUF_SIZE | 1 | ndr_desc->mapping | 1024 |
| BUF_SIZE | 1 | ndr_desc->res | 64 |
| MEM_ZERO | 1 | ndr_desc | |
| MEM_ZERO | 1 | ndr_desc->res | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &acpi_desc->init_mutex | ||
| LOCK2 | _T->lock | ||
| TYPE_LOCK | (struct acpi_nfit_desc)->init_mutex |
drivers/acpi/nfit/core.c acpi_nfit_register_region() -> nvdimm_pmem_region_create()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nvdimm_bus | 1-u64max |
| PARAM_VALUE | 1 | ndr_desc | 8815695616203354112 |
| PARAM_VALUE | 1 | ndr_desc->attr_groups | 613737295620186112 |
| PARAM_VALUE | 1 | ndr_desc->mapping | 4096-ptr_max |
| PARAM_VALUE | 1 | ndr_desc->nd_set | 4096-ptr_max |
| PARAM_VALUE | 1 | ndr_desc->num_mappings | 0 |
| PARAM_VALUE | 1 | ndr_desc->provider_data | 4096-ptr_max |
| PARAM_VALUE | 1 | ndr_desc->res | 2545983945644699648 |
| BUF_SIZE | 0 | nvdimm_bus | (-1),2000 |
| BUF_SIZE | 0 | nvdimm_bus | (-1),2000 |
| BUF_SIZE | 1 | ndr_desc | 96 |
| BUF_SIZE | 1 | ndr_desc->attr_groups | 16 |
| BUF_SIZE | 1 | ndr_desc->mapping | 1024 |
| BUF_SIZE | 1 | ndr_desc->res | 64 |
| MEM_ZERO | 1 | ndr_desc | |
| MEM_ZERO | 1 | ndr_desc->res | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &acpi_desc->init_mutex | ||
| LOCK2 | _T->lock | ||
| TYPE_LOCK | (struct acpi_nfit_desc)->init_mutex |
drivers/nvdimm/of_pmem.c of_pmem_region_probe() -> nvdimm_pmem_region_create()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nvdimm_bus | 4096-ptr_max |
| PARAM_VALUE | 0 | nvdimm_bus->dev.dma_io_tlb_mem->dyn_alloc.data.counter | 9007199250546704 |
| PARAM_VALUE | 0 | nvdimm_bus->dev.dma_io_tlb_mem->dyn_alloc.entry.prev | 1473117533515866344 |
| PARAM_VALUE | 0 | nvdimm_bus->dev.dma_io_tlb_mem->dyn_alloc.func | 1583282886040592384 |
| PARAM_VALUE | 0 | nvdimm_bus->dev.dma_io_tlb_mem->pools.prev | 1473117533515866320 |
| PARAM_VALUE | 0 | nvdimm_bus->dev.fwnode->dev->power.set_latency_tolerance | 5740181548905971712 |
| PARAM_VALUE | 0 | nvdimm_bus->dev.kobj->name | 0-255 |
| PARAM_VALUE | 0 | nvdimm_bus->dev.kobj.sd->active.counter | (-2147483647) |
| PARAM_VALUE | 0 | nvdimm_bus->dev.kobj.sd->attr.open->nr_mmapped | 0-4294967295 |
| PARAM_VALUE | 0 | nvdimm_bus->dev.p->klist_children.get | 2213798222526185472 |
| PARAM_VALUE | 0 | nvdimm_bus->dev.p->klist_children.put | 3126867300421632000 |
| PARAM_VALUE | 0 | nvdimm_bus->dev.p->knode_bus.n_ref.refcount.refs.counter | 1 |
| PARAM_VALUE | 0 | nvdimm_bus->dev.p->knode_class.n_ref.refcount.refs.counter | 1 |
| PARAM_VALUE | 0 | nvdimm_bus->dev.p->knode_parent.n_ref.refcount.refs.counter | 1 |
| PARAM_VALUE | 0 | nvdimm_bus->dev.physical_location->horizontal_position | 0-3 |
| PARAM_VALUE | 0 | nvdimm_bus->dev.physical_location->panel | 0-7 |
| PARAM_VALUE | 0 | nvdimm_bus->dev.physical_location->vertical_position | 0-3 |
| PARAM_VALUE | 0 | nvdimm_bus->id | 0-s32max |
| PARAM_VALUE | 0 | nvdimm_bus->nd_desc | 4096-ptr_max |
| PARAM_VALUE | 0 | nvdimm_bus->reconfig_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | nvdimm_bus->reconfig_mutex.first_waiter | 0 |
| PARAM_VALUE | 0 | nvdimm_bus->reconfig_mutex.osq.tail.counter | 0 |
| PARAM_VALUE | 0 | nvdimm_bus->reconfig_mutex.owner.counter | 0 |
| PARAM_VALUE | 1 | ndr_desc | 5864832948278620160 |
| PARAM_VALUE | 1 | ndr_desc->of_node | 4096-ptr_max |
| PARAM_VALUE | 1 | ndr_desc->res | 4096-ptr_max |
| BUF_SIZE | 0 | nvdimm_bus | 2000 |
| BUF_SIZE | 0 | nvdimm_bus | 2000 |
| DATA_SOURCE | 0 | nvdimm_bus | r nvdimm_bus_register |
| MEM_ZERO | 1 | ndr_desc | |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/cxl/pmem.c cxl_pmem_region_probe() -> nvdimm_pmem_region_create()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | ndr_desc | 6189787596464984064 |
| PARAM_VALUE | 1 | ndr_desc->mapping | 4096-ptr_max |
| PARAM_VALUE | 1 | ndr_desc->nd_set | 4096-ptr_max |
| PARAM_VALUE | 1 | ndr_desc->provider_data | 4096-ptr_max |
| PARAM_VALUE | 1 | ndr_desc->res | 4096-ptr_max |
| MEM_ZERO | 1 | ndr_desc | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 1 | ndr_desc->num_mappings | |
| HALF_LOCKED2 | &dev->mutex |
drivers/nvdimm/ramdax.c ramdax_register_region() -> nvdimm_pmem_region_create()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nvdimm_bus | 0,4096-ptr_max |
| PARAM_VALUE | 1 | ndr_desc | 8485269227698491392 |
| PARAM_VALUE | 1 | ndr_desc->mapping | 4344438491258449920 |
| PARAM_VALUE | 1 | ndr_desc->nd_set | 4096-ptr_max |
| PARAM_VALUE | 1 | ndr_desc->num_mappings | 1 |
| PARAM_VALUE | 1 | ndr_desc->res | 4096-ptr_max |
| BUF_SIZE | 0 | nvdimm_bus | (-1),4,8-s32max |
| BUF_SIZE | 0 | nvdimm_bus | (-1),4,8-s32max |
| DATA_SOURCE | 0 | nvdimm_bus | $2 |
| MEM_ZERO | 1 | ndr_desc | |
| RX_PATH | |||
| TASK_NOT_RUNNING |