Lines Matching refs:msgs
121 struct i2c_msg *msgs; member
346 drv_data->msg = drv_data->msgs; in mv64xxx_i2c_send_start()
352 mv64xxx_i2c_prepare_for_io(drv_data, drv_data->msgs); in mv64xxx_i2c_send_start()
365 drv_data->msgs++; in mv64xxx_i2c_do_action()
481 if (drv_data->num_msgs == 1 && drv_data->msgs[0].flags & I2C_M_RD) { in mv64xxx_i2c_intr_offload()
482 mv64xxx_i2c_read_offload_rx_data(drv_data, drv_data->msgs); in mv64xxx_i2c_intr_offload()
483 drv_data->msgs++; in mv64xxx_i2c_intr_offload()
491 !(drv_data->msgs[0].flags & I2C_M_RD) && in mv64xxx_i2c_intr_offload()
492 drv_data->msgs[1].flags & I2C_M_RD) { in mv64xxx_i2c_intr_offload()
493 mv64xxx_i2c_read_offload_rx_data(drv_data, drv_data->msgs + 1); in mv64xxx_i2c_intr_offload()
494 drv_data->msgs += 2; in mv64xxx_i2c_intr_offload()
621 struct i2c_msg *msg = drv_data->msgs; in mv64xxx_i2c_prepare_tx()
633 struct i2c_msg *msgs = drv_data->msgs; in mv64xxx_i2c_offload_xfer() local
642 (msgs[0].addr << MV64XXX_I2C_BRIDGE_CONTROL_ADDR_SHIFT); in mv64xxx_i2c_offload_xfer()
644 if (msgs[0].flags & I2C_M_TEN) in mv64xxx_i2c_offload_xfer()
648 if (num == 1 && !(msgs[0].flags & I2C_M_RD)) { in mv64xxx_i2c_offload_xfer()
649 size_t len = msgs[0].len - 1; in mv64xxx_i2c_offload_xfer()
656 else if (num == 1 && msgs[0].flags & I2C_M_RD) { in mv64xxx_i2c_offload_xfer()
657 size_t len = msgs[0].len - 1; in mv64xxx_i2c_offload_xfer()
667 size_t lentx = msgs[0].len - 1; in mv64xxx_i2c_offload_xfer()
668 size_t lenrx = msgs[1].len - 1; in mv64xxx_i2c_offload_xfer()
698 struct i2c_msg *msgs = drv_data->msgs; in mv64xxx_i2c_can_offload() local
709 if (num == 1 && mv64xxx_i2c_valid_offload_sz(msgs)) in mv64xxx_i2c_can_offload()
718 mv64xxx_i2c_valid_offload_sz(msgs) && in mv64xxx_i2c_can_offload()
719 mv64xxx_i2c_valid_offload_sz(msgs + 1) && in mv64xxx_i2c_can_offload()
720 !(msgs[0].flags & I2C_M_RD) && in mv64xxx_i2c_can_offload()
721 msgs[1].flags & I2C_M_RD) in mv64xxx_i2c_can_offload()
741 mv64xxx_i2c_xfer_core(struct i2c_adapter *adap, struct i2c_msg msgs[], int num) in mv64xxx_i2c_xfer_core() argument
750 BUG_ON(drv_data->msgs != NULL); in mv64xxx_i2c_xfer_core()
751 drv_data->msgs = msgs; in mv64xxx_i2c_xfer_core()
757 rc = mv64xxx_i2c_execute_msg(drv_data, &msgs[0], num == 1); in mv64xxx_i2c_xfer_core()
763 drv_data->msgs = NULL; in mv64xxx_i2c_xfer_core()
772 mv64xxx_i2c_xfer(struct i2c_adapter *adap, struct i2c_msg msgs[], int num) in mv64xxx_i2c_xfer() argument
777 return mv64xxx_i2c_xfer_core(adap, msgs, num); in mv64xxx_i2c_xfer()
781 struct i2c_msg msgs[], int num) in mv64xxx_i2c_xfer_atomic() argument
786 return mv64xxx_i2c_xfer_core(adap, msgs, num); in mv64xxx_i2c_xfer_atomic()