Home
last modified time | relevance | path

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

/linux/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()
54 static bool dpaa2_switch_fdb_in_use_by_others(struct ethsw_core *ethsw, in dpaa2_switch_port_set_fdb()
60 for (i = 0; i < ethsw in dpaa2_switch_port_set_fdb()
124 dpaa2_switch_fdb_get_flood_cfg(struct ethsw_core * ethsw,u16 fdb_id,enum dpsw_flood_type type,struct dpsw_egress_flood_cfg * cfg) dpaa2_switch_fdb_get_flood_cfg() argument
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
839 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_fdb_iterate() local
977 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_port_set_mac_addr() local
1015 dpaa2_switch_free_fd(const struct ethsw_core * ethsw,const struct dpaa2_fd * fd) dpaa2_switch_free_fd() argument
1037 dpaa2_switch_build_single_fd(struct ethsw_core * ethsw,struct sk_buff * skb,struct dpaa2_fd * fd) dpaa2_switch_build_single_fd() argument
1086 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_port_tx() local
1194 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_port_acl_tbl_bind() local
1221 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_port_acl_tbl_unbind() local
1279 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_port_block_unbind() local
1312 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_setup_tc_block_bind() local
1362 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_setup_tc_block_unbind() local
1520 struct ethsw_core *ethsw = dev_get_drvdata(dev); dpaa2_switch_irq0_handler_thread() local
1570 struct ethsw_core *ethsw = dev_get_drvdata(dev); dpaa2_switch_setup_irqs() local
1629 struct ethsw_core *ethsw = dev_get_drvdata(dev); dpaa2_switch_teardown_irqs() local
1642 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_port_set_learning() local
1691 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_port_flood() local
1785 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_port_vlans_add() local
1893 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_port_del_vlan() local
2023 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_port_bridge_join() local
2091 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_port_bridge_leave() local
2330 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_port_event() local
2414 dpaa2_switch_build_linear_skb(struct ethsw_core * ethsw,const struct dpaa2_fd * fd) dpaa2_switch_build_linear_skb() argument
2452 struct ethsw_core *ethsw = fq->ethsw; dpaa2_switch_rx() local
2514 dpaa2_switch_detect_features(struct ethsw_core * ethsw) dpaa2_switch_detect_features() argument
2522 dpaa2_switch_setup_fqs(struct ethsw_core * ethsw) dpaa2_switch_setup_fqs() argument
2550 dpaa2_switch_free_bufs(struct ethsw_core * ethsw,u64 * buf_array,int count) dpaa2_switch_free_bufs() argument
2567 dpaa2_switch_add_bufs(struct ethsw_core * ethsw,u16 bpid) dpaa2_switch_add_bufs() argument
2629 dpaa2_switch_refill_bp(struct ethsw_core * ethsw) dpaa2_switch_refill_bp() argument
2654 dpaa2_switch_seed_bp(struct ethsw_core * ethsw) dpaa2_switch_seed_bp() argument
2670 dpaa2_switch_drain_bp(struct ethsw_core * ethsw) dpaa2_switch_drain_bp() argument
2688 dpaa2_switch_setup_dpbp(struct ethsw_core * ethsw) dpaa2_switch_setup_dpbp() argument
2758 dpaa2_switch_free_dpbp(struct ethsw_core * ethsw) dpaa2_switch_free_dpbp() argument
2765 dpaa2_switch_alloc_rings(struct ethsw_core * ethsw) dpaa2_switch_alloc_rings() argument
2784 dpaa2_switch_destroy_rings(struct ethsw_core * ethsw) dpaa2_switch_destroy_rings() argument
2813 struct ethsw_core *ethsw = fq->ethsw; dpaa2_switch_store_consume() local
2892 dpaa2_switch_setup_dpio(struct ethsw_core * ethsw) dpaa2_switch_setup_dpio() argument
2942 dpaa2_switch_free_dpio(struct ethsw_core * ethsw) dpaa2_switch_free_dpio() argument
2951 dpaa2_switch_ctrl_if_setup(struct ethsw_core * ethsw) dpaa2_switch_ctrl_if_setup() argument
2997 dpaa2_switch_remove_port(struct ethsw_core * ethsw,u16 port_idx) dpaa2_switch_remove_port() argument
3010 struct ethsw_core *ethsw = dev_get_drvdata(dev); dpaa2_switch_init() local
3182 struct ethsw_core *ethsw = port_priv->ethsw_data; dpaa2_switch_port_init() local
3257 dpaa2_switch_ctrl_if_teardown(struct ethsw_core * ethsw) dpaa2_switch_ctrl_if_teardown() argument
3269 struct ethsw_core *ethsw = dev_get_drvdata(dev); dpaa2_switch_teardown() local
3284 struct ethsw_core *ethsw; dpaa2_switch_remove() local
3314 dpaa2_switch_probe_port(struct ethsw_core * ethsw,u16 port_idx) dpaa2_switch_probe_port() argument
3392 struct ethsw_core *ethsw; dpaa2_switch_probe() local
[all...]
H A Ddpaa2-switch-flower.c121 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 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->sw_attr.flooding_cfg != DPSW_FLOODING_PER_FDB) { in dpaa2_switch_supports_cpu_traffic()
[all …]
/linux/Documentation/networking/device_drivers/ethernet/freescale/dpaa2/
H A Dmac-phy-support.rst14 drivers (dpaa2-eth, dpaa2-ethsw) interact with the PHY library.
71 phylink) and its attached net_device driver (dpaa2-eth, dpaa2-ethsw),