Searched refs:ethsw (Results 1 – 4 of 4) sorted by relevance
| /linux/drivers/net/ethernet/freescale/dpaa2/ |
| H A D | dpaa2-switch.c | 36 static struct dpaa2_switch_fdb *dpaa2_switch_fdb_get_unused(struct ethsw_core *ethsw) in dpaa2_switch_fdb_get_unused() argument 40 for (i = 0; i < ethsw->sw_attr.num_ifs; i++) in dpaa2_switch_fdb_get_unused() 41 if (!ethsw->fdbs[i].in_use) in dpaa2_switch_fdb_get_unused() 42 return ðsw->fdbs[i]; in dpaa2_switch_fdb_get_unused() 47 dpaa2_switch_filter_block_get_unused(struct ethsw_core *ethsw) in dpaa2_switch_filter_block_get_unused() argument 51 for (i = 0; i < ethsw->sw_attr.num_ifs; i++) in dpaa2_switch_filter_block_get_unused() 52 if (!ethsw->filter_blocks[i].in_use) in dpaa2_switch_filter_block_get_unused() 53 return ðsw->filter_blocks[i]; in dpaa2_switch_filter_block_get_unused() 58 dpaa2_switch_lag_get_unused(struct ethsw_core *ethsw) in dpaa2_switch_lag_get_unused() argument 62 for (i = 0; i < ethsw->sw_attr.num_ifs; i++) in dpaa2_switch_lag_get_unused() [all …]
|
| H A D | dpaa2-switch-flower.c | 121 struct ethsw_core *ethsw = filter_block->ethsw; in dpaa2_switch_acl_entry_add() local 123 struct device *dev = ethsw->dev; in dpaa2_switch_acl_entry_add() 142 err = dpsw_acl_add_entry(ethsw->mc_io, 0, ethsw->dpsw_handle, in dpaa2_switch_acl_entry_add() 165 struct ethsw_core *ethsw = block->ethsw; in dpaa2_switch_acl_entry_remove() local 166 struct device *dev = ethsw->dev; in dpaa2_switch_acl_entry_remove() 185 err = dpsw_acl_remove_entry(ethsw->mc_io, 0, ethsw->dpsw_handle, in dpaa2_switch_acl_entry_remove() 365 static int dpaa2_switch_tc_parse_action_acl(struct ethsw_core *ethsw, in dpaa2_switch_tc_parse_action_acl() argument 383 dpsw_act->if_id = dpaa2_switch_get_index(ethsw, cls_act->dev); in dpaa2_switch_tc_parse_action_acl() 406 struct ethsw_core *ethsw = block->ethsw; in dpaa2_switch_block_add_mirror() local 414 mirror_port_enabled = (ethsw->mirror_port != ethsw->sw_attr.num_ifs); in dpaa2_switch_block_add_mirror() [all …]
|
| H A D | dpaa2-switch.h | 98 struct ethsw_core *ethsw; member 120 struct ethsw_core *ethsw; member 147 struct ethsw_core *ethsw; member 221 static inline int dpaa2_switch_get_index(struct ethsw_core *ethsw, in dpaa2_switch_get_index() argument 226 for (i = 0; i < ethsw->sw_attr.num_ifs; i++) in dpaa2_switch_get_index() 227 if (ethsw->ports[i]->netdev == netdev) in dpaa2_switch_get_index() 228 return ethsw->ports[i]->idx; in dpaa2_switch_get_index() 233 static inline bool dpaa2_switch_supports_cpu_traffic(struct ethsw_core *ethsw) in dpaa2_switch_supports_cpu_traffic() argument 235 if (ethsw->sw_attr.options & DPSW_OPT_CTRL_IF_DIS) { in dpaa2_switch_supports_cpu_traffic() 236 dev_err(ethsw->dev, "Control Interface is disabled, cannot probe\n"); in dpaa2_switch_supports_cpu_traffic() [all …]
|
| /linux/Documentation/networking/device_drivers/ethernet/freescale/dpaa2/ |
| H A D | mac-phy-support.rst | 14 drivers (dpaa2-eth, dpaa2-ethsw) interact with the PHY library. 71 phylink) and its attached net_device driver (dpaa2-eth, dpaa2-ethsw),
|