Lines Matching refs:cf

177 	struct cprconfig *cf = &cprconfig;  in cpr_get_config()  local
191 err = cpr_rdwr(UIO_READ, vp, cf, sizeof (*cf)); in cpr_get_config()
199 if (cf->cf_magic == CPR_CONFIG_MAGIC) in cpr_get_config()
219 struct cprconfig *cf = &cprconfig; in cpr_cprconfig_to_path() local
225 (void) strcpy(full_path, cf->cf_fs); in cpr_cprconfig_to_path()
226 if (strcmp(cf->cf_fs, "/")) in cpr_cprconfig_to_path()
228 ptr = cf->cf_path; in cpr_cprconfig_to_path()
251 struct cprconfig *cf = &cprconfig; in cpr_verify_statefile_path() local
279 switch (cf->cf_type) { in cpr_verify_statefile_path()
281 error = i_devname_to_promname(cf->cf_devfs, devpath, in cpr_verify_statefile_path()
283 if (error || strcmp(devpath, cf->cf_dev_prom)) { in cpr_verify_statefile_path()
285 cf->cf_dev_prom, devpath, rerun); in cpr_verify_statefile_path()
290 if (strlen(cf->cf_path) > sizeof (sfpath)) { in cpr_verify_statefile_path()
294 if ((error = lookupname(cf->cf_devfs, in cpr_verify_statefile_path()
296 cpr_err(CE_CONT, lookup_fmt, cf->cf_devfs); in cpr_verify_statefile_path()
326 if (strlen(cf->cf_fs) + strlen(cf->cf_path) + 2 > sizeof (sfpath)) { in cpr_verify_statefile_path()
380 if (strcmp(cf->cf_fs, sfpath) == 0) { in cpr_verify_statefile_path()
392 if (cpr_is_ufs(vfsp_save) == 0 || strcmp(cf->cf_fs, sfpath)) { in cpr_verify_statefile_path()
395 "changed to %s. %s\n", cf->cf_fs, sfpath, rerun); in cpr_verify_statefile_path()
399 if ((error = lookupname(cf->cf_devfs, in cpr_verify_statefile_path()
401 cpr_err(CE_CONT, lookup_fmt, cf->cf_devfs); in cpr_verify_statefile_path()
408 "See power.conf(4).", cf->cf_devfs); in cpr_verify_statefile_path()
414 error = i_devname_to_promname(cf->cf_devfs, devpath, OBP_MAXPATHLEN); in cpr_verify_statefile_path()
415 if (error || strcmp(devpath, cf->cf_dev_prom)) { in cpr_verify_statefile_path()
417 cf->cf_dev_prom, devpath, rerun); in cpr_verify_statefile_path()
1020 struct cprconfig *cf = &cprconfig; in cpr_build_statefile_path() local
1025 switch (cf->cf_type) { in cpr_build_statefile_path()
1027 if (strlen(cf->cf_path) + strlen(cf->cf_fs) >= MAXNAMELEN - 1) { in cpr_build_statefile_path()
1035 return (cf->cf_devfs); in cpr_build_statefile_path()
1054 struct cprconfig *cf = &cprconfig; in cpr_get_statefile_prom_path() local
1057 ASSERT(cf->cf_magic == CPR_CONFIG_MAGIC); in cpr_get_statefile_prom_path()
1058 ASSERT(cf->cf_type == CFT_SPEC || cf->cf_type == CFT_ZVOL); in cpr_get_statefile_prom_path()
1059 return (cf->cf_dev_prom); in cpr_get_statefile_prom_path()