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

12

/linux-master/drivers/net/ethernet/mscc/
H A Docelot_vsc7514.c120 for (port = 0; port < ocelot->num_phys_ports; port++)
128 for (port = 0; port < ocelot->num_phys_ports; port++) {
149 ocelot->ports = devm_kcalloc(ocelot->dev, ocelot->num_phys_ports,
155 ocelot->num_phys_ports,
170 if (port < 0 || port >= ocelot->num_phys_ports) {
173 ocelot->num_phys_ports);
205 for (port = 0; port < ocelot->num_phys_ports; port++) {
223 for (port = 0; port < ocelot->num_phys_ports; port++) {
338 ocelot->num_phys_ports = of_get_child_count(ports);
H A Docelot_mm.c161 for (port = 0; port < ocelot->num_phys_ports; port++)
281 ocelot->mm = devm_kcalloc(ocelot->dev, ocelot->num_phys_ports,
286 for (port = 0; port < ocelot->num_phys_ports; port++) {
H A Docelot.c90 if (mc_ports & BIT(ocelot->num_phys_ports))
267 for (port = 0; port < ocelot->num_phys_ports; port++) {
428 for (port = 0; port < ocelot->num_phys_ports; port++) {
727 unsigned long all_ports = GENMASK(ocelot->num_phys_ports - 1, 0);
750 for (port = 0; port < ocelot->num_phys_ports; port++) {
1120 if (WARN_ON(src_port >= ocelot->num_phys_ports))
1481 for (port = 0; port < ocelot->num_phys_ports; port++) {
1524 for (port = 0; port < ocelot->num_phys_ports; port++) {
1572 for (port = 0; port < ocelot->num_phys_ports; port++) {
1603 for (port = 0; port < ocelot->num_phys_ports; por
[all...]
H A Docelot_mrp.c23 for (i = 0; i < ocelot->num_phys_ports; ++i) {
222 for (i = 0; i < ocelot->num_phys_ports; ++i) {
H A Docelot_devlink.c309 for (port = 0; port <= ocelot->num_phys_ports; port++) {
333 for (port = 0; port <= ocelot->num_phys_ports; port++) {
483 for (port = 0; port <= ocelot->num_phys_ports; port++)
782 for (port = 0; port <= ocelot->num_phys_ports; port++) {
796 for (port = 0; port <= ocelot->num_phys_ports; port++) {
H A Docelot_fdma.c363 if (unlikely(src_port >= ocelot->num_phys_ports))
468 for (port = 0; port < ocelot->num_phys_ports; port++) {
H A Docelot_stats.c373 for (port = 0; port < ocelot->num_phys_ports; port++) {
958 ocelot->num_phys_ports * OCELOT_NUM_STATS,
/linux-master/drivers/net/ethernet/microchip/lan966x/
H A Dlan966x_lag.c9 u32 visited = GENMASK(lan966x->num_phys_ports - 1, 0);
13 for (p = 0; p < lan966x->num_phys_ports; ++p)
29 for (p = 0; p < lan966x->num_phys_ports; ++p) {
39 for (lag = 0; lag < lan966x->num_phys_ports; ++lag) {
52 for_each_set_bit(p, &bond_mask, lan966x->num_phys_ports) {
81 for (p = lag; p < lan966x->num_phys_ports; p++) {
100 for (p = 0; p < lan966x->num_phys_ports; ++p) {
194 for (p = 0; p < lan966x->num_phys_ports; ++p) {
358 for (p = 0; p < lan966x->num_phys_ports; p++) {
H A Dlan966x_vlan.c300 GENMASK(lan966x->num_phys_ports - 1, 0) | BIT(CPU_PORT);
304 GENMASK(lan966x->num_phys_ports - 1, 0) | BIT(CPU_PORT);
316 lan_wr(GENMASK(lan966x->num_phys_ports, 0),
319 for (port = 0; port < lan966x->num_phys_ports; port++) {
H A Dlan966x_main.c113 for (p = 0; p < lan966x->num_phys_ports; ++p) {
668 WARN_ON(src_port >= lan966x->num_phys_ports);
744 for (p = 0; p < lan966x->num_phys_ports; p++) {
795 if (p >= lan966x->num_phys_ports)
966 for (p = 0; p < lan966x->num_phys_ports; p++) {
999 lan_rmw(GENMASK(lan966x->num_phys_ports - 1, 0),
1004 lan_rmw(GENMASK(lan966x->num_phys_ports - 1, 0),
1008 lan_rmw(GENMASK(lan966x->num_phys_ports - 1, 0),
1013 lan_rmw(GENMASK(lan966x->num_phys_ports - 1, 0),
1018 lan_rmw(ANA_PGID_PGID_SET(BIT(CPU_PORT) | GENMASK(lan966x->num_phys_ports
[all...]
H A Dlan966x_taprio.c282 max_list = lan966x->num_phys_ports * LAN966X_TAPRIO_ENTRIES_PER_PORT;
502 num_taprio_lists = lan966x->num_phys_ports *
512 for (p = 0; p < lan966x->num_phys_ports; p++)
522 for (p = 0; p < lan966x->num_phys_ports; ++p) {
H A Dlan966x_xdp.c113 for (int p = 0; p < lan966x->num_phys_ports; ++p) {
H A Dlan966x_fdma.c89 for (int i = 0; i < lan966x->num_phys_ports; ++i) {
367 for (i = 0; i < lan966x->num_phys_ports; ++i) {
382 for (i = 0; i < lan966x->num_phys_ports; ++i) {
483 if (WARN_ON(*src_port >= lan966x->num_phys_ports))
887 for (i = 0; i < lan966x->num_phys_ports; ++i) {
H A Dlan966x_vcap_impl.c677 for (int p = 0; p < lan966x->num_phys_ports; ++p) {
691 for (int p = 0; p < lan966x->num_phys_ports; ++p)
696 for (int p = 0; p < lan966x->num_phys_ports; ++p)
738 for (int p = 0; p < lan966x->num_phys_ports; ++p) {
H A Dlan966x_switchdev.c137 for (i = 0; i < lan966x->num_phys_ports; i++) {
499 for (i = 0; i < lan966x->num_phys_ports; ++i)
H A Dlan966x_mac.c450 if (WARN_ON(dest_idx >= lan966x->num_phys_ports))
504 if (WARN_ON(dest_idx >= lan966x->num_phys_ports))
H A Dlan966x_dcb.c347 for (int p = 0; p < lan966x->num_phys_ports; ++p) {
H A Dlan966x_ptp.c116 if (mask == GENMASK(lan966x->num_phys_ports, 0)) {
1052 for (i = 0; i < lan966x->num_phys_ports; i++) {
1071 for (i = 0; i < lan966x->num_phys_ports; i++) {
H A Dlan966x_port.c250 lan_wr(lan966x_wm_enc(atop_wm / lan966x->num_phys_ports + 1), lan966x,
H A Dlan966x_ethtool.c299 for (i = 0; i < lan966x->num_phys_ports; i++) {
708 lan966x->stats = devm_kcalloc(lan966x->dev, lan966x->num_phys_ports *
H A Dlan966x_main.h320 u8 num_phys_ports; member in struct:lan966x
/linux-master/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 in struct:ocelot
/linux-master/drivers/net/dsa/ocelot/
H A Dfelix.c392 int unused_port = ocelot->num_phys_ports + 2;
441 return BIT(ocelot->num_phys_ports);
866 port = ocelot->num_phys_ports;
886 port = ocelot->num_phys_ports;
915 port = ocelot->num_phys_ports;
1371 static int felix_init_structs(struct felix *felix, int num_phys_ports) argument
1378 ocelot->num_phys_ports = num_phys_ports;
1379 ocelot->ports = devm_kcalloc(ocelot->dev, num_phys_ports,
1396 port_phy_modes = kcalloc(num_phys_ports, sizeo
[all...]
H A Dfelix_vsc9959.c1049 for (port = 0; port < ocelot->num_phys_ports; port++) {
1543 for (port = 0; port < ocelot->num_phys_ports; port++) {
2536 for (port = 0; port < ocelot->num_phys_ports; port++) {
2566 for_each_set_bit(other_port, &mask, ocelot->num_phys_ports) {

Completed in 645 milliseconds

12