| /linux/drivers/net/ethernet/microchip/lan966x/ |
| H A 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()
|
| H A D | lan966x_main.c | 113 for (p = 0; p < lan966x->num_phys_ports; ++p) { in lan966x_port_unique_address() 674 WARN_ON(src_port >= lan966x->num_phys_ports); in lan966x_xtr_irq_handler() 750 for (p = 0; p < lan966x->num_phys_ports; p++) { in lan966x_cleanup_ports() 801 if (p >= lan966x->num_phys_ports) in lan966x_probe_port() 972 for (p = 0; p < lan966x->num_phys_ports; p++) { in lan966x_init() 1005 lan_rmw(GENMASK(lan966x->num_phys_ports - 1, 0), in lan966x_init() 1010 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(GENMASK(lan966x->num_phys_ports - 1, 0), in lan966x_init() 1024 lan_rmw(ANA_PGID_PGID_SET(BIT(CPU_PORT) | GENMASK(lan966x->num_phys_ports - 1, 0)), in lan966x_init() [all …]
|
| H A D | lan966x_vlan.c | 321 GENMASK(lan966x->num_phys_ports - 1, 0) | BIT(CPU_PORT); in lan966x_vlan_init() 325 GENMASK(lan966x->num_phys_ports - 1, 0) | BIT(CPU_PORT); in lan966x_vlan_init() 337 lan_wr(GENMASK(lan966x->num_phys_ports, 0), in lan966x_vlan_init() 340 for (port = 0; port < lan966x->num_phys_ports; port++) { in lan966x_vlan_init()
|
| H A 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()
|
| H A D | lan966x_fdma.c | 95 for (int i = 0; i < lan966x->num_phys_ports; ++i) { in lan966x_fdma_rx_alloc_page_pool() 304 for (i = 0; i < lan966x->num_phys_ports; ++i) { in lan966x_fdma_wakeup_netdev() 319 for (i = 0; i < lan966x->num_phys_ports; ++i) { in lan966x_fdma_stop_netdev() 410 if (WARN_ON(*src_port >= lan966x->num_phys_ports)) in lan966x_fdma_rx_check_frame() 788 for (i = 0; i < lan966x->num_phys_ports; ++i) { in lan966x_fdma_get_max_mtu()
|
| H A 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()
|
| H A D | lan966x_xdp.c | 113 for (int p = 0; p < lan966x->num_phys_ports; ++p) { in lan966x_xdp_present()
|
| H A 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()
|
| H A D | lan966x_switchdev.c | 137 for (i = 0; i < lan966x->num_phys_ports; i++) { in lan966x_update_fwd_mask() 500 for (i = 0; i < lan966x->num_phys_ports; ++i) in lan966x_foreign_dev_check()
|
| H A D | lan966x_ptp.c | 119 if (mask == GENMASK(lan966x->num_phys_ports, 0)) { in lan966x_ptp_del_trap() 1072 for (i = 0; i < lan966x->num_phys_ports; i++) { in lan966x_ptp_init() 1091 for (i = 0; i < lan966x->num_phys_ports; i++) { in lan966x_ptp_deinit()
|
| H A D | lan966x_dcb.c | 347 for (int p = 0; p < lan966x->num_phys_ports; ++p) { in lan966x_dcb_init()
|
| H A D | lan966x_ethtool.c | 299 for (i = 0; i < lan966x->num_phys_ports; i++) { in lan966x_stats_update() 697 lan966x->stats = devm_kcalloc(lan966x->dev, lan966x->num_phys_ports * in lan966x_stats_init()
|
| H A D | lan966x_main.h | 273 u8 num_phys_ports; member
|
| /linux/include/soc/mscc/ |
| H A D | ocelot_vcap.h | 16 #define OCELOT_VCAP_IS1_VLAN_RECLASSIFY(ocelot, port) ((ocelot)->num_phys_ports + (port)) 18 #define OCELOT_VCAP_IS2_MRP_REDIRECT(ocelot, port) ((ocelot)->num_phys_ports + (port)) 19 #define OCELOT_VCAP_IS2_MRP_TRAP(ocelot) ((ocelot)->num_phys_ports * 2) 20 #define OCELOT_VCAP_IS2_L2_PTP_TRAP(ocelot) ((ocelot)->num_phys_ports * 2 + 1) 21 #define OCELOT_VCAP_IS2_IPV4_GEN_PTP_TRAP(ocelot) ((ocelot)->num_phys_ports * 2 + 2) 22 #define OCELOT_VCAP_IS2_IPV4_EV_PTP_TRAP(ocelot) ((ocelot)->num_phys_ports * 2 + 3) 23 #define OCELOT_VCAP_IS2_IPV6_GEN_PTP_TRAP(ocelot) ((ocelot)->num_phys_ports * 2 + 4) 24 #define OCELOT_VCAP_IS2_IPV6_EV_PTP_TRAP(ocelot) ((ocelot)->num_phys_ports * 2 + 5)
|
| H A D | ocelot.h | 34 * ocelot->num_phys_ports - 1, or a multicast set: the PGIDs from 35 * ocelot->num_phys_ports to 63. By convention, a unicast PGID corresponds to 75 (pgid) < (ocelot)->num_phys_ports; \ 79 for ((pgid) = (ocelot)->num_phys_ports + 1; \ 844 * num_phys_ports index). 846 u8 num_phys_ports; member
|
| /linux/drivers/net/ethernet/mscc/ |
| H A 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() 899 unsigned long all_ports = GENMASK(ocelot->num_phys_ports - 1, 0); in ocelot_vlan_init() 922 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_vlan_init() 1336 if (WARN_ON(src_port >= ocelot->num_phys_ports)) in ocelot_xtr_poll_frame() 1441 ocelot_ifh_set_src(ifh, ocelot->num_phys_ports); in ocelot_ifh_set_basic() 1728 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_get_bond_mask() 1771 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_dsa_8021q_cpu_assigned_ports() 1819 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_get_bridge_fwd_mask() [all …]
|
| H A 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()
|
| H A 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()
|
| H A 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()
|
| H A D | ocelot_stats.c | 373 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_check_stats_work() 978 ocelot->num_phys_ports * OCELOT_NUM_STATS, in ocelot_stats_init() 984 for (int port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_stats_init()
|
| H A 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()
|
| H A D | ocelot_vcap.c | 1162 ocelot->num_phys_ports) in ocelot_exclusive_mac_etype_filter_rules() 1176 ocelot->num_phys_ports) in ocelot_exclusive_mac_etype_filter_rules()
|
| H A D | ocelot_net.c | 733 val = GENMASK(ocelot->num_phys_ports - 1, 0); in ocelot_set_rx_mode() 1359 ocelot->num_phys_ports); in ocelot_bridge_num_get()
|
| /linux/drivers/net/dsa/ocelot/ |
| H A D | felix.c | 467 int unused_port = ocelot->num_phys_ports + 2; in felix_npi_port_deinit() 516 return BIT(ocelot->num_phys_ports); in felix_tag_npi_get_host_fwd_mask() 955 port = ocelot->num_phys_ports; in felix_mdb_add() 975 port = ocelot->num_phys_ports; in felix_mdb_del() 1004 port = ocelot->num_phys_ports; in felix_bridge_flags() 1517 static int felix_init_structs(struct felix *felix, int num_phys_ports) in felix_init_structs() argument 1524 ocelot->num_phys_ports = num_phys_ports; in felix_init_structs() 1525 ocelot->ports = devm_kcalloc(ocelot->dev, num_phys_ports, in felix_init_structs() 1542 port_phy_modes = kzalloc_objs(phy_interface_t, num_phys_ports); in felix_init_structs() 1572 for (port = 0; port < num_phys_ports; port++) { in felix_init_structs()
|
| H A D | felix_vsc9959.c | 1050 for (port = 0; port < ocelot->num_phys_ports; port++) { in vsc9959_mdio_bus_free() 1552 for (port = 0; port < ocelot->num_phys_ports; port++) { in vsc9959_tas_clock_adjust() 2551 for (port = 0; port < ocelot->num_phys_ports; port++) { in vsc9959_cut_through_fwd() 2581 for_each_set_bit(other_port, &mask, ocelot->num_phys_ports) { in vsc9959_cut_through_fwd()
|