Lines Matching refs:ps

53 	struct path_selector ps;  member
176 struct path_selector *ps = &pg->ps; in free_priority_group() local
178 if (ps->type) { in free_priority_group()
179 ps->type->destroy(ps); in free_priority_group()
180 dm_put_path_selector(ps->type); in free_priority_group()
304 path = pg->ps.type->select_path(&pg->ps, &m->repeat_count, nr_bytes); in __choose_path_in_pg()
442 if (pgpath->pg->ps.type->start_io) in __multipath_map()
443 pgpath->pg->ps.type->start_io(&pgpath->pg->ps, in __multipath_map()
540 r = pst->create(&pg->ps, ps_argc, as->argv); in parse_path_selector()
547 pg->ps.type = pst; in parse_path_selector()
553 static struct pgpath *parse_path(struct dm_arg_set *as, struct path_selector *ps, in parse_path() argument
634 r = ps->type->add_path(ps, &p->path, as->argc, as->argv, &ti->error); in parse_path()
702 pgpath = parse_path(&path_args, &pg->ps, ti); in parse_priority_group()
971 pgpath->pg->ps.type->fail_path(&pgpath->pg->ps, &pgpath->path); in fail_path()
1005 if (!pgpath->pg->ps.type->reinstate_path) { in reinstate_path()
1007 pgpath->pg->ps.type->name); in reinstate_path()
1012 r = pgpath->pg->ps.type->reinstate_path(&pgpath->pg->ps, &pgpath->path); in reinstate_path()
1311 struct path_selector *ps; in multipath_end_io() local
1319 ps = &pgpath->pg->ps; in multipath_end_io()
1320 if (ps->type->end_io) in multipath_end_io()
1321 ps->type->end_io(ps, &pgpath->path, mpio->nr_bytes); in multipath_end_io()
1438 if (pg->ps.type->status) in multipath_status()
1439 sz += pg->ps.type->status(&pg->ps, NULL, type, in multipath_status()
1446 pg->ps.type->info_args); in multipath_status()
1452 if (pg->ps.type->status) in multipath_status()
1453 sz += pg->ps.type->status(&pg->ps, in multipath_status()
1462 DMEMIT("%s ", pg->ps.type->name); in multipath_status()
1464 if (pg->ps.type->status) in multipath_status()
1465 sz += pg->ps.type->status(&pg->ps, NULL, type, in multipath_status()
1472 pg->ps.type->table_args); in multipath_status()
1476 if (pg->ps.type->status) in multipath_status()
1477 sz += pg->ps.type->status(&pg->ps, in multipath_status()