Lines Matching refs:rv
76 int rv; in set_page() local
87 rv = i2c_smbus_write_byte_data(client, PMBUS_PAGE, page_real); in set_page()
88 if (rv < 0) in set_page()
89 return rv; in set_page()
110 int rv; in fsp3y_read_byte_data() local
118 rv = set_page(client, page); in fsp3y_read_byte_data()
119 if (rv < 0) in fsp3y_read_byte_data()
120 return rv; in fsp3y_read_byte_data()
129 int rv; in fsp3y_read_word_data() local
155 rv = set_page(client, page); in fsp3y_read_word_data()
156 if (rv < 0) in fsp3y_read_word_data()
157 return rv; in fsp3y_read_word_data()
159 rv = i2c_smbus_read_word_data(client, reg); in fsp3y_read_word_data()
160 if (rv < 0) in fsp3y_read_word_data()
161 return rv; in fsp3y_read_word_data()
167 rv = sign_extend32(rv, 10) & 0xffff; in fsp3y_read_word_data()
169 return rv; in fsp3y_read_word_data()
205 int rv; in fsp3y_detect() local
208 rv = i2c_smbus_read_block_data(client, PMBUS_MFR_MODEL, buf); in fsp3y_detect()
209 if (rv < 0) in fsp3y_detect()
210 return rv; in fsp3y_detect()
212 buf[rv] = '\0'; in fsp3y_detect()
214 if (rv == 8) { in fsp3y_detect()
221 dev_err(&client->dev, "Unsupported model %.*s\n", rv, buf); in fsp3y_detect()
235 int rv; in fsp3y_probe() local
250 rv = i2c_smbus_read_byte_data(client, PMBUS_PAGE); in fsp3y_probe()
251 if (rv < 0) in fsp3y_probe()
252 return rv; in fsp3y_probe()
253 data->page = rv; in fsp3y_probe()
268 rv = i2c_smbus_read_byte_data(client, PMBUS_VOUT_MODE); in fsp3y_probe()
269 if (rv < 0) in fsp3y_probe()
270 return rv; in fsp3y_probe()
272 if (rv == 0xFF) in fsp3y_probe()