Lines Matching refs:ret
133 int ret, vreg;
171 ret = pmbus_read_word_data(client, page, phase, vreg);
173 if (ret < 0)
174 return ret;
178 ret = zl6100_d2l(DIV_ROUND_CLOSEST(zl6100_l2d(ret) * 9, 10));
181 ret = zl6100_d2l(DIV_ROUND_CLOSEST(zl6100_l2d(ret) * 11, 10));
185 return ret;
192 int ret, status;
201 ret = pmbus_read_byte_data(client, 0,
203 if (ret < 0)
207 if (ret & VMON_UV_WARNING)
209 if (ret & VMON_OV_WARNING)
211 if (ret & VMON_UV_FAULT)
213 if (ret & VMON_OV_FAULT)
215 ret = status;
218 ret = pmbus_read_byte_data(client, page, reg);
223 return ret;
231 int ret, vreg;
262 ret = pmbus_write_word_data(client, page, vreg, word);
265 return ret;
272 int ret;
278 ret = pmbus_write_byte(client, page, value);
281 return ret;
306 int ret;
317 ret = i2c_smbus_read_block_data(client, ZL6100_DEVICE_ID,
319 if (ret < 0) {
321 return ret;
323 device_id[ret] = '\0';
376 ret = i2c_smbus_read_word_data(client, ZL6100_MFR_CONFIG);
377 if (ret < 0)
378 return ret;
380 if (ret & ZL6100_MFR_XTEMP_ENABLE)