Lines Matching refs:sw_index

55 	if (ds->index == info->sw_index && port == info->port)  in dsa_switch_mtu_match()
95 if (dst->index == info->tree_index && ds->index == info->sw_index) { in dsa_switch_bridge_join()
104 if ((dst->index != info->tree_index || ds->index != info->sw_index) && in dsa_switch_bridge_join()
107 info->sw_index, in dsa_switch_bridge_join()
125 if (dst->index == info->tree_index && ds->index == info->sw_index && in dsa_switch_bridge_leave()
129 if ((dst->index != info->tree_index || ds->index != info->sw_index) && in dsa_switch_bridge_leave()
132 info->sw_index, info->port, in dsa_switch_bridge_leave()
352 if (dsa_switch_host_address_match(ds, port, info->sw_index, in dsa_switch_host_fdb_add()
374 if (dsa_switch_host_address_match(ds, port, info->sw_index, in dsa_switch_host_fdb_del()
389 int port = dsa_towards_port(ds, info->sw_index, info->port); in dsa_switch_fdb_add()
400 int port = dsa_towards_port(ds, info->sw_index, info->port); in dsa_switch_fdb_del()
411 if (ds->index == info->sw_index && ds->ops->port_hsr_join) in dsa_switch_hsr_join()
420 if (ds->index == info->sw_index && ds->ops->port_hsr_leave) in dsa_switch_hsr_leave()
429 if (ds->index == info->sw_index && ds->ops->port_lag_change) in dsa_switch_lag_change()
432 if (ds->index != info->sw_index && ds->ops->crosschip_lag_change) in dsa_switch_lag_change()
433 return ds->ops->crosschip_lag_change(ds, info->sw_index, in dsa_switch_lag_change()
442 if (ds->index == info->sw_index && ds->ops->port_lag_join) in dsa_switch_lag_join()
446 if (ds->index != info->sw_index && ds->ops->crosschip_lag_join) in dsa_switch_lag_join()
447 return ds->ops->crosschip_lag_join(ds, info->sw_index, in dsa_switch_lag_join()
457 if (ds->index == info->sw_index && ds->ops->port_lag_leave) in dsa_switch_lag_leave()
460 if (ds->index != info->sw_index && ds->ops->crosschip_lag_leave) in dsa_switch_lag_leave()
461 return ds->ops->crosschip_lag_leave(ds, info->sw_index, in dsa_switch_lag_leave()
470 int port = dsa_towards_port(ds, info->sw_index, info->port); in dsa_switch_mdb_add()
481 int port = dsa_towards_port(ds, info->sw_index, info->port); in dsa_switch_mdb_del()
499 if (dsa_switch_host_address_match(ds, port, info->sw_index, in dsa_switch_host_mdb_add()
520 if (dsa_switch_host_address_match(ds, port, info->sw_index, in dsa_switch_host_mdb_del()
534 if (ds->index == info->sw_index && port == info->port) in dsa_switch_vlan_match()
569 if (ds->index == info->sw_index) in dsa_switch_vlan_del()
625 if (ds->index == info->sw_index) in dsa_switch_mrp_add()
637 if (ds->index == info->sw_index) in dsa_switch_mrp_del()
650 if (ds->index == info->sw_index) in dsa_switch_mrp_add_ring_role()
664 if (ds->index == info->sw_index) in dsa_switch_mrp_del_ring_role()