Lines Matching refs:rc
19 static int i2c_opal_translate_error(int rc)
21 switch (rc) {
42 int token, rc;
52 rc = opal_i2c_request(token, bus_id, req);
53 if (rc != OPAL_ASYNC_COMPLETION) {
54 rc = i2c_opal_translate_error(rc);
58 rc = opal_async_wait_response(token, &msg);
59 if (rc)
62 rc = opal_get_async_rc(msg);
63 if (rc != OPAL_SUCCESS) {
64 rc = i2c_opal_translate_error(rc);
70 return rc;
78 int rc, i;
105 rc = i2c_opal_send_request(opal_id, &req);
106 if (rc)
107 return rc;
119 int rc;
165 rc = i2c_opal_send_request(opal_id, &req);
166 if (!rc && read_write && size == I2C_SMBUS_WORD_DATA) {
171 return rc;
201 int rc;
206 rc = of_property_read_u32(pdev->dev.of_node, "ibm,opal-id", &opal_id);
207 if (rc) {
228 rc = i2c_add_adapter(adapter);
229 if (rc)
232 return rc;