/Linux-v6.1/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_lag.c | 9 u32 visited = GENMASK(lan966x->num_phys_ports - 1, 0); in lan966x_lag_set_aggr_pgids() 13 for (p = 0; p < lan966x->num_phys_ports; ++p) in lan966x_lag_set_aggr_pgids() 29 for (p = 0; p < lan966x->num_phys_ports; ++p) { in lan966x_lag_set_aggr_pgids() 39 for (lag = 0; lag < lan966x->num_phys_ports; ++lag) { in lan966x_lag_set_aggr_pgids() 50 for_each_set_bit(p, &bond_mask, lan966x->num_phys_ports) { in lan966x_lag_set_aggr_pgids() 76 for (p = lag; p < lan966x->num_phys_ports; p++) { in lan966x_lag_set_aggr_pgids() 95 for (p = 0; p < lan966x->num_phys_ports; ++p) { in lan966x_lag_set_port_ids() 189 for (p = 0; p < lan966x->num_phys_ports; ++p) { in lan966x_lag_port_check_hash_types() 353 for (p = 0; p < lan966x->num_phys_ports; p++) { in lan966x_lag_get_mask()
|
D | lan966x_main.c | 110 for (p = 0; p < lan966x->num_phys_ports; ++p) { in lan966x_port_unique_address() 612 WARN_ON(src_port >= lan966x->num_phys_ports); in lan966x_xtr_irq_handler() 689 for (p = 0; p < lan966x->num_phys_ports; p++) { in lan966x_cleanup_ports() 739 if (p >= lan966x->num_phys_ports) in lan966x_probe_port() 903 for (p = 0; p < lan966x->num_phys_ports; p++) { in lan966x_init() 936 lan_rmw(GENMASK(lan966x->num_phys_ports - 1, 0), in lan966x_init() 941 lan_rmw(GENMASK(lan966x->num_phys_ports - 1, 0), in lan966x_init() 945 lan_rmw(GENMASK(lan966x->num_phys_ports - 1, 0), in lan966x_init() 950 lan_rmw(GENMASK(lan966x->num_phys_ports - 1, 0), in lan966x_init() 955 lan_rmw(ANA_PGID_PGID_SET(BIT(CPU_PORT) | GENMASK(lan966x->num_phys_ports - 1, 0)), in lan966x_init() [all …]
|
D | lan966x_vlan.c | 300 GENMASK(lan966x->num_phys_ports - 1, 0) | BIT(CPU_PORT); in lan966x_vlan_init() 304 GENMASK(lan966x->num_phys_ports - 1, 0) | BIT(CPU_PORT); in lan966x_vlan_init() 316 lan_wr(GENMASK(lan966x->num_phys_ports, 0), in lan966x_vlan_init() 319 for (port = 0; port < lan966x->num_phys_ports; port++) { in lan966x_vlan_init()
|
D | lan966x_taprio.c | 282 max_list = lan966x->num_phys_ports * LAN966X_TAPRIO_ENTRIES_PER_PORT; in lan966x_taprio_gcl_free_get() 502 num_taprio_lists = lan966x->num_phys_ports * in lan966x_taprio_init() 512 for (p = 0; p < lan966x->num_phys_ports; p++) in lan966x_taprio_init() 522 for (p = 0; p < lan966x->num_phys_ports; ++p) { in lan966x_taprio_deinit()
|
D | lan966x_fdma.c | 330 for (i = 0; i < lan966x->num_phys_ports; ++i) { in lan966x_fdma_wakeup_netdev() 345 for (i = 0; i < lan966x->num_phys_ports; ++i) { in lan966x_fdma_stop_netdev() 431 if (WARN_ON(src_port >= lan966x->num_phys_ports)) in lan966x_fdma_rx_get_frame() 676 for (i = 0; i < lan966x->num_phys_ports; ++i) { in lan966x_fdma_get_max_mtu()
|
D | lan966x_mac.c | 450 if (WARN_ON(dest_idx >= lan966x->num_phys_ports)) in lan966x_mac_irq_process() 504 if (WARN_ON(dest_idx >= lan966x->num_phys_ports)) in lan966x_mac_irq_process()
|
D | lan966x_switchdev.c | 137 for (i = 0; i < lan966x->num_phys_ports; i++) { in lan966x_update_fwd_mask() 499 for (i = 0; i < lan966x->num_phys_ports; ++i) in lan966x_foreign_dev_check()
|
D | lan966x_port.c | 249 lan_wr(lan966x_wm_enc(atop_wm / lan966x->num_phys_ports + 1), lan966x, in lan966x_port_link_up()
|
D | lan966x_ptp.c | 840 for (i = 0; i < lan966x->num_phys_ports; i++) { in lan966x_ptp_init() 856 for (i = 0; i < lan966x->num_phys_ports; i++) { in lan966x_ptp_deinit()
|
D | lan966x_ethtool.c | 299 for (i = 0; i < lan966x->num_phys_ports; i++) { in lan966x_stats_update() 708 lan966x->stats = devm_kcalloc(lan966x->dev, lan966x->num_phys_ports * in lan966x_stats_init()
|
D | lan966x_main.h | 209 u8 num_phys_ports; member
|
/Linux-v6.1/drivers/net/ethernet/mscc/ |
D | ocelot_vsc7514.c | 338 for (port = 0; port < ocelot->num_phys_ports; port++) in mscc_ocelot_teardown_devlink_ports() 346 for (port = 0; port < ocelot->num_phys_ports; port++) { in mscc_ocelot_release_ports() 367 ocelot->ports = devm_kcalloc(ocelot->dev, ocelot->num_phys_ports, in mscc_ocelot_init_ports() 373 ocelot->num_phys_ports, in mscc_ocelot_init_ports() 391 if (port < 0 || port >= ocelot->num_phys_ports) { in mscc_ocelot_init_ports() 394 ocelot->num_phys_ports); in mscc_ocelot_init_ports() 432 for (port = 0; port < ocelot->num_phys_ports; port++) { in mscc_ocelot_init_ports() 450 for (port = 0; port < ocelot->num_phys_ports; port++) { in mscc_ocelot_init_ports() 565 ocelot->num_phys_ports = of_get_child_count(ports); in mscc_ocelot_probe()
|
D | ocelot.c | 83 if (mc_ports & BIT(ocelot->num_phys_ports)) in __ocelot_mact_learn() 230 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_single_vlan_aware_bridge() 391 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_bridge_num_find() 690 unsigned long all_ports = GENMASK(ocelot->num_phys_ports - 1, 0); in ocelot_vlan_init() 713 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_vlan_init() 1015 if (WARN_ON(src_port >= ocelot->num_phys_ports)) in ocelot_xtr_poll_frame() 1376 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_get_bond_mask() 1419 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_dsa_8021q_cpu_assigned_ports() 1467 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_get_bridge_fwd_mask() 1498 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_apply_bridge_fwd_mask() [all …]
|
D | ocelot_devlink.c | 309 for (port = 0; port <= ocelot->num_phys_ports; port++) { in ocelot_get_buf_rsrv() 333 for (port = 0; port <= ocelot->num_phys_ports; port++) { in ocelot_get_ref_rsrv() 483 for (port = 0; port <= ocelot->num_phys_ports; port++) in ocelot_watermark_init() 751 for (port = 0; port <= ocelot->num_phys_ports; port++) { in ocelot_sb_occ_max_clear() 765 for (port = 0; port <= ocelot->num_phys_ports; port++) { in ocelot_sb_occ_max_clear()
|
D | ocelot_mrp.c | 23 for (i = 0; i < ocelot->num_phys_ports; ++i) { in ocelot_mrp_find_partner_port() 222 for (i = 0; i < ocelot->num_phys_ports; ++i) { in ocelot_mrp_del_ring_role()
|
D | ocelot_stats.c | 66 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_check_stats_work() 427 ocelot->num_phys_ports * OCELOT_NUM_STATS, in ocelot_stats_init()
|
D | ocelot_fdma.c | 364 if (unlikely(src_port >= ocelot->num_phys_ports)) in ocelot_fdma_receive_skb() 468 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_fdma_wakeup_netdev()
|
D | ocelot_net.c | 705 val = GENMASK(ocelot->num_phys_ports - 1, 0); in ocelot_set_rx_mode() 1311 ocelot->num_phys_ports); in ocelot_bridge_num_get()
|
D | ocelot_vcap.c | 1161 ocelot->num_phys_ports) in ocelot_exclusive_mac_etype_filter_rules() 1175 ocelot->num_phys_ports) in ocelot_exclusive_mac_etype_filter_rules()
|
/Linux-v6.1/include/soc/mscc/ |
D | ocelot_vcap.h | 17 #define OCELOT_VCAP_IS2_MRP_REDIRECT(ocelot, port) ((ocelot)->num_phys_ports + (port)) 18 #define OCELOT_VCAP_IS2_MRP_TRAP(ocelot) ((ocelot)->num_phys_ports * 2) 19 #define OCELOT_VCAP_IS2_L2_PTP_TRAP(ocelot) ((ocelot)->num_phys_ports * 2 + 1) 20 #define OCELOT_VCAP_IS2_IPV4_GEN_PTP_TRAP(ocelot) ((ocelot)->num_phys_ports * 2 + 2) 21 #define OCELOT_VCAP_IS2_IPV4_EV_PTP_TRAP(ocelot) ((ocelot)->num_phys_ports * 2 + 3) 22 #define OCELOT_VCAP_IS2_IPV6_GEN_PTP_TRAP(ocelot) ((ocelot)->num_phys_ports * 2 + 4) 23 #define OCELOT_VCAP_IS2_IPV6_EV_PTP_TRAP(ocelot) ((ocelot)->num_phys_ports * 2 + 5)
|
D | ocelot.h | 73 (pgid) < (ocelot)->num_phys_ports; \ 77 for ((pgid) = (ocelot)->num_phys_ports + 1; \ 993 u8 num_phys_ports; member
|
/Linux-v6.1/drivers/net/dsa/ocelot/ |
D | felix.c | 392 int unused_port = ocelot->num_phys_ports + 2; in felix_npi_port_deinit() 441 return BIT(ocelot->num_phys_ports); in felix_tag_npi_get_host_fwd_mask() 866 port = ocelot->num_phys_ports; in felix_mdb_add() 886 port = ocelot->num_phys_ports; in felix_mdb_del() 915 port = ocelot->num_phys_ports; in felix_bridge_flags() 1359 static int felix_init_structs(struct felix *felix, int num_phys_ports) in felix_init_structs() argument 1366 ocelot->num_phys_ports = num_phys_ports; in felix_init_structs() 1367 ocelot->ports = devm_kcalloc(ocelot->dev, num_phys_ports, in felix_init_structs() 1385 port_phy_modes = kcalloc(num_phys_ports, sizeof(phy_interface_t), in felix_init_structs() 1416 for (port = 0; port < num_phys_ports; port++) { in felix_init_structs()
|
D | felix_vsc9959.c | 1045 for (port = 0; port < ocelot->num_phys_ports; port++) { in vsc9959_mdio_bus_free() 1517 for (port = 0; port < ocelot->num_phys_ports; port++) { in vsc9959_tas_clock_adjust() 2489 for (port = 0; port < ocelot->num_phys_ports; port++) { in vsc9959_cut_through_fwd() 2518 for_each_set_bit(other_port, &mask, ocelot->num_phys_ports) { in vsc9959_cut_through_fwd()
|
D | seville_vsc9953.c | 977 for (port = 0; port < ocelot->num_phys_ports; port++) { in vsc9953_mdio_bus_free()
|