• Home
  • Raw
  • Download

Lines Matching refs:rc

295 	int pages, rc;  in diag204_probe()  local
318 rc = PTR_ERR(buf); in diag204_probe()
327 rc = -ENOSYS; in diag204_probe()
331 rc = 0; in diag204_probe()
335 return rc; in diag204_probe()
340 int rc; in diag204_do_store() local
342 rc = diag204((unsigned long) diag204_store_sc | in diag204_do_store()
344 return rc < 0 ? -ENOSYS : 0; in diag204_do_store()
350 int pages, rc; in diag204_store() local
355 rc = diag204_do_store(buf, pages); in diag204_store()
356 if (rc) in diag204_store()
357 return ERR_PTR(rc); in diag204_store()
407 int rc, buf_size; in dbfs_d204_create() local
415 rc = diag204_do_store(d204->buf, diag204_buf_pages); in dbfs_d204_create()
416 if (rc) { in dbfs_d204_create()
418 return rc; in dbfs_d204_create()
437 int rc; in hypfs_diag_init() local
448 rc = diag224_get_name_table(); in hypfs_diag_init()
449 if (rc) { in hypfs_diag_init()
453 return rc; in hypfs_diag_init()
476 void *rc; in hypfs_create_cpu_files() local
481 rc = hypfs_create_u64(cpu_dir, "mgmtime", in hypfs_create_cpu_files()
484 if (IS_ERR(rc)) in hypfs_create_cpu_files()
485 return PTR_ERR(rc); in hypfs_create_cpu_files()
486 rc = hypfs_create_u64(cpu_dir, "cputime", in hypfs_create_cpu_files()
488 if (IS_ERR(rc)) in hypfs_create_cpu_files()
489 return PTR_ERR(rc); in hypfs_create_cpu_files()
491 rc = hypfs_create_u64(cpu_dir, "onlinetime", in hypfs_create_cpu_files()
494 if (IS_ERR(rc)) in hypfs_create_cpu_files()
495 return PTR_ERR(rc); in hypfs_create_cpu_files()
498 rc = hypfs_create_str(cpu_dir, "type", buffer); in hypfs_create_cpu_files()
499 return PTR_ERR_OR_ZERO(rc); in hypfs_create_cpu_files()
520 int rc; in hypfs_create_lpar_files() local
521 rc = hypfs_create_cpu_files(cpus_dir, cpu_info); in hypfs_create_lpar_files()
522 if (rc) in hypfs_create_lpar_files()
523 return ERR_PTR(rc); in hypfs_create_lpar_files()
533 void *rc; in hypfs_create_phys_cpu_files() local
540 rc = hypfs_create_u64(cpu_dir, "mgmtime", in hypfs_create_phys_cpu_files()
542 if (IS_ERR(rc)) in hypfs_create_phys_cpu_files()
543 return PTR_ERR(rc); in hypfs_create_phys_cpu_files()
545 rc = hypfs_create_str(cpu_dir, "type", buffer); in hypfs_create_phys_cpu_files()
546 return PTR_ERR_OR_ZERO(rc); in hypfs_create_phys_cpu_files()
560 int rc; in hypfs_create_phys_files() local
561 rc = hypfs_create_phys_cpu_files(cpus_dir, cpu_info); in hypfs_create_phys_files()
562 if (rc) in hypfs_create_phys_files()
563 return ERR_PTR(rc); in hypfs_create_phys_files()
573 int i, rc; in hypfs_diag_create_files() local
582 rc = PTR_ERR(systems_dir); in hypfs_diag_create_files()
590 rc = PTR_ERR(part_hdr); in hypfs_diag_create_files()
598 rc = PTR_ERR(ptr); in hypfs_diag_create_files()
604 rc = PTR_ERR(hyp_dir); in hypfs_diag_create_files()
609 rc = PTR_ERR(ptr); in hypfs_diag_create_files()
612 rc = 0; in hypfs_diag_create_files()
615 return rc; in hypfs_diag_create_files()