Lines Matching refs:rv
264 int rv; in send_command_proto3() local
278 rv = ops->packet ? ops->packet(cdev->dev, out_bytes, in_bytes) : in send_command_proto3()
280 if (rv < 0) in send_command_proto3()
281 return rv; in send_command_proto3()
531 int rv; in cros_ec_read_hash() local
540 rv = cros_ec_wait_on_hash_done(dev, &p, hash); in cros_ec_read_hash()
541 if (rv) in cros_ec_read_hash()
542 return rv; in cros_ec_read_hash()
563 rv = cros_ec_wait_on_hash_done(dev, &p, hash); in cros_ec_read_hash()
564 if (rv) in cros_ec_read_hash()
565 return rv; in cros_ec_read_hash()
1004 int rv; in cros_ec_efs_verify() local
1009 rv = ec_command(dev, EC_CMD_EFS_VERIFY, 0, &p, sizeof(p), NULL, 0); in cros_ec_efs_verify()
1010 if (rv >= 0) { in cros_ec_efs_verify()
1014 if (rv == -EC_RES_INVALID_COMMAND) { in cros_ec_efs_verify()
1020 return rv; in cros_ec_efs_verify()
1289 int rv; in cros_ec_i2c_tunnel() local
1324 rv = ec_command(dev, EC_CMD_I2C_PASSTHRU, 0, p, pdata - (uint8_t *)p, in cros_ec_i2c_tunnel()
1326 if (rv < 0) in cros_ec_i2c_tunnel()
1327 return rv; in cros_ec_i2c_tunnel()
1335 if (rv < sizeof(*r) + read_len) { in cros_ec_i2c_tunnel()
1350 int rv; in cros_ec_get_features() local
1352 rv = ec_command(dev, EC_CMD_GET_FEATURES, 0, NULL, 0, &r, sizeof(r)); in cros_ec_get_features()
1353 if (rv != sizeof(r)) in cros_ec_get_features()
1363 int rv; in cros_ec_check_feature() local
1365 rv = ec_command(dev, EC_CMD_GET_FEATURES, 0, NULL, 0, &r, sizeof(r)); in cros_ec_check_feature()
1366 if (rv != sizeof(r)) in cros_ec_check_feature()