Lines Matching refs:tsq
1377 card->tsq.base = dma_alloc_coherent(&card->pcidev->dev, RSQSIZE, in init_tsq()
1378 &card->tsq.paddr, GFP_KERNEL); in init_tsq()
1379 if (card->tsq.base == NULL) { in init_tsq()
1384 card->tsq.last = card->tsq.base + TSQ_NUM_ENTRIES - 1; in init_tsq()
1385 card->tsq.next = card->tsq.last; in init_tsq()
1386 for (tsqe = card->tsq.base; tsqe <= card->tsq.last; tsqe++) in init_tsq()
1389 writel(card->tsq.paddr, SAR_REG_TSQB); in init_tsq()
1390 writel((unsigned long) card->tsq.next - (unsigned long) card->tsq.base, in init_tsq()
1400 card->tsq.base, card->tsq.paddr); in deinit_tsq()
1411 if (card->tsq.next == card->tsq.last) in idt77252_tx()
1412 tsqe = card->tsq.base; in idt77252_tx()
1414 tsqe = card->tsq.next + 1; in idt77252_tx()
1417 card->tsq.base, card->tsq.next, card->tsq.last); in idt77252_tx()
1508 card->tsq.next = tsqe; in idt77252_tx()
1509 if (card->tsq.next == card->tsq.last) in idt77252_tx()
1510 tsqe = card->tsq.base; in idt77252_tx()
1512 tsqe = card->tsq.next + 1; in idt77252_tx()
1515 card->tsq.base, card->tsq.next, card->tsq.last); in idt77252_tx()
1521 writel((unsigned long)card->tsq.next - (unsigned long)card->tsq.base, in idt77252_tx()
1526 readl(SAR_REG_TSQT), card->tsq.next); in idt77252_tx()
3079 if (card->tsq.base) { in deinit_card()