Lines Matching refs:wargs
1974 struct walk_args *wargs = (struct walk_args *)arg; in modctl_inst_walker() local
1981 if (wargs->wa_drvname && in modctl_inst_walker()
1982 strcmp(dp->ind_driver_name, wargs->wa_drvname) != 0) in modctl_inst_walker()
1992 list_insert_tail(&wargs->wa_pathlist, pe); in modctl_inst_walker()
2012 struct walk_args *wargs; in modctl_remdrv_cleanup() local
2037 wargs = kmem_zalloc(sizeof (*wargs), KM_SLEEP); in modctl_remdrv_cleanup()
2039 wargs->wa_drvname = drvname; in modctl_remdrv_cleanup()
2040 list_create(&wargs->wa_pathlist, in modctl_remdrv_cleanup()
2043 (void) e_ddi_walk_instances(modctl_inst_walker, (void *)wargs); in modctl_remdrv_cleanup()
2045 for (pe = list_head(&wargs->wa_pathlist); pe != NULL; in modctl_remdrv_cleanup()
2046 pe = list_next(&wargs->wa_pathlist, pe)) { in modctl_remdrv_cleanup()
2053 while ((pe = list_head(&wargs->wa_pathlist)) != NULL) { in modctl_remdrv_cleanup()
2054 list_remove(&wargs->wa_pathlist, pe); in modctl_remdrv_cleanup()
2058 kmem_free(wargs, sizeof (*wargs)); in modctl_remdrv_cleanup()
2080 struct walk_args *wargs; in dev_devices_cleanup() local
2092 wargs = kmem_zalloc(sizeof (*wargs), KM_SLEEP); in dev_devices_cleanup()
2093 wargs->wa_drvname = NULL; in dev_devices_cleanup()
2094 list_create(&wargs->wa_pathlist, in dev_devices_cleanup()
2097 (void) e_ddi_walk_instances(modctl_inst_walker, (void *)wargs); in dev_devices_cleanup()
2101 for (pe = list_head(&wargs->wa_pathlist); pe != NULL; in dev_devices_cleanup()
2102 pe = list_next(&wargs->wa_pathlist, pe)) { in dev_devices_cleanup()
2119 while ((pe = list_head(&wargs->wa_pathlist)) != NULL) { in dev_devices_cleanup()
2120 list_remove(&wargs->wa_pathlist, pe); in dev_devices_cleanup()
2124 kmem_free(wargs, sizeof (*wargs)); in dev_devices_cleanup()