Lines Matching refs:msgs
49 struct i2c_msg msgs[] = { in isl12026_read_reg() local
63 ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); in isl12026_read_reg()
64 if (ret != ARRAY_SIZE(msgs)) { in isl12026_read_reg()
211 struct i2c_msg msgs[] = { in isl12026_rtc_read_time() local
226 msgs[1].len = 1; in isl12026_rtc_read_time()
227 msgs[1].buf = &sr; in isl12026_rtc_read_time()
229 ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); in isl12026_rtc_read_time()
230 if (ret != ARRAY_SIZE(msgs)) { in isl12026_rtc_read_time()
244 msgs[1].len = sizeof(ccr); in isl12026_rtc_read_time()
245 msgs[1].buf = ccr; in isl12026_rtc_read_time()
247 ret = i2c_transfer(client->adapter, msgs, ARRAY_SIZE(msgs)); in isl12026_rtc_read_time()
248 if (ret != ARRAY_SIZE(msgs)) { in isl12026_rtc_read_time()
284 struct i2c_msg msgs[] = { in isl12026_nvm_read() local
308 msgs[1].len = bytes; in isl12026_nvm_read()
309 ret = i2c_transfer(priv->nvm_client->adapter, msgs, ARRAY_SIZE(msgs)); in isl12026_nvm_read()
313 if (ret != ARRAY_SIZE(msgs)) { in isl12026_nvm_read()
330 struct i2c_msg msgs[] = { in isl12026_nvm_write() local
358 msgs[0].len = chunk_size + 2; in isl12026_nvm_write()
360 msgs, ARRAY_SIZE(msgs)); in isl12026_nvm_write()
361 if (ret != ARRAY_SIZE(msgs)) { in isl12026_nvm_write()