Lines Matching refs:cf

176 	struct cprconfig *cf = &cprconfig;  in cpr_get_config()  local
190 err = cpr_rdwr(UIO_READ, vp, cf, sizeof (*cf)); in cpr_get_config()
198 if (cf->cf_magic == CPR_CONFIG_MAGIC) in cpr_get_config()
218 struct cprconfig *cf = &cprconfig; in cpr_cprconfig_to_path() local
224 (void) strcpy(full_path, cf->cf_fs); in cpr_cprconfig_to_path()
225 if (strcmp(cf->cf_fs, "/")) in cpr_cprconfig_to_path()
227 ptr = cf->cf_path; in cpr_cprconfig_to_path()
250 struct cprconfig *cf = &cprconfig; in cpr_verify_statefile_path() local
278 switch (cf->cf_type) { in cpr_verify_statefile_path()
280 error = i_devname_to_promname(cf->cf_devfs, devpath, in cpr_verify_statefile_path()
282 if (error || strcmp(devpath, cf->cf_dev_prom)) { in cpr_verify_statefile_path()
284 cf->cf_dev_prom, devpath, rerun); in cpr_verify_statefile_path()
289 if (strlen(cf->cf_path) > sizeof (sfpath)) { in cpr_verify_statefile_path()
293 if ((error = lookupname(cf->cf_devfs, in cpr_verify_statefile_path()
295 cpr_err(CE_CONT, lookup_fmt, cf->cf_devfs); in cpr_verify_statefile_path()
325 if (strlen(cf->cf_fs) + strlen(cf->cf_path) + 2 > sizeof (sfpath)) { in cpr_verify_statefile_path()
379 if (strcmp(cf->cf_fs, sfpath) == 0) { in cpr_verify_statefile_path()
391 if (cpr_is_ufs(vfsp_save) == 0 || strcmp(cf->cf_fs, sfpath)) { in cpr_verify_statefile_path()
394 "changed to %s. %s\n", cf->cf_fs, sfpath, rerun); in cpr_verify_statefile_path()
398 if ((error = lookupname(cf->cf_devfs, in cpr_verify_statefile_path()
400 cpr_err(CE_CONT, lookup_fmt, cf->cf_devfs); in cpr_verify_statefile_path()
407 "See power.conf(4).", cf->cf_devfs); in cpr_verify_statefile_path()
413 error = i_devname_to_promname(cf->cf_devfs, devpath, OBP_MAXPATHLEN); in cpr_verify_statefile_path()
414 if (error || strcmp(devpath, cf->cf_dev_prom)) { in cpr_verify_statefile_path()
416 cf->cf_dev_prom, devpath, rerun); in cpr_verify_statefile_path()
1019 struct cprconfig *cf = &cprconfig; in cpr_build_statefile_path() local
1024 switch (cf->cf_type) { in cpr_build_statefile_path()
1026 if (strlen(cf->cf_path) + strlen(cf->cf_fs) >= MAXNAMELEN - 1) { in cpr_build_statefile_path()
1034 return (cf->cf_devfs); in cpr_build_statefile_path()
1053 struct cprconfig *cf = &cprconfig; in cpr_get_statefile_prom_path() local
1056 ASSERT(cf->cf_magic == CPR_CONFIG_MAGIC); in cpr_get_statefile_prom_path()
1057 ASSERT(cf->cf_type == CFT_SPEC || cf->cf_type == CFT_ZVOL); in cpr_get_statefile_prom_path()
1058 return (cf->cf_dev_prom); in cpr_get_statefile_prom_path()