Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 10 files:

Smatch caller information:

drivers/net/phy/sfp.c sfp_sm_probe_phy() -> get_phy_device()

Type Parameter Key Value
PARAM_VALUE 1 addr 17,22
DATA_SOURCE 1 addr $1
DATA_SOURCE 2 is_c45 $2
HARD_MAX 1 addr 22
RX_PATH
TASK_NOT_RUNNING
LOCK2 &sfp->sm_mutex
HALF_LOCKED2 &pool->lock
HALF_LOCKED2 global &rtnl_mutex
TYPE_LOCK (struct sfp)->sm_mutex

drivers/net/mdio/fwnode_mdio.c fwnode_mdiobus_register_phy() -> get_phy_device()

Type Parameter Key Value
PARAM_VALUE 0 bus->dev.dma_io_tlb_mem->debugfs 0-s64max
PARAM_VALUE 0 bus->dev.dma_io_tlb_mem->phys_limit 0-s64max
PARAM_VALUE 0 bus->dev.kobj.sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 bus->dev.power.wakeirq->status 0-4294967295
PARAM_VALUE 1 addr 0-31
BUF_SIZE 0 bus (-1),3752,3784,3792,3800,3808,3816,3824,3912
BUF_SIZE 0 bus (-1),3752,3784,3792,3800,3808,3816,3824,3912
BUF_SIZE 0 bus->name (-1),3-5,7,9-25,28-29,32,50,61,80
BUF_SIZE 0 bus->parent (-1),1616
BUF_SIZE 0 bus->priv (-1),16,32,48,88,128
BUF_SIZE 0 bus->read (-1),8
BUF_SIZE 0 bus->read_c45 (-1),8
BUF_SIZE 0 bus->reset (-1),8
BUF_SIZE 0 bus->write (-1),8
BUF_SIZE 0 bus->write_c45 (-1),8
CAPPED_DATA 1 addr 1
DATA_SOURCE 0 bus $0
DATA_SOURCE 1 addr $2
DATA_SOURCE 2 is_c45 r fwnode_device_is_compatible
STR_LEN 0 bus->id (-1),60
STR_LEN 0 bus->name (-1),4,6,8-21,23-24,27-28,60
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 bus->id

drivers/net/mdio/mdio-xgene.c xgene_enet_phy_register() -> get_phy_device()

Type Parameter Key Value
PARAM_VALUE 0 bus->dev.kobj.sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 bus->dev.power.wakeirq->status 0-4294967295
PARAM_VALUE 2 is_c45 0
BUF_SIZE 0 bus (-1)-s32max
BUF_SIZE 0 bus (-1)-s32max
BUF_SIZE 0 bus->name (-1),20
BUF_SIZE 0 bus->parent (-1),1616
DATA_SOURCE 0 bus $0
DATA_SOURCE 1 addr $1
STR_LEN 0 bus->id (-1),60
STR_LEN 0 bus->name (-1),19
RX_PATH
TASK_NOT_RUNNING

drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c hns_mac_register_phydev() -> get_phy_device()

Type Parameter Key Value
PARAM_VALUE 0 bus 1-u64max
PARAM_VALUE 1 addr 0-s32max
BUF_SIZE 0 bus s32min-(-2),1-s32max
BUF_SIZE 0 bus s32min-(-2),1-s32max
DATA_SOURCE 0 bus $0
DATA_SOURCE 1 addr $2
RX_PATH
TASK_NOT_RUNNING
UNITS 0 bus unit_byte

drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c xgbe_phy_find_phy_device() -> get_phy_device()

Type Parameter Key Value
PARAM_VALUE 1 addr 0-31
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &pdata->an_mutex

drivers/net/phy/mdio_bus_provider.c mdiobus_scan() -> get_phy_device()

Type Parameter Key Value
PARAM_VALUE 0 bus->dev.dma_io_tlb_mem->debugfs 0-s64max
PARAM_VALUE 0 bus->dev.kobj.parent->sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 bus->dev.kobj.sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 bus->dev.power.wakeirq->status 0-4294967295
BUF_SIZE 0 bus (-1),3752,3784,3792,3800,3808,3816,3824,3912
BUF_SIZE 0 bus (-1),3752,3784,3792,3800,3808,3816,3824,3912
BUF_SIZE 0 bus->name s32min,(-10),(-1),1-s32max
BUF_SIZE 0 bus->parent (-1),1616
BUF_SIZE 0 bus->priv s32min-(-1),1-s32max
BUF_SIZE 0 bus->read (-1),8
BUF_SIZE 0 bus->read_c45 (-1),8
BUF_SIZE 0 bus->reset (-1),8
BUF_SIZE 0 bus->reset_gpiod s32min,(-1),1-s32max
BUF_SIZE 0 bus->write (-1),8
BUF_SIZE 0 bus->write_c45 (-1),8
DATA_SOURCE 0 bus $0
DATA_SOURCE 1 addr $1
DATA_SOURCE 2 is_c45 $2
STR_LEN 0 bus->id (-1),60
STR_LEN 0 bus->name (-1),5-6,9-21,23-25,27-28,33,60
RX_PATH
TASK_NOT_RUNNING

drivers/net/ethernet/socionext/netsec.c netsec_register_mdio() -> get_phy_device()

Type Parameter Key Value
PARAM_VALUE 0 bus 4096-ptr_max
PARAM_VALUE 0 bus->dev.class->class_groups 0
PARAM_VALUE 0 bus->dev.class->class_release 0
PARAM_VALUE 0 bus->dev.class->dev_groups 9153494666283933696
PARAM_VALUE 0 bus->dev.class->dev_release 2327914351191371776
PARAM_VALUE 0 bus->dev.class->dev_uevent 0
PARAM_VALUE 0 bus->dev.class->devnode 0
PARAM_VALUE 0 bus->dev.class->get_ownership 0
PARAM_VALUE 0 bus->dev.class->name 7163462164417028096
PARAM_VALUE 0 bus->dev.class->namespace 0
PARAM_VALUE 0 bus->dev.class->ns_type 0
PARAM_VALUE 0 bus->dev.class->pm 0
PARAM_VALUE 0 bus->dev.class->shutdown_pre 0
PARAM_VALUE 0 bus->dev.devres_head.next->next 4096-ptr_max
PARAM_VALUE 0 bus->dev.devres_head.prev 4096-ptr_max
PARAM_VALUE 0 bus->dev.devres_head.prev->next 4096-ptr_max
PARAM_VALUE 0 bus->dev.devres_head.prev->next->next 4096-ptr_max
PARAM_VALUE 0 bus->dev.devres_head.prev->prev 4096-ptr_max
PARAM_VALUE 0 bus->dev.dma_io_tlb_mem->dyn_alloc.data.counter 9007199250546704
PARAM_VALUE 0 bus->dev.dma_io_tlb_mem->dyn_alloc.entry.prev 1473117533515866344
PARAM_VALUE 0 bus->dev.dma_io_tlb_mem->dyn_alloc.func 1583282886040592384
PARAM_VALUE 0 bus->dev.dma_io_tlb_mem->pools.prev 1473117533515866320
PARAM_VALUE 0 bus->dev.dma_io_tlb_pools.next->next 4096-ptr_max
PARAM_VALUE 0 bus->dev.dma_io_tlb_pools.prev->next 4096-ptr_max
PARAM_VALUE 0 bus->dev.dma_io_tlb_pools.prev->prev 4096-ptr_max
PARAM_VALUE 0 bus->dev.dma_pools.next->next 4096-ptr_max
PARAM_VALUE 0 bus->dev.dma_pools.prev->next 4096-ptr_max
PARAM_VALUE 0 bus->dev.dma_pools.prev->prev 4096-ptr_max
PARAM_VALUE 0 bus->dev.fwnode->dev 4096-ptr_max
PARAM_VALUE 0 bus->dev.fwnode->dev->fwnode 4096-ptr_max
PARAM_VALUE 0 bus->dev.fwnode->dev->p 1-u64max
PARAM_VALUE 0 bus->dev.fwnode->dev->power.set_latency_tolerance 5740181548905971712
PARAM_VALUE 0 bus->dev.fwnode->suppliers.next 4096-ptr_max
PARAM_VALUE 0 bus->dev.kobj->name 0-255
PARAM_VALUE 0 bus->dev.kobj.release->timer->entry.pprev 4096-ptr_max
PARAM_VALUE 0 bus->dev.kobj.release.timer.is_hard 0-1
PARAM_VALUE 0 bus->dev.kobj.release.timer.is_lazy 0-1
PARAM_VALUE 0 bus->dev.kobj.release.timer.is_queued 0-1
PARAM_VALUE 0 bus->dev.kobj.release.timer.is_soft 0-1
PARAM_VALUE 0 bus->dev.kobj.release.work.entry.next->prev 4096-ptr_max
PARAM_VALUE 0 bus->dev.kobj.sd->active.counter (-2147483647)
PARAM_VALUE 0 bus->dev.kobj.sd->attr.notify_next 0,426918848001064960
PARAM_VALUE 0 bus->dev.links.consumers.next->next 4096-ptr_max
PARAM_VALUE 0 bus->dev.links.consumers.prev->next 4096-ptr_max
PARAM_VALUE 0 bus->dev.links.consumers.prev->prev 4096-ptr_max
PARAM_VALUE 0 bus->dev.links.defer_sync.next->next 4096-ptr_max
PARAM_VALUE 0 bus->dev.links.defer_sync.prev->next 4096-ptr_max
PARAM_VALUE 0 bus->dev.links.defer_sync.prev->prev 4096-ptr_max
PARAM_VALUE 0 bus->dev.links.suppliers.next->next 4096-ptr_max
PARAM_VALUE 0 bus->dev.links.suppliers.prev->next 4096-ptr_max
PARAM_VALUE 0 bus->dev.links.suppliers.prev->prev 4096-ptr_max
PARAM_VALUE 0 bus->dev.p->klist_children.get 2213798222526185472
PARAM_VALUE 0 bus->dev.p->klist_children.put 3126867300421632000
PARAM_VALUE 0 bus->dev.p->knode_bus.n_ref.refcount.refs.counter 1
PARAM_VALUE 0 bus->dev.p->knode_class.n_ref.refcount.refs.counter 1
PARAM_VALUE 0 bus->dev.p->knode_parent.n_ref.refcount.refs.counter 1
PARAM_VALUE 0 bus->dev.physical_location->dock 0
PARAM_VALUE 0 bus->dev.physical_location->lid 0
PARAM_VALUE 0 bus->dev.physical_location->panel 0
PARAM_VALUE 0 bus->dev.power.entry.next->next 4096-ptr_max
PARAM_VALUE 0 bus->dev.power.entry.prev->next 4096-ptr_max
PARAM_VALUE 0 bus->dev.power.entry.prev->prev 4096-ptr_max
PARAM_VALUE 0 bus->dev.power.wait_queue.head.next->next 4096-ptr_max
PARAM_VALUE 0 bus->dev.power.wait_queue.head.prev->next 4096-ptr_max
PARAM_VALUE 0 bus->dev.power.wait_queue.head.prev->prev 4096-ptr_max
PARAM_VALUE 0 bus->dev.power.wakeirq->status 0-4294967295
PARAM_VALUE 0 bus->mdio_lock.dep_map->name 0-255
PARAM_VALUE 0 bus->mdio_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 bus->mdio_lock.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 bus->mdio_lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 bus->name 140423528811692032
PARAM_VALUE 0 bus->owner 0
PARAM_VALUE 0 bus->parent 4096-ptr_max
PARAM_VALUE 0 bus->parent->devres_head.prev 4096-ptr_max
PARAM_VALUE 0 bus->parent->driver_data 4096-ptr_max
PARAM_VALUE 0 bus->phy_mask u32max
PARAM_VALUE 0 bus->priv 4096-ptr_max
PARAM_VALUE 0 bus->priv->bus->phy_mask 0-4294967295
PARAM_VALUE 0 bus->priv->clk_mdio->core->dev->power.deferred_resume 0-1
PARAM_VALUE 0 bus->priv->clk_mdio->core->dev->power.idle_notification 0-1
PARAM_VALUE 0 bus->priv->clk_mdio->core->dev->power.request 0-4294967295
PARAM_VALUE 0 bus->priv->clk_mdio->core->dev->power.request_pending 0-1
PARAM_VALUE 0 bus->priv->clk_mdio->core->dev->power.runtime_error s32min-s32max
PARAM_VALUE 0 bus->priv->clk_mdio->core->dev->power.runtime_status s32min-s32max
PARAM_VALUE 0 bus->priv->clk_mdio->core->dev->power.timer_autosuspends 0-1
PARAM_VALUE 0 bus->priv->clk_mdio->core->dev->power.usage_count.counter s32min-s32max
PARAM_VALUE 0 bus->priv->clk_mdio->core->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 bus->priv->dev->power.deferred_resume 0-1
PARAM_VALUE 0 bus->priv->dev->power.idle_notification 0-1
PARAM_VALUE 0 bus->priv->dev->power.request 0-4
PARAM_VALUE 0 bus->priv->dev->power.request_pending 0-1
PARAM_VALUE 0 bus->priv->dev->power.runtime_error s32min-(-17),(-15)-(-14),(-12),(-10)-s32max
PARAM_VALUE 0 bus->priv->dev->power.runtime_status 0,2
PARAM_VALUE 0 bus->priv->dev->power.timer_autosuspends 0-1
PARAM_VALUE 0 bus->priv->dev->power.usage_count.counter s32min-s32max
PARAM_VALUE 0 bus->priv->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 bus->priv->intf->dev.power.deferred_resume 0-1
PARAM_VALUE 0 bus->priv->intf->dev.power.idle_notification 0-1
PARAM_VALUE 0 bus->priv->intf->dev.power.request 0-4294967295
PARAM_VALUE 0 bus->priv->intf->dev.power.request_pending 0-1
PARAM_VALUE 0 bus->priv->intf->dev.power.runtime_error s32min-s32max
PARAM_VALUE 0 bus->priv->intf->dev.power.runtime_status s32min-s32max
PARAM_VALUE 0 bus->priv->intf->dev.power.timer_autosuspends 0-1
PARAM_VALUE 0 bus->priv->intf->dev.power.usage_count.counter s32min-s32max
PARAM_VALUE 0 bus->priv->intf->dev.power.wakeirq->status 0-4294967295
PARAM_VALUE 0 bus->priv->mdio_clk->core->dev->power.deferred_resume 0-1
PARAM_VALUE 0 bus->priv->mdio_clk->core->dev->power.idle_notification 0-1
PARAM_VALUE 0 bus->priv->mdio_clk->core->dev->power.request 0-4294967295
PARAM_VALUE 0 bus->priv->mdio_clk->core->dev->power.request_pending 0-1
PARAM_VALUE 0 bus->priv->mdio_clk->core->dev->power.runtime_error s32min-s32max
PARAM_VALUE 0 bus->priv->mdio_clk->core->dev->power.runtime_status s32min-s32max
PARAM_VALUE 0 bus->priv->mdio_clk->core->dev->power.timer_autosuspends 0-1
PARAM_VALUE 0 bus->priv->mdio_clk->core->dev->power.usage_count.counter s32min-s32max
PARAM_VALUE 0 bus->priv->mdio_clk->core->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 bus->priv->mdio_clk->core->duty.den 0-4294967295
PARAM_VALUE 0 bus->priv->mdio_clk->core->duty.num 0-4294967295
PARAM_VALUE 0 bus->priv->mdio_clk->core->enable_count 0-4294967295
PARAM_VALUE 0 bus->priv->mdio_clk->core->new_parent_index 0-254
PARAM_VALUE 0 bus->priv->mdio_clk->core->notifier_count 0-4294967295
PARAM_VALUE 0 bus->priv->mdio_clk->core->num_parents 0-255
PARAM_VALUE 0 bus->priv->mdio_clk->core->orphan 0-1
PARAM_VALUE 0 bus->priv->mdio_clk->core->parent->dev->power.deferred_resume 0-1
PARAM_VALUE 0 bus->priv->mdio_clk->core->parent->dev->power.idle_notification 0-1
PARAM_VALUE 0 bus->priv->mdio_clk->core->parent->dev->power.request 0-4
PARAM_VALUE 0 bus->priv->mdio_clk->core->parent->dev->power.request_pending 0-1
PARAM_VALUE 0 bus->priv->mdio_clk->core->parent->dev->power.runtime_error s32min-(-17),(-15)-(-14),(-12),(-10)-s32max
PARAM_VALUE 0 bus->priv->mdio_clk->core->parent->dev->power.runtime_status s32min-s32max
PARAM_VALUE 0 bus->priv->mdio_clk->core->parent->dev->power.timer_autosuspends 0-1
PARAM_VALUE 0 bus->priv->mdio_clk->core->parent->dev->power.usage_count.counter s32min-s32max
PARAM_VALUE 0 bus->priv->mdio_clk->core->parent->dev->power.wakeirq->status 0-4294967295
PARAM_VALUE 0 bus->priv->mdio_clk->core->parent->enable_count 0-4294967295
PARAM_VALUE 0 bus->priv->mdio_clk->core->parent->prepare_count 0-4294967295
PARAM_VALUE 0 bus->priv->mdio_clk->core->parent->protect_count 0-4294967295
PARAM_VALUE 0 bus->priv->mdio_clk->core->phase s32min-s32max
PARAM_VALUE 0 bus->priv->mdio_clk->core->prepare_count 0-4294967295
PARAM_VALUE 0 bus->priv->mdio_clk->core->protect_count 0-4294967295
PARAM_VALUE 0 bus->priv->mdio_clk->core->rpm_enabled 0-1
PARAM_VALUE 0 bus->priv->net_dev->phydev->has_fixups 1
PARAM_VALUE 0 bus->priv->net_dev->phydev->mdio.bus->mdio_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 bus->priv->phy_mutex.dep_map->name 0-255
PARAM_VALUE 0 bus->priv->phy_mutex.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 bus->priv->phy_mutex.first_waiter->list.prev->prev 5159360019465732096
PARAM_VALUE 0 bus->priv->phy_mutex.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 bus->priv->phy_mutex.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 bus->priv->phy_mutex.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 bus->priv->phy_mutex.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 bus->priv->phy_mutex.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 bus->priv->phy_mutex.osq.tail.counter 0-s32max
PARAM_VALUE 0 bus->priv->phy_regs->cache->cached_rbnode->base_reg 0-4294967295
PARAM_VALUE 0 bus->priv->phy_regs->cache->cached_rbnode->blklen 0-4294967295
PARAM_VALUE 0 bus->priv->phy_regs->cache_dirty 0-1
PARAM_VALUE 0 bus->priv->subctrl_vbase->cache_dirty 0-1
PARAM_VALUE 0 bus->read 1813940958779285504
PARAM_VALUE 0 bus->reset_gpiod 4096-ptr_max
PARAM_VALUE 0 bus->shared_lock.dep_map->name 0-255
PARAM_VALUE 0 bus->shared_lock.first_waiter 0
PARAM_VALUE 0 bus->shared_lock.magic 4096-ptr_max
PARAM_VALUE 0 bus->shared_lock.osq.tail.counter 0
PARAM_VALUE 0 bus->shared_lock.owner.counter 0
PARAM_VALUE 0 bus->state 2
PARAM_VALUE 0 bus->write 3751839541146378240
PARAM_VALUE 0 *bus->priv->net->name 0-255
PARAM_VALUE 2 is_c45 0
BUF_SIZE 0 bus 3752,3784,3792,3800,3808,3816,3824,3912
BUF_SIZE 0 bus 3752,3784,3792,3800,3808,3816,3824,3912
BUF_SIZE 0 bus->name 16
BUF_SIZE 0 bus->parent 1616
DATA_SOURCE 0 bus r devm_mdiobus_alloc
DATA_SOURCE 1 addr $1
STR_LEN 0 bus->id 60
STR_LEN 0 bus->name 15
TERMINATED 0 bus->name 1
RX_PATH
TASK_NOT_RUNNING

drivers/net/ethernet/adi/adin1110.c adin1110_probe_netdevs() -> get_phy_device()

Type Parameter Key Value
PARAM_VALUE 0 bus 0,4096-ptr_max
PARAM_VALUE 1 addr 1-2
PARAM_VALUE 2 is_c45 0
CAPPED_DATA 1 addr 1
RX_PATH
TASK_NOT_RUNNING

drivers/net/phy/fixed_phy.c fixed_phy_register() -> get_phy_device()

Type Parameter Key Value
PARAM_VALUE 0 bus 4096-ptr_max
PARAM_VALUE 0 bus->state 2
PARAM_VALUE 1 addr 0-7
PARAM_VALUE 2 is_c45 0
CAPPED_DATA 1 addr 1
DATA_SOURCE 1 addr r fixed_phy_get_free_addr
RX_PATH
TASK_NOT_RUNNING