Home
last modified time | relevance | path

Searched refs:num_phys_ports (Results 1 – 25 of 26) sorted by relevance

12

/linux/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_lag.c9 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 Dlan966x_main.c113 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 Dlan966x_vlan.c321 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 Dlan966x_taprio.c282 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 Dlan966x_fdma.c95 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 Dlan966x_vcap_impl.c677 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 Dlan966x_xdp.c113 for (int p = 0; p < lan966x->num_phys_ports; ++p) { in lan966x_xdp_present()
H A Dlan966x_mac.c450 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 Dlan966x_switchdev.c137 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 Dlan966x_ptp.c119 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 Dlan966x_dcb.c347 for (int p = 0; p < lan966x->num_phys_ports; ++p) { in lan966x_dcb_init()
H A Dlan966x_ethtool.c299 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 Dlan966x_main.h273 u8 num_phys_ports; member
/linux/include/soc/mscc/
H A Docelot_vcap.h16 #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 Docelot.h34 * 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 Docelot.c90 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 Docelot_mm.c161 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 Docelot_devlink.c309 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 Docelot_mrp.c23 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 Docelot_stats.c373 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 Docelot_fdma.c363 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 Docelot_vcap.c1162 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 Docelot_net.c733 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 Dfelix.c467 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 Dfelix_vsc9959.c1050 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()

12