Home
last modified time | relevance | path

Searched refs:ethsw (Results 1 – 5 of 5) sorted by relevance

/Linux-v6.1/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-switch.c34 static struct dpaa2_switch_fdb *dpaa2_switch_fdb_get_unused(struct ethsw_core *ethsw) in dpaa2_switch_fdb_get_unused() argument
38 for (i = 0; i < ethsw->sw_attr.num_ifs; i++) in dpaa2_switch_fdb_get_unused()
39 if (!ethsw->fdbs[i].in_use) in dpaa2_switch_fdb_get_unused()
40 return &ethsw->fdbs[i]; in dpaa2_switch_fdb_get_unused()
45 dpaa2_switch_filter_block_get_unused(struct ethsw_core *ethsw) in dpaa2_switch_filter_block_get_unused() argument
49 for (i = 0; i < ethsw->sw_attr.num_ifs; i++) in dpaa2_switch_filter_block_get_unused()
50 if (!ethsw->filter_blocks[i].in_use) in dpaa2_switch_filter_block_get_unused()
51 return &ethsw->filter_blocks[i]; in dpaa2_switch_filter_block_get_unused()
125 static void dpaa2_switch_fdb_get_flood_cfg(struct ethsw_core *ethsw, u16 fdb_id, in dpaa2_switch_fdb_get_flood_cfg() argument
136 for (j = 0; j < ethsw->sw_attr.num_ifs; j++) { in dpaa2_switch_fdb_get_flood_cfg()
[all …]
Ddpaa2-switch-flower.c118 struct ethsw_core *ethsw = filter_block->ethsw; in dpaa2_switch_acl_entry_add() local
120 struct device *dev = ethsw->dev; in dpaa2_switch_acl_entry_add()
139 err = dpsw_acl_add_entry(ethsw->mc_io, 0, ethsw->dpsw_handle, in dpaa2_switch_acl_entry_add()
161 struct ethsw_core *ethsw = block->ethsw; in dpaa2_switch_acl_entry_remove() local
162 struct device *dev = ethsw->dev; in dpaa2_switch_acl_entry_remove()
181 err = dpsw_acl_remove_entry(ethsw->mc_io, 0, ethsw->dpsw_handle, in dpaa2_switch_acl_entry_remove()
361 static int dpaa2_switch_tc_parse_action_acl(struct ethsw_core *ethsw, in dpaa2_switch_tc_parse_action_acl() argument
379 dpsw_act->if_id = dpaa2_switch_get_index(ethsw, cls_act->dev); in dpaa2_switch_tc_parse_action_acl()
402 struct ethsw_core *ethsw = block->ethsw; in dpaa2_switch_block_add_mirror() local
410 mirror_port_enabled = (ethsw->mirror_port != ethsw->sw_attr.num_ifs); in dpaa2_switch_block_add_mirror()
[all …]
Ddpaa2-switch.h94 struct ethsw_core *ethsw; member
125 struct ethsw_core *ethsw; member
193 static inline int dpaa2_switch_get_index(struct ethsw_core *ethsw, in dpaa2_switch_get_index() argument
198 for (i = 0; i < ethsw->sw_attr.num_ifs; i++) in dpaa2_switch_get_index()
199 if (ethsw->ports[i]->netdev == netdev) in dpaa2_switch_get_index()
200 return ethsw->ports[i]->idx; in dpaa2_switch_get_index()
205 static inline bool dpaa2_switch_supports_cpu_traffic(struct ethsw_core *ethsw) in dpaa2_switch_supports_cpu_traffic() argument
207 if (ethsw->sw_attr.options & DPSW_OPT_CTRL_IF_DIS) { in dpaa2_switch_supports_cpu_traffic()
208 dev_err(ethsw->dev, "Control Interface is disabled, cannot probe\n"); in dpaa2_switch_supports_cpu_traffic()
212 if (ethsw->sw_attr.flooding_cfg != DPSW_FLOODING_PER_FDB) { in dpaa2_switch_supports_cpu_traffic()
[all …]
Ddpaa2-switch-ethtool.c97 struct ethsw_core *ethsw = port_priv->ethsw_data; in dpaa2_switch_set_link_ksettings() local
109 err = dpsw_if_disable(ethsw->mc_io, 0, in dpaa2_switch_set_link_ksettings()
110 ethsw->dpsw_handle, in dpaa2_switch_set_link_ksettings()
134 ret = dpsw_if_enable(ethsw->mc_io, 0, in dpaa2_switch_set_link_ksettings()
135 ethsw->dpsw_handle, in dpaa2_switch_set_link_ksettings()
/Linux-v6.1/Documentation/networking/device_drivers/ethernet/freescale/dpaa2/
Dmac-phy-support.rst14 drivers (dpaa2-eth, dpaa2-ethsw) interract with the PHY library.
71 phylink) and its attached net_device driver (dpaa2-eth, dpaa2-ethsw),