Lines Matching refs:rbufs
303 struct slgt_desc *rbufs; member
540 i, le16_to_cpu(info->rbufs[i].count), le16_to_cpu(info->rbufs[i].status)); in dump_rbufs()
1761 struct slgt_desc *bufs = info->rbufs; in rx_async()
2033 if (desc_complete(info->rbufs[i])) { in isr_rxdata()
2039 info->rbufs[i].buf[count++] = (unsigned char)reg; in isr_rxdata()
2042 info->rbufs[i].buf[count++] = (unsigned char)(reg >> 8); in isr_rxdata()
2045 set_desc_count(info->rbufs[i], count); in isr_rxdata()
2046 set_desc_status(info->rbufs[i], BIT15 | (reg >> 8)); in isr_rxdata()
3277 info->rbufs = (struct slgt_desc*)info->bufs; in alloc_desc()
3288 info->rbufs[i].pdesc = pbufs + (i * sizeof(struct slgt_desc)); in alloc_desc()
3292 info->rbufs[i].next = cpu_to_le32(pbufs); in alloc_desc()
3294 info->rbufs[i].next = cpu_to_le32(pbufs + ((i+1) * sizeof(struct slgt_desc))); in alloc_desc()
3295 set_desc_count(info->rbufs[i], DMABUFSIZE); in alloc_desc()
3318 info->rbufs = NULL; in free_desc()
3354 alloc_bufs(info, info->rbufs, info->rbuf_count) < 0 || in alloc_dma_bufs()
3367 free_bufs(info, info->rbufs, info->rbuf_count); in free_dma_bufs()
3913 wr_reg32(info, RDDAR, info->rbufs[0].pdesc); in rx_start()
4510 info->rbufs[i].status = 0; in free_rbufs()
4511 set_desc_count(info->rbufs[i], info->rbuf_fill_level); in free_rbufs()
4557 if (!desc_complete(info->rbufs[end])) in rx_get_frame()
4561 addr_field = info->rbufs[end].buf[0]; in rx_get_frame()
4563 framesize += desc_count(info->rbufs[end]); in rx_get_frame()
4565 if (desc_eof(info->rbufs[end])) in rx_get_frame()
4590 status = desc_status(info->rbufs[end]); in rx_get_frame()
4620 DBGDATA(info, info->rbufs[start].buf, min_t(int, framesize, info->rbuf_fill_level), "rx"); in rx_get_frame()
4641 memcpy(p, info->rbufs[i].buf, partial_count); in rx_get_frame()
4677 if (!desc_complete(info->rbufs[i])) in rx_get_buf()
4679 count = desc_count(info->rbufs[i]); in rx_get_buf()
4685 if (desc_residue(info->rbufs[i])) in rx_get_buf()
4689 DBGDATA(info, info->rbufs[i].buf, count, "rx"); in rx_get_buf()
4692 ldisc_receive_buf(info->port.tty, info->rbufs[i].buf, in rx_get_buf()
4922 if (desc_complete(info->rbufs[0])) { in loopback_test_rx()
4923 count = desc_count(info->rbufs[0]); in loopback_test_rx()
4924 src = info->rbufs[0].buf; in loopback_test_rx()