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