Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
net/dsa/switch.c dsa_port_do_vlan_add() -> (struct dsa_switch_ops)->port_vlan_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ds | 4096-ptr_max |
| PARAM_VALUE | 0 | ds->ops | 4096-ptr_max |
| DATA_SOURCE | 2 | vlan | $1 |
| DATA_SOURCE | 3 | extack | $2 |
| CONTAINER | 0 | -504-72+0 | $(-1) |
net/dsa/switch.c dsa_port_do_vlan_add() -> (struct dsa_switch_ops)->port_vlan_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ds | 4096-ptr_max |
| PARAM_VALUE | 0 | ds->ops | 4096-ptr_max |
| PARAM_VALUE | 2 | vlan | 4096-ptr_max |
| PARAM_VALUE | 2 | vlan->changed | 0 |
| DATA_SOURCE | 2 | vlan | $1 |
| DATA_SOURCE | 3 | extack | $2 |
| CONTAINER | 0 | -504-72+0 | $(-1) |
| LOCK2 | &dp->vlans_lock | ||
| TYPE_LOCK | (struct dsa_port)->vlans_lock |
drivers/net/dsa/bcm_sf2_cfp.c bcm_sf2_cfp_rule_insert() -> (struct dsa_switch_ops)->port_vlan_add()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ds | 4096-ptr_max |
| PARAM_VALUE | 0 | ds->dst | 4096-ptr_max |
| PARAM_VALUE | 0 | ds->ops | 4096-ptr_max |
| PARAM_VALUE | 0 | ds->priv | 4096-ptr_max |
| PARAM_VALUE | 1 | port | 0-254 |
| PARAM_VALUE | 2 | vlan | 1357165207884455936 |
| PARAM_VALUE | 2 | vlan->flags | 0,4 |
| PARAM_VALUE | 2 | vlan->vid | 0-4095 |
| PARAM_VALUE | 3 | extack | 0 |
| CAPPED_DATA | 0 | ds | 1 |
| CAPPED_DATA | 1 | port | 1 |
| DATA_SOURCE | 0 | ds | $0 |
| CONTAINER | 0 | -504-72+0 | $(-1) |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | port | 1-254[c] |
| USER_DATA | 2 | vlan->vid | 0-4095[c] |
| HALF_LOCKED2 | &priv->cfp.lock |