Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 4 files:

Smatch caller information:

drivers/nvdimm/dimm_devs.c nd_pmem_available_dpa() -> to_ndd()

Type Parameter Key Value
PARAM_VALUE 0 nd_mapping 4096-ptr_max
PARAM_VALUE 0 nd_mapping->nvdimm 4096-ptr_max
CAPPED_DATA 0 nd_mapping->nvdimm 1
DATA_SOURCE 0 nd_mapping $1
RX_PATH
TASK_NOT_RUNNING
LOCK2 &dev->mutex
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct device)->mutex
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/nvdimm/dimm_devs.c nd_pmem_max_contiguous_dpa() -> to_ndd()

Type Parameter Key Value
PARAM_VALUE 0 nd_mapping 4096-ptr_max
DATA_SOURCE 0 nd_mapping $1
RX_PATH
TASK_NOT_RUNNING
LOCK2 &dev->mutex
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct device)->mutex
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/nvdimm/label.c __pmem_label_update() -> to_ndd()

Type Parameter Key Value
PARAM_VALUE 0 nd_mapping 4096-ptr_max
DATA_SOURCE 0 nd_mapping $1
RX_PATH
TASK_NOT_RUNNING
LOCK2 &dev->mutex
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct device)->mutex
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/nvdimm/label.c del_labels() -> to_ndd()

Type Parameter Key Value
PARAM_VALUE 0 nd_mapping 4096-ptr_max
PARAM_VALUE 0 nd_mapping->nvdimm 4096-ptr_max
DATA_SOURCE 0 nd_mapping $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &dev->mutex
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct device)->mutex
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/nvdimm/label.c init_labels() -> to_ndd()

Type Parameter Key Value
PARAM_VALUE 0 nd_mapping 4096-ptr_max
PARAM_VALUE 0 nd_mapping->nvdimm 4096-ptr_max
DATA_SOURCE 0 nd_mapping $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &dev->mutex
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct device)->mutex
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/nvdimm/label.c nd_pmem_namespace_label_update() -> to_ndd()

Type Parameter Key Value
PARAM_VALUE 0 nd_mapping 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &dev->mutex
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct device)->mutex
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/nvdimm/label.c reap_victim() -> to_ndd()

Type Parameter Key Value
PARAM_VALUE 0 nd_mapping 4096-ptr_max
PARAM_VALUE 0 nd_mapping->lock.dep_map->name 0-255
PARAM_VALUE 0 nd_mapping->lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 nd_mapping->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 nd_mapping->lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 nd_mapping->lock.wait_lock.dep_map->name 0-255
PARAM_VALUE 0 nd_mapping->lock.wait_lock.owner (-1)
PARAM_VALUE 0 nd_mapping->lock.wait_lock.owner_cpu u32max
PARAM_VALUE 0 nd_mapping->nvdimm 4096-ptr_max
DATA_SOURCE 0 nd_mapping $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &dev->mutex
LOCK2 &of->mutex
LOCK2 0 &nd_mapping->lock
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct device)->mutex
TYPE_LOCK (struct kernfs_open_file)->mutex
TYPE_LOCK (struct nd_mapping)->lock

drivers/nvdimm/namespace_devs.c __size_store() -> to_ndd()

Type Parameter Key Value
PARAM_VALUE 0 nd_mapping 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &dev->mutex
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct device)->mutex
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/nvdimm/namespace_devs.c add_namespace_resource() -> to_ndd()

Type Parameter Key Value
PARAM_VALUE 0 nd_mapping 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &nd_mapping->lock
HALF_LOCKED2 &dev->mutex
TYPE_LOCK (struct nd_mapping)->lock

drivers/nvdimm/namespace_devs.c btt_claim_class() -> to_ndd()

Type Parameter Key Value
PARAM_VALUE 0 nd_mapping 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &dev->mutex
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct device)->mutex
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/nvdimm/namespace_devs.c create_namespace_pmem() -> to_ndd()

Type Parameter Key Value
PARAM_VALUE 0 nd_mapping 4096-ptr_max
CAPPED_DATA 0 nd_mapping->start 1
DATA_SOURCE 0 nd_mapping $1
RX_PATH
TASK_NOT_RUNNING
LOCK2 &nd_mapping->lock
HALF_LOCKED2 &dev->mutex
TYPE_LOCK (struct nd_mapping)->lock

drivers/nvdimm/namespace_devs.c create_namespace_pmem() -> to_ndd()

Type Parameter Key Value
PARAM_VALUE 0 nd_mapping 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &nd_mapping->lock
HALF_LOCKED2 &dev->mutex
TYPE_LOCK (struct nd_mapping)->lock

drivers/nvdimm/namespace_devs.c dpa_extents_show() -> to_ndd()

Type Parameter Key Value
PARAM_VALUE 0 nd_mapping 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/nvdimm/namespace_devs.c has_uuid_at_pos() -> to_ndd()

Type Parameter Key Value
PARAM_VALUE 0 nd_mapping 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &nd_mapping->lock
HALF_LOCKED2 &dev->mutex
TYPE_LOCK (struct nd_mapping)->lock

drivers/nvdimm/namespace_devs.c init_active_labels() -> to_ndd()

Type Parameter Key Value
PARAM_VALUE 0 nd_mapping 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dev->mutex

drivers/nvdimm/namespace_devs.c init_dpa_allocation() -> to_ndd()

Type Parameter Key Value
PARAM_VALUE 0 nd_mapping 4096-ptr_max
PARAM_VALUE 0 nd_mapping->nvdimm 4096-ptr_max
DATA_SOURCE 0 nd_mapping $2
RX_PATH
TASK_NOT_RUNNING
LOCK2 &dev->mutex
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct device)->mutex
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/nvdimm/namespace_devs.c merge_dpa() -> to_ndd()

Type Parameter Key Value
PARAM_VALUE 0 nd_mapping 4096-ptr_max
PARAM_VALUE 0 nd_mapping->nvdimm 4096-ptr_max
DATA_SOURCE 0 nd_mapping $1
RX_PATH
TASK_NOT_RUNNING
LOCK2 &dev->mutex
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct device)->mutex
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/nvdimm/namespace_devs.c namespace_update_uuid() -> to_ndd()

Type Parameter Key Value
PARAM_VALUE 0 nd_mapping 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &dev->mutex
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct device)->mutex
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/nvdimm/namespace_devs.c nd_namespace_pmem_set_resource() -> to_ndd()

Type Parameter Key Value
PARAM_VALUE 0 nd_mapping 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dev->mutex
HALF_LOCKED2 &nd_mapping->lock
HALF_LOCKED2 &of->mutex

drivers/nvdimm/namespace_devs.c release_free_pmem() -> to_ndd()

Type Parameter Key Value
PARAM_VALUE 0 nd_mapping 4096-ptr_max
PARAM_VALUE 0 nd_mapping->nvdimm 4096-ptr_max
CAPPED_DATA 0 nd_mapping->nvdimm 1
DATA_SOURCE 0 nd_mapping $1
RX_PATH
TASK_NOT_RUNNING
LOCK2 &dev->mutex
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct device)->mutex
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/nvdimm/namespace_devs.c scan_allocate() -> to_ndd()

Type Parameter Key Value
PARAM_VALUE 0 nd_mapping 4096-ptr_max
DATA_SOURCE 0 nd_mapping $1
RX_PATH
TASK_NOT_RUNNING
LOCK2 &dev->mutex
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct device)->mutex
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/nvdimm/namespace_devs.c scan_free() -> to_ndd()

Type Parameter Key Value
PARAM_VALUE 0 nd_mapping 4096-ptr_max
DATA_SOURCE 0 nd_mapping $1
RX_PATH
TASK_NOT_RUNNING
LOCK2 &dev->mutex
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct device)->mutex
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/nvdimm/namespace_devs.c scan_labels() -> to_ndd()

Type Parameter Key Value
PARAM_VALUE 0 nd_mapping 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &nd_mapping->lock
HALF_LOCKED2 &dev->mutex
TYPE_LOCK (struct nd_mapping)->lock

drivers/nvdimm/namespace_devs.c select_pmem_id() -> to_ndd()

Type Parameter Key Value
PARAM_VALUE 0 nd_mapping 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &nd_mapping->lock
HALF_LOCKED2 &dev->mutex
TYPE_LOCK (struct nd_mapping)->lock

drivers/nvdimm/region_devs.c nd_region_available_dpa() -> to_ndd()

Type Parameter Key Value
PARAM_VALUE 0 nd_mapping 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &dev->mutex
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct device)->mutex
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/nvdimm/region_devs.c set_cookie_show() -> to_ndd()

Type Parameter Key Value
PARAM_VALUE 0 nd_mapping 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &dev->mutex
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct device)->mutex
TYPE_LOCK (struct kernfs_open_file)->mutex