Lines Matching defs:type
67 static descriptor_t *have_desc(int type, void *gp, char *name, char *mname);
69 static int make_descriptors(int type);
73 static descriptor_t *new_descriptor(dm_desc_type_t type, void *op,
333 cache_get_desc(int type, void *gp, char *name, char *secondary_name, int *errp)
338 if ((dp = have_desc(type, gp, name, secondary_name)) == NULL) {
340 if ((dp = new_descriptor(type, gp, name, secondary_name))
354 cache_get_descriptors(int type, int *errp)
362 if ((*errp = make_descriptors(type)) != 0) {
370 if (descp->type == type && descp->p.generic != NULL) {
386 if (descp->type == type && descp->p.generic != NULL) {
434 cache_load_desc(int type, void *gp, char *name, char *secondary_name, int *errp)
437 if (have_desc(type, gp, name, secondary_name) == NULL) {
439 if (new_descriptor(type, gp, name, secondary_name) == NULL) {
670 have_desc(int type, void *gp, char *name, char *secondary_name)
686 if (descp->type == type && descp->p.generic == gp &&
688 if (type == DM_SLICE || type == DM_PARTITION ||
689 type == DM_PATH)
744 make_descriptors(int type)
752 switch (type) {
845 new_descriptor(dm_desc_type_t type, void *op, char *name, char *secondary_name)
862 d->type = type;
863 switch (type) {
884 if (type == DM_SLICE || type == DM_PARTITION) {
995 switch (descp->type) {