FreeBSD kernel kern code
subr_filter.c File Reference
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/errno.h>
#include <sys/tim_filter.h>
Include dependency graph for subr_filter.c:

Go to the source code of this file.

Functions

 __FBSDID ("$FreeBSD$")
 
void reset_time (struct time_filter *tf, uint32_t time_len)
 
void reset_time_small (struct time_filter_small *tf, uint32_t time_len)
 
int setup_time_filter (struct time_filter *tf, int fil_type, uint32_t time_len)
 
int setup_time_filter_small (struct time_filter_small *tf, int fil_type, uint32_t time_len)
 
static void check_update_times (struct time_filter *tf, uint64_t value, uint32_t now)
 
static void check_update_times_small (struct time_filter_small *tf, uint32_t value, uint32_t now)
 
void filter_reduce_by (struct time_filter *tf, uint64_t reduce_by, uint32_t now)
 
void filter_reduce_by_small (struct time_filter_small *tf, uint32_t reduce_by, uint32_t now)
 
void filter_increase_by (struct time_filter *tf, uint64_t incr_by, uint32_t now)
 
void filter_increase_by_small (struct time_filter_small *tf, uint32_t incr_by, uint32_t now)
 
void forward_filter_clock (struct time_filter *tf, uint32_t ticks_forward)
 
void forward_filter_clock_small (struct time_filter_small *tf, uint32_t ticks_forward)
 
void tick_filter_clock (struct time_filter *tf, uint32_t now)
 
void tick_filter_clock_small (struct time_filter_small *tf, uint32_t now)
 
uint32_t apply_filter_min (struct time_filter *tf, uint64_t value, uint32_t now)
 
uint32_t apply_filter_min_small (struct time_filter_small *tf, uint32_t value, uint32_t now)
 
uint32_t apply_filter_max (struct time_filter *tf, uint64_t value, uint32_t now)
 
uint32_t apply_filter_max_small (struct time_filter_small *tf, uint32_t value, uint32_t now)
 

Function Documentation

◆ __FBSDID()

__FBSDID ( "$FreeBSD$"  )

◆ apply_filter_max()

uint32_t apply_filter_max ( struct time_filter *  tf,
uint64_t  value,
uint32_t  now 
)

Definition at line 424 of file subr_filter.c.

References check_update_times(), and value.

Here is the call graph for this function:

◆ apply_filter_max_small()

uint32_t apply_filter_max_small ( struct time_filter_small *  tf,
uint32_t  value,
uint32_t  now 
)

Definition at line 450 of file subr_filter.c.

References check_update_times_small(), and value.

Here is the call graph for this function:

◆ apply_filter_min()

uint32_t apply_filter_min ( struct time_filter *  tf,
uint64_t  value,
uint32_t  now 
)

Definition at line 371 of file subr_filter.c.

References check_update_times(), and value.

Here is the call graph for this function:

◆ apply_filter_min_small()

uint32_t apply_filter_min_small ( struct time_filter_small *  tf,
uint32_t  value,
uint32_t  now 
)

Definition at line 397 of file subr_filter.c.

References check_update_times_small(), and value.

Here is the call graph for this function:

◆ check_update_times()

static void check_update_times ( struct time_filter *  tf,
uint64_t  value,
uint32_t  now 
)
static

Definition at line 137 of file subr_filter.c.

References value.

Referenced by apply_filter_max(), and apply_filter_min().

Here is the caller graph for this function:

◆ check_update_times_small()

static void check_update_times_small ( struct time_filter_small *  tf,
uint32_t  value,
uint32_t  now 
)
static

Definition at line 172 of file subr_filter.c.

References value.

Referenced by apply_filter_max_small(), and apply_filter_min_small().

Here is the caller graph for this function:

◆ filter_increase_by()

void filter_increase_by ( struct time_filter *  tf,
uint64_t  incr_by,
uint32_t  now 
)

Definition at line 247 of file subr_filter.c.

◆ filter_increase_by_small()

void filter_increase_by_small ( struct time_filter_small *  tf,
uint32_t  incr_by,
uint32_t  now 
)

Definition at line 264 of file subr_filter.c.

◆ filter_reduce_by()

void filter_reduce_by ( struct time_filter *  tf,
uint64_t  reduce_by,
uint32_t  now 
)

Definition at line 207 of file subr_filter.c.

References value.

◆ filter_reduce_by_small()

void filter_reduce_by_small ( struct time_filter_small *  tf,
uint32_t  reduce_by,
uint32_t  now 
)

Definition at line 227 of file subr_filter.c.

References value.

◆ forward_filter_clock()

void forward_filter_clock ( struct time_filter *  tf,
uint32_t  ticks_forward 
)

Definition at line 281 of file subr_filter.c.

◆ forward_filter_clock_small()

void forward_filter_clock_small ( struct time_filter_small *  tf,
uint32_t  ticks_forward 
)

Definition at line 295 of file subr_filter.c.

◆ reset_time()

void reset_time ( struct time_filter *  tf,
uint32_t  time_len 
)

Definition at line 38 of file subr_filter.c.

◆ reset_time_small()

void reset_time_small ( struct time_filter_small *  tf,
uint32_t  time_len 
)

Definition at line 44 of file subr_filter.c.

◆ setup_time_filter()

int setup_time_filter ( struct time_filter *  tf,
int  fil_type,
uint32_t  time_len 
)

Definition at line 75 of file subr_filter.c.

◆ setup_time_filter_small()

int setup_time_filter_small ( struct time_filter_small *  tf,
int  fil_type,
uint32_t  time_len 
)

Definition at line 106 of file subr_filter.c.

◆ tick_filter_clock()

void tick_filter_clock ( struct time_filter *  tf,
uint32_t  now 
)

Definition at line 309 of file subr_filter.c.

References value.

◆ tick_filter_clock_small()

void tick_filter_clock_small ( struct time_filter_small *  tf,
uint32_t  now 
)

Definition at line 340 of file subr_filter.c.

References value.