Lines Matching refs:wargs

1956 	struct walk_args *wargs = (struct walk_args *)arg;  in modctl_inst_walker()  local
1963 if (wargs->wa_drvname && in modctl_inst_walker()
1964 strcmp(dp->ind_driver_name, wargs->wa_drvname) != 0) in modctl_inst_walker()
1974 list_insert_tail(&wargs->wa_pathlist, pe); in modctl_inst_walker()
1994 struct walk_args *wargs; in modctl_remdrv_cleanup() local
2019 wargs = kmem_zalloc(sizeof (*wargs), KM_SLEEP); in modctl_remdrv_cleanup()
2021 wargs->wa_drvname = drvname; in modctl_remdrv_cleanup()
2022 list_create(&wargs->wa_pathlist, in modctl_remdrv_cleanup()
2025 (void) e_ddi_walk_instances(modctl_inst_walker, (void *)wargs); in modctl_remdrv_cleanup()
2027 for (pe = list_head(&wargs->wa_pathlist); pe != NULL; in modctl_remdrv_cleanup()
2028 pe = list_next(&wargs->wa_pathlist, pe)) { in modctl_remdrv_cleanup()
2035 while ((pe = list_head(&wargs->wa_pathlist)) != NULL) { in modctl_remdrv_cleanup()
2036 list_remove(&wargs->wa_pathlist, pe); in modctl_remdrv_cleanup()
2040 kmem_free(wargs, sizeof (*wargs)); in modctl_remdrv_cleanup()
2062 struct walk_args *wargs; in dev_devices_cleanup() local
2074 wargs = kmem_zalloc(sizeof (*wargs), KM_SLEEP); in dev_devices_cleanup()
2075 wargs->wa_drvname = NULL; in dev_devices_cleanup()
2076 list_create(&wargs->wa_pathlist, in dev_devices_cleanup()
2079 (void) e_ddi_walk_instances(modctl_inst_walker, (void *)wargs); in dev_devices_cleanup()
2083 for (pe = list_head(&wargs->wa_pathlist); pe != NULL; in dev_devices_cleanup()
2084 pe = list_next(&wargs->wa_pathlist, pe)) { in dev_devices_cleanup()
2101 while ((pe = list_head(&wargs->wa_pathlist)) != NULL) { in dev_devices_cleanup()
2102 list_remove(&wargs->wa_pathlist, pe); in dev_devices_cleanup()
2106 kmem_free(wargs, sizeof (*wargs)); in dev_devices_cleanup()