Lines Matching refs:now
338 struct timespec now;
354 nanouptime(&now);
355 net_timeradd(&now, &sp->sfb_hinterval, &sp->sfb_nextreset);
522 log(LOG_DEBUG, "%s: SFB qid=%d, set %d is now current, "
599 sfb_penalize(struct sfb *sp, struct pf_mtag *t, struct timespec *now)
607 net_timersub(now, &sp->sfb_pboxfreeze, &delta);
626 sfb_increment_bin(sp, bin, SFB_BINFT(sp, 0, n, w), now);
632 sfb_increment_bin(sp, bin, SFB_BINFT(sp, 1, n, w), now);
643 SFB_BINFT(sp, i, n, w), now);
652 *(&sp->sfb_pboxfreeze) = *now;
659 struct timespec *now, boolean_t inc)
663 net_timersub(now, ft, &delta);
675 *ft = *now;
684 struct timespec *now)
686 return (sfb_adjust_bin(sp, bin, ft, now, FALSE));
691 struct timespec *now)
693 return (sfb_adjust_bin(sp, bin, ft, now, TRUE));
697 sfb_dq_update_bins(struct sfb *sp, struct pf_mtag *t, struct timespec *now)
719 sfb_decrement_bin(sp, bin, SFB_BINFT(sp, 0, n, s), now);
734 sfb_decrement_bin(sp, bin, SFB_BINFT(sp, 1, n, s), now);
747 SFB_BINFT(sp, i, n, s), now);
839 struct timespec *now)
865 sfb_increment_bin(sp, bin, SFB_BINFT(sp, 0, n, s), now);
877 sfb_increment_bin(sp, bin, SFB_BINFT(sp, 1, n, s), now);
894 SFB_BINFT(sp, i, n, s), now);
912 struct timespec now;
918 nanouptime(&now);
924 if (net_timercmp(&now, &sp->sfb_nextreset, >=)) {
925 net_timeradd(&now, &sp->sfb_hinterval, &sp->sfb_nextreset);
941 if (sfb_drop_early(sp, t, &pmin, &now)) {
967 if (droptype == DTYPE_NODROP && sfb_penalize(sp, t, &now)) {
1014 struct timespec now;
1021 nanouptime(&now);
1040 net_timersub(&now, &sp->sfb_getqtime, &delta);
1059 *(&sp->sfb_getqtime) = *(&now);
1078 sfb_dq_update_bins(sp, t, &now);