Searched refs:ethsw (Results 1 – 4 of 4) sorted by relevance
| /drivers/net/ethernet/freescale/dpaa2/ |
| A D | dpaa2-switch.c | 2447 struct ethsw_core *ethsw = fq->ethsw; in dpaa2_switch_rx() local 2513 if (ethsw->major > 8 || (ethsw->major == 8 && ethsw->minor >= 6)) in dpaa2_switch_detect_features() 2532 ethsw->fq[i].ethsw = ethsw; in dpaa2_switch_setup_fqs() 2536 ethsw->fq[i].ethsw = ethsw; in dpaa2_switch_setup_fqs() 2808 struct ethsw_core *ethsw = fq->ethsw; in dpaa2_switch_store_consume() local 3014 err = dpsw_open(ethsw->mc_io, 0, ethsw->dev_id, ðsw->dpsw_handle); in dpaa2_switch_init() 3040 ethsw->major, ethsw->minor); in dpaa2_switch_init() 3221 filter_block->ethsw = ethsw; in dpaa2_switch_port_init() 3378 ethsw = kzalloc(sizeof(*ethsw), GFP_KERNEL); in dpaa2_switch_probe() 3401 ethsw->ports = kcalloc(ethsw->sw_attr.num_ifs, sizeof(*ethsw->ports), in dpaa2_switch_probe() [all …]
|
| A D | dpaa2-switch-flower.c | 121 struct ethsw_core *ethsw = filter_block->ethsw; in dpaa2_switch_acl_entry_add() local 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 406 struct ethsw_core *ethsw = block->ethsw; in dpaa2_switch_block_add_mirror() local 460 ethsw->mirror_port = ethsw->sw_attr.num_ifs; in dpaa2_switch_block_add_mirror() 471 struct ethsw_core *ethsw = block->ethsw; in dpaa2_switch_block_remove_mirror() local 487 ethsw->mirror_port = ethsw->sw_attr.num_ifs; in dpaa2_switch_block_remove_mirror() 499 struct ethsw_core *ethsw = block->ethsw; in dpaa2_switch_cls_flower_replace_acl() local 588 struct ethsw_core *ethsw = block->ethsw; in dpaa2_switch_cls_flower_replace_mirror() local 701 struct ethsw_core *ethsw = block->ethsw; in dpaa2_switch_cls_matchall_replace_acl() local [all …]
|
| A D | dpaa2-switch.h | 94 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() 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() 219 if (ethsw->sw_attr.broadcast_cfg != DPSW_BROADCAST_PER_FDB) { in dpaa2_switch_supports_cpu_traffic() [all …]
|
| A D | dpaa2-switch-ethtool.c | 104 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()
|
Completed in 22 milliseconds