/linux-master/drivers/net/ethernet/mscc/ |
H A D | ocelot_vsc7514.c | 120 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 D | ocelot_mm.c | 161 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 D | ocelot.c | 90 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 D | ocelot_mrp.c | 23 for (i = 0; i < ocelot->num_phys_ports; ++i) { 222 for (i = 0; i < ocelot->num_phys_ports; ++i) {
|
H A D | ocelot_devlink.c | 309 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 D | ocelot_fdma.c | 363 if (unlikely(src_port >= ocelot->num_phys_ports)) 468 for (port = 0; port < ocelot->num_phys_ports; port++) {
|
H A D | ocelot_stats.c | 373 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 D | lan966x_lag.c | 9 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 D | lan966x_vlan.c | 300 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 D | lan966x_main.c | 113 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 D | lan966x_taprio.c | 282 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 D | lan966x_xdp.c | 113 for (int p = 0; p < lan966x->num_phys_ports; ++p) {
|
H A D | lan966x_fdma.c | 89 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 D | lan966x_vcap_impl.c | 677 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 D | lan966x_switchdev.c | 137 for (i = 0; i < lan966x->num_phys_ports; i++) { 499 for (i = 0; i < lan966x->num_phys_ports; ++i)
|
H A D | lan966x_mac.c | 450 if (WARN_ON(dest_idx >= lan966x->num_phys_ports)) 504 if (WARN_ON(dest_idx >= lan966x->num_phys_ports))
|
H A D | lan966x_dcb.c | 347 for (int p = 0; p < lan966x->num_phys_ports; ++p) {
|
H A D | lan966x_ptp.c | 116 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 D | lan966x_port.c | 250 lan_wr(lan966x_wm_enc(atop_wm / lan966x->num_phys_ports + 1), lan966x,
|
H A D | lan966x_ethtool.c | 299 for (i = 0; i < lan966x->num_phys_ports; i++) { 708 lan966x->stats = devm_kcalloc(lan966x->dev, lan966x->num_phys_ports *
|
H A D | lan966x_main.h | 320 u8 num_phys_ports; member in struct:lan966x
|
/linux-master/include/soc/mscc/ |
H A 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)
|
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; \ 834 * num_phys_ports index). 836 u8 num_phys_ports; member in struct:ocelot
|
/linux-master/drivers/net/dsa/ocelot/ |
H A D | felix.c | 392 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 D | felix_vsc9959.c | 1049 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) {
|