Home
last modified time | relevance | path

Searched refs:ethsw (Results 1 - 7 of 7) sorted by relevance

/kernel/linux/linux-6.6/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-switch.c33 static struct dpaa2_switch_fdb *dpaa2_switch_fdb_get_unused(struct ethsw_core *ethsw) in dpaa2_switch_fdb_get_unused() argument
37 for (i = 0; i < ethsw->sw_attr.num_ifs; i++) in dpaa2_switch_fdb_get_unused()
38 if (!ethsw->fdbs[i].in_use) in dpaa2_switch_fdb_get_unused()
39 return &ethsw->fdbs[i]; in dpaa2_switch_fdb_get_unused()
44 dpaa2_switch_filter_block_get_unused(struct ethsw_core *ethsw) in dpaa2_switch_filter_block_get_unused() argument
48 for (i = 0; i < ethsw->sw_attr.num_ifs; i++) in dpaa2_switch_filter_block_get_unused()
49 if (!ethsw->filter_blocks[i].in_use) in dpaa2_switch_filter_block_get_unused()
50 return &ethsw->filter_blocks[i]; in dpaa2_switch_filter_block_get_unused()
124 static void dpaa2_switch_fdb_get_flood_cfg(struct ethsw_core *ethsw, u16 fdb_id, in dpaa2_switch_fdb_get_flood_cfg() argument
135 for (j = 0; j < ethsw in dpaa2_switch_fdb_get_flood_cfg()
155 dpaa2_switch_fdb_set_egress_flood(struct ethsw_core *ethsw, u16 fdb_id) dpaa2_switch_fdb_set_egress_flood() argument
193 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_add_vlan() local
230 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_port_set_pvid() local
286 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_port_add_vlan() local
379 dpaa2_switch_dellink(struct ethsw_core *ethsw, u16 vid) dpaa2_switch_dellink() argument
649 dpaa2_switch_enable_ctrl_if_napi(struct ethsw_core *ethsw) dpaa2_switch_enable_ctrl_if_napi() argument
667 dpaa2_switch_disable_ctrl_if_napi(struct ethsw_core *ethsw) dpaa2_switch_disable_ctrl_if_napi() argument
686 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_port_open() local
722 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_port_stop() local
838 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_fdb_iterate() local
976 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_port_set_mac_addr() local
1014 dpaa2_switch_free_fd(const struct ethsw_core *ethsw, const struct dpaa2_fd *fd) dpaa2_switch_free_fd() argument
1036 dpaa2_switch_build_single_fd(struct ethsw_core *ethsw, struct sk_buff *skb, struct dpaa2_fd *fd) dpaa2_switch_build_single_fd() argument
1085 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_port_tx() local
1193 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_port_acl_tbl_bind() local
1220 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_port_acl_tbl_unbind() local
1278 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_port_block_unbind() local
1311 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_setup_tc_block_bind() local
1361 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_setup_tc_block_unbind() local
1510 struct ethsw_core *ethsw = dev_get_drvdata(dev); dpaa2_switch_irq0_handler_thread() local
1555 struct ethsw_core *ethsw = dev_get_drvdata(dev); dpaa2_switch_setup_irqs() local
1615 struct ethsw_core *ethsw = dev_get_drvdata(dev); dpaa2_switch_teardown_irqs() local
1628 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_port_set_learning() local
1677 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_port_flood() local
1771 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_port_vlans_add() local
1877 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_port_del_vlan() local
2006 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_port_bridge_join() local
2084 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_port_bridge_leave() local
2280 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_port_event() local
2364 dpaa2_switch_build_linear_skb(struct ethsw_core *ethsw, const struct dpaa2_fd *fd) dpaa2_switch_build_linear_skb() argument
2402 struct ethsw_core *ethsw = fq->ethsw; dpaa2_switch_rx() local
2464 dpaa2_switch_detect_features(struct ethsw_core *ethsw) dpaa2_switch_detect_features() argument
2472 dpaa2_switch_setup_fqs(struct ethsw_core *ethsw) dpaa2_switch_setup_fqs() argument
2500 dpaa2_switch_free_bufs(struct ethsw_core *ethsw, u64 *buf_array, int count) dpaa2_switch_free_bufs() argument
2517 dpaa2_switch_add_bufs(struct ethsw_core *ethsw, u16 bpid) dpaa2_switch_add_bufs() argument
2579 dpaa2_switch_refill_bp(struct ethsw_core *ethsw) dpaa2_switch_refill_bp() argument
2604 dpaa2_switch_seed_bp(struct ethsw_core *ethsw) dpaa2_switch_seed_bp() argument
2619 dpaa2_switch_drain_bp(struct ethsw_core *ethsw) dpaa2_switch_drain_bp() argument
2637 dpaa2_switch_setup_dpbp(struct ethsw_core *ethsw) dpaa2_switch_setup_dpbp() argument
2707 dpaa2_switch_free_dpbp(struct ethsw_core *ethsw) dpaa2_switch_free_dpbp() argument
2714 dpaa2_switch_alloc_rings(struct ethsw_core *ethsw) dpaa2_switch_alloc_rings() argument
2733 dpaa2_switch_destroy_rings(struct ethsw_core *ethsw) dpaa2_switch_destroy_rings() argument
2762 struct ethsw_core *ethsw = fq->ethsw; dpaa2_switch_store_consume() local
2841 dpaa2_switch_setup_dpio(struct ethsw_core *ethsw) dpaa2_switch_setup_dpio() argument
2891 dpaa2_switch_free_dpio(struct ethsw_core *ethsw) dpaa2_switch_free_dpio() argument
2900 dpaa2_switch_ctrl_if_setup(struct ethsw_core *ethsw) dpaa2_switch_ctrl_if_setup() argument
2946 dpaa2_switch_remove_port(struct ethsw_core *ethsw, u16 port_idx) dpaa2_switch_remove_port() argument
2959 struct ethsw_core *ethsw = dev_get_drvdata(dev); dpaa2_switch_init() local
3118 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_port_init() local
3193 dpaa2_switch_ctrl_if_teardown(struct ethsw_core *ethsw) dpaa2_switch_ctrl_if_teardown() argument
3205 struct ethsw_core *ethsw = dev_get_drvdata(dev); dpaa2_switch_teardown() local
3220 struct ethsw_core *ethsw; dpaa2_switch_remove() local
3250 dpaa2_switch_probe_port(struct ethsw_core *ethsw, u16 port_idx) dpaa2_switch_probe_port() argument
3327 struct ethsw_core *ethsw; dpaa2_switch_probe() local
[all...]
H A 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()
162 struct ethsw_core *ethsw = block->ethsw; in dpaa2_switch_acl_entry_remove() local
163 struct device *dev = ethsw->dev; in dpaa2_switch_acl_entry_remove()
182 err = dpsw_acl_remove_entry(ethsw->mc_io, 0, ethsw in dpaa2_switch_acl_entry_remove()
362 dpaa2_switch_tc_parse_action_acl(struct ethsw_core *ethsw, struct flow_action_entry *cls_act, struct dpsw_acl_result *dpsw_act, struct netlink_ext_ack *extack) dpaa2_switch_tc_parse_action_acl() argument
403 struct ethsw_core *ethsw = block->ethsw; dpaa2_switch_block_add_mirror() local
468 struct ethsw_core *ethsw = block->ethsw; dpaa2_switch_block_remove_mirror() local
496 struct ethsw_core *ethsw = block->ethsw; dpaa2_switch_cls_flower_replace_acl() local
582 struct ethsw_core *ethsw = block->ethsw; dpaa2_switch_cls_flower_replace_mirror() local
695 struct ethsw_core *ethsw = block->ethsw; dpaa2_switch_cls_matchall_replace_acl() local
736 struct ethsw_core *ethsw = block->ethsw; dpaa2_switch_cls_matchall_replace_mirror() local
816 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_block_offload_mirror() local
842 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_block_unoffload_mirror() local
[all...]
H A Ddpaa2-switch.h94 struct ethsw_core *ethsw; member
125 struct ethsw_core *ethsw; member
195 static inline int dpaa2_switch_get_index(struct ethsw_core *ethsw, in dpaa2_switch_get_index() argument
200 for (i = 0; i < ethsw->sw_attr.num_ifs; i++) in dpaa2_switch_get_index()
201 if (ethsw->ports[i]->netdev == netdev) in dpaa2_switch_get_index()
202 return ethsw->ports[i]->idx; in dpaa2_switch_get_index()
207 static inline bool dpaa2_switch_supports_cpu_traffic(struct ethsw_core *ethsw) in dpaa2_switch_supports_cpu_traffic() argument
209 if (ethsw->sw_attr.options & DPSW_OPT_CTRL_IF_DIS) { in dpaa2_switch_supports_cpu_traffic()
210 dev_err(ethsw->dev, "Control Interface is disabled, cannot probe\n"); in dpaa2_switch_supports_cpu_traffic()
214 if (ethsw in dpaa2_switch_supports_cpu_traffic()
[all...]
H A Ddpaa2-switch-ethtool.c104 struct ethsw_core *ethsw = port_priv->ethsw_data; in dpaa2_switch_set_link_ksettings() local
123 err = dpsw_if_disable(ethsw->mc_io, 0, in dpaa2_switch_set_link_ksettings()
124 ethsw->dpsw_handle, in dpaa2_switch_set_link_ksettings()
148 ret = dpsw_if_enable(ethsw->mc_io, 0, in dpaa2_switch_set_link_ksettings()
149 ethsw->dpsw_handle, in dpaa2_switch_set_link_ksettings()
/kernel/linux/linux-5.10/drivers/staging/fsl-dpaa2/ethsw/
H A Dethsw.c19 #include "ethsw.h"
27 static int dpaa2_switch_add_vlan(struct ethsw_core *ethsw, u16 vid) in dpaa2_switch_add_vlan() argument
35 err = dpsw_vlan_add(ethsw->mc_io, 0, in dpaa2_switch_add_vlan()
36 ethsw->dpsw_handle, vid, &vcfg); in dpaa2_switch_add_vlan()
38 dev_err(ethsw->dev, "dpsw_vlan_add err %d\n", err); in dpaa2_switch_add_vlan()
41 ethsw->vlans[vid] = ETHSW_VLAN_MEMBER; in dpaa2_switch_add_vlan()
67 struct ethsw_core *ethsw = port_priv->ethsw_data; in dpaa2_switch_port_set_pvid() local
73 err = dpsw_if_get_tci(ethsw->mc_io, 0, ethsw->dpsw_handle, in dpaa2_switch_port_set_pvid()
85 err = dpsw_if_disable(ethsw in dpaa2_switch_port_set_pvid()
123 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_port_add_vlan() local
164 dpaa2_switch_set_learning(struct ethsw_core *ethsw, bool enable) dpaa2_switch_set_learning() argument
232 dpaa2_switch_dellink(struct ethsw_core *ethsw, u16 vid) dpaa2_switch_dellink() argument
654 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_port_fdb_dump() local
720 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_port_set_mac_addr() local
790 dpaa2_switch_links_state_update(struct ethsw_core *ethsw) dpaa2_switch_links_state_update() argument
803 struct ethsw_core *ethsw = dev_get_drvdata(dev); dpaa2_switch_irq0_handler_thread() local
831 struct ethsw_core *ethsw = dev_get_drvdata(dev); dpaa2_switch_setup_irqs() local
892 struct ethsw_core *ethsw = dev_get_drvdata(dev); dpaa2_switch_teardown_irqs() local
982 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_port_vlans_add() local
1092 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_port_del_vlan() local
1224 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_port_bridge_join() local
1354 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_port_event() local
1440 struct ethsw_core *ethsw = dev_get_drvdata(dev); dpaa2_switch_register_notifier() local
1473 dpaa2_switch_detect_features(struct ethsw_core *ethsw) dpaa2_switch_detect_features() argument
1484 struct ethsw_core *ethsw = dev_get_drvdata(dev); dpaa2_switch_init() local
1586 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_port_init() local
1618 struct ethsw_core *ethsw = dev_get_drvdata(dev); dpaa2_switch_unregister_notifier() local
1643 struct ethsw_core *ethsw = dev_get_drvdata(dev); dpaa2_switch_takedown() local
1656 struct ethsw_core *ethsw; dpaa2_switch_remove() local
1687 dpaa2_switch_probe_port(struct ethsw_core *ethsw, u16 port_idx) dpaa2_switch_probe_port() argument
1746 struct ethsw_core *ethsw; dpaa2_switch_probe() local
[all...]
H A DMakefile8 obj-$(CONFIG_FSL_DPAA2_ETHSW) += dpaa2-ethsw.o
10 dpaa2-ethsw-objs := ethsw.o ethsw-ethtool.o dpsw.o
H A Dethsw-ethtool.c10 #include "ethsw.h"
91 struct ethsw_core *ethsw = port_priv->ethsw_data; in dpaa2_switch_set_link_ksettings() local
99 err = dpsw_if_disable(ethsw->mc_io, 0, in dpaa2_switch_set_link_ksettings()
100 ethsw->dpsw_handle, in dpaa2_switch_set_link_ksettings()
124 ret = dpsw_if_enable(ethsw->mc_io, 0, in dpaa2_switch_set_link_ksettings()
125 ethsw->dpsw_handle, in dpaa2_switch_set_link_ksettings()

Completed in 7 milliseconds