Home
last modified time | relevance | path

Searched refs:msg_idx (Results 1 – 7 of 7) sorted by relevance

/linux/drivers/i2c/busses/
H A Di2c-lpc2k.c78 int msg_idx; member
142 if (i2c->msg_idx < i2c->msg->len) { in i2c_lpc2k_pump_msg()
143 writel(i2c->msg->buf[i2c->msg_idx], in i2c_lpc2k_pump_msg()
156 i2c->msg_idx++; in i2c_lpc2k_pump_msg()
180 if (i2c->msg_idx < i2c->msg->len) { in i2c_lpc2k_pump_msg()
181 i2c->msg->buf[i2c->msg_idx] = in i2c_lpc2k_pump_msg()
186 if (i2c->msg_idx >= i2c->msg->len - 1 && i2c->is_last) { in i2c_lpc2k_pump_msg()
193 if (i2c->msg_idx >= i2c->msg->len - 1) { in i2c_lpc2k_pump_msg()
202 if (i2c->msg_idx >= i2c->msg->len - 2) { in i2c_lpc2k_pump_msg()
211 i2c->msg_idx++; in i2c_lpc2k_pump_msg()
[all …]
H A Di2c-synquacer.c136 u32 msg_idx; member
151 return i2c->msg_idx >= (i2c->msg_num - 1); in is_lastmsg()
190 i2c->msg_idx++; in synquacer_i2c_stop()
193 i2c->msg_idx = ret; in synquacer_i2c_stop()
329 i2c->msg_idx = 0; in synquacer_i2c_doxfer()
345 ret = i2c->msg_idx; in synquacer_i2c_doxfer()
428 i2c->msg_idx++; in synquacer_i2c_isr()
473 i2c->msg_idx++; in synquacer_i2c_isr()
H A Di2c-qcom-geni.c681 u32 msg_idx; in geni_i2c_gpi() local
685 msg_idx = gi2c_gpi_xfer->msg_idx_cnt; in geni_i2c_gpi()
692 if (op == I2C_WRITE && msgs[msg_idx].flags & I2C_M_RD) { in geni_i2c_gpi()
697 dma_buf = i2c_get_dma_safe_msg_buf(&msgs[msg_idx], 1); in geni_i2c_gpi()
709 msgs[msg_idx].len, map_dirn); in geni_i2c_gpi()
711 i2c_put_dma_safe_msg_buf(dma_buf, &msgs[msg_idx], false); in geni_i2c_gpi()
721 if (msg_idx == gi2c->num_msgs - 1) in geni_i2c_gpi()
728 peripheral->rx_len = msgs[msg_idx].len; in geni_i2c_gpi()
745 desc = dmaengine_prep_slave_single(dma_chan, addr, msgs[msg_idx].len, in geni_i2c_gpi()
750 desc = dmaengine_prep_slave_single(dma_chan, addr, msgs[msg_idx].len, in geni_i2c_gpi()
[all …]
H A Di2c-k1.c149 u32 msg_idx; member
449 struct i2c_msg *cur_msg = i2c->msgs + i2c->msg_idx; in spacemit_i2c_start()
475 if (i2c->msg_idx != i2c->msg_num - 1) in spacemit_i2c_is_last_msg()
666 if (i2c->msg_idx == i2c->msg_num - 1) { in spacemit_i2c_wait_pio_xfer()
698 for (i2c->msg_idx = 0; i2c->msg_idx < i2c->msg_num; i2c->msg_idx++) { in spacemit_i2c_xfer_msg()
699 msg = &i2c->msgs[i2c->msg_idx]; in spacemit_i2c_xfer_msg()
H A Di2c-hix5hd2.c83 unsigned int msg_idx; member
215 data = priv->msg->buf[priv->msg_idx++]; in hix5hd2_write_handle()
232 priv->msg->buf[priv->msg_idx++] = data; in hix5hd2_rw_preprocess()
287 priv->msg->len == priv->msg_idx) || in hix5hd2_i2c_irq()
321 priv->msg_idx = 0; in hix5hd2_i2c_xfer_msg()
/linux/drivers/char/ipmi/
H A Dssif_bmc.c83 int msg_idx; member
496 if (ssif_bmc->msg_idx < 1 || ssif_bmc->msg_idx > MAX_TRANSACTION) in handle_write_received()
499 if (ssif_bmc->msg_idx == 1) { in handle_write_received()
506 ssif_bmc->msg_idx++; in handle_write_received()
597 ssif_bmc->msg_idx = 1; in process_smbus_cmd()
641 ssif_bmc->msg_idx = 0; in on_read_requested_event()
697 ssif_bmc->msg_idx = 0; in on_write_requested_event()
775 ssif_bmc->msg_idx = 0; in on_stop_event()
1074 KUNIT_EXPECT_EQ(test, ssif_bmc->msg_idx, 0); in ssif_bmc_test_stop_during_start_discards_partial_request()
/linux/drivers/input/touchscreen/
H A Dads7846.c835 int msg_idx = 0; in ads7846_halfd_read_state() local
839 while (msg_idx < ts->msg_count) { in ads7846_halfd_read_state()
844 error = spi_sync(ts->spi, &ts->msg[msg_idx]); in ads7846_halfd_read_state()
856 if (msg_idx == ts->msg_count - 1) in ads7846_halfd_read_state()
859 error = ads7846_filter_one(ts, msg_idx); in ads7846_halfd_read_state()
864 msg_idx = ts->msg_count - 1; in ads7846_halfd_read_state()
866 msg_idx++; in ads7846_halfd_read_state()
875 int msg_idx = 0; in ads7846_read_state() local
883 m = &ts->msg[msg_idx]; in ads7846_read_state()