Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 8 files:

Smatch caller information:

drivers/net/pcs/pcs-xpcs.c mdiodev_c45_read() -> mdiobus_c45_read()

Type Parameter Key Value
PARAM_VALUE 2 devad 1,3,7,31
PARAM_VALUE 3 regnum 0-3,5,7-8,10,19-21,32-33,32768,32770,32784
DATA_SOURCE 2 devad $1
DATA_SOURCE 3 regnum $2
FUZZY_MAX 2 devad 31
BIT_INFO 2 devad 0x1,0x1f
BIT_INFO 3 regnum 0x0,0x803f
HARD_MAX 2 devad 31
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 1 addr
UNITS 0 bus unit_byte
UNITS 1 addr unit_array_size

drivers/net/ethernet/intel/ixgbe/ixgbe_main.c ixgbe_mdio_read() -> mdiobus_c45_read()

Type Parameter Key Value
PARAM_VALUE 0 bus 1-u64max
PARAM_VALUE 2 devad s32min-(-2),0-s32max
PARAM_VALUE 3 regnum 0-u16max
DATA_SOURCE 1 addr $1
DATA_SOURCE 2 devad $2
DATA_SOURCE 3 regnum $3
FUZZY_MAX 2 devad 5
RX_PATH
TASK_NOT_RUNNING
HOST_DATA 1 addr 0-u16max[c]
USER_DATA 3 regnum 1-u16max[c]
HALF_LOCKED2 &efx->mac_lock

drivers/net/phy/cortina.c cortina_read_reg() -> mdiobus_c45_read()

Type Parameter Key Value
PARAM_VALUE 2 devad 0
PARAM_VALUE 3 regnum 0-1,23
DATA_SOURCE 3 regnum $1
HARD_MAX 3 regnum 23
RX_PATH
TASK_NOT_RUNNING
UNITS 0 bus unit_byte
UNITS 1 addr unit_array_size

drivers/net/phy/phy_device.c get_phy_c45_devs_in_pkg() -> mdiobus_c45_read()

Type Parameter Key Value
PARAM_VALUE 0 bus->dev.dma_io_tlb_mem->can_grow 0-1
PARAM_VALUE 0 bus->dev.dma_io_tlb_mem->debugfs 0-s64max
PARAM_VALUE 0 bus->dev.dma_io_tlb_mem->for_alloc 0-1
PARAM_VALUE 0 bus->dev.dma_io_tlb_mem->force_bounce 0-1
PARAM_VALUE 0 bus->dev.dma_io_tlb_mem->nslabs 0-s64max
PARAM_VALUE 0 bus->dev.dma_io_tlb_mem->phys_limit 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
PARAM_VALUE 2 devad 0-31
PARAM_VALUE 3 regnum 6
BUF_SIZE 0 bus s32min-(-1),1-s32max
BUF_SIZE 0 bus s32min-(-1),1-s32max
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 (-1),1,3-6,14,18,30,33,41
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 devad $2
FUZZY_MAX 2 devad 1
STR_LEN 0 bus->id (-1),60
STR_LEN 0 bus->name (-1),4-6,8-21,23-25,27-28,33,60
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 bus->id
UNITS 0 bus unit_byte
UNITS 1 addr unit_array_size

drivers/net/phy/phy_device.c get_phy_c45_devs_in_pkg() -> mdiobus_c45_read()

Type Parameter Key Value
PARAM_VALUE 0 bus 4096-ptr_max
PARAM_VALUE 0 bus->dev.dma_io_tlb_mem->can_grow 0-1
PARAM_VALUE 0 bus->dev.dma_io_tlb_mem->debugfs 0-s64max
PARAM_VALUE 0 bus->dev.dma_io_tlb_mem->for_alloc 0-1
PARAM_VALUE 0 bus->dev.dma_io_tlb_mem->force_bounce 0-1
PARAM_VALUE 0 bus->dev.dma_io_tlb_mem->nslabs 0-s64max
PARAM_VALUE 0 bus->dev.dma_io_tlb_mem->phys_limit 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
PARAM_VALUE 0 bus->mdio_lock.dep_map->name 0-255
PARAM_VALUE 0 bus->mdio_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 bus->mdio_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 bus->mdio_lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 bus->mdio_lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 bus->mdio_lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 bus->mdio_lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 bus->mdio_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 bus->read_c45 1-u64max
PARAM_VALUE 1 addr s32min-31
PARAM_VALUE 2 devad 0-31
PARAM_VALUE 3 regnum 5
BUF_SIZE 0 bus s32min-(-1),1-s32max
BUF_SIZE 0 bus s32min-(-1),1-s32max
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 (-1),1,3-6,14,18,30,33,41
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 devad $2
FUZZY_MAX 2 devad 1
STR_LEN 0 bus->id (-1),60
STR_LEN 0 bus->name (-1),4-6,8-21,23-25,27-28,33,60
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 bus->id
UNITS 0 bus unit_byte
UNITS 1 addr unit_array_size

drivers/net/phy/phy_device.c get_phy_c45_ids() -> mdiobus_c45_read()

Type Parameter Key Value
PARAM_VALUE 0 bus 4096-ptr_max
PARAM_VALUE 0 bus->dev.dma_io_tlb_mem->can_grow 0-1
PARAM_VALUE 0 bus->dev.dma_io_tlb_mem->debugfs 0-s64max
PARAM_VALUE 0 bus->dev.dma_io_tlb_mem->for_alloc 0-1
PARAM_VALUE 0 bus->dev.dma_io_tlb_mem->force_bounce 0-1
PARAM_VALUE 0 bus->dev.dma_io_tlb_mem->nslabs 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 0 bus->mdio_lock.dep_map->name 0-255
PARAM_VALUE 0 bus->mdio_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 bus->mdio_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 bus->mdio_lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 bus->mdio_lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 bus->mdio_lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 bus->mdio_lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 bus->mdio_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 bus->read_c45 1-u64max
PARAM_VALUE 1 addr s32min-31
PARAM_VALUE 2 devad 1-31
PARAM_VALUE 3 regnum 2
BUF_SIZE 0 bus s32min-(-1),1-s32max
BUF_SIZE 0 bus s32min-(-1),1-s32max
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
STR_LEN 0 bus->id (-1),60
STR_LEN 0 bus->name (-1),4-6,8-21,23-25,27-28,33,60
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 bus->id
UNITS 0 bus unit_byte
UNITS 1 addr unit_array_size
UNITS 2 devad unit_array_size

drivers/net/phy/phy_device.c get_phy_c45_ids() -> mdiobus_c45_read()

Type Parameter Key Value
PARAM_VALUE 0 bus 4096-ptr_max
PARAM_VALUE 0 bus->dev.dma_io_tlb_mem->can_grow 0-1
PARAM_VALUE 0 bus->dev.dma_io_tlb_mem->debugfs 0-s64max
PARAM_VALUE 0 bus->dev.dma_io_tlb_mem->for_alloc 0-1
PARAM_VALUE 0 bus->dev.dma_io_tlb_mem->force_bounce 0-1
PARAM_VALUE 0 bus->dev.dma_io_tlb_mem->nslabs 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 0 bus->mdio_lock.dep_map->name 0-255
PARAM_VALUE 0 bus->mdio_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 bus->mdio_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 bus->mdio_lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 bus->mdio_lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 bus->mdio_lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 bus->mdio_lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 bus->mdio_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 bus->read_c45 1-u64max
PARAM_VALUE 1 addr s32min-31
PARAM_VALUE 2 devad 1-31
PARAM_VALUE 3 regnum 3
BUF_SIZE 0 bus s32min-(-1),1-s32max
BUF_SIZE 0 bus s32min-(-1),1-s32max
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
STR_LEN 0 bus->id (-1),60
STR_LEN 0 bus->name (-1),4-6,8-21,23-25,27-28,33,60
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 bus->id
UNITS 0 bus unit_byte
UNITS 1 addr unit_array_size
UNITS 2 devad unit_array_size

drivers/net/phy/phy_device.c phy_c45_probe_present() -> mdiobus_c45_read()

Type Parameter Key Value
PARAM_VALUE 0 bus 4096-ptr_max
PARAM_VALUE 0 bus->dev.dma_io_tlb_mem->can_grow 0-1
PARAM_VALUE 0 bus->dev.dma_io_tlb_mem->debugfs 0-s64max
PARAM_VALUE 0 bus->dev.dma_io_tlb_mem->for_alloc 0-1
PARAM_VALUE 0 bus->dev.dma_io_tlb_mem->force_bounce 0-1
PARAM_VALUE 0 bus->dev.dma_io_tlb_mem->nslabs 0-s64max
PARAM_VALUE 0 bus->dev.dma_io_tlb_mem->phys_limit 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
PARAM_VALUE 0 bus->mdio_lock.dep_map->name 0-255
PARAM_VALUE 0 bus->mdio_lock.first_waiter 0,4096-ptr_max
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.osq.tail.counter 0-s32max
PARAM_VALUE 0 bus->read_c45 1-u64max
PARAM_VALUE 1 addr s32min-31
PARAM_VALUE 2 devad 30-31
PARAM_VALUE 3 regnum 8
BUF_SIZE 0 bus s32min-(-1),1-s32max
BUF_SIZE 0 bus s32min-(-1),1-s32max
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 (-1),1,3-6,14,18,30,33,41
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 devad $2
STR_LEN 0 bus->id (-1),60
STR_LEN 0 bus->name (-1),4-6,8-21,23-25,27-28,33,60
BIT_INFO 2 devad 0x1e,0x1f
RX_PATH
TASK_NOT_RUNNING
NO_OVERFLOW_SIMPLE 0 bus->id
UNITS 0 bus unit_byte
UNITS 1 addr unit_array_size
UNITS 2 devad unit_array_size

drivers/net/phy/phylink.c phylink_mii_c45_pcs_get_state() -> mdiobus_c45_read()

Type Parameter Key Value
PARAM_VALUE 2 devad 3
PARAM_VALUE 3 regnum 1
RX_PATH
TASK_NOT_RUNNING
UNITS 0 bus unit_byte
UNITS 1 addr unit_array_size
HALF_LOCKED2 &pl->phydev_mutex
HALF_LOCKED2 &pl->state_mutex

drivers/net/phy/phylink.c phylink_phy_read() -> mdiobus_c45_read()

Type Parameter Key Value
PARAM_VALUE 1 addr 0-31
PARAM_VALUE 2 devad 0-30
DATA_SOURCE 1 addr r mdio_phy_id_prtad
DATA_SOURCE 2 devad r mdio_phy_id_devad
DATA_SOURCE 3 regnum $2
UNITS 0 bus unit_byte
HALF_LOCKED2 &priv->mac_lock

drivers/net/phy/phylink.c phylink_phy_read() -> mdiobus_c45_read()

Type Parameter Key Value
PARAM_VALUE 1 addr s32min-(-1),32768-s32max
PARAM_VALUE 3 regnum 0-3,16,19
DATA_SOURCE 1 addr $1
DATA_SOURCE 3 regnum $2 [m]
FUZZY_MAX 3 regnum 19
BIT_INFO 3 regnum 0x0,0x13
UNITS 0 bus unit_byte
UNITS 1 addr unit_array_size
HALF_LOCKED2 &priv->mac_lock

drivers/net/phy/phy.c phy_mii_ioctl() -> mdiobus_c45_read()

Type Parameter Key Value
PARAM_VALUE 1 addr 0-31
PARAM_VALUE 2 devad 0-30
DATA_SOURCE 1 addr r mdio_phy_id_prtad
DATA_SOURCE 2 devad r mdio_phy_id_devad
PREEMPT_ADD
UNITS 0 bus unit_byte
HALF_LOCKED2 &bp->lock
HALF_LOCKED2 irq

drivers/net/phy/phy.c phy_write_barrier() -> mdiobus_c45_read()

Type Parameter Key Value
PARAM_VALUE 0 bus 4096-ptr_max
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.osq.tail.counter 0-s32max
PARAM_VALUE 2 devad 1
PARAM_VALUE 3 regnum 2
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 bus unit_byte
UNITS 1 addr unit_array_size

drivers/net/pcs/pcs-lynx.c lynx_pcs_get_state_usxgmii() -> mdiobus_c45_read()

Type Parameter Key Value
PARAM_VALUE 2 devad 31
PARAM_VALUE 3 regnum 1
RX_PATH
TASK_NOT_RUNNING
UNITS 0 bus unit_byte
UNITS 1 addr unit_array_size
HALF_LOCKED2 &pl->phydev_mutex
HALF_LOCKED2 &pl->state_mutex

drivers/net/pcs/pcs-lynx.c lynx_pcs_get_state_usxgmii() -> mdiobus_c45_read()

Type Parameter Key Value
PARAM_VALUE 0 bus 4096-ptr_max
PARAM_VALUE 0 bus->mdio_lock.dep_map->name 0-255
PARAM_VALUE 0 bus->mdio_lock.first_waiter 0,4096-ptr_max
PARAM_VALUE 0 bus->mdio_lock.first_waiter->list.prev->next 5159360019465732096
PARAM_VALUE 0 bus->mdio_lock.first_waiter->task->blocked_lock.owner (-1)
PARAM_VALUE 0 bus->mdio_lock.first_waiter->task->blocked_lock.owner_cpu 4294967295
PARAM_VALUE 0 bus->mdio_lock.first_waiter->task->blocked_lock.raw_lock.val.counter s32min-s32max
PARAM_VALUE 0 bus->mdio_lock.first_waiter->task->usage.refs.counter s32min-s32max
PARAM_VALUE 0 bus->mdio_lock.osq.tail.counter 0-s32max
PARAM_VALUE 0 bus->read_c45 1-u64max
PARAM_VALUE 1 addr s32min-31
PARAM_VALUE 2 devad 31
PARAM_VALUE 3 regnum 5
RX_PATH
TASK_NOT_RUNNING
UNITS 0 bus unit_byte
UNITS 1 addr unit_array_size
HALF_LOCKED2 &pl->phydev_mutex
HALF_LOCKED2 &pl->state_mutex

drivers/net/dsa/mv88e6xxx/pcs-639x.c mdiodev_c45_read() -> mdiobus_c45_read()

Type Parameter Key Value
PARAM_VALUE 2 devad 4
PARAM_VALUE 3 regnum 4097,8192-8193,8197,36865,36867,40962-40963,61442,61602,61606
DATA_SOURCE 2 devad $1
DATA_SOURCE 3 regnum $2
HARD_MAX 3 regnum 61606
RX_PATH
TASK_NOT_RUNNING
UNITS 0 bus unit_byte
UNITS 1 addr unit_array_size