Lines Matching refs:rc
57 int64_t rc; in opal_scom_read() local
61 rc = opal_xscom_read(chip, reg, (__be64 *)__pa(&v)); in opal_scom_read()
62 if (rc) { in opal_scom_read()
72 int64_t rc; in opal_scom_write() local
75 rc = opal_xscom_write(chip, reg, value); in opal_scom_write()
76 if (rc) in opal_scom_write()
95 int rc; in scom_debug_read() local
103 rc = opal_scom_read(ent->chip, reg_base, reg, &val); in scom_debug_read()
104 if (!rc) in scom_debug_read()
105 rc = put_user(val, ubuf64); in scom_debug_read()
106 if (rc) { in scom_debug_read()
108 done = rc; in scom_debug_read()
126 int rc; in scom_debug_write() local
134 rc = get_user(val, ubuf64); in scom_debug_write()
135 if (!rc) in scom_debug_write()
136 rc = opal_scom_write(ent->chip, reg_base, reg, val); in scom_debug_write()
137 if (rc) { in scom_debug_write()
139 done = rc; in scom_debug_write()
187 int chip, rc; in scom_debug_init() local
196 rc = 0; in scom_debug_init()
200 rc |= scom_debug_init_one(root, dn, chip); in scom_debug_init()
203 return rc; in scom_debug_init()