Lines Matching refs:type
70 static struct zpool_driver *zpool_get_driver(const char *type) in zpool_get_driver() argument
76 if (!strcmp(driver->type, type)) { in zpool_get_driver()
114 bool zpool_has_pool(char *type) in zpool_has_pool() argument
116 struct zpool_driver *driver = zpool_get_driver(type); in zpool_has_pool()
119 request_module("zpool-%s", type); in zpool_has_pool()
120 driver = zpool_get_driver(type); in zpool_has_pool()
147 struct zpool *zpool_create_pool(const char *type, const char *name, gfp_t gfp) in zpool_create_pool() argument
152 pr_debug("creating pool type %s\n", type); in zpool_create_pool()
154 driver = zpool_get_driver(type); in zpool_create_pool()
157 request_module("zpool-%s", type); in zpool_create_pool()
158 driver = zpool_get_driver(type); in zpool_create_pool()
162 pr_err("no driver for type %s\n", type); in zpool_create_pool()
177 pr_err("couldn't create %s pool\n", type); in zpool_create_pool()
183 pr_debug("created pool type %s\n", type); in zpool_create_pool()
201 pr_debug("destroying pool type %s\n", zpool->driver->type); in zpool_destroy_pool()
220 return zpool->driver->type; in zpool_get_type()