/linux-6.6.21/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() 52 for_each_set_bit(p, &bond_mask, lan966x->num_phys_ports) { in lan966x_lag_set_aggr_pgids() 81 for (p = lag; p < lan966x->num_phys_ports; p++) { in lan966x_lag_set_aggr_pgids() 100 for (p = 0; p < lan966x->num_phys_ports; ++p) { in lan966x_lag_set_port_ids() 194 for (p = 0; p < lan966x->num_phys_ports; ++p) { in lan966x_lag_port_check_hash_types() 358 for (p = 0; p < lan966x->num_phys_ports; p++) { in lan966x_lag_get_mask()
|
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_main.c | 113 for (p = 0; p < lan966x->num_phys_ports; ++p) { in lan966x_port_unique_address() 668 WARN_ON(src_port >= lan966x->num_phys_ports); in lan966x_xtr_irq_handler() 745 for (p = 0; p < lan966x->num_phys_ports; p++) { in lan966x_cleanup_ports() 796 if (p >= lan966x->num_phys_ports) in lan966x_probe_port() 967 for (p = 0; p < lan966x->num_phys_ports; p++) { in lan966x_init() 1000 lan_rmw(GENMASK(lan966x->num_phys_ports - 1, 0), in lan966x_init() 1005 lan_rmw(GENMASK(lan966x->num_phys_ports - 1, 0), in lan966x_init() 1009 lan_rmw(GENMASK(lan966x->num_phys_ports - 1, 0), in lan966x_init() 1014 lan_rmw(GENMASK(lan966x->num_phys_ports - 1, 0), in lan966x_init() 1019 lan_rmw(ANA_PGID_PGID_SET(BIT(CPU_PORT) | GENMASK(lan966x->num_phys_ports - 1, 0)), in lan966x_init() [all …]
|
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_vcap_impl.c | 677 for (int p = 0; p < lan966x->num_phys_ports; ++p) { in lan966x_vcap_port_key_deselection() 691 for (int p = 0; p < lan966x->num_phys_ports; ++p) in lan966x_vcap_port_key_deselection() 696 for (int p = 0; p < lan966x->num_phys_ports; ++p) in lan966x_vcap_port_key_deselection() 738 for (int p = 0; p < lan966x->num_phys_ports; ++p) { in lan966x_vcap_init()
|
D | lan966x_fdma.c | 89 for (int i = 0; i < lan966x->num_phys_ports; ++i) { in lan966x_fdma_rx_alloc_page_pool() 367 for (i = 0; i < lan966x->num_phys_ports; ++i) { in lan966x_fdma_wakeup_netdev() 382 for (i = 0; i < lan966x->num_phys_ports; ++i) { in lan966x_fdma_stop_netdev() 483 if (WARN_ON(*src_port >= lan966x->num_phys_ports)) in lan966x_fdma_rx_check_frame() 887 for (i = 0; i < lan966x->num_phys_ports; ++i) { in lan966x_fdma_get_max_mtu()
|
D | lan966x_xdp.c | 113 for (int p = 0; p < lan966x->num_phys_ports; ++p) { in lan966x_xdp_present()
|
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_ptp.c | 116 if (mask == GENMASK(lan966x->num_phys_ports, 0)) { in lan966x_ptp_del_trap() 1052 for (i = 0; i < lan966x->num_phys_ports; i++) { in lan966x_ptp_init() 1071 for (i = 0; i < lan966x->num_phys_ports; i++) { in lan966x_ptp_deinit()
|
D | lan966x_dcb.c | 347 for (int p = 0; p < lan966x->num_phys_ports; ++p) { in lan966x_dcb_init()
|
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_port.c | 250 lan_wr(lan966x_wm_enc(atop_wm / lan966x->num_phys_ports + 1), lan966x, in lan966x_port_link_up()
|
D | lan966x_main.h | 320 u8 num_phys_ports; member
|
/linux-6.6.21/drivers/net/ethernet/mscc/ |
D | ocelot_vsc7514.c | 120 for (port = 0; port < ocelot->num_phys_ports; port++) in mscc_ocelot_teardown_devlink_ports() 128 for (port = 0; port < ocelot->num_phys_ports; port++) { in mscc_ocelot_release_ports() 149 ocelot->ports = devm_kcalloc(ocelot->dev, ocelot->num_phys_ports, in mscc_ocelot_init_ports() 155 ocelot->num_phys_ports, in mscc_ocelot_init_ports() 170 if (port < 0 || port >= ocelot->num_phys_ports) { in mscc_ocelot_init_ports() 173 ocelot->num_phys_ports); in mscc_ocelot_init_ports() 205 for (port = 0; port < ocelot->num_phys_ports; port++) { in mscc_ocelot_init_ports() 223 for (port = 0; port < ocelot->num_phys_ports; port++) { in mscc_ocelot_init_ports() 338 ocelot->num_phys_ports = of_get_child_count(ports); in mscc_ocelot_probe()
|
D | ocelot.c | 90 if (mc_ports & BIT(ocelot->num_phys_ports)) in __ocelot_mact_learn() 267 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_single_vlan_aware_bridge() 428 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_bridge_num_find() 727 unsigned long all_ports = GENMASK(ocelot->num_phys_ports - 1, 0); in ocelot_vlan_init() 750 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_vlan_init() 1120 if (WARN_ON(src_port >= ocelot->num_phys_ports)) in ocelot_xtr_poll_frame() 1481 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_get_bond_mask() 1524 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_dsa_8021q_cpu_assigned_ports() 1572 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_get_bridge_fwd_mask() 1603 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_apply_bridge_fwd_mask() [all …]
|
D | ocelot_mm.c | 161 for (port = 0; port < ocelot->num_phys_ports; port++) in ocelot_mm_irq() 281 ocelot->mm = devm_kcalloc(ocelot->dev, ocelot->num_phys_ports, in ocelot_mm_init() 286 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_mm_init()
|
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() 782 for (port = 0; port <= ocelot->num_phys_ports; port++) { in ocelot_sb_occ_max_clear() 796 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_fdma.c | 363 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_stats.c | 373 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_check_stats_work() 958 ocelot->num_phys_ports * OCELOT_NUM_STATS, in ocelot_stats_init()
|
/linux-6.6.21/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 | 75 (pgid) < (ocelot)->num_phys_ports; \ 79 for ((pgid) = (ocelot)->num_phys_ports + 1; \ 836 u8 num_phys_ports; member
|
/linux-6.6.21/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() 1371 static int felix_init_structs(struct felix *felix, int num_phys_ports) in felix_init_structs() argument 1378 ocelot->num_phys_ports = num_phys_ports; in felix_init_structs() 1379 ocelot->ports = devm_kcalloc(ocelot->dev, num_phys_ports, in felix_init_structs() 1396 port_phy_modes = kcalloc(num_phys_ports, sizeof(phy_interface_t), in felix_init_structs() 1427 for (port = 0; port < num_phys_ports; port++) { in felix_init_structs()
|
D | felix_vsc9959.c | 1049 for (port = 0; port < ocelot->num_phys_ports; port++) { in vsc9959_mdio_bus_free() 1543 for (port = 0; port < ocelot->num_phys_ports; port++) { in vsc9959_tas_clock_adjust() 2536 for (port = 0; port < ocelot->num_phys_ports; port++) { in vsc9959_cut_through_fwd() 2566 for_each_set_bit(other_port, &mask, ocelot->num_phys_ports) { in vsc9959_cut_through_fwd()
|