Lines Matching refs:period_
572 double period_ = 0; in calc_period() local
577 period_ = ((double)period / NANOSEC_PER_SEC); in calc_period()
579 return period_; in calc_period()
589 static __u64 calc_pps(struct datarec *r, struct datarec *p, double period_) in calc_pps() argument
594 if (period_ > 0) { in calc_pps()
596 pps = sample_round(packets / period_); in calc_pps()
601 static __u64 calc_drop_pps(struct datarec *r, struct datarec *p, double period_) in calc_drop_pps() argument
606 if (period_ > 0) { in calc_drop_pps()
608 pps = sample_round(packets / period_); in calc_drop_pps()
613 static __u64 calc_errs_pps(struct datarec *r, struct datarec *p, double period_) in calc_errs_pps() argument
618 if (period_ > 0) { in calc_errs_pps()
620 pps = sample_round(packets / period_); in calc_errs_pps()
625 static __u64 calc_info_pps(struct datarec *r, struct datarec *p, double period_) in calc_info_pps() argument
630 if (period_ > 0) { in calc_info_pps()
632 pps = sample_round(packets / period_); in calc_info_pps()
638 double *xdp_drop, double *xdp_redirect, double period_) in calc_xdp_pps() argument
641 if (period_ > 0) { in calc_xdp_pps()
642 *xdp_redirect = (r->xdp_redirect - p->xdp_redirect) / period_; in calc_xdp_pps()
643 *xdp_pass = (r->xdp_pass - p->xdp_pass) / period_; in calc_xdp_pps()
644 *xdp_drop = (r->xdp_drop - p->xdp_drop) / period_; in calc_xdp_pps()