Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 24 files:

Smatch caller information:

drivers/hwspinlock/hwspinlock_core.c of_hwspin_lock_get_id() -> device_match_of_node()

Type Parameter Key Value
PARAM_VALUE 1 np 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
UNITS 1 np unit_byte
LOCK2 rcu_read
HALF_LOCKED2 global &syscon_list_lock

drivers/gpio/gpiolib-of.c of_gpiochip_match_node() -> device_match_of_node()

Type Parameter Key Value
BUF_SIZE 1 np (-1),18,33
BUF_SIZE 1 np (-1),18,33
DATA_SOURCE 1 np $1
STR_LEN 0 dev (-1),17,32
STR_LEN 1 np (-1),17,32
RX_PATH
TASK_NOT_RUNNING
UNITS 1 np unit_byte
LOCK2 _T->lock

drivers/gpio/gpiolib-of.c of_gpiochip_match_node_and_xlate() -> device_match_of_node()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
UNITS 1 np unit_byte
LOCK2 _T->lock

drivers/pinctrl/core.c get_pinctrl_dev_from_of_node() -> device_match_of_node()

Type Parameter Key Value
BUF_SIZE 1 np (-1)-0,392
DATA_SOURCE 1 np $0
RX_PATH
TASK_NOT_RUNNING
UNITS 1 np unit_byte
LOCK2 global &pinctrldev_list_mutex

drivers/net/wan/framer/framer-core.c framer_provider_of_lookup() -> device_match_of_node()

Type Parameter Key Value
PARAM_VALUE 1 np 1-u64max
DATA_SOURCE 1 np $0
RX_PATH
TASK_NOT_RUNNING
UNITS 1 np unit_byte
LOCK2 global &framer_provider_mutex

drivers/base/component.c component_compare_of() -> device_match_of_node()

Type Parameter Key Value
BUF_SIZE 1 np 4,32,64,392,1616
BUF_SIZE 1 np 4,32,64,392,1616
DATA_SOURCE 0 dev $0
DATA_SOURCE 1 np $1
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &component_mutex

drivers/devfreq/devfreq-event.c devfreq_event_get_edev_by_phandle() -> device_match_of_node()

Type Parameter Key Value
PARAM_VALUE 0 dev 1-u64max
PARAM_VALUE 1 np 4096-ptr_max
DATA_SOURCE 1 np r of_parse_phandle
RX_PATH
TASK_NOT_RUNNING
UNITS 0 dev unit_byte
LOCK2 global &devfreq_event_list_lock

drivers/dma/dmaengine.c __dma_request_channel() -> device_match_of_node()

Type Parameter Key Value
PARAM_VALUE 1 np 1-u64max
DATA_SOURCE 1 np $3
RX_PATH
TASK_NOT_RUNNING
UNITS 0 dev unit_byte
UNITS 1 np unit_byte
LOCK2 global &dma_list_mutex

drivers/mmc/core/pwrseq.c mmc_pwrseq_alloc() -> device_match_of_node()

Type Parameter Key Value
PARAM_VALUE 1 np 4096-ptr_max
DATA_SOURCE 1 np r of_parse_phandle
LOCK2 global &pwrseq_list_mutex

drivers/remoteproc/remoteproc_core.c rproc_get_by_phandle() -> device_match_of_node()

Type Parameter Key Value
PARAM_VALUE 0 dev 1-u64max
PARAM_VALUE 1 np 4096-ptr_max
DATA_SOURCE 1 np r of_find_node_by_phandle
RX_PATH
TASK_NOT_RUNNING
UNITS 0 dev unit_byte
LOCK2 rcu_read
HALF_LOCKED2 global &ath12k_rproc_info_lock

drivers/extcon/extcon.c extcon_find_edev_by_node() -> device_match_of_node()

Type Parameter Key Value
PARAM_VALUE 0 dev 1-u64max
BUF_SIZE 1 np (-1)-0,392
DATA_SOURCE 1 np $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 dev unit_byte
LOCK2 global &extcon_dev_list_lock

drivers/iio/adc/ad9467.c ad9467_iio_backend_get() -> device_match_of_node()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 1 np 4096-ptr_max
BUF_SIZE 0 dev 1616
DATA_SOURCE 1 np r of_parse_phandle
RX_PATH
TASK_NOT_RUNNING

drivers/hte/hte.c of_node_to_htedevice() -> device_match_of_node()

Type Parameter Key Value
PARAM_VALUE 0 dev 1-u64max
PARAM_VALUE 1 np 0,4096-ptr_max
DATA_SOURCE 1 np $0
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
UNITS 1 np unit_byte
LOCK2 global &hte_lock

drivers/devfreq/devfreq.c devfreq_get_devfreq_by_node() -> device_match_of_node()

Type Parameter Key Value
PARAM_VALUE 0 dev 1-u64max
PARAM_VALUE 1 np 1-u64max
BUF_SIZE 1 np (-1)-0,392
DATA_SOURCE 1 np $0
RX_PATH
TASK_NOT_RUNNING
UNITS 0 dev unit_byte
LOCK2 global &devfreq_list_lock

drivers/interconnect/core.c of_icc_get_from_provider() -> device_match_of_node()

Type Parameter Key Value
PARAM_VALUE 1 np 0,4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
UNITS 0 dev unit_byte
UNITS 1 np unit_byte
LOCK2 global &icc_lock

drivers/base/test/platform-device-test.c platform_device_find_by_null_test() -> device_match_of_node()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 1 np 0

drivers/base/class.c class_find_device() -> class_find_device param 3()

Type Parameter Key Value
PARAM_VALUE 0 dev 1-u64max
BUF_SIZE 1 np s32min,(-10),(-1)-s32max
BUF_SIZE 1 np s32min,(-10),(-1)-s32max
DATA_SOURCE 0 dev r class_dev_iter_next
DATA_SOURCE 1 np $2
RX_PATH
TASK_NOT_RUNNING
UNITS 1 np unit_byte
USER_PTR 1 np
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 &region->mgr->ref_mutex
HALF_LOCKED2 &region->mutex
HALF_LOCKED2 _T->lock
HALF_LOCKED2 global &dsa2_mutex
HALF_LOCKED2 global &framer_provider_mutex
HALF_LOCKED2 global &phy_provider_mutex
HALF_LOCKED2 global &rtnl_mutex

drivers/base/bus.c bus_find_device() -> bus_find_device param 3()

Type Parameter Key Value
PARAM_VALUE 0 dev 1-u64max
BUF_SIZE 1 np s32min,(-10),(-1)-s32max
BUF_SIZE 1 np s32min,(-10),(-1)-s32max
BUF_SIZE 1 np->bp s32min-(-1),1-s32max
DATA_SOURCE 0 dev r next_device
DATA_SOURCE 1 np $2
RX_PATH
TASK_NOT_RUNNING
UNITS 1 np unit_byte
USER_PTR 1 np
HALF_LOCKED2 &buffer->mutex
HALF_LOCKED2 &frag->frag_sem
HALF_LOCKED2 &generic_phy->mutex
HALF_LOCKED2 &ns->subsys->lock
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 &pdev->dev.mutex
HALF_LOCKED2 &seq->lock
HALF_LOCKED2 &sfile->lock
HALF_LOCKED2 &tb->lock
HALF_LOCKED2 _T->lock
HALF_LOCKED2 global &component_mutex
HALF_LOCKED2 global &hmem_resource_lock
HALF_LOCKED2 global &iommu_probe_device_lock
HALF_LOCKED2 global &pi_mutex
HALF_LOCKED2 global &vdpa_dev_lock

drivers/base/core.c device_find_child() -> device_find_child param 2()

Type Parameter Key Value
PARAM_VALUE 0 dev 1-u64max
BUF_SIZE 1 np s32min-s32max
DATA_SOURCE 0 dev r next_device
DATA_SOURCE 1 np $1
STR_LEN 0 dev (-1),31
STR_LEN 1 np (-1),31
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dev->mutex
HALF_LOCKED2 &endpoint->dev.mutex
HALF_LOCKED2 &of->mutex
HALF_LOCKED2 &pdev->dev.mutex
HALF_LOCKED2 _T->lock
HALF_LOCKED2 global &component_mutex
HALF_LOCKED2 global &dpm_list_mtx
HALF_LOCKED2 global &dsa2_mutex
HALF_LOCKED2 global &nvdimm_bus_list_mutex
HALF_LOCKED2 global &rtnl_mutex
HALF_LOCKED2 global &rx_queue_mutex
HALF_LOCKED2 global &system_transition_mutex
HALF_LOCKED2 global &wwan_register_lock

drivers/base/driver.c driver_find_device() -> driver_find_device param 3()

Type Parameter Key Value
PARAM_VALUE 0 dev 1-u64max
BUF_SIZE 1 np (-1),8,96
BUF_SIZE 1 np (-1),8,96
BUF_SIZE 1 np->init_data (-1)-s32max
DATA_SOURCE 0 dev r next_device
DATA_SOURCE 1 np $2
RX_PATH
TASK_NOT_RUNNING
UNITS 1 np unit_byte
HALF_LOCKED2 &board->big_gpib_mutex
HALF_LOCKED2 global &ipmidriver_mutex
HALF_LOCKED2 global &kunit_run_lock