Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
net/dsa/switch.c dsa_switch_is_upstream_of() -> dsa_is_upstream_port()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ds | 4096-ptr_max |
| PARAM_VALUE | 0 | ds->dst | 4096-ptr_max |
| CAPPED_DATA | 0 | ds | 1 |
| DATA_SOURCE | 0 | ds | $1 |
| UNITS | 0 | ds | unit_byte |
drivers/net/dsa/sja1105/sja1105_main.c sja1105_init_topology() -> dsa_is_upstream_port()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ds | 4096-ptr_max |
| PARAM_VALUE | 0 | ds->num_ports | 1-s32max |
| PARAM_VALUE | 1 | port | 0-2147483646 |
| CAPPED_DATA | 0 | ds | 1 |
| CAPPED_DATA | 0 | ds->num_ports | 1 |
| CAPPED_DATA | 1 | port | 1 |
| PARAM_COMPARE | 0 | ds->num_ports | > $1 |
| PARAM_COMPARE | 1 | port | < $0->num_ports |
| CONSTRAINT | 1 | port | <987 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &dsa2_mutex |
drivers/net/dsa/mv88e6xxx/chip.c dsa_is_downstream_port() -> dsa_is_upstream_port()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ds | 4096-ptr_max |
| PARAM_VALUE | 0 | ds->dst | 4096-ptr_max |
| PARAM_VALUE | 1 | port | 0-2147483646 |
| CAPPED_DATA | 0 | ds | 1 |
| CAPPED_DATA | 1 | port | 1 |
| DATA_SOURCE | 0 | ds | $0 |
| DATA_SOURCE | 1 | port | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 1 | port | unit_byte |
| LOCK2 | &chip->reg_lock | ||
| HALF_LOCKED2 | global &dsa2_mutex | ||
| TYPE_LOCK | (struct mv88e6xxx_chip)->reg_lock |