Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/net/phy/sfp.c sfp_attach() -> sfp_sm_event()

Type Parameter Key Value
PARAM_VALUE 0 sfp 1-u64max
PARAM_VALUE 1 event 2
DATA_SOURCE 0 sfp $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 global &rtnl_mutex

drivers/net/phy/sfp.c sfp_detach() -> sfp_sm_event()

Type Parameter Key Value
PARAM_VALUE 1 event 3
DATA_SOURCE 0 sfp $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 global &rtnl_mutex

drivers/net/phy/sfp.c sfp_probe() -> sfp_sm_event()

Type Parameter Key Value
PARAM_VALUE 0 sfp 4096-ptr_max
PARAM_VALUE 0 sfp->dev 4096-ptr_max
PARAM_VALUE 0 sfp->dev->bus 0,4096-ptr_max
PARAM_VALUE 0 sfp->dev->class 0,4096-ptr_max
PARAM_VALUE 0 sfp->dev->devres_head.prev 4096-ptr_max
PARAM_VALUE 0 sfp->dev->devres_head.prev->next 4096-ptr_max
PARAM_VALUE 0 sfp->dev->devres_head.prev->next->next 4096-ptr_max
PARAM_VALUE 0 sfp->dev->driver 0,4096-ptr_max
PARAM_VALUE 0 sfp->get_state 2181148141126438912,3307868492412002304,7227421800123383808
PARAM_VALUE 0 sfp->gpio 4096-ptr_max
PARAM_VALUE 0 sfp->i2c 4096-ptr_max
PARAM_VALUE 0 sfp->i2c->bus_lock.dep_map->name 0-255
PARAM_VALUE 0 sfp->i2c->bus_lock.rtmutex.owner 0-1
PARAM_VALUE 0 sfp->i2c->dev.driver_data->adev->pm.mutex->first_waiter->task->blocked_lock.owner (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 sfp->i2c->dev.driver_data->adev->pm.mutex.dep_map->name 0-255
PARAM_VALUE 0 sfp->i2c->dev.driver_data->adev->pm.mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 sfp->i2c->dev.driver_data->adev->pm.mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 sfp->i2c->dev.driver_data->adev->pm.mutex.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 sfp->i2c->dev.driver_data->adev->pm.mutex.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 sfp->i2c->dev.driver_data->adev->pm.mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 sfp->i2c->dev.driver_data->adev->powerplay.pp_handle->msg_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 sfp->i2c->dev.driver_data->mutex->first_waiter->task->blocked_lock.owner (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 sfp->i2c->dev.driver_data->mutex->wait_lock.owner (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 sfp->i2c_block_size 1-16
PARAM_VALUE 0 sfp->i2c_max_block_size 1-16
PARAM_VALUE 0 sfp->max_power_mW 1000-u32max
PARAM_VALUE 0 sfp->read 245933598625955840,1531755060434735104
PARAM_VALUE 0 sfp->set_state 2669978128621625344
PARAM_VALUE 0 sfp->sm_mutex.dep_map->name 0-255
PARAM_VALUE 0 sfp->sm_mutex.first_waiter 0
PARAM_VALUE 0 sfp->sm_mutex.magic 4096-ptr_max
PARAM_VALUE 0 sfp->sm_mutex.osq.tail.counter 0
PARAM_VALUE 0 sfp->sm_mutex.owner.counter 0
PARAM_VALUE 0 sfp->st_mutex.dep_map->name 0-255
PARAM_VALUE 0 sfp->st_mutex.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 sfp->st_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 sfp->st_mutex.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 sfp->st_mutex.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 sfp->st_mutex.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 sfp->st_mutex.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 sfp->st_mutex.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 sfp->st_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 sfp->state 8-u32max
PARAM_VALUE 0 sfp->state_hw_drive 8
PARAM_VALUE 0 sfp->state_hw_mask 1
PARAM_VALUE 0 sfp->type 1-u64max
PARAM_VALUE 0 sfp->write 3667418840043540480,8332061681256071168
PARAM_VALUE 1 event 0
BUF_SIZE 0 sfp 1352
BUF_SIZE 0 sfp->dev 1616
BUF_SIZE 0 sfp->type (-1),16
DATA_SOURCE 0 sfp r sfp_alloc
FUZZY_MAX 0 sfp->max_power_mW 1000
BIT_INFO 0 sfp->get_state 0x444e08400400000,0xffffffffffffffff
BIT_INFO 0 sfp->state 0x1,0xffffffff
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 global &rtnl_mutex

drivers/net/phy/sfp.c sfp_remove() -> sfp_sm_event()

Type Parameter Key Value
PARAM_VALUE 0 sfp 4096-ptr_max
PARAM_VALUE 0 sfp->debugfs_dir 0,4096-u64max
PARAM_VALUE 0 sfp->debugfs_dir->d_fsdata->management_timer.flags 0-4294967295
PARAM_VALUE 0 sfp->debugfs_dir->d_inode->i_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 sfp->debugfs_dir->d_sb->s_fs_info->lookup_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 sfp->debugfs_dir->d_sb->s_roots_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 sfp->sfp_bus 4096-ptr_max
PARAM_VALUE 0 sfp->sfp_bus->kref->file->d_inode->i_sb->s_fs_info->wbuf 0-255
PARAM_VALUE 0 sfp->sfp_bus->kref->file->d_inode->i_sb->s_fs_info->wbuf_verify 0-255
PARAM_VALUE 0 sfp->sfp_bus->kref.file->d_fsdata->d_fsdata 0
PARAM_VALUE 0 sfp->sfp_bus->kref.stat_mutex.magic 0
PARAM_VALUE 0 sfp->sfp_bus->registered 0
PARAM_VALUE 0 sfp->sfp_bus->sfp 0
PARAM_VALUE 0 sfp->sfp_bus->sfp_dev 0
PARAM_VALUE 0 sfp->sfp_bus->socket_ops 0
PARAM_VALUE 0 sfp->sfp_bus->upstream->attached_dev->link_topo->phys.xa_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 sfp->sfp_bus->upstream->mac_tx_clk_stop 0
PARAM_VALUE 0 sfp->sfp_bus->upstream->phy_enable_tx_lpi 0
PARAM_VALUE 0 sfp->sfp_bus->upstream->phydev 0
PARAM_VALUE 0 sfp->sfp_bus->upstream->phydev->interrupts 0
PARAM_VALUE 0 sfp->sfp_bus->upstream->phydev->is_genphy_driven 0
PARAM_VALUE 0 sfp->sfp_bus->upstream->phydev->last_triggered->trigger.brightness 255
PARAM_VALUE 0 sfp->sfp_bus->upstream->phydev->led_link_trigger->trigger.brightness 0-4294967295
PARAM_VALUE 0 sfp->sfp_bus->upstream->phydev->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 sfp->sfp_bus->upstream->phydev->lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 sfp->sfp_bus->upstream->phydev->lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 sfp->sfp_bus->upstream->phydev->lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 sfp->sfp_bus->upstream->phydev->mdio.dev.driver->owner->refcnt.counter 0-s32max
PARAM_VALUE 0 sfp->sfp_bus->upstream->phydev->mdio.dev.driver_data->battery_dev->id (-2)
PARAM_VALUE 0 sfp->sfp_bus->upstream->phydev->mdio.dev.driver_data->touch_dev->id (-2)
PARAM_VALUE 0 sfp->sfp_bus->upstream->phydev->mdio.dev.iommu_group->owner_cnt 0-4294967295
PARAM_VALUE 0 sfp->sfp_bus->upstream->phydev->mdio.dev.kobj.release.timer.is_hard 0-1
PARAM_VALUE 0 sfp->sfp_bus->upstream->phydev->mdio.dev.kobj.release.timer.is_lazy 0-1
PARAM_VALUE 0 sfp->sfp_bus->upstream->phydev->mdio.dev.kobj.release.timer.is_queued 0-1
PARAM_VALUE 0 sfp->sfp_bus->upstream->phydev->mdio.dev.kobj.release.timer.is_soft 0-1
PARAM_VALUE 0 sfp->sfp_bus->upstream->phydev->mdio.dev.kobj.release.wq->dfl_pwq 0-s64max
PARAM_VALUE 0 sfp->sfp_bus->upstream->phydev->mdio.dev.kobj.release.wq->saved_max_active s32min-s32max
PARAM_VALUE 0 sfp->sfp_bus->upstream->phydev->mdio.dev.kobj.release.wq->saved_min_active s32min-s32max
PARAM_VALUE 0 sfp->sfp_bus->upstream->phydev->mdio.dev.p->dead 0-1
PARAM_VALUE 0 sfp->sfp_bus->upstream->phydev->mdio.dev.p->deferred_probe_reason 0-s64max
PARAM_VALUE 0 sfp->sfp_bus->upstream->phydev->mdio.dev.p->knode_bus.n_ref.refcount.refs.counter s32min-s32max
PARAM_VALUE 0 sfp->sfp_bus->upstream->phydev->mdio.dev.power.completion.done 4294967295
PARAM_VALUE 0 sfp->sfp_bus->upstream->phydev->mdio.dev.power.wakeirq->status 0-4294967295
PARAM_VALUE 0 sfp->sfp_bus->upstream->phydev->phy_link_change 0
PARAM_VALUE 0 sfp->sfp_bus->upstream->phydev->priv->ts_lock->wait_lock.owner (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 sfp->sfp_bus->upstream->phydev->priv->ts_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 sfp->sfp_bus->upstream->phydev->priv->ts_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 sfp->sfp_bus->upstream->phydev->skb->sk->ns_tracker->alloc_stack_handle 0-4294967295
PARAM_VALUE 0 sfp->sfp_bus->upstream->phydev->skb->sk->ns_tracker->dead 0-1
PARAM_VALUE 0 sfp->sfp_bus->upstream->phydev->skb->sk->ns_tracker->free_stack_handle 0-4294967295
PARAM_VALUE 0 sfp->sfp_bus->upstream->phydev->state 0-4
PARAM_VALUE 0 sfp->sfp_bus->upstream->phydev_mutex.dep_map->name 0-255
PARAM_VALUE 0 sfp->sfp_bus->upstream->phydev_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 sfp->sfp_bus->upstream->phydev_mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 sfp->sfp_bus->upstream->phydev_mutex.first_waiter->task->blocked_on 0
PARAM_VALUE 0 sfp->sfp_bus->upstream->phydev_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 sfp->sfp_bus->upstream->resolve.lockdep_map->name 0-255
PARAM_VALUE 0 sfp->sfp_bus->upstream->state_mutex.dep_map->name 0-255
PARAM_VALUE 0 sfp->sfp_bus->upstream->state_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 sfp->sfp_bus->upstream->state_mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 sfp->sfp_bus->upstream->state_mutex.first_waiter->task->blocked_on 0
PARAM_VALUE 0 sfp->sfp_bus->upstream->state_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 *sfp->debugfs_dir->d_fsdata->d_inode->i_sb->s_fs_info->wbuf 0-255
PARAM_VALUE 0 *sfp->debugfs_dir->d_fsdata->d_inode->i_sb->s_fs_info->wbuf_verify 0-255
PARAM_VALUE 0 *sfp->debugfs_dir->d_inode->i_hash.next->pprev 1-u64max
PARAM_VALUE 0 *sfp->debugfs_dir->d_inode->i_sb->s_fs_info->nm_info->nat_root.xa_head (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 *sfp->debugfs_dir->d_inode->i_sb->s_fs_info->page_eio_cnt s32min-s32max
PARAM_VALUE 0 *sfp->sfp_bus->sfp->hwmon_dev->driver_data->cis_virt (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 *sfp->sfp_bus->sfp->hwmon_dev->driver_data->fake_cis 0-255
PARAM_VALUE 0 *sfp->sfp_bus->sfp->hwmon_dev->p->knode_bus.n_klist (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 *sfp->sfp_bus->sfp->hwmon_dev->p->knode_class.n_klist (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 *sfp->sfp_bus->sfp->hwmon_dev->p->knode_driver.n_klist (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 *sfp->sfp_bus->sfp->hwmon_dev->p->knode_parent.n_klist (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 *sfp->sfp_bus->sfp->mod_phy->psec->ps->debugfs->d_fsdata->d_fsdata (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 *sfp->sfp_bus->sfp->mod_phy->psec->ps->debugfs->d_fsdata->name 0-255
PARAM_VALUE 0 *sfp->sfp_bus->upstream->phydev->attached_dev->name 0-255
PARAM_VALUE 0 *sfp->sfp_bus->upstream->phydev->attached_dev->pcpu_refcnt s32min-s32max
PARAM_VALUE 1 event 1
BUF_SIZE 0 sfp s32min-(-2),1-s32max
BUF_SIZE 0 sfp s32min-(-2),1-s32max
CAPPED_DATA 0 sfp->debugfs_dir 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 sfp unit_byte
LOCK2 global &rtnl_mutex
HALF_LOCKED2 &_dev->mutex

drivers/net/phy/sfp.c sfp_start() -> sfp_sm_event()

Type Parameter Key Value
PARAM_VALUE 1 event 5
DATA_SOURCE 0 sfp $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 global &rtnl_mutex

drivers/net/phy/sfp.c sfp_stop() -> sfp_sm_event()

Type Parameter Key Value
PARAM_VALUE 1 event 4
DATA_SOURCE 0 sfp $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 global &rtnl_mutex

drivers/net/phy/sfp.c sfp_timeout() -> sfp_sm_event()

Type Parameter Key Value
PARAM_VALUE 0 sfp 4096-ptr_max
PARAM_VALUE 1 event 10
NOCHECK_CALL
LOCK2 global &rtnl_mutex
HALF_LOCKED2 &pool->lock