Home
last modified time | relevance | path

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

/drivers/i2c/busses/
Di2c-synquacer.c136 u32 msg_ptr; member
156 return i2c->msg_ptr == (i2c->msg->len - 1); in is_msglast()
161 return i2c->msg_ptr >= i2c->msg->len; in is_msgend()
188 i2c->msg_ptr = 0; in synquacer_i2c_stop()
328 i2c->msg_ptr = 0; in synquacer_i2c_doxfer()
411 writeb(i2c->msg->buf[i2c->msg_ptr++], in synquacer_i2c_isr()
427 i2c->msg_ptr = 0; in synquacer_i2c_isr()
444 i2c->msg->buf[i2c->msg_ptr++] = byte; in synquacer_i2c_isr()
472 i2c->msg_ptr = 0; in synquacer_i2c_isr()
Di2c-owl.c103 u32 msg_ptr; member
198 OWL_I2C_FIFOSTAT_RFE) && i2c_dev->msg_ptr < msg->len) { in owl_i2c_xfer_data()
199 msg->buf[i2c_dev->msg_ptr++] = readl(i2c_dev->base + in owl_i2c_xfer_data()
205 OWL_I2C_FIFOSTAT_TFF) && i2c_dev->msg_ptr < msg->len) { in owl_i2c_xfer_data()
206 writel(msg->buf[i2c_dev->msg_ptr++], in owl_i2c_xfer_data()
334 i2c_dev->msg_ptr = 0; in owl_i2c_xfer_common()
354 i2c_dev->msg_ptr = idx; in owl_i2c_xfer_common()
Di2c-pxa.c230 unsigned int msg_ptr; member
369 i2c->msg_num, i2c->msg_idx, i2c->msg_ptr); in i2c_pxa_scream_blue_murder()
852 i2c->msg_ptr = 0; in i2c_pxa_master_complete()
897 if (i2c->msg_ptr == 0 && i2c->msg_idx == 0) in i2c_pxa_irq_txempty()
908 if (i2c->msg_ptr == i2c->msg->len - 1 && in i2c_pxa_irq_txempty()
913 } else if (i2c->msg_ptr < i2c->msg->len) { in i2c_pxa_irq_txempty()
917 writel(i2c->msg->buf[i2c->msg_ptr++], _IDBR(i2c)); in i2c_pxa_irq_txempty()
925 if ((i2c->msg_ptr == i2c->msg->len) && in i2c_pxa_irq_txempty()
934 i2c->msg_ptr = 0; in i2c_pxa_irq_txempty()
976 i2c->msg->buf[i2c->msg_ptr++] = readl(_IDBR(i2c)); in i2c_pxa_irq_rxfull()
[all …]
Di2c-s3c2410.c102 unsigned int msg_ptr; member
170 i2c->msg_ptr = 0; in s3c24xx_i2c_master_complete()
365 return i2c->msg_ptr == i2c->msg->len-1; in is_msglast()
373 return i2c->msg_ptr >= i2c->msg->len; in is_msgend()
448 byte = i2c->msg->buf[i2c->msg_ptr++]; in i2c_s3c_irq_nextbyte()
465 i2c->msg_ptr = 0; in i2c_s3c_irq_nextbyte()
504 i2c->msg->buf[i2c->msg_ptr++] = byte; in i2c_s3c_irq_nextbyte()
530 i2c->msg_ptr = 0; in i2c_s3c_irq_nextbyte()
700 i2c->msg_ptr = 0; in s3c24xx_i2c_doxfer()
Di2c-exynos5.c178 unsigned int msg_ptr; member
517 len = min(fifo_level, i2c->msg->len - i2c->msg_ptr); in exynos5_i2c_irq()
522 i2c->msg->buf[i2c->msg_ptr++] = byte; in exynos5_i2c_irq()
531 if (len > (i2c->msg->len - i2c->msg_ptr)) { in exynos5_i2c_irq()
536 len = i2c->msg->len - i2c->msg_ptr; in exynos5_i2c_irq()
540 byte = i2c->msg->buf[i2c->msg_ptr++]; in exynos5_i2c_irq()
548 if ((i2c->trans_done && (i2c->msg->len == i2c->msg_ptr)) || in exynos5_i2c_irq()
721 i2c->msg_ptr = 0; in exynos5_i2c_xfer_msg()
/drivers/net/can/usb/peak_usb/
Dpcan_usb_fd.c722 u8 *msg_ptr, *msg_end; in pcan_usb_fd_decode_buf() local
726 msg_ptr = urb->transfer_buffer; in pcan_usb_fd_decode_buf()
728 for (; msg_ptr < msg_end;) { in pcan_usb_fd_decode_buf()
731 rx_msg = (struct pucan_msg *)msg_ptr; in pcan_usb_fd_decode_buf()
741 if (msg_ptr + rx_msg_size > msg_end) { in pcan_usb_fd_decode_buf()
784 msg_ptr += rx_msg_size; in pcan_usb_fd_decode_buf()
/drivers/net/can/peak_canfd/
Dpeak_canfd.c486 void *msg_ptr = msg_list; in peak_canfd_handle_msgs_list() local
490 msg_size = peak_canfd_handle_msg(priv, msg_ptr); in peak_canfd_handle_msgs_list()
496 msg_ptr += ALIGN(msg_size, 4); in peak_canfd_handle_msgs_list()