Home
last modified time | relevance | path

Searched refs:i2c (Results 1 – 25 of 5203) sorted by relevance

12345678910>>...209

/dports/multimedia/v4l_compat/linux-5.13-rc2/drivers/i2c/busses/
H A Di2c-pxa.c269 #define _IBMR(i2c) ((i2c)->reg_ibmr) argument
270 #define _IDBR(i2c) ((i2c)->reg_idbr) argument
271 #define _ICR(i2c) ((i2c)->reg_icr) argument
272 #define _ISR(i2c) ((i2c)->reg_isr) argument
353 readl(_ISR(i2c)), readl(_ICR(i2c)), readl(_IBMR(i2c))); in i2c_pxa_show_state()
366 i2c->msg_num, i2c->msg_idx, i2c->msg_ptr); in i2c_pxa_scream_blue_murder()
368 readl(_IBMR(i2c)), readl(_IDBR(i2c)), readl(_ICR(i2c)), in i2c_pxa_scream_blue_murder()
578 writel(readl(_ICR(i2c)) | (i2c->high_mode ? i2c->hs_mask : 0), _ICR(i2c)); in i2c_pxa_do_reset()
914 writel(i2c->msg->buf[i2c->msg_ptr++], _IDBR(i2c)); in i2c_pxa_irq_txempty()
973 i2c->msg->buf[i2c->msg_ptr++] = readl(_IDBR(i2c)); in i2c_pxa_irq_rxfull()
[all …]
H A Di2c-xiic.c170 #define xiic_tx_space(i2c) ((i2c)->tx_msg->len - (i2c)->tx_pos) argument
171 #define xiic_rx_space(i2c) ((i2c)->rx_msg->len - (i2c)->rx_pos) argument
329 i2c->rx_msg->buf[i2c->rx_pos++] = in xiic_read_rx()
354 u16 data = i2c->tx_msg->buf[i2c->tx_pos++]; in xiic_fill_tx_fifo()
393 i2c->tx_msg, i2c->nmsgs); in xiic_process()
466 if ((i2c->nmsgs == 1) && !i2c->rx_msg && in xiic_process()
502 } else if (!xiic_tx_space(i2c) && (i2c->nmsgs == 1)) in xiic_process()
556 struct i2c_msg *msg = i2c->rx_msg = i2c->tx_msg; in xiic_start_recv()
682 if (i2c->nmsgs > 1 || xiic_tx_space(i2c)) in __xiic_start_xfer()
776 if (!i2c) in xiic_i2c_probe()
[all …]
H A Di2c-s3c2410.c279 while ((i2c->msg_num != 0) && is_ack(i2c)) { in s3c24xx_i2c_message_start()
354 return i2c->msg_idx >= (i2c->msg_num - 1); in is_lastmsg()
370 return i2c->msg_ptr == i2c->msg->len-1; in is_msglast()
378 return i2c->msg_ptr >= i2c->msg->len; in is_msgend()
423 if (is_lastmsg(i2c) && i2c->msg->len == 0) { in i2c_s3c_irq_nextbyte()
453 byte = i2c->msg->buf[i2c->msg_ptr++]; in i2c_s3c_irq_nextbyte()
489 s3c24xx_i2c_message_start(i2c, i2c->msg); in i2c_s3c_irq_nextbyte()
506 i2c->msg->buf[i2c->msg_ptr++] = byte; in i2c_s3c_irq_nextbyte()
897 delta_f = clk_get_rate(i2c->clk) - i2c->clkrate; in s3c24xx_i2c_cpufreq_transition()
1106 i2c->adap.algo_data = i2c; in s3c24xx_i2c_probe()
[all …]
H A Di2c-jz4780.c467 *(i2c->rbuf++) = jz4780_i2c_readw(i2c, JZ4780_I2C_DC) in jz4780_i2c_irq()
470 if (i2c->rd_data_xfered == i2c->rd_total_len) { in jz4780_i2c_irq()
476 rd_left = i2c->rd_total_len - i2c->rd_data_xfered; in jz4780_i2c_irq()
484 int cmd_left = i2c->rd_total_len - i2c->rd_cmd_xfered; in jz4780_i2c_irq()
528 if ((i2c->wt_len == 1) && (!i2c->stop_hold) && in jz4780_i2c_irq()
537 if ((!i2c->stop_hold) && (i2c->cdata->version < in jz4780_i2c_irq()
560 src, i2c->cmd, i2c->cmd_buf[i2c->cmd], i2c->data_buf[i2c->cmd]); in jz4780_i2c_txabrt()
609 i2c->cmd, i2c->cmd_buf[i2c->cmd]); in jz4780_i2c_xfer_read()
611 i2c->cmd, i2c->data_buf[i2c->cmd]); in jz4780_i2c_xfer_read()
769 if (!i2c) in jz4780_i2c_probe()
[all …]
H A Di2c-digicolor.c99 dc_i2c_write_byte(i2c, i2c->msg->buf[i2c->msgbuf_ptr++]); in dc_i2c_write_buf()
104 bool last = (i2c->msgbuf_ptr + 1 == i2c->msg->len); in dc_i2c_next_read()
112 if (i2c->last) in dc_i2c_stop()
125 i2c->msg->buf[i2c->msgbuf_ptr++] = dc_i2c_read_byte(i2c); in dc_i2c_read_buf()
191 if (i2c->msgbuf_ptr < i2c->msg->len) in dc_i2c_irq()
197 if (i2c->msgbuf_ptr < i2c->msg->len) in dc_i2c_irq()
220 i2c->msg = msg; in dc_i2c_xfer_msg()
223 i2c->error = 0; in dc_i2c_xfer_msg()
237 if (i2c->error) in dc_i2c_xfer_msg()
295 if (!i2c) in dc_i2c_probe()
[all …]
H A Di2c-img-scb.c637 img_i2c_atomic_op(i2c, i2c->at_cur_cmd, i2c->at_cur_data); in img_i2c_raw_atomic_delay_handler()
671 if (!i2c->at_slave_event || !i2c->at_t_done) in img_i2c_sequence()
744 if (!i2c->at_slave_event || !i2c->at_t_done) in img_i2c_atomic()
784 *i2c->msg.buf = (i2c->line_status & in img_i2c_atomic()
874 img_i2c_transaction_halt(i2c, !i2c->last_msg); in img_i2c_auto()
908 img_i2c_transaction_halt(i2c, !i2c->last_msg); in img_i2c_auto()
1103 img_i2c_transaction_halt(i2c, !i2c->last_msg); in img_i2c_xfer()
1119 img_i2c_transaction_halt(i2c, !i2c->last_msg); in img_i2c_xfer()
1140 return i2c->msg_status ? i2c->msg_status : num; in img_i2c_xfer()
1337 if (!i2c) in img_i2c_probe()
[all …]
H A Di2c-ocores.c91 iowrite8(value, i2c->base + (reg << i2c->reg_shift)); in oc_setreg_8()
96 iowrite16(value, i2c->base + (reg << i2c->reg_shift)); in oc_setreg_16()
116 return ioread8(i2c->base + (reg << i2c->reg_shift)); in oc_getreg_8()
121 return ioread16(i2c->base + (reg << i2c->reg_shift)); in oc_getreg_16()
151 i2c->setreg(i2c, reg, value); in oc_setreg()
156 return i2c->getreg(i2c, reg); in oc_getreg()
194 msg->buf[i2c->pos++] = oc_getreg(i2c, OCI2C_DATA); in ocores_process()
228 oc_setreg(i2c, OCI2C_DATA, msg->buf[i2c->pos++]); in ocores_process()
434 i2c->ip_clock_khz, i2c->bus_clock_khz); in ocores_init()
655 if (!i2c->setreg || !i2c->getreg) { in ocores_i2c_probe()
[all …]
H A Di2c-synquacer.c151 return i2c->msg_idx >= (i2c->msg_num - 1); in is_lastmsg()
156 return i2c->msg_ptr == (i2c->msg->len - 1); in is_msglast()
161 return i2c->msg_ptr >= i2c->msg->len; in is_msgend()
332 ret = synquacer_i2c_master_start(i2c, i2c->msg); in synquacer_i2c_doxfer()
394 if (is_lastmsg(i2c) && i2c->msg->len == 0) { in synquacer_i2c_isr()
411 writeb(i2c->msg->buf[i2c->msg_ptr++], in synquacer_i2c_isr()
432 ret = synquacer_i2c_master_start(i2c, i2c->msg); in synquacer_i2c_isr()
444 i2c->msg->buf[i2c->msg_ptr++] = byte; in synquacer_i2c_isr()
476 ret = synquacer_i2c_master_start(i2c, i2c->msg); in synquacer_i2c_isr()
565 i2c->pclkrate = clk_get_rate(i2c->pclk); in synquacer_i2c_probe()
[all …]
/dports/multimedia/libv4l/linux-5.13-rc2/drivers/i2c/busses/
H A Di2c-pxa.c269 #define _IBMR(i2c) ((i2c)->reg_ibmr) argument
270 #define _IDBR(i2c) ((i2c)->reg_idbr) argument
271 #define _ICR(i2c) ((i2c)->reg_icr) argument
272 #define _ISR(i2c) ((i2c)->reg_isr) argument
353 readl(_ISR(i2c)), readl(_ICR(i2c)), readl(_IBMR(i2c))); in i2c_pxa_show_state()
366 i2c->msg_num, i2c->msg_idx, i2c->msg_ptr); in i2c_pxa_scream_blue_murder()
368 readl(_IBMR(i2c)), readl(_IDBR(i2c)), readl(_ICR(i2c)), in i2c_pxa_scream_blue_murder()
578 writel(readl(_ICR(i2c)) | (i2c->high_mode ? i2c->hs_mask : 0), _ICR(i2c)); in i2c_pxa_do_reset()
914 writel(i2c->msg->buf[i2c->msg_ptr++], _IDBR(i2c)); in i2c_pxa_irq_txempty()
973 i2c->msg->buf[i2c->msg_ptr++] = readl(_IDBR(i2c)); in i2c_pxa_irq_rxfull()
[all …]
H A Di2c-xiic.c170 #define xiic_tx_space(i2c) ((i2c)->tx_msg->len - (i2c)->tx_pos) argument
171 #define xiic_rx_space(i2c) ((i2c)->rx_msg->len - (i2c)->rx_pos) argument
329 i2c->rx_msg->buf[i2c->rx_pos++] = in xiic_read_rx()
354 u16 data = i2c->tx_msg->buf[i2c->tx_pos++]; in xiic_fill_tx_fifo()
393 i2c->tx_msg, i2c->nmsgs); in xiic_process()
466 if ((i2c->nmsgs == 1) && !i2c->rx_msg && in xiic_process()
502 } else if (!xiic_tx_space(i2c) && (i2c->nmsgs == 1)) in xiic_process()
556 struct i2c_msg *msg = i2c->rx_msg = i2c->tx_msg; in xiic_start_recv()
682 if (i2c->nmsgs > 1 || xiic_tx_space(i2c)) in __xiic_start_xfer()
776 if (!i2c) in xiic_i2c_probe()
[all …]
H A Di2c-s3c2410.c279 while ((i2c->msg_num != 0) && is_ack(i2c)) { in s3c24xx_i2c_message_start()
354 return i2c->msg_idx >= (i2c->msg_num - 1); in is_lastmsg()
370 return i2c->msg_ptr == i2c->msg->len-1; in is_msglast()
378 return i2c->msg_ptr >= i2c->msg->len; in is_msgend()
423 if (is_lastmsg(i2c) && i2c->msg->len == 0) { in i2c_s3c_irq_nextbyte()
453 byte = i2c->msg->buf[i2c->msg_ptr++]; in i2c_s3c_irq_nextbyte()
489 s3c24xx_i2c_message_start(i2c, i2c->msg); in i2c_s3c_irq_nextbyte()
506 i2c->msg->buf[i2c->msg_ptr++] = byte; in i2c_s3c_irq_nextbyte()
897 delta_f = clk_get_rate(i2c->clk) - i2c->clkrate; in s3c24xx_i2c_cpufreq_transition()
1106 i2c->adap.algo_data = i2c; in s3c24xx_i2c_probe()
[all …]
H A Di2c-jz4780.c467 *(i2c->rbuf++) = jz4780_i2c_readw(i2c, JZ4780_I2C_DC) in jz4780_i2c_irq()
470 if (i2c->rd_data_xfered == i2c->rd_total_len) { in jz4780_i2c_irq()
476 rd_left = i2c->rd_total_len - i2c->rd_data_xfered; in jz4780_i2c_irq()
484 int cmd_left = i2c->rd_total_len - i2c->rd_cmd_xfered; in jz4780_i2c_irq()
528 if ((i2c->wt_len == 1) && (!i2c->stop_hold) && in jz4780_i2c_irq()
537 if ((!i2c->stop_hold) && (i2c->cdata->version < in jz4780_i2c_irq()
560 src, i2c->cmd, i2c->cmd_buf[i2c->cmd], i2c->data_buf[i2c->cmd]); in jz4780_i2c_txabrt()
609 i2c->cmd, i2c->cmd_buf[i2c->cmd]); in jz4780_i2c_xfer_read()
611 i2c->cmd, i2c->data_buf[i2c->cmd]); in jz4780_i2c_xfer_read()
769 if (!i2c) in jz4780_i2c_probe()
[all …]
H A Di2c-digicolor.c99 dc_i2c_write_byte(i2c, i2c->msg->buf[i2c->msgbuf_ptr++]); in dc_i2c_write_buf()
104 bool last = (i2c->msgbuf_ptr + 1 == i2c->msg->len); in dc_i2c_next_read()
112 if (i2c->last) in dc_i2c_stop()
125 i2c->msg->buf[i2c->msgbuf_ptr++] = dc_i2c_read_byte(i2c); in dc_i2c_read_buf()
191 if (i2c->msgbuf_ptr < i2c->msg->len) in dc_i2c_irq()
197 if (i2c->msgbuf_ptr < i2c->msg->len) in dc_i2c_irq()
220 i2c->msg = msg; in dc_i2c_xfer_msg()
223 i2c->error = 0; in dc_i2c_xfer_msg()
237 if (i2c->error) in dc_i2c_xfer_msg()
295 if (!i2c) in dc_i2c_probe()
[all …]
H A Di2c-img-scb.c637 img_i2c_atomic_op(i2c, i2c->at_cur_cmd, i2c->at_cur_data); in img_i2c_raw_atomic_delay_handler()
671 if (!i2c->at_slave_event || !i2c->at_t_done) in img_i2c_sequence()
744 if (!i2c->at_slave_event || !i2c->at_t_done) in img_i2c_atomic()
784 *i2c->msg.buf = (i2c->line_status & in img_i2c_atomic()
874 img_i2c_transaction_halt(i2c, !i2c->last_msg); in img_i2c_auto()
908 img_i2c_transaction_halt(i2c, !i2c->last_msg); in img_i2c_auto()
1103 img_i2c_transaction_halt(i2c, !i2c->last_msg); in img_i2c_xfer()
1119 img_i2c_transaction_halt(i2c, !i2c->last_msg); in img_i2c_xfer()
1140 return i2c->msg_status ? i2c->msg_status : num; in img_i2c_xfer()
1337 if (!i2c) in img_i2c_probe()
[all …]
H A Di2c-ocores.c91 iowrite8(value, i2c->base + (reg << i2c->reg_shift)); in oc_setreg_8()
96 iowrite16(value, i2c->base + (reg << i2c->reg_shift)); in oc_setreg_16()
116 return ioread8(i2c->base + (reg << i2c->reg_shift)); in oc_getreg_8()
121 return ioread16(i2c->base + (reg << i2c->reg_shift)); in oc_getreg_16()
151 i2c->setreg(i2c, reg, value); in oc_setreg()
156 return i2c->getreg(i2c, reg); in oc_getreg()
194 msg->buf[i2c->pos++] = oc_getreg(i2c, OCI2C_DATA); in ocores_process()
228 oc_setreg(i2c, OCI2C_DATA, msg->buf[i2c->pos++]); in ocores_process()
434 i2c->ip_clock_khz, i2c->bus_clock_khz); in ocores_init()
655 if (!i2c->setreg || !i2c->getreg) { in ocores_i2c_probe()
[all …]
H A Di2c-synquacer.c151 return i2c->msg_idx >= (i2c->msg_num - 1); in is_lastmsg()
156 return i2c->msg_ptr == (i2c->msg->len - 1); in is_msglast()
161 return i2c->msg_ptr >= i2c->msg->len; in is_msgend()
332 ret = synquacer_i2c_master_start(i2c, i2c->msg); in synquacer_i2c_doxfer()
394 if (is_lastmsg(i2c) && i2c->msg->len == 0) { in synquacer_i2c_isr()
411 writeb(i2c->msg->buf[i2c->msg_ptr++], in synquacer_i2c_isr()
432 ret = synquacer_i2c_master_start(i2c, i2c->msg); in synquacer_i2c_isr()
444 i2c->msg->buf[i2c->msg_ptr++] = byte; in synquacer_i2c_isr()
476 ret = synquacer_i2c_master_start(i2c, i2c->msg); in synquacer_i2c_isr()
565 i2c->pclkrate = clk_get_rate(i2c->pclk); in synquacer_i2c_probe()
[all …]
/dports/multimedia/v4l-utils/linux-5.13-rc2/drivers/i2c/busses/
H A Di2c-pxa.c269 #define _IBMR(i2c) ((i2c)->reg_ibmr) argument
270 #define _IDBR(i2c) ((i2c)->reg_idbr) argument
271 #define _ICR(i2c) ((i2c)->reg_icr) argument
272 #define _ISR(i2c) ((i2c)->reg_isr) argument
353 readl(_ISR(i2c)), readl(_ICR(i2c)), readl(_IBMR(i2c))); in i2c_pxa_show_state()
366 i2c->msg_num, i2c->msg_idx, i2c->msg_ptr); in i2c_pxa_scream_blue_murder()
368 readl(_IBMR(i2c)), readl(_IDBR(i2c)), readl(_ICR(i2c)), in i2c_pxa_scream_blue_murder()
578 writel(readl(_ICR(i2c)) | (i2c->high_mode ? i2c->hs_mask : 0), _ICR(i2c)); in i2c_pxa_do_reset()
914 writel(i2c->msg->buf[i2c->msg_ptr++], _IDBR(i2c)); in i2c_pxa_irq_txempty()
973 i2c->msg->buf[i2c->msg_ptr++] = readl(_IDBR(i2c)); in i2c_pxa_irq_rxfull()
[all …]
H A Di2c-xiic.c170 #define xiic_tx_space(i2c) ((i2c)->tx_msg->len - (i2c)->tx_pos) argument
171 #define xiic_rx_space(i2c) ((i2c)->rx_msg->len - (i2c)->rx_pos) argument
329 i2c->rx_msg->buf[i2c->rx_pos++] = in xiic_read_rx()
354 u16 data = i2c->tx_msg->buf[i2c->tx_pos++]; in xiic_fill_tx_fifo()
393 i2c->tx_msg, i2c->nmsgs); in xiic_process()
466 if ((i2c->nmsgs == 1) && !i2c->rx_msg && in xiic_process()
502 } else if (!xiic_tx_space(i2c) && (i2c->nmsgs == 1)) in xiic_process()
556 struct i2c_msg *msg = i2c->rx_msg = i2c->tx_msg; in xiic_start_recv()
682 if (i2c->nmsgs > 1 || xiic_tx_space(i2c)) in __xiic_start_xfer()
776 if (!i2c) in xiic_i2c_probe()
[all …]
H A Di2c-s3c2410.c279 while ((i2c->msg_num != 0) && is_ack(i2c)) { in s3c24xx_i2c_message_start()
354 return i2c->msg_idx >= (i2c->msg_num - 1); in is_lastmsg()
370 return i2c->msg_ptr == i2c->msg->len-1; in is_msglast()
378 return i2c->msg_ptr >= i2c->msg->len; in is_msgend()
423 if (is_lastmsg(i2c) && i2c->msg->len == 0) { in i2c_s3c_irq_nextbyte()
453 byte = i2c->msg->buf[i2c->msg_ptr++]; in i2c_s3c_irq_nextbyte()
489 s3c24xx_i2c_message_start(i2c, i2c->msg); in i2c_s3c_irq_nextbyte()
506 i2c->msg->buf[i2c->msg_ptr++] = byte; in i2c_s3c_irq_nextbyte()
897 delta_f = clk_get_rate(i2c->clk) - i2c->clkrate; in s3c24xx_i2c_cpufreq_transition()
1106 i2c->adap.algo_data = i2c; in s3c24xx_i2c_probe()
[all …]
H A Di2c-jz4780.c467 *(i2c->rbuf++) = jz4780_i2c_readw(i2c, JZ4780_I2C_DC) in jz4780_i2c_irq()
470 if (i2c->rd_data_xfered == i2c->rd_total_len) { in jz4780_i2c_irq()
476 rd_left = i2c->rd_total_len - i2c->rd_data_xfered; in jz4780_i2c_irq()
484 int cmd_left = i2c->rd_total_len - i2c->rd_cmd_xfered; in jz4780_i2c_irq()
528 if ((i2c->wt_len == 1) && (!i2c->stop_hold) && in jz4780_i2c_irq()
537 if ((!i2c->stop_hold) && (i2c->cdata->version < in jz4780_i2c_irq()
560 src, i2c->cmd, i2c->cmd_buf[i2c->cmd], i2c->data_buf[i2c->cmd]); in jz4780_i2c_txabrt()
609 i2c->cmd, i2c->cmd_buf[i2c->cmd]); in jz4780_i2c_xfer_read()
611 i2c->cmd, i2c->data_buf[i2c->cmd]); in jz4780_i2c_xfer_read()
769 if (!i2c) in jz4780_i2c_probe()
[all …]
H A Di2c-digicolor.c99 dc_i2c_write_byte(i2c, i2c->msg->buf[i2c->msgbuf_ptr++]); in dc_i2c_write_buf()
104 bool last = (i2c->msgbuf_ptr + 1 == i2c->msg->len); in dc_i2c_next_read()
112 if (i2c->last) in dc_i2c_stop()
125 i2c->msg->buf[i2c->msgbuf_ptr++] = dc_i2c_read_byte(i2c); in dc_i2c_read_buf()
191 if (i2c->msgbuf_ptr < i2c->msg->len) in dc_i2c_irq()
197 if (i2c->msgbuf_ptr < i2c->msg->len) in dc_i2c_irq()
220 i2c->msg = msg; in dc_i2c_xfer_msg()
223 i2c->error = 0; in dc_i2c_xfer_msg()
237 if (i2c->error) in dc_i2c_xfer_msg()
295 if (!i2c) in dc_i2c_probe()
[all …]
H A Di2c-img-scb.c637 img_i2c_atomic_op(i2c, i2c->at_cur_cmd, i2c->at_cur_data); in img_i2c_raw_atomic_delay_handler()
671 if (!i2c->at_slave_event || !i2c->at_t_done) in img_i2c_sequence()
744 if (!i2c->at_slave_event || !i2c->at_t_done) in img_i2c_atomic()
784 *i2c->msg.buf = (i2c->line_status & in img_i2c_atomic()
874 img_i2c_transaction_halt(i2c, !i2c->last_msg); in img_i2c_auto()
908 img_i2c_transaction_halt(i2c, !i2c->last_msg); in img_i2c_auto()
1103 img_i2c_transaction_halt(i2c, !i2c->last_msg); in img_i2c_xfer()
1119 img_i2c_transaction_halt(i2c, !i2c->last_msg); in img_i2c_xfer()
1140 return i2c->msg_status ? i2c->msg_status : num; in img_i2c_xfer()
1337 if (!i2c) in img_i2c_probe()
[all …]
H A Di2c-ocores.c91 iowrite8(value, i2c->base + (reg << i2c->reg_shift)); in oc_setreg_8()
96 iowrite16(value, i2c->base + (reg << i2c->reg_shift)); in oc_setreg_16()
116 return ioread8(i2c->base + (reg << i2c->reg_shift)); in oc_getreg_8()
121 return ioread16(i2c->base + (reg << i2c->reg_shift)); in oc_getreg_16()
151 i2c->setreg(i2c, reg, value); in oc_setreg()
156 return i2c->getreg(i2c, reg); in oc_getreg()
194 msg->buf[i2c->pos++] = oc_getreg(i2c, OCI2C_DATA); in ocores_process()
228 oc_setreg(i2c, OCI2C_DATA, msg->buf[i2c->pos++]); in ocores_process()
434 i2c->ip_clock_khz, i2c->bus_clock_khz); in ocores_init()
655 if (!i2c->setreg || !i2c->getreg) { in ocores_i2c_probe()
[all …]
H A Di2c-synquacer.c151 return i2c->msg_idx >= (i2c->msg_num - 1); in is_lastmsg()
156 return i2c->msg_ptr == (i2c->msg->len - 1); in is_msglast()
161 return i2c->msg_ptr >= i2c->msg->len; in is_msgend()
332 ret = synquacer_i2c_master_start(i2c, i2c->msg); in synquacer_i2c_doxfer()
394 if (is_lastmsg(i2c) && i2c->msg->len == 0) { in synquacer_i2c_isr()
411 writeb(i2c->msg->buf[i2c->msg_ptr++], in synquacer_i2c_isr()
432 ret = synquacer_i2c_master_start(i2c, i2c->msg); in synquacer_i2c_isr()
444 i2c->msg->buf[i2c->msg_ptr++] = byte; in synquacer_i2c_isr()
476 ret = synquacer_i2c_master_start(i2c, i2c->msg); in synquacer_i2c_isr()
565 i2c->pclkrate = clk_get_rate(i2c->pclk); in synquacer_i2c_probe()
[all …]
/dports/devel/tinygo/tinygo-0.14.1/lib/CMSIS/CMSIS/Pack/Example/CMSIS_Driver/
H A DI2C_LPC18xx.c301 if (i2c->ctrl->status.busy || (i2c->ctrl->stalled & I2C_SLAVE)) { in I2Cx_MasterTransmit()
322 i2c->reg->CONSET = I2C_CON_STA | i2c->ctrl->con_aa; in I2Cx_MasterTransmit()
381 i2c->reg->CONSET = I2C_CON_STA | i2c->ctrl->con_aa; in I2Cx_MasterReceive()
536 i2c->reg->SCLL = clk - i2c->reg->SCLH; in I2Cx_Control()
614 i2c->reg->DAT = i2c->ctrl->sla_rw; in I2Cx_MasterHandler()
632 i2c->reg->DAT = i2c->ctrl->data[0]; in I2Cx_MasterHandler()
643 i2c->reg->DAT = i2c->ctrl->data[i2c->ctrl->cnt]; in I2Cx_MasterHandler()
673 i2c->ctrl->data[i2c->ctrl->cnt++] = i2c->reg->DAT; in I2Cx_MasterHandler()
684 i2c->ctrl->data[i2c->ctrl->cnt++] = i2c->reg->DAT; in I2Cx_MasterHandler()
757 i2c->ctrl->sdata[i2c->ctrl->cnt++] = i2c->reg->DAT; in I2Cx_SlaveHandler()
[all …]

12345678910>>...209