• Home
  • Raw
  • Download

Lines Matching refs:msgs

363 			    struct i2c_msg msgs[], int num)  in cx231xx_i2c_xfer()  argument
374 addr = msgs[i].addr; in cx231xx_i2c_xfer()
377 (msgs[i].flags & I2C_M_RD) ? "read" : "write", in cx231xx_i2c_xfer()
378 i == num - 1 ? "stop" : "nonstop", addr, msgs[i].len); in cx231xx_i2c_xfer()
379 if (!msgs[i].len) { in cx231xx_i2c_xfer()
381 rc = cx231xx_i2c_check_for_device(i2c_adap, &msgs[i]); in cx231xx_i2c_xfer()
388 } else if (msgs[i].flags & I2C_M_RD) { in cx231xx_i2c_xfer()
390 rc = cx231xx_i2c_recv_bytes(i2c_adap, &msgs[i]); in cx231xx_i2c_xfer()
392 for (byte = 0; byte < msgs[i].len; byte++) in cx231xx_i2c_xfer()
393 printk(KERN_CONT " %02x", msgs[i].buf[byte]); in cx231xx_i2c_xfer()
395 } else if (i + 1 < num && (msgs[i + 1].flags & I2C_M_RD) && in cx231xx_i2c_xfer()
396 msgs[i].addr == msgs[i + 1].addr in cx231xx_i2c_xfer()
397 && (msgs[i].len <= 2) && (bus->nr < 3)) { in cx231xx_i2c_xfer()
400 for (byte = 0; byte < msgs[i].len; byte++) in cx231xx_i2c_xfer()
401 printk(KERN_CONT " %02x", msgs[i].buf[byte]); in cx231xx_i2c_xfer()
406 (msgs[i+1].flags & I2C_M_RD) ? "read" : "write", in cx231xx_i2c_xfer()
407 i+1 == num - 1 ? "stop" : "nonstop", addr, msgs[i+1].len); in cx231xx_i2c_xfer()
409 &msgs[i], in cx231xx_i2c_xfer()
410 &msgs[i + 1]); in cx231xx_i2c_xfer()
412 for (byte = 0; byte < msgs[i+1].len; byte++) in cx231xx_i2c_xfer()
413 printk(KERN_CONT " %02x", msgs[i+1].buf[byte]); in cx231xx_i2c_xfer()
419 for (byte = 0; byte < msgs[i].len; byte++) in cx231xx_i2c_xfer()
420 printk(KERN_CONT " %02x", msgs[i].buf[byte]); in cx231xx_i2c_xfer()
422 rc = cx231xx_i2c_send_bytes(i2c_adap, &msgs[i]); in cx231xx_i2c_xfer()