Defined in 1 files as a function:
Referenced in 4 files:
- drivers/net/dsa/microchip/ksz8.c, line 1767
- drivers/net/dsa/microchip/ksz9477.c
- drivers/net/dsa/microchip/ksz_common.c
- drivers/net/dsa/microchip/lan937x_main.c
Smatch caller information:
drivers/net/dsa/microchip/ksz9477.c ksz9477_config_cpu_port() -> ksz_pwrite16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 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->info | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->info->internal_phy | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->info->port_cnt | 1-s32max |
| PARAM_VALUE | 1 | port | 0-s32max |
| PARAM_VALUE | 2 | offset | 256 |
| PARAM_VALUE | 3 | data | 2048 |
| BUF_SIZE | 0 | dev | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | dev | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | dev->info->port_cnt | 1 |
| CAPPED_DATA | 1 | port | 1 |
| PARAM_COMPARE | 0 | dev->cpu_port | != $1 |
| PARAM_COMPARE | 0 | dev->info->port_cnt | > $1 |
| PARAM_COMPARE | 1 | port | != $0->cpu_port |
| PARAM_COMPARE | 1 | port | < $0->info->port_cnt |
| CONSTRAINT | 1 | port | <984 |
| 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_add() -> ksz_pwrite16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->vlan_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dev->vlan_mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->vlan_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | dev->vlan_mutex.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dev->vlan_mutex.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | dev->vlan_mutex.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | dev->vlan_mutex.first_waiter->task->blocked_lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 0 | dev->vlan_mutex.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | dev->vlan_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 2 | offset | 0 |
| 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] |
| USER_DATA | 3 | data | 0-4095[c] |
| UNITS | 0 | dev | unit_byte |
| UNITS | 3 | data | unit_array_size |
| HALF_LOCKED2 | &dp->vlans_lock |
drivers/net/dsa/microchip/ksz9477.c ksz9477_port_vlan_del() -> ksz_pwrite16()
| 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->vlan_mutex.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dev->vlan_mutex.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | dev->vlan_mutex.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | dev->vlan_mutex.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | dev->vlan_mutex.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | dev->vlan_mutex.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | dev->vlan_mutex.first_waiter->task->blocked_lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 0 | dev->vlan_mutex.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | dev->vlan_mutex.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 2 | offset | 0 |
| PARAM_VALUE | 3 | data | 0-4095 |
| BUF_SIZE | 0 | dev | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | dev | s32min-(-2),1-s32max |
| CAPPED_DATA | 3 | data | 1 |
| DATA_SOURCE | 1 | port | $1 |
| FUZZY_MAX | 3 | data | 1 |
| NOCHECK_CALL | |||
| UNITS | 0 | dev | unit_byte |
| UNITS | 3 | data | unit_array_size |
| HALF_LOCKED2 | &dp->vlans_lock |
drivers/net/dsa/microchip/ksz9477.c ksz9477_tc_cbs_set_cinc() -> ksz_pwrite16()
| 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->tc_cbs_set_cinc | 1282080737320615936,3197110574383955968 |
| PARAM_VALUE | 0 | dev->info | 4096-ptr_max |
| PARAM_VALUE | 0 | dev->info->tc_cbs_supported | 1 |
| PARAM_VALUE | 2 | offset | 2330 |
| PARAM_VALUE | 3 | data | 0-15 |
| 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 |
drivers/net/dsa/microchip/ksz9477.c ksz9477_w_phy() -> ksz_pwrite16()
| 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-286 |
| 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 | 3 | data | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 3 | data | 0-u16max |
| USER_DATA | 3 | data | 0-u16max |
| UNITS | 0 | dev | unit_byte |
| HALF_LOCKED2 | &bus->mdio_lock | ||
| HALF_LOCKED2 | &priv->bus->mdio_lock |
drivers/net/dsa/microchip/lan937x_main.c lan937x_change_mtu() -> ksz_pwrite16()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | dev | 4096-ptr_max |
| PARAM_VALUE | 2 | offset | 1028 |
| BUF_SIZE | 0 | dev | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | dev | s32min-(-2),1-s32max |
| DATA_SOURCE | 1 | port | $1 |
| DATA_SOURCE | 3 | data | $2 [m] |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 3 | data | 0-u16max[c] |
| UNITS | 0 | dev | unit_byte |
drivers/net/dsa/microchip/lan937x_main.c lan937x_set_tune_adj() -> ksz_pwrite16()
| 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 |
| 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/lan937x_main.c lan937x_set_tune_adj() -> ksz_pwrite16()
| 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 |
| 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 |
| BIT_INFO | 3 | data | 0x8000,0xffff |
| 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_pwrite16()
| 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 | 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->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 |
| 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] |
| USER_DATA | 3 | data | 0-u16max[c][u] |
| UNITS | 0 | dev | unit_byte |
| HALF_LOCKED2 | &dp->vlans_lock |
drivers/net/dsa/microchip/ksz_common.c ksz_setup_tc_cbs() -> ksz_pwrite16()
| 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->tc_cbs_supported | 1 |
| PARAM_VALUE | 2 | offset | 2326 |
| 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 | |||
| UNITS | 0 | dev | unit_byte |
drivers/net/dsa/microchip/ksz_common.c ksz_setup_tc_cbs() -> ksz_pwrite16()
| 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->tc_cbs_supported | 1 |
| PARAM_VALUE | 2 | offset | 2328 |
| 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 | |||
| UNITS | 0 | dev | unit_byte |