Lines Matching refs:sw_attr
37 for (i = 0; i < ethsw->sw_attr.num_ifs; i++) in dpaa2_switch_fdb_get_unused()
48 for (i = 0; i < ethsw->sw_attr.num_ifs; i++) in dpaa2_switch_filter_block_get_unused()
135 for (j = 0; j < ethsw->sw_attr.num_ifs; j++) { in dpaa2_switch_fdb_get_flood_cfg()
148 cfg->if_id[i++] = ethsw->sw_attr.num_ifs; in dpaa2_switch_fdb_get_flood_cfg()
394 for (i = 0; i < ethsw->sw_attr.num_ifs; i++) { in dpaa2_switch_dellink()
849 fdb_dump_size = ethsw->sw_attr.max_fdb_entries * sizeof(fdb_entry); in dpaa2_switch_fdb_iterate()
1771 struct dpsw_attr *attr = ðsw->sw_attr; in dpaa2_switch_port_vlans_add()
1784 ðsw->sw_attr); in dpaa2_switch_port_vlans_add()
1794 ðsw->sw_attr); in dpaa2_switch_port_vlans_add()
1923 for (i = 0; i < ethsw->sw_attr.num_ifs; i++) { in dpaa2_switch_port_del_vlan()
2448 if (if_id >= ethsw->sw_attr.num_ifs) { in dpaa2_switch_rx()
3011 ðsw->sw_attr); in dpaa2_switch_init()
3051 for (i = 0; i < ethsw->sw_attr.num_ifs; i++) { in dpaa2_switch_init()
3102 ethsw->sw_attr.id); in dpaa2_switch_init()
3173 fdb_cfg.num_fdb_entries = ethsw->sw_attr.max_fdb_entries / ethsw->sw_attr.num_ifs; in dpaa2_switch_port_init()
3267 for (i = 0; i < ethsw->sw_attr.num_ifs; i++) { in dpaa2_switch_remove()
3391 ethsw->ports = kcalloc(ethsw->sw_attr.num_ifs, sizeof(*ethsw->ports), in dpaa2_switch_probe()
3398 ethsw->fdbs = kcalloc(ethsw->sw_attr.num_ifs, sizeof(*ethsw->fdbs), in dpaa2_switch_probe()
3405 ethsw->filter_blocks = kcalloc(ethsw->sw_attr.num_ifs, in dpaa2_switch_probe()
3413 for (i = 0; i < ethsw->sw_attr.num_ifs; i++) { in dpaa2_switch_probe()
3435 ethsw->mirror_port = ethsw->sw_attr.num_ifs; in dpaa2_switch_probe()
3440 for (i = 0; i < ethsw->sw_attr.num_ifs; i++) { in dpaa2_switch_probe()