Defined in 1 files as a function:

Referenced in 4 files:

Smatch caller information:

drivers/net/thunderbolt/main.c tbnet_generate_mac() -> tb_phy_port_from_link()

Type Parameter Key Value
PARAM_VALUE 0 link 0-63
RX_PATH
TASK_NOT_RUNNING

drivers/thunderbolt/icm.c icm_fr_device_connected() -> tb_phy_port_from_link()

Type Parameter Key Value
LOCK2 &tb->lock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct tb)->lock

drivers/thunderbolt/icm.c icm_fr_device_connected() -> tb_phy_port_from_link()

Type Parameter Key Value
PARAM_VALUE 0 link 0-7
LOCK2 &tb->lock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct tb)->lock

drivers/thunderbolt/icm.c icm_fr_disconnect_xdomain_paths() -> tb_phy_port_from_link()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &attr->mutex
HALF_LOCKED2 &dt->lock
HALF_LOCKED2 &net->connection_lock

drivers/thunderbolt/icm.c phy_port_from_route() -> tb_phy_port_from_link()

Type Parameter Key Value
LOCK2 &tb->lock
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct tb)->lock

drivers/thunderbolt/tb.c tb_find_pcie_down() -> tb_phy_port_from_link()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
LOCK2 &sw->tb->lock
LOCK2 &tb->lock
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex
TYPE_LOCK (struct tb)->lock

drivers/thunderbolt/lc.c find_port_lc_cap() -> tb_phy_port_from_link()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &tb->lock