Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/net/ethernet/smsc/smsc911x.c smsc911x_mii_read() -> smsc911x_mac_write()

Type Parameter Key Value
PARAM_VALUE 0 pdata 4096-ptr_max
PARAM_VALUE 0 pdata->ops 4096-ptr_max
PARAM_VALUE 0 pdata->ops->reg_read 4096-ptr_max
PARAM_VALUE 1 offset 6
PARAM_VALUE 2 val 0-u16max
BUF_SIZE 0 pdata s32min-(-1),1-s32max
BUF_SIZE 0 pdata s32min-(-1),1-s32max
BIT_INFO 2 val 0x0,0xffc0
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
USER_DATA 2 val 0-u16max[c]
UNITS 0 pdata unit_byte
LOCK2 flags
LOCK2 0 &pdata->mac_lock
HALF_LOCKED2 &bus->mdio_lock
HALF_LOCKED2 &priv->bus->mdio_lock
TYPE_LOCK (struct smsc911x_data)->mac_lock

drivers/net/ethernet/smsc/smsc911x.c smsc911x_mii_write() -> smsc911x_mac_write()

Type Parameter Key Value
PARAM_VALUE 0 pdata 4096-ptr_max
PARAM_VALUE 0 pdata->ops 4096-ptr_max
PARAM_VALUE 0 pdata->ops->reg_read 4096-ptr_max
PARAM_VALUE 1 offset 7
BUF_SIZE 0 pdata s32min-(-2),1-s32max
BUF_SIZE 0 pdata s32min-(-2),1-s32max
DATA_SOURCE 2 val $3
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 2 val 0-u16max
USER_DATA 2 val 0-u16max
UNITS 0 pdata unit_byte
LOCK2 flags
LOCK2 0 &pdata->mac_lock
HALF_LOCKED2 &bus->mdio_lock
HALF_LOCKED2 &bus->mdio_lock
HALF_LOCKED2 &priv->bus->mdio_lock
TYPE_LOCK (struct smsc911x_data)->mac_lock

drivers/net/ethernet/smsc/smsc911x.c smsc911x_mii_write() -> smsc911x_mac_write()

Type Parameter Key Value
PARAM_VALUE 0 pdata 4096-ptr_max
PARAM_VALUE 0 pdata->dev_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 pdata->ops 4096-ptr_max
PARAM_VALUE 0 pdata->ops->reg_read 4096-ptr_max
PARAM_VALUE 1 offset 6
PARAM_VALUE 2 val 2-65537
BUF_SIZE 0 pdata s32min-(-2),1-s32max
BUF_SIZE 0 pdata s32min-(-2),1-s32max
BIT_INFO 2 val 0x2,0xffc2
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 pdata unit_byte
LOCK2 flags
LOCK2 0 &pdata->mac_lock
HALF_LOCKED2 &bus->mdio_lock
HALF_LOCKED2 &bus->mdio_lock
HALF_LOCKED2 &priv->bus->mdio_lock
TYPE_LOCK (struct smsc911x_data)->mac_lock

drivers/net/ethernet/smsc/smsc911x.c smsc911x_open() -> smsc911x_mac_write()

Type Parameter Key Value
PARAM_VALUE 0 pdata 4096-ptr_max
PARAM_VALUE 0 pdata->config.phy_interface 0-4294967295
PARAM_VALUE 0 pdata->dev 4096-ptr_max
PARAM_VALUE 0 pdata->dev->phydev 0,4096-ptr_max
PARAM_VALUE 0 pdata->dev_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 pdata->mac_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 pdata->ops 4096-ptr_max
PARAM_VALUE 0 pdata->ops->reg_write 4096-ptr_max
PARAM_VALUE 0 pdata->resetcount 0-4294967295
PARAM_VALUE 1 offset 9
PARAM_VALUE 2 val 33024
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 irq
LOCK2 0 &pdata->mac_lock
HALF_LOCKED2 global &rtnl_mutex
TYPE_LOCK (struct smsc911x_data)->mac_lock

drivers/net/ethernet/smsc/smsc911x.c smsc911x_open() -> smsc911x_mac_write()

Type Parameter Key Value
PARAM_VALUE 0 pdata 4096-ptr_max
PARAM_VALUE 0 pdata->config.phy_interface 0-4294967295
PARAM_VALUE 0 pdata->dev 4096-ptr_max
PARAM_VALUE 0 pdata->dev->phydev 0,4096-ptr_max
PARAM_VALUE 0 pdata->dev_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 pdata->last_carrier (-1)
PARAM_VALUE 0 pdata->last_duplex (-1)
PARAM_VALUE 0 pdata->mac_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 pdata->napi->thread->delays->lock.owner (-4611686018427387904)-4611686018427387903
PARAM_VALUE 0 pdata->napi.config 0,4096-ptr_max
PARAM_VALUE 0 pdata->napi.dev 4096-ptr_max
PARAM_VALUE 0 pdata->napi.dev->lock.dep_map->name 0-255
PARAM_VALUE 0 pdata->napi.dev->lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 pdata->napi.dev->lock.first_waiter->task->blocked_lock.dep_map->name 0-255
PARAM_VALUE 0 pdata->napi.dev->lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 pdata->napi.dev->lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 pdata->napi.dev->lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 pdata->napi.dev->lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 pdata->napi.thread 0,4096-ptr_max
PARAM_VALUE 0 pdata->napi.thread->blocked_on 0
PARAM_VALUE 0 pdata->napi.thread->cpus_ptr 4096-ptr_max
PARAM_VALUE 0 pdata->napi.thread->migration_disabled 0-1
PARAM_VALUE 0 pdata->napi.thread->on_rq 0-1,3-255
PARAM_VALUE 0 pdata->napi.thread->saved_state 0
PARAM_VALUE 0 pdata->napi.thread->wake_cpu 0-s32max
PARAM_VALUE 0 pdata->ops 4096-ptr_max
PARAM_VALUE 0 pdata->ops->reg_read 4096-ptr_max
PARAM_VALUE 0 pdata->ops->reg_write 4096-ptr_max
PARAM_VALUE 0 pdata->resetcount 0-4294967295
PARAM_VALUE 1 offset 1
PARAM_VALUE 2 val 0,4-u32max
BIT_INFO 2 val 0x1000000c,0xffffffff
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 2 val 0,4-u32max
LOCK2 irq
LOCK2 0 &pdata->mac_lock
HALF_LOCKED2 global &rtnl_mutex
TYPE_LOCK (struct smsc911x_data)->mac_lock

drivers/net/ethernet/smsc/smsc911x.c smsc911x_phy_adjust_link() -> smsc911x_mac_write()

Type Parameter Key Value
PARAM_VALUE 0 pdata 4096-ptr_max
PARAM_VALUE 0 pdata->dev_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 pdata->ops 4096-ptr_max
PARAM_VALUE 0 pdata->ops->reg_read 4096-ptr_max
PARAM_VALUE 1 offset 1
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 2 val 0-u32max
LOCK2 &phydev->lock
LOCK2 flags
LOCK2 0 &pdata->mac_lock
TYPE_LOCK (struct phy_device)->lock
TYPE_LOCK (struct smsc911x_data)->mac_lock

drivers/net/ethernet/smsc/smsc911x.c smsc911x_phy_loopbacktest() -> smsc911x_mac_write()

Type Parameter Key Value
PARAM_VALUE 0 pdata 4096-ptr_max
PARAM_VALUE 0 pdata->dev_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 pdata->loopback_tx_pkt 4096-ptr_max
PARAM_VALUE 0 pdata->ops 4096-ptr_max
PARAM_VALUE 0 pdata->ops->reg_read 4096-ptr_max
PARAM_VALUE 0 pdata->ops->reg_write 4096-ptr_max
PARAM_VALUE 0 pdata->ops->tx_writefifo 4096-ptr_max
PARAM_VALUE 0 *pdata->loopback_rx_pkt 0-4294967295
PARAM_VALUE 1 offset 1
PARAM_VALUE 2 val 1048588
TERMINATED 0 pdata->loopback_tx_pkt 1
MEM_ZERO 0 pdata->loopback_tx_pkt
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 flags
LOCK2 0 &pdata->mac_lock
HALF_LOCKED2 &dev->ethtool->rss_lock
HALF_LOCKED2 &dev->lock
TYPE_LOCK (struct smsc911x_data)->mac_lock

drivers/net/ethernet/smsc/smsc911x.c smsc911x_phy_loopbacktest() -> smsc911x_mac_write()

Type Parameter Key Value
PARAM_VALUE 0 pdata 4096-ptr_max
PARAM_VALUE 0 pdata->dev_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 pdata->loopback_tx_pkt 4096-ptr_max
PARAM_VALUE 0 pdata->mac_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 pdata->ops 4096-ptr_max
PARAM_VALUE 0 pdata->ops->reg_read 4096-ptr_max
PARAM_VALUE 0 pdata->ops->reg_write 4096-ptr_max
PARAM_VALUE 0 pdata->ops->tx_writefifo 4096-ptr_max
PARAM_VALUE 0 *pdata->loopback_rx_pkt 0-4294967295
PARAM_VALUE 1 offset 1
PARAM_VALUE 2 val 0
TERMINATED 0 pdata->loopback_tx_pkt 1
MEM_ZERO 0 pdata->loopback_rx_pkt
MEM_ZERO 0 pdata->loopback_tx_pkt
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 flags
LOCK2 0 &pdata->mac_lock
HALF_LOCKED2 &dev->ethtool->rss_lock
HALF_LOCKED2 &dev->lock
TYPE_LOCK (struct smsc911x_data)->mac_lock

drivers/net/ethernet/smsc/smsc911x.c smsc911x_phy_loopbacktest() -> smsc911x_mac_write()

Type Parameter Key Value
PARAM_VALUE 0 pdata 4096-ptr_max
PARAM_VALUE 0 pdata->dev_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 pdata->loopback_tx_pkt 4096-ptr_max
PARAM_VALUE 0 pdata->mac_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 pdata->ops 4096-ptr_max
PARAM_VALUE 0 pdata->ops->reg_read 4096-ptr_max
PARAM_VALUE 0 pdata->ops->reg_write 4096-ptr_max
PARAM_VALUE 0 pdata->ops->tx_writefifo 4096-ptr_max
PARAM_VALUE 0 *pdata->loopback_rx_pkt 0-4294967295
PARAM_VALUE 1 offset 1
PARAM_VALUE 2 val 0
TERMINATED 0 pdata->loopback_tx_pkt 1
MEM_ZERO 0 pdata->loopback_rx_pkt
MEM_ZERO 0 pdata->loopback_tx_pkt
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 0 *pdata->loopback_rx_pkt 0-4294967295
LOCK2 flags
LOCK2 0 &pdata->mac_lock
HALF_LOCKED2 &dev->ethtool->rss_lock
HALF_LOCKED2 &dev->lock
TYPE_LOCK (struct smsc911x_data)->mac_lock

drivers/net/ethernet/smsc/smsc911x.c smsc911x_phy_update_flowcontrol() -> smsc911x_mac_write()

Type Parameter Key Value
PARAM_VALUE 0 pdata 4096-ptr_max
PARAM_VALUE 0 pdata->dev 4096-ptr_max
PARAM_VALUE 0 pdata->dev_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 pdata->mac_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 pdata->ops 4096-ptr_max
PARAM_VALUE 0 pdata->ops->reg_read 4096-ptr_max
PARAM_VALUE 1 offset 8
PARAM_VALUE 2 val 0,4294901762
DATA_SOURCE 0 pdata $0
FUZZY_MAX 2 val 4294901762
BIT_INFO 2 val 0x0,0xffff0002
HARD_MAX 2 val 4294901762
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &phydev->lock
LOCK2 flags
LOCK2 0 &pdata->mac_lock
TYPE_LOCK (struct phy_device)->lock
TYPE_LOCK (struct smsc911x_data)->mac_lock

drivers/net/ethernet/smsc/smsc911x.c smsc911x_rx_multicast_update() -> smsc911x_mac_write()

Type Parameter Key Value
PARAM_VALUE 0 pdata 4096-ptr_max
PARAM_VALUE 0 pdata->dev_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 pdata->ops 4096-ptr_max
PARAM_VALUE 0 pdata->ops->reg_read 4096-ptr_max
PARAM_VALUE 0 pdata->ops->reg_write 4096-ptr_max
PARAM_VALUE 1 offset 1
DATA_SOURCE 0 pdata $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 2 val 0-u32max[c]
LOCK2 0 &pdata->mac_lock
HALF_LOCKED2 flags
TYPE_LOCK (struct smsc911x_data)->mac_lock

drivers/net/ethernet/smsc/smsc911x.c smsc911x_rx_multicast_update() -> smsc911x_mac_write()

Type Parameter Key Value
PARAM_VALUE 0 pdata 4096-ptr_max
PARAM_VALUE 0 pdata->dev_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 pdata->ops 4096-ptr_max
PARAM_VALUE 0 pdata->ops->reg_read 4096-ptr_max
PARAM_VALUE 0 pdata->ops->reg_write 4096-ptr_max
PARAM_VALUE 1 offset 4
DATA_SOURCE 0 pdata $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 0 &pdata->mac_lock
HALF_LOCKED2 flags
TYPE_LOCK (struct smsc911x_data)->mac_lock

drivers/net/ethernet/smsc/smsc911x.c smsc911x_rx_multicast_update() -> smsc911x_mac_write()

Type Parameter Key Value
PARAM_VALUE 0 pdata 4096-ptr_max
PARAM_VALUE 0 pdata->dev_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 pdata->ops 4096-ptr_max
PARAM_VALUE 0 pdata->ops->reg_read 4096-ptr_max
PARAM_VALUE 0 pdata->ops->reg_write 4096-ptr_max
PARAM_VALUE 1 offset 5
DATA_SOURCE 0 pdata $0
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 0 &pdata->mac_lock
HALF_LOCKED2 flags
TYPE_LOCK (struct smsc911x_data)->mac_lock

drivers/net/ethernet/smsc/smsc911x.c smsc911x_rx_multicast_update_workaround() -> smsc911x_mac_write()

Type Parameter Key Value
PARAM_VALUE 0 pdata 4096-ptr_max
PARAM_VALUE 0 pdata->dev_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 pdata->mac_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 pdata->multicast_update_pending 1-u32max
PARAM_VALUE 0 pdata->ops 4096-ptr_max
PARAM_VALUE 0 pdata->ops->reg_read 4096-ptr_max
PARAM_VALUE 0 pdata->ops->reg_write 4096-ptr_max
PARAM_VALUE 1 offset 1
PARAM_VALUE 2 val 0,4-u32max
DATA_SOURCE 0 pdata $0
BIT_INFO 2 val 0x4,0xffffffff
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 2 val 0,4-u32max
LOCK2 0 &pdata->mac_lock
HALF_LOCKED2 &desc->request_mutex
HALF_LOCKED2 _T->lock
HALF_LOCKED2 flags
HALF_LOCKED2 irq
TYPE_LOCK (struct smsc911x_data)->mac_lock

drivers/net/ethernet/smsc/smsc911x.c smsc911x_set_hw_mac_address() -> smsc911x_mac_write()

Type Parameter Key Value
PARAM_VALUE 0 pdata 4096-ptr_max
PARAM_VALUE 0 pdata->mac_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 pdata->mii_bus->dev.kobj.sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 pdata->mii_bus->dev.power.wakeirq->status 0-4294967295
PARAM_VALUE 0 pdata->ops->reg_read 4096-ptr_max
PARAM_VALUE 0 pdata->ops->reg_write 4096-ptr_max
PARAM_VALUE 1 offset 2
PARAM_VALUE 2 val 0-u16max
BUF_SIZE 0 pdata->ops (-1),32
DATA_SOURCE 0 pdata $0
BIT_INFO 2 val 0x0,0xff
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 0 pdata->idrev 0-u32max
LOCK2 irq
LOCK2 0 &pdata->mac_lock
TYPE_LOCK (struct smsc911x_data)->mac_lock

drivers/net/ethernet/smsc/smsc911x.c smsc911x_set_hw_mac_address() -> smsc911x_mac_write()

Type Parameter Key Value
PARAM_VALUE 0 pdata 4096-ptr_max
PARAM_VALUE 0 pdata->dev_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 pdata->mac_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 pdata->mii_bus->dev.kobj.sd->attr.open->nr_mmapped 0-4294967295
PARAM_VALUE 0 pdata->mii_bus->dev.power.wakeirq->status 0-4294967295
PARAM_VALUE 0 pdata->ops 4096-ptr_max
PARAM_VALUE 0 pdata->ops->reg_read 4096-ptr_max
PARAM_VALUE 0 pdata->ops->reg_write 4096-ptr_max
PARAM_VALUE 1 offset 3
PARAM_VALUE 2 val 0-s32max
BUF_SIZE 0 pdata->ops (-1),32
DATA_SOURCE 0 pdata $0
BIT_INFO 2 val 0x0,0xff
PREEMPT_ADD
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 0 pdata->idrev 0-u32max
LOCK2 irq
LOCK2 0 &pdata->mac_lock
TYPE_LOCK (struct smsc911x_data)->mac_lock

drivers/net/ethernet/smsc/smsc911x.c smsc911x_set_multicast_list() -> smsc911x_mac_write()

Type Parameter Key Value
PARAM_VALUE 0 pdata 4096-ptr_max
PARAM_VALUE 0 pdata->clear_bits_mask 270336,532480,786432,794624
PARAM_VALUE 0 pdata->dev_lock.rlock.dep_map->name 0-255
PARAM_VALUE 0 pdata->generation 0-1
PARAM_VALUE 0 pdata->multicast_update_pending 1
PARAM_VALUE 0 pdata->ops 4096-ptr_max
PARAM_VALUE 0 pdata->ops->reg_read 4096-ptr_max
PARAM_VALUE 0 pdata->set_bits_mask 0,8192,262144,524288
PARAM_VALUE 1 offset 1
FUZZY_MAX 0 pdata->clear_bits_mask 794624
FUZZY_MAX 0 pdata->generation 1
FUZZY_MAX 0 pdata->set_bits_mask 524288
BIT_INFO 0 pdata->clear_bits_mask 0x0,0xc2000
BIT_INFO 0 pdata->set_bits_mask 0x0,0xc2000
BIT_INFO 2 val 0x0,0xfffffffb
HARD_MAX 0 pdata->clear_bits_mask 794624
HARD_MAX 0 pdata->generation 1
HARD_MAX 0 pdata->set_bits_mask 524288
PREEMPT_ADD <- disables preempt
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 2 val 0-u32max[c]
LOCK2 flags
LOCK2 0 &pdata->mac_lock
HALF_LOCKED2 &dev->addr_list_lock
HALF_LOCKED2 bh
HALF_LOCKED2 global &rtnl_mutex
TYPE_LOCK (struct smsc911x_data)->mac_lock