Lines Matching defs:pi1
180 * Compare the estimated service time of 2 paths, pi1 and pi2,
184 * < 0 : pi1 is better
185 * 0 : no difference between pi1 and pi2
194 static int st_compare_load(struct path_info *pi1, struct path_info *pi2,
199 sz1 = atomic_read(&pi1->in_flight_size);
205 if (pi1->relative_throughput == pi2->relative_throughput)
213 !pi1->relative_throughput || !pi2->relative_throughput)
214 return pi2->relative_throughput - pi1->relative_throughput;
218 * Service time using pi1:
219 * st1 = (sz1 + incoming) / pi1->relative_throughput
227 * (sz1 + incoming) / pi1->relative_throughput <
230 * (sz2 + incoming) * pi1->relative_throughput
246 st2 = sz2 * pi1->relative_throughput;
253 return pi2->relative_throughput - pi1->relative_throughput;