Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 4 files:
- drivers/nvdimm/badrange.c, line 284
- drivers/nvdimm/claim.c, line 304
- drivers/nvdimm/pmem.c
- drivers/nvdimm/region.c
Smatch caller information:
drivers/nvdimm/pmem.c pmem_attach_disk() -> nvdimm_badblocks_populate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nd_region | 4096-ptr_max |
| PARAM_VALUE | 1 | bb | 4096-ptr_max |
| PARAM_VALUE | 1 | bb->count | 0 |
| PARAM_VALUE | 1 | bb->dev | 4096-ptr_max |
| PARAM_VALUE | 1 | bb->page | 1-u64max |
| PARAM_VALUE | 1 | bb->shift | 0 |
| PARAM_VALUE | 2 | range | 8079710976360366080 |
| DATA_SOURCE | 0 | nd_region | r to_nd_region |
| MEM_ZERO | 1 | bb | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->mutex |
drivers/nvdimm/pmem.c pmem_revalidate_poison() -> nvdimm_badblocks_populate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nd_region | 4096-ptr_max |
| PARAM_VALUE | 1 | bb | 4096-ptr_max |
| PARAM_VALUE | 2 | range | 6076954643497852928 |
| BUF_SIZE | 1 | bb | 192 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &dev->mutex | ||
| TYPE_LOCK | (struct device)->mutex |
drivers/nvdimm/claim.c devm_nsio_enable() -> nvdimm_badblocks_populate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nd_region | 4096-ptr_max |
| PARAM_VALUE | 1 | bb | 4096-ptr_max |
| PARAM_VALUE | 1 | bb->count | 0 |
| PARAM_VALUE | 1 | bb->dev | 4096-ptr_max |
| PARAM_VALUE | 1 | bb->page | 1-u64max |
| PARAM_VALUE | 1 | bb->shift | 0 |
| PARAM_VALUE | 2 | range | 3375765364503945216 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->mutex |
drivers/nvdimm/region.c nd_region_notify() -> nvdimm_badblocks_populate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nd_region | 4096-ptr_max |
| PARAM_VALUE | 0 | nd_region->dev.type | 4096-ptr_max |
| PARAM_VALUE | 1 | bb | 4096-ptr_max |
| PARAM_VALUE | 2 | range | 5585849707465592832 |
| DATA_SOURCE | 0 | nd_region | r to_nd_region |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &dev->mutex | ||
| TYPE_LOCK | (struct device)->mutex |
drivers/nvdimm/region.c nd_region_probe() -> nvdimm_badblocks_populate()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nd_region | 4096-ptr_max |
| PARAM_VALUE | 0 | nd_region->bb.count | 0 |
| PARAM_VALUE | 0 | nd_region->bb.dev | 4096-ptr_max |
| PARAM_VALUE | 0 | nd_region->bb.page | 1-u64max |
| PARAM_VALUE | 0 | nd_region->bb.shift | 0 |
| PARAM_VALUE | 0 | nd_region->bb_state | 0,4096-ptr_max |
| PARAM_VALUE | 0 | nd_region->dev.devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | nd_region->dev.devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | nd_region->dev.kobj.sd | 4096-ptr_max |
| PARAM_VALUE | 0 | nd_region->dev.kobj.sd->__parent | 0 |
| PARAM_VALUE | 0 | nd_region->num_lanes | s32min-(-1),1-s32max |
| PARAM_VALUE | 1 | bb | 4096-ptr_max |
| PARAM_VALUE | 1 | bb->count | 0 |
| PARAM_VALUE | 1 | bb->dev | 4096-ptr_max |
| PARAM_VALUE | 1 | bb->page | 1-u64max |
| PARAM_VALUE | 1 | bb->shift | 0 |
| PARAM_VALUE | 2 | range | 223280754670747648 |
| CAPPED_DATA | 0 | nd_region->ndr_mappings | 1 |
| CAPPED_DATA | 0 | nd_region->num_lanes | 1 |
| DATA_SOURCE | 0 | nd_region | r to_nd_region |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->mutex |