Searched refs:dim (Results 1 – 5 of 5) sorted by relevance
8 static int rdma_dim_step(struct dim *dim) in rdma_dim_step() argument10 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 …]
104 static int net_dim_step(struct dim *dim) in net_dim_step() argument106 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 …]
8 bool dim_on_top(struct dim *dim) in dim_on_top() argument10 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() argument24 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 …]
5 obj-$(CONFIG_DIMLIB) += dim.o7 dim-y := dim.o net_dim.o rdma_dim.o
250 obj-$(CONFIG_DIMLIB) += dim/