Lines Matching refs:tsq

253 			  card->tsq.org, card->tsq.dma);  in nicstar_remove_one()
540 card->tsq.org = dma_alloc_coherent(&card->pcidev->dev, in ns_init_card()
542 &card->tsq.dma, GFP_KERNEL); in ns_init_card()
543 if (card->tsq.org == NULL) { in ns_init_card()
549 card->tsq.base = PTR_ALIGN(card->tsq.org, NS_TSQ_ALIGNMENT); in ns_init_card()
550 card->tsq.next = card->tsq.base; in ns_init_card()
551 card->tsq.last = card->tsq.base + (NS_TSQ_NUM_ENTRIES - 1); in ns_init_card()
553 ns_tsi_init(card->tsq.base + j); in ns_init_card()
555 writel(ALIGN(card->tsq.dma, NS_TSQ_ALIGNMENT), card->membase + TSQB); in ns_init_card()
556 PRINTK("nicstar%d: TSQ base at 0x%p.\n", i, card->tsq.base); in ns_init_card()
847 card->tsq.org, card->tsq.dma); in ns_init_card_error()
1560 card->tsq.base, card->tsq.next, in ns_close()
1561 card->tsq.last, readl(card->membase + TSQT)); in ns_close()
1854 if (card->tsq.next == card->tsq.last) in process_tsq()
1855 one_ahead = card->tsq.base; in process_tsq()
1857 one_ahead = card->tsq.next + 1; in process_tsq()
1859 if (one_ahead == card->tsq.last) in process_tsq()
1860 two_ahead = card->tsq.base; in process_tsq()
1864 while (!ns_tsi_isempty(card->tsq.next) || !ns_tsi_isempty(one_ahead) || in process_tsq()
1871 while (ns_tsi_isempty(card->tsq.next)) { in process_tsq()
1872 if (card->tsq.next == card->tsq.last) in process_tsq()
1873 card->tsq.next = card->tsq.base; in process_tsq()
1875 card->tsq.next++; in process_tsq()
1878 if (!ns_tsi_tmrof(card->tsq.next)) { in process_tsq()
1879 scdi = ns_tsi_getscdindex(card->tsq.next); in process_tsq()
1887 ns_tsi_init(card->tsq.next); in process_tsq()
1892 drain_scq(card, scq, ns_tsi_getscqpos(card->tsq.next)); in process_tsq()
1897 ns_tsi_init(card->tsq.next); in process_tsq()
1898 previous = card->tsq.next; in process_tsq()
1899 if (card->tsq.next == card->tsq.last) in process_tsq()
1900 card->tsq.next = card->tsq.base; in process_tsq()
1902 card->tsq.next++; in process_tsq()
1904 if (card->tsq.next == card->tsq.last) in process_tsq()
1905 one_ahead = card->tsq.base; in process_tsq()
1907 one_ahead = card->tsq.next + 1; in process_tsq()
1909 if (one_ahead == card->tsq.last) in process_tsq()
1910 two_ahead = card->tsq.base; in process_tsq()
1916 writel(PTR_DIFF(previous, card->tsq.base), in process_tsq()