Home
last modified time | relevance | path

Searched refs:dim (Results 1 – 5 of 5) sorted by relevance

/lib/dim/
Drdma_dim.c8 static int rdma_dim_step(struct dim *dim) in rdma_dim_step() argument
10 if (dim->tune_state == DIM_GOING_RIGHT) { in rdma_dim_step()
11 if (dim->profile_ix == (RDMA_DIM_PARAMS_NUM_PROFILES - 1)) in rdma_dim_step()
13 dim->profile_ix++; in rdma_dim_step()
14 dim->steps_right++; in rdma_dim_step()
16 if (dim->tune_state == DIM_GOING_LEFT) { in rdma_dim_step()
17 if (dim->profile_ix == 0) in rdma_dim_step()
19 dim->profile_ix--; in rdma_dim_step()
20 dim->steps_left++; in rdma_dim_step()
44 static bool rdma_dim_decision(struct dim_stats *curr_stats, struct dim *dim) in rdma_dim_decision() argument
[all …]
Dnet_dim.c104 static int net_dim_step(struct dim *dim) in net_dim_step() argument
106 if (dim->tired == (NET_DIM_PARAMS_NUM_PROFILES * 2)) in net_dim_step()
109 switch (dim->tune_state) { in net_dim_step()
114 if (dim->profile_ix == (NET_DIM_PARAMS_NUM_PROFILES - 1)) in net_dim_step()
116 dim->profile_ix++; in net_dim_step()
117 dim->steps_right++; in net_dim_step()
120 if (dim->profile_ix == 0) in net_dim_step()
122 dim->profile_ix--; in net_dim_step()
123 dim->steps_left++; in net_dim_step()
127 dim->tired++; in net_dim_step()
[all …]
Ddim.c8 bool dim_on_top(struct dim *dim) in dim_on_top() argument
10 switch (dim->tune_state) { in dim_on_top()
15 return (dim->steps_left > 1) && (dim->steps_right == 1); in dim_on_top()
17 return (dim->steps_right > 1) && (dim->steps_left == 1); in dim_on_top()
22 void dim_turn(struct dim *dim) in dim_turn() argument
24 switch (dim->tune_state) { in dim_turn()
29 dim->tune_state = DIM_GOING_LEFT; in dim_turn()
30 dim->steps_left = 0; in dim_turn()
33 dim->tune_state = DIM_GOING_RIGHT; in dim_turn()
34 dim->steps_right = 0; in dim_turn()
[all …]
DMakefile5 obj-$(CONFIG_DIMLIB) += dim.o
7 dim-y := dim.o net_dim.o rdma_dim.o
/lib/
DMakefile250 obj-$(CONFIG_DIMLIB) += dim/