Lines Matching refs:ps
148 static u64 hst_weight(struct path_selector *ps, u64 delta) in hst_weight() argument
150 struct selector *s = ps->context; in hst_weight()
163 static void hst_set_weights(struct path_selector *ps, unsigned int base) in hst_set_weights() argument
165 struct selector *s = ps->context; in hst_set_weights()
176 static int hst_create(struct path_selector *ps, unsigned int argc, char **argv) in hst_create() argument
211 ps->context = s; in hst_create()
213 hst_set_weights(ps, base_weight); in hst_create()
228 static void hst_destroy(struct path_selector *ps) in hst_destroy() argument
230 struct selector *s = ps->context; in hst_destroy()
235 ps->context = NULL; in hst_destroy()
238 static int hst_status(struct path_selector *ps, struct dm_path *path, in hst_status() argument
245 struct selector *s = ps->context; in hst_status()
268 static int hst_add_path(struct path_selector *ps, struct dm_path *path, in hst_add_path() argument
271 struct selector *s = ps->context; in hst_add_path()
320 static void hst_fail_path(struct path_selector *ps, struct dm_path *path) in hst_fail_path() argument
322 struct selector *s = ps->context; in hst_fail_path()
332 static int hst_reinstate_path(struct path_selector *ps, struct dm_path *path) in hst_reinstate_path() argument
334 struct selector *s = ps->context; in hst_reinstate_path()
369 u64 time_now, struct path_selector *ps) in hst_compare() argument
371 struct selector *s = ps->context; in hst_compare()
431 static struct dm_path *hst_select_path(struct path_selector *ps, in hst_select_path() argument
434 struct selector *s = ps->context; in hst_select_path()
445 if (!best || (hst_compare(pi, best, time_now, ps) < 0)) in hst_select_path()
462 static int hst_start_io(struct path_selector *ps, struct dm_path *path, in hst_start_io() argument
493 static int hst_end_io(struct path_selector *ps, struct dm_path *path, in hst_end_io() argument
497 struct selector *s = ps->context; in hst_end_io()
508 hst_weight(ps, st)); in hst_end_io()