Home
last modified time | relevance | path

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

/linux/drivers/net/can/softing/
H A Dsofting_main.c59 uint8_t fifo_wr, fifo_rd; in softing_netdev_start_xmit() local
74 fifo_rd = ioread8(&card->dpram[DPRAM_TX_RD]); in softing_netdev_start_xmit()
75 if (fifo_wr == fifo_rd) in softing_netdev_start_xmit()
157 uint8_t fifo_rd, fifo_wr, cmd; in softing_handle_1() local
192 fifo_rd = ioread8(&card->dpram[DPRAM_RX_RD]); in softing_handle_1()
195 if (++fifo_rd >= DPRAM_RX_CNT) in softing_handle_1()
196 fifo_rd = 0; in softing_handle_1()
197 if (fifo_wr == fifo_rd) in softing_handle_1()
200 memcpy_fromio(buf, &card->dpram[DPRAM_RX + DPRAM_RX_SIZE*fifo_rd], in softing_handle_1()
204 iowrite8(fifo_rd, &card->dpram[DPRAM_RX_RD]); in softing_handle_1()