Lines Matching refs:ps
53 struct path_selector ps; member
173 struct path_selector *ps = &pg->ps; in free_priority_group() local
175 if (ps->type) { in free_priority_group()
176 ps->type->destroy(ps); in free_priority_group()
177 dm_put_path_selector(ps->type); in free_priority_group()
301 path = pg->ps.type->select_path(&pg->ps, &m->repeat_count, nr_bytes); in __choose_path_in_pg()
439 if (pgpath->pg->ps.type->start_io) in __multipath_map()
440 pgpath->pg->ps.type->start_io(&pgpath->pg->ps, in __multipath_map()
537 r = pst->create(&pg->ps, ps_argc, as->argv); in parse_path_selector()
544 pg->ps.type = pst; in parse_path_selector()
550 static struct pgpath *parse_path(struct dm_arg_set *as, struct path_selector *ps, in parse_path() argument
625 r = ps->type->add_path(ps, &p->path, as->argc, as->argv, &ti->error); in parse_path()
693 pgpath = parse_path(&path_args, &pg->ps, ti); in parse_priority_group()
956 pgpath->pg->ps.type->fail_path(&pgpath->pg->ps, &pgpath->path); in fail_path()
990 if (!pgpath->pg->ps.type->reinstate_path) { in reinstate_path()
992 pgpath->pg->ps.type->name); in reinstate_path()
997 r = pgpath->pg->ps.type->reinstate_path(&pgpath->pg->ps, &pgpath->path); in reinstate_path()
1296 struct path_selector *ps; in multipath_end_io() local
1304 ps = &pgpath->pg->ps; in multipath_end_io()
1305 if (ps->type->end_io) in multipath_end_io()
1306 ps->type->end_io(ps, &pgpath->path, mpio->nr_bytes); in multipath_end_io()
1423 if (pg->ps.type->status) in multipath_status()
1424 sz += pg->ps.type->status(&pg->ps, NULL, type, in multipath_status()
1431 pg->ps.type->info_args); in multipath_status()
1437 if (pg->ps.type->status) in multipath_status()
1438 sz += pg->ps.type->status(&pg->ps, in multipath_status()
1447 DMEMIT("%s ", pg->ps.type->name); in multipath_status()
1449 if (pg->ps.type->status) in multipath_status()
1450 sz += pg->ps.type->status(&pg->ps, NULL, type, in multipath_status()
1457 pg->ps.type->table_args); in multipath_status()
1461 if (pg->ps.type->status) in multipath_status()
1462 sz += pg->ps.type->status(&pg->ps, in multipath_status()