Lines Matching refs:rx_desc
1072 struct eqos_desc *rx_desc = &(eqos->rx_descs[i]); in eqos_start() local
1073 rx_desc->des0 = (u32)(ulong)(eqos->rx_dma_buf + in eqos_start()
1075 rx_desc->des3 |= EQOS_DESC3_OWN | EQOS_DESC3_BUF1V; in eqos_start()
1225 struct eqos_desc *rx_desc; in eqos_recv() local
1230 rx_desc = &(eqos->rx_descs[eqos->rx_desc_idx]); in eqos_recv()
1231 if (rx_desc->des3 & EQOS_DESC3_OWN) { in eqos_recv()
1238 length = rx_desc->des3 & 0x7fff; in eqos_recv()
1250 struct eqos_desc *rx_desc; in eqos_free_pkt() local
1262 rx_desc = &(eqos->rx_descs[eqos->rx_desc_idx]); in eqos_free_pkt()
1263 rx_desc->des0 = (u32)(ulong)packet; in eqos_free_pkt()
1264 rx_desc->des1 = 0; in eqos_free_pkt()
1265 rx_desc->des2 = 0; in eqos_free_pkt()
1271 rx_desc->des3 |= EQOS_DESC3_OWN | EQOS_DESC3_BUF1V; in eqos_free_pkt()
1272 eqos_flush_desc(rx_desc); in eqos_free_pkt()
1274 writel((ulong)rx_desc, &eqos->dma_regs->ch0_rxdesc_tail_pointer); in eqos_free_pkt()