Lines Matching refs:cf
178 struct cprconfig *cf = &cprconfig; in cpr_get_config() local
192 err = cpr_rdwr(UIO_READ, vp, cf, sizeof (*cf)); in cpr_get_config()
200 if (cf->cf_magic == CPR_CONFIG_MAGIC) in cpr_get_config()
220 struct cprconfig *cf = &cprconfig; in cpr_cprconfig_to_path() local
226 (void) strcpy(full_path, cf->cf_fs); in cpr_cprconfig_to_path()
227 if (strcmp(cf->cf_fs, "/")) in cpr_cprconfig_to_path()
229 ptr = cf->cf_path; in cpr_cprconfig_to_path()
252 struct cprconfig *cf = &cprconfig; in cpr_verify_statefile_path() local
280 switch (cf->cf_type) { in cpr_verify_statefile_path()
282 error = i_devname_to_promname(cf->cf_devfs, devpath, in cpr_verify_statefile_path()
284 if (error || strcmp(devpath, cf->cf_dev_prom)) { in cpr_verify_statefile_path()
286 cf->cf_dev_prom, devpath, rerun); in cpr_verify_statefile_path()
291 if (strlen(cf->cf_path) > sizeof (sfpath)) { in cpr_verify_statefile_path()
295 if ((error = lookupname(cf->cf_devfs, in cpr_verify_statefile_path()
297 cpr_err(CE_CONT, lookup_fmt, cf->cf_devfs); in cpr_verify_statefile_path()
327 if (strlen(cf->cf_fs) + strlen(cf->cf_path) + 2 > sizeof (sfpath)) { in cpr_verify_statefile_path()
381 if (strcmp(cf->cf_fs, sfpath) == 0) { in cpr_verify_statefile_path()
393 if (cpr_is_ufs(vfsp_save) == 0 || strcmp(cf->cf_fs, sfpath)) { in cpr_verify_statefile_path()
396 "changed to %s. %s\n", cf->cf_fs, sfpath, rerun); in cpr_verify_statefile_path()
400 if ((error = lookupname(cf->cf_devfs, in cpr_verify_statefile_path()
402 cpr_err(CE_CONT, lookup_fmt, cf->cf_devfs); in cpr_verify_statefile_path()
409 "See power.conf(5).", cf->cf_devfs); in cpr_verify_statefile_path()
415 error = i_devname_to_promname(cf->cf_devfs, devpath, OBP_MAXPATHLEN); in cpr_verify_statefile_path()
416 if (error || strcmp(devpath, cf->cf_dev_prom)) { in cpr_verify_statefile_path()
418 cf->cf_dev_prom, devpath, rerun); in cpr_verify_statefile_path()
1021 struct cprconfig *cf = &cprconfig; in cpr_build_statefile_path() local
1026 switch (cf->cf_type) { in cpr_build_statefile_path()
1028 if (strlen(cf->cf_path) + strlen(cf->cf_fs) >= MAXNAMELEN - 1) { in cpr_build_statefile_path()
1036 return (cf->cf_devfs); in cpr_build_statefile_path()
1055 struct cprconfig *cf = &cprconfig; in cpr_get_statefile_prom_path() local
1058 ASSERT(cf->cf_magic == CPR_CONFIG_MAGIC); in cpr_get_statefile_prom_path()
1059 ASSERT(cf->cf_type == CFT_SPEC || cf->cf_type == CFT_ZVOL); in cpr_get_statefile_prom_path()
1060 return (cf->cf_dev_prom); in cpr_get_statefile_prom_path()