Defined in 1 files as a function:
Referenced in 3 files:
- drivers/net/dsa/microchip/ksz8.c
- drivers/net/dsa/microchip/ksz9477.c
- drivers/net/dsa/microchip/lan937x_main.c, line 576
Smatch caller information:
drivers/net/dsa/microchip/ksz9477.c ksz9477_half_duplex_monitor() -> ksz_pread16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev_ops | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev_ops->get_port_addr | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev_ops->r_mib_stat64 | 1545733033080504320,2662029073194520576,8403825333520605184 |
| PARAM_VALUE | 0 | dev->ds | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->ds->dst | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->info | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->info->mib_cnt | s32min-255 |
| PARAM_VALUE | 0 | dev->info->phy_errata_9477 | 1 |
| PARAM_VALUE | 0 | dev->info->port_cnt | 1-s32max |
| PARAM_VALUE | 0 | dev->ports | 4096-ptr_max |
| PARAM_VALUE | 1 | port | 0-s32max |
| PARAM_VALUE | 2 | offset | 2576 |
| PARAM_VALUE | 3 | data | 1635462885714132992 |
| CAPPED_DATA | 0 | dev->ds | 1 |
| CAPPED_DATA | 0 | dev->info->mib_cnt | 1 |
| CAPPED_DATA | 0 | dev->info->reg_mib_cnt | 1 |
| CAPPED_DATA | 1 | port | 1 |
| DATA_SOURCE | 0 | dev | $0 |
| DATA_SOURCE | 1 | port | $1 |
| CONSTRAINT | 1 | port | <984 |
| LOCK2 | &mib->cnt_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct ksz_port_mib)->cnt_mutex |
drivers/net/dsa/microchip/ksz9477.c ksz9477_port_setup() -> ksz_pread16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev_ops | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev_ops->get_port_addr | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev_ops->pme_pread8 | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->ds | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->ds->dst | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->info | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->info->internal_phy | 4096-ptr_max |
| PARAM_VALUE | 2 | offset | 310 |
| PARAM_VALUE | 3 | data | 2071856510702047232 |
| BUF_SIZE | 0 | dev | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | dev | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | dev | $0 |
| DATA_SOURCE | 1 | port | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | dev | unit_byte |
| HALF_LOCKED2 | global &dsa2_mutex |
drivers/net/dsa/microchip/ksz9477.c ksz9477_port_vlan_del() -> ksz_pread16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | offset | 0 |
| PARAM_VALUE | 3 | data | 7192348428988997632 |
| BUF_SIZE | 0 | dev | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | dev | s32min-(-2),1-s32max |
| DATA_SOURCE | 1 | port | $1 |
| NOCHECK_CALL | |||
| UNITS | 0 | dev | unit_byte |
| HALF_LOCKED2 | &dp->vlans_lock |
drivers/net/dsa/microchip/ksz9477.c ksz9477_r_phy() -> ksz_pread16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->info | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->info->internal_phy | 4096-ptr_max |
| PARAM_VALUE | 2 | offset | 256,258-131326 |
| PARAM_VALUE | 3 | data | 1555539786120507392 |
| PARAM_VALUE | 3 | *data | u16max |
| BUF_SIZE | 0 | dev | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | dev | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | dev | $0 |
| DATA_SOURCE | 1 | port | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | port | 2-31[c] |
| USER_DATA | 2 | offset | 260-131326[c] |
| UNITS | 0 | dev | unit_byte |
| HALF_LOCKED2 | &bus->mdio_lock | ||
| HALF_LOCKED2 | &priv->bus->mdio_lock |
drivers/net/dsa/microchip/ksz9477.c port_sgmii_r() -> ksz_pread16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev_ops | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev_ops->get_port_addr | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->info | 4096-ptr_max |
| PARAM_VALUE | 2 | offset | 518 |
| PARAM_VALUE | 3 | data | 3126060817195393024,5455247926277791744,8650156204267479040 |
| BUF_SIZE | 0 | dev | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | dev | s32min-(-1),1-s32max |
| DATA_SOURCE | 0 | dev | $0 |
| DATA_SOURCE | 1 | port | $1 |
| DATA_SOURCE | 3 | data | $4 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | dev | unit_byte |
| HALF_LOCKED2 | &bus->mdio_lock | ||
| TYPE_LOCK | (struct mii_bus)->mdio_lock |
drivers/net/dsa/microchip/lan937x_main.c lan937x_set_tune_adj() -> ksz_pread16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev_ops | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->dev_ops->get_port_addr | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->info | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->info->regs | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->ports | 4096-ptr_max |
| PARAM_VALUE | 2 | offset | 772,774 |
| PARAM_VALUE | 3 | data | 311677146927468544 |
| BUF_SIZE | 0 | dev | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | dev | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | dev | $0 |
| DATA_SOURCE | 1 | port | $1 |
| DATA_SOURCE | 2 | offset | $2 |
| HARD_MAX | 2 | offset | 774 |
| RX_PATH | |||
| NOCHECK_CALL | |||
| UNITS | 0 | dev | unit_byte |
drivers/net/dsa/microchip/ksz8.c ksz8_port_vlan_add() -> ksz_pread16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->alu_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dev->alu_mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->alu_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | dev->alu_mutex.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | dev->alu_mutex.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dev->alu_mutex.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | dev->alu_mutex.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | dev->alu_mutex.first_waiter->task->blocked_lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 0 | dev->alu_mutex.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | dev->alu_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | dev->chip_id | 0-34863,34865-u32max |
| PARAM_VALUE | 0 | dev->dev_ops->get_port_addr | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->info | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->info->masks | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->info->regs | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->info->shifts | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->ports | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->vlan_cache | 4096-ptr_max |
| PARAM_VALUE | 2 | offset | 3 |
| PARAM_VALUE | 3 | data | 359961812182388736 |
| BUF_SIZE | 0 | dev | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | dev | s32min-(-2),1-s32max |
| DATA_SOURCE | 1 | port | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 1 | port | 1-254[c] |
| UNITS | 0 | dev | unit_byte |
| HALF_LOCKED2 | &dp->vlans_lock |
drivers/net/dsa/microchip/ksz8.c ksz8_port_vlan_del() -> ksz_pread16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->chip_id | 0-34863,34865-u32max |
| PARAM_VALUE | 2 | offset | 3 |
| PARAM_VALUE | 3 | data | 4120510017079128064 |
| BUF_SIZE | 0 | dev | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | dev | s32min-(-2),1-s32max |
| DATA_SOURCE | 1 | port | $1 |
| NOCHECK_CALL | |||
| UNITS | 0 | dev | unit_byte |
| HALF_LOCKED2 | &dp->vlans_lock |