Lines Matching full:dm
270 struct devinfo_i_rman *dm; in devinfo_init_resources() local
325 if ((dm = malloc(sizeof(*dm))) == NULL) in devinfo_init_resources()
327 dm->dm_rman.dm_handle = urman.rm_handle; in devinfo_init_resources()
328 dm->dm_rman.dm_start = urman.rm_start; in devinfo_init_resources()
329 dm->dm_rman.dm_size = urman.rm_size; in devinfo_init_resources()
330 snprintf(dm->dm_desc, DEVINFO_STRLEN, "%s", urman.rm_descr); in devinfo_init_resources()
331 dm->dm_rman.dm_desc = &dm->dm_desc[0]; in devinfo_init_resources()
332 TAILQ_INSERT_TAIL(&devinfo_rman, dm, dm_link); in devinfo_init_resources()
391 struct devinfo_i_rman *dm; in devinfo_free() local
398 while ((dm = TAILQ_FIRST(&devinfo_rman)) != NULL) { in devinfo_free()
399 TAILQ_REMOVE(&devinfo_rman, dm, dm_link); in devinfo_free()
400 free(dm); in devinfo_free()
457 struct devinfo_i_rman *dm; in devinfo_handle_to_rman() local
459 TAILQ_FOREACH(dm, &devinfo_rman, dm_link) in devinfo_handle_to_rman()
460 if (dm->dm_rman.dm_handle == handle) in devinfo_handle_to_rman()
461 return(&dm->dm_rman); in devinfo_handle_to_rman()
530 struct devinfo_i_rman *dm; in devinfo_foreach_rman() local
533 TAILQ_FOREACH(dm, &devinfo_rman, dm_link) in devinfo_foreach_rman()
534 if ((error = fn(&dm->dm_rman, arg)) != 0) in devinfo_foreach_rman()