Home
last modified time | relevance | path

Searched refs:num_phys_ports (Results 1 - 25 of 36) sorted by relevance

12

/kernel/linux/linux-6.6/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_vlan.c300 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()
H A Dlan966x_main.c113 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 in lan966x_init()
[all...]
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_xdp.c113 for (int p = 0; p < lan966x->num_phys_ports; ++p) { in lan966x_xdp_present()
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_fdma.c89 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()
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()
499 for (i = 0; i < lan966x->num_phys_ports; ++i) in lan966x_foreign_dev_check()
H A Dlan966x_ptp.c116 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()
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()
708 lan966x->stats = devm_kcalloc(lan966x->dev, lan966x->num_phys_ports * in lan966x_stats_init()
/kernel/linux/linux-5.10/drivers/net/ethernet/mscc/
H A Docelot.c77 if (mc_ports & BIT(ocelot->num_phys_ports)) in ocelot_mact_learn()
336 ocelot->vlan_mask[0] = GENMASK(ocelot->num_phys_ports - 1, 0); in ocelot_vlan_init()
342 ocelot_write(ocelot, GENMASK(ocelot->num_phys_ports - 1, 0), in ocelot_vlan_init()
345 for (port = 0; port < ocelot->num_phys_ports; port++) { in ocelot_vlan_init()
857 for (i = 0; i < ocelot->num_phys_ports; i++) { in ocelot_update_stats()
970 for (p = 0; p < ocelot->num_phys_ports; p++) { in ocelot_bridge_stp_state_set()
974 for (i = 0; i < ocelot->num_phys_ports; i++) { in ocelot_bridge_stp_state_set()
1092 port = ocelot->num_phys_ports; in ocelot_port_mdb_add()
1144 port = ocelot->num_phys_ports; in ocelot_port_mdb_del()
1224 ocelot_write_rix(ocelot, GENMASK(ocelot->num_phys_ports in ocelot_set_aggr_pgids()
[all...]
H A Docelot_vsc7514.c1043 for (port = 0; port < ocelot->num_phys_ports; port++) { in mscc_ocelot_release_ports()
1068 ocelot->ports = devm_kcalloc(ocelot->dev, ocelot->num_phys_ports, in mscc_ocelot_init_ports()
1256 ocelot->num_phys_ports = of_get_child_count(ports); in mscc_ocelot_probe()
/kernel/linux/linux-6.6/drivers/net/ethernet/mscc/
H A Docelot_vsc7514.c120 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()
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()
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; por in ocelot_apply_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_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()
/kernel/linux/linux-6.6/include/soc/mscc/
H A Docelot_vcap.h17 #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)
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; \
834 * num_phys_ports index).
836 u8 num_phys_ports; member
/kernel/linux/linux-5.10/drivers/net/dsa/ocelot/
H A Dfelix.c434 static int felix_init_structs(struct felix *felix, int num_phys_ports) in felix_init_structs() argument
441 ocelot->num_phys_ports = num_phys_ports; in felix_init_structs()
442 ocelot->ports = devm_kcalloc(ocelot->dev, num_phys_ports, in felix_init_structs()
457 port_phy_modes = kcalloc(num_phys_ports, sizeof(phy_interface_t), in felix_init_structs()
497 for (port = 0; port < num_phys_ports; port++) { in felix_init_structs()
619 * excludes BIT(ocelot->num_phys_ports), and so does ocelot_init, since in felix_setup()
623 ANA_PGID_PGID_PGID(GENMASK(ocelot->num_phys_ports, 0)), in felix_setup()
641 for (port = 0; port < ocelot->num_phys_ports; port++) { in felix_teardown()
/kernel/linux/linux-6.6/drivers/net/dsa/ocelot/
H A Dfelix.c392 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, sizeo in felix_init_structs()
[all...]
/kernel/linux/linux-5.10/include/soc/mscc/
H A Docelot.h32 * ocelot->num_phys_ports - 1, or a multicast set: the PGIDs from
33 * ocelot->num_phys_ports to 63. By convention, a unicast PGID corresponds to
70 (pgid) < (ocelot)->num_phys_ports; \
74 for ((pgid) = (ocelot)->num_phys_ports + 1; \
626 * num_phys_ports index).
628 u8 num_phys_ports; member

Completed in 32 milliseconds

12