Home
last modified time | relevance | path

Searched refs:CTUCAN_RCV_BUF_LEN (Results 1 – 2 of 2) sorted by relevance

/openbmc/qemu/hw/net/can/
H A Dctucan_core.h46 #define CTUCAN_RCV_BUF_LEN (1024 * 8) macro
97 uint8_t rx_buff[CTUCAN_RCV_BUF_LEN]; /* 32~95 .. 64bytes Rx FIFO */
H A Dctucan_core.c446 s->rx_mem_info.s.rx_buff_size = CTUCAN_RCV_BUF_LEN >> 2; in ctucan_mem_read()
447 s->rx_mem_info.s.rx_mem_free = (CTUCAN_RCV_BUF_LEN - in ctucan_mem_read()
454 rx_head_pos %= CTUCAN_RCV_BUF_LEN; in ctucan_mem_read()
467 if (((s->rx_cnt + 3) & ~3) == CTUCAN_RCV_BUF_LEN) { in ctucan_mem_read()
493 s->rx_tail_pos = (s->rx_tail_pos + 4) % CTUCAN_RCV_BUF_LEN; in ctucan_mem_read()
551 if (s->rx_cnt + ret > CTUCAN_RCV_BUF_LEN) { /* Data overrun. */ in ctucan_receive()
562 if (((s->rx_cnt + 3) & ~3) == CTUCAN_RCV_BUF_LEN) { in ctucan_receive()
569 s->rx_buff[(s->rx_tail_pos + s->rx_cnt) % CTUCAN_RCV_BUF_LEN] = rcv[i]; in ctucan_receive()