Lines Matching defs:ptdescr
101 volatile pcsca_bd_t __iomem *ptdescr = (card->hw.rambase
104 for (i = 0; i < N_DMA_TX_BUF; i++, ptdescr++) {
105 cpc_writel(&ptdescr->next, (u32)(DMA_TX_BD_BASE +
107 cpc_writel(&ptdescr->ptbuf,
116 volatile pcsca_bd_t __iomem *ptdescr = (card->hw.rambase
119 for (i = 0; i < N_DMA_TX_BUF; i++, ptdescr++) {
120 memset_io(ptdescr, 0, sizeof(pcsca_bd_t));
121 cpc_writew(&ptdescr->len, 0);
122 cpc_writeb(&ptdescr->status, DST_OSB);
131 volatile pcsca_bd_t __iomem *ptdescr = (card->hw.rambase
134 for (i = 0; i < N_DMA_RX_BUF; i++, ptdescr++) {
135 cpc_writel(&ptdescr->next, (u32)(DMA_RX_BD_BASE +
137 cpc_writel(&ptdescr->ptbuf,
146 volatile pcsca_bd_t __iomem *ptdescr = (card->hw.rambase
149 for (i = 0; i < N_DMA_RX_BUF; i++, ptdescr++) {
150 memset_io(ptdescr, 0, sizeof(pcsca_bd_t));
151 cpc_writew(&ptdescr->len, 0);
152 cpc_writeb(&ptdescr->status, 0);
159 volatile pcsca_bd_t __iomem *ptdescr;
168 ptdescr = (card->hw.rambase + TX_BD_ADDR(ch, first_bd));
171 ptdescr = (card->hw.rambase + TX_BD_ADDR(ch, i))) {
173 ch, i, cpc_readl(&ptdescr->next),
174 cpc_readl(&ptdescr->ptbuf),
175 cpc_readb(&ptdescr->status), cpc_readw(&ptdescr->len));
184 volatile pcsca_bd_t __iomem *ptdescr;
198 ptdescr = (card->hw.rambase + TX_BD_ADDR(ch, i));
200 ch, i, cpc_readl(&ptdescr->next),
201 cpc_readl(&ptdescr->ptbuf),
202 cpc_readb(&ptdescr->status), cpc_readw(&ptdescr->len));
210 volatile pcsca_bd_t __iomem *ptdescr;
218 for (i = 0, ptdescr = (card->hw.rambase +
220 i < N_DMA_RX_BUF; i++, ptdescr++) {
221 if (cpc_readb(&ptdescr->status) & DST_OSB)
223 ch, i, cpc_readl(&ptdescr->next),
224 cpc_readl(&ptdescr->ptbuf),
225 cpc_readb(&ptdescr->status),
226 cpc_readw(&ptdescr->len));
233 volatile pcsca_bd_t __iomem *ptdescr;
238 ptdescr = (card->hw.rambase + RX_BD_ADDR(ch, first_bd));
239 while ((status = cpc_readb(&ptdescr->status)) & DST_OSB) {
240 rcvd += cpc_readw(&ptdescr->len);
247 ptdescr = (card->hw.rambase + cpc_readl(&ptdescr->next));
259 volatile pcsca_bd_t __iomem *ptdescr;
268 ptdescr = (card->hw.rambase +
271 if (cpc_readb(&ptdescr->status) & DST_OSB) {
272 memcpy_toio((card->hw.rambase + cpc_readl(&ptdescr->ptbuf)),
274 cpc_writew(&ptdescr->len, nchar);
278 cpc_writeb(&ptdescr->status, DST_EOM);
280 cpc_writeb(&ptdescr->status, 0);
301 volatile pcsca_bd_t __iomem *ptdescr;
305 ptdescr = (card->hw.rambase +
307 while ((status = cpc_readb(&ptdescr->status)) & DST_OSB) {
308 nchar = cpc_readw(&ptdescr->len);
317 cpc_writeb(&ptdescr->status, 0);
321 ptdescr = (card->hw.rambase +
322 cpc_readl(&ptdescr->next));
323 status = cpc_readb(&ptdescr->status);
330 (card->hw.rambase+cpc_readl(&ptdescr->ptbuf)),nchar);
334 cpc_writeb(&ptdescr->status, 0);
335 cpc_writeb(&ptdescr->len, 0);
341 ptdescr = (card->hw.rambase + cpc_readl(&ptdescr->next));
1757 volatile pcsca_bd_t __iomem * ptdescr;
1760 ptdescr = (card->hw.rambase +
1764 (cpc_readb(&ptdescr->status) & DST_OSB)) {
1766 dev->dev->stats.tx_bytes += cpc_readw(&ptdescr->len);
1767 cpc_writeb(&ptdescr->status, DST_OSB);
1768 cpc_writew(&ptdescr->len, 0);
1771 ptdescr = (card->hw.rambase + TX_BD_ADDR(ch,chan->tx_first_bd));