Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/net/ethernet/mscc/ocelot_vsc7514.c mscc_ocelot_init_ports() -> ocelot_port_devlink_teardown()

Type Parameter Key Value
PARAM_VALUE 0 ocelot 4096-ptr_max
PARAM_VALUE 0 ocelot->dev 4096-ptr_max
PARAM_VALUE 0 ocelot->dev->devres_head.prev 4096-ptr_max
PARAM_VALUE 0 ocelot->dev->devres_head.prev->next 4096-ptr_max
PARAM_VALUE 0 ocelot->dev->devres_head.prev->next->next 4096-ptr_max
PARAM_VALUE 0 ocelot->dev->dma_mem->pfn_base 0-s64max
PARAM_VALUE 0 ocelot->devlink 4096-ptr_max
PARAM_VALUE 0 ocelot->devlink->lock.dep_map->name 0-255
PARAM_VALUE 0 ocelot->devlink->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ocelot->devlink->lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 ocelot->devlink->lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 ocelot->devlink->ports.xa_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 ocelot->devlink_ports 1-u64max
PARAM_VALUE 0 ocelot->num_phys_ports 1-255
PARAM_VALUE 0 ocelot->ports 1-u64max
PARAM_VALUE 1 port 0-254
BUF_SIZE 0 ocelot s32min-(-2),1-s32max
BUF_SIZE 0 ocelot s32min-(-2),1-s32max
BUF_SIZE 0 ocelot->devlink_ports 0-120360
BUF_SIZE 0 ocelot->ports 0-2040
CAPPED_DATA 1 port 1
PARAM_COMPARE 0 ocelot->num_phys_ports > $1
PARAM_COMPARE 1 port < $0->num_phys_ports
CONSTRAINT 1 port <1518
MEM_ZERO 0 ocelot->devlink_ports
MEM_ZERO 0 ocelot->ports
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 ocelot->num_phys_ports
UNITS 0 ocelot unit_byte
UNITS 1 port unit_array_size

drivers/net/ethernet/mscc/ocelot_vsc7514.c mscc_ocelot_init_ports() -> ocelot_port_devlink_teardown()

Type Parameter Key Value
PARAM_VALUE 0 ocelot 4096-ptr_max
PARAM_VALUE 0 ocelot->dev->devres_head.prev->next 4096-ptr_max
PARAM_VALUE 0 ocelot->dev->devres_head.prev->next->next 4096-ptr_max
PARAM_VALUE 0 ocelot->devlink_ports 1-u64max
PARAM_VALUE 0 ocelot->num_phys_ports 1-255
PARAM_VALUE 0 ocelot->ports 4096-ptr_max
PARAM_VALUE 1 port 0-254
BUF_SIZE 0 ocelot s32min-(-2),1-s32max
BUF_SIZE 0 ocelot s32min-(-2),1-s32max
BUF_SIZE 0 ocelot->devlink_ports 0-120360
BUF_SIZE 0 ocelot->ports 0-2040
CAPPED_DATA 0 ocelot->num_phys_ports 1
CAPPED_DATA 1 port 1
PARAM_COMPARE 0 ocelot->num_phys_ports > $1
PARAM_COMPARE 1 port < $0->num_phys_ports
CONSTRAINT 1 port <1518
MEM_ZERO 0 ocelot->devlink_ports
MEM_ZERO 0 ocelot->ports
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 ocelot->num_phys_ports
NO_OVERFLOW_SIMPLE 1 port
UNITS 0 ocelot unit_byte
UNITS 1 port unit_array_size

drivers/net/ethernet/mscc/ocelot_vsc7514.c mscc_ocelot_teardown_devlink_ports() -> ocelot_port_devlink_teardown()

Type Parameter Key Value
PARAM_VALUE 0 ocelot 4096-ptr_max
PARAM_VALUE 0 ocelot->dev->cma_area->available_count 0-s64max
PARAM_VALUE 0 ocelot->dev->cma_area->nranges s32min-s32max
PARAM_VALUE 0 ocelot->devlink 4096-ptr_max
PARAM_VALUE 0 ocelot->devlink->lock.dep_map->name 0-255
PARAM_VALUE 0 ocelot->devlink->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ocelot->devlink->lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 ocelot->devlink->lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 ocelot->fdma 0,4096-ptr_max
PARAM_VALUE 0 ocelot->fdma->napi.dev 4096-ptr_max
PARAM_VALUE 0 ocelot->fdma->napi.dev->lock.dep_map->name 0-255
PARAM_VALUE 0 ocelot->fdma->napi.dev->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 ocelot->fdma->napi.dev->lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 ocelot->fdma->napi.dev->lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 ocelot->fdma->napi.dev->lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 ocelot->fdma->napi.dev->lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 ocelot->fdma->napi.dev->lock.first_waiter->task->blocked_lock.raw_lock.val.counter 0-s32max
PARAM_VALUE 0 ocelot->fdma->napi.dev->lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 ocelot->fdma->napi.napi_hash_node.pprev 0,4096-ptr_max
PARAM_VALUE 0 ocelot->mm->verify_status 0-5
PARAM_VALUE 0 ocelot->num_phys_ports 1-255
PARAM_VALUE 0 ocelot->ops->cut_through_fwd 0,134436361864966144
PARAM_VALUE 0 ocelot->ops->netdev_to_port 354382583942664192,2603890120038211584
PARAM_VALUE 0 ocelot->ops->port_to_netdev 1868687026581008384,4068653960461438976
PARAM_VALUE 0 ocelot->ops->psfp_filter_add 0,2575513632020865024
PARAM_VALUE 0 ocelot->ops->psfp_filter_del 0,4169167152863686656
PARAM_VALUE 0 ocelot->ops->psfp_init 0,1409741019055468544
PARAM_VALUE 0 ocelot->ops->psfp_stats_get 0,3080636728029327360
PARAM_VALUE 0 ocelot->ops->reset 1169718447352270848,6517286199491842048,9025871550166650880
PARAM_VALUE 0 ocelot->ops->tas_clock_adjust 0,2404181389992845312
PARAM_VALUE 0 ocelot->ops->tas_guard_bands_update 0,1557221551399227392
PARAM_VALUE 0 ocelot->ops->update_stats 0,3965357686628552704
PARAM_VALUE 0 ocelot->ops->wm_dec 5206403586227449856,6299630570137227264,6341601623281524736
PARAM_VALUE 0 ocelot->ops->wm_enc 875761983826563072,4220618777197907968,7497006183106965504
PARAM_VALUE 0 ocelot->ops->wm_stat 457015398809972736,5260409414354550784,7378957043723149312
PARAM_VALUE 0 *ocelot->base_mac 0-255
PARAM_VALUE 1 port 0-254
BUF_SIZE 0 ocelot s32min-(-1),1-s32max
BUF_SIZE 0 ocelot s32min-(-1),1-s32max
BUF_SIZE 0 ocelot->dev (-1),1616
BUF_SIZE 0 ocelot->vcap (-1),168
CAPPED_DATA 0 ocelot->devlink 1
CAPPED_DATA 0 ocelot->num_phys_ports 1
CAPPED_DATA 1 port 1
DATA_SOURCE 0 ocelot $0
PARAM_COMPARE 0 ocelot->num_phys_ports > $1
PARAM_COMPARE 1 port < $0->num_phys_ports
CONSTRAINT 1 port <1518
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
NO_OVERFLOW_SIMPLE 0 ocelot->num_phys_ports
NO_OVERFLOW_SIMPLE 1 port
UNITS 0 ocelot unit_byte
UNITS 1 port unit_array_size
HALF_LOCKED2 &_dev->mutex