Lines Matching refs:msgs
48 struct i2c_msg msgs[] = { in isl12026_read_reg() local
62 ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); in isl12026_read_reg()
63 if (ret != ARRAY_SIZE(msgs)) { in isl12026_read_reg()
210 struct i2c_msg msgs[] = { in isl12026_rtc_read_time() local
225 msgs[1].len = 1; in isl12026_rtc_read_time()
226 msgs[1].buf = &sr; in isl12026_rtc_read_time()
228 ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); in isl12026_rtc_read_time()
229 if (ret != ARRAY_SIZE(msgs)) { in isl12026_rtc_read_time()
243 msgs[1].len = sizeof(ccr); in isl12026_rtc_read_time()
244 msgs[1].buf = ccr; in isl12026_rtc_read_time()
246 ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); in isl12026_rtc_read_time()
247 if (ret != ARRAY_SIZE(msgs)) { in isl12026_rtc_read_time()
283 struct i2c_msg msgs[] = { in isl12026_nvm_read() local
307 msgs[1].len = bytes; in isl12026_nvm_read()
308 ret = i2c_transfer(priv->nvm_client->adapter, msgs, ARRAY_SIZE(msgs)); in isl12026_nvm_read()
312 if (ret != ARRAY_SIZE(msgs)) { in isl12026_nvm_read()
329 struct i2c_msg msgs[] = { in isl12026_nvm_write() local
357 msgs[0].len = chunk_size + 2; in isl12026_nvm_write()
359 msgs, ARRAY_SIZE(msgs)); in isl12026_nvm_write()
360 if (ret != ARRAY_SIZE(msgs)) { in isl12026_nvm_write()