• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/src/shared/

Lines Matching refs:funit

73 static struct fwder_wofa * _fwder_wofa_init(const int funit);
100 static inline fwder_t * ___fwder_self(const fwder_dir_t dir, int funit);
101 static inline fwder_t * __fwder_self(const fwder_dir_t dir, int funit);
244 _fwder_wofa_init(const int funit)
252 FWDER_ASSERT(funit < FWDER_MAX_UNIT);
253 FWDER_ASSERT(_fwder_wofa[funit] == FWDER_WOFA_NULL);
285 funit, fwder_wofa, fwder_wofa_sz/1024, fwder_wofa_sz));
287 _fwder_wofa[funit] = fwder_wofa;
870 #define FWDER_GET(fwder, funit) &per_cpu((fwder), (funit))
904 #define FWDER_GET(fwder, funit) &fwder[funit]
935 ___fwder_self(const fwder_dir_t dir, int funit)
940 fwder = FWDER_GET(fwder_upstream_g, funit);
942 fwder = FWDER_GET(fwder_dnstream_g, funit);
949 __fwder_self(const fwder_dir_t dir, int funit)
951 fwder_t * fwder = ___fwder_self(dir, funit);
952 FWDER_ASSERT(fwder->unit == funit);
977 int dir, funit, unit, subunit;
988 for (funit = 0; funit < FWDER_MAX_UNIT; funit++) {
989 _fwder_wofa[funit] = _fwder_wofa_init(funit);
990 if (_fwder_wofa[funit] == FWDER_WOFA_NULL)
1009 for_each_online_cpu(funit)
1011 for (funit = 0; funit < FWDER_MAX_UNIT; funit++)
1017 fwder = ___fwder_self(dir, funit);
1018 fwder->mate = ___fwder_self((dir + 1) % FWDER_MAX_DIR, funit);
1026 fwder->wofa = _fwder_wofa[funit];
1034 fwder->unit = funit;
1037 } /* for_each_online_cpu | for funit = 0 .. FWDER_MAX_UNIT */
1062 int funit;
1066 for_each_online_cpu(funit)
1068 for (funit = 0; funit < FWDER_MAX_UNIT; funit++)
1071 fwder = __fwder_self(FWDER_UPSTREAM, funit);
1074 _fwder_wofa[funit] = FWDER_WOFA_NULL;
1092 int funit;
1110 funit = FWDER_UNIT(unit);
1111 self = __fwder_self(dir, funit);
1140 int funit;
1152 funit = FWDER_UNIT(unit);
1153 self = __fwder_self(dir, funit);
1241 int funit;
1264 funit = FWDER_UNIT(unit);
1269 FWDER_ASSERT(mate == __fwder_self(FWDER_UPSTREAM, funit));
1270 FWDER_ASSERT(self == __fwder_self(FWDER_DNSTREAM, funit));