Lines Matching refs:rsq
252 card->rsq.org, card->rsq.dma); in nicstar_remove_one()
560 card->rsq.org = dma_alloc_coherent(&card->pcidev->dev, in ns_init_card()
562 &card->rsq.dma, GFP_KERNEL); in ns_init_card()
563 if (card->rsq.org == NULL) { in ns_init_card()
569 card->rsq.base = PTR_ALIGN(card->rsq.org, NS_RSQ_ALIGNMENT); in ns_init_card()
570 card->rsq.next = card->rsq.base; in ns_init_card()
571 card->rsq.last = card->rsq.base + (NS_RSQ_NUM_ENTRIES - 1); in ns_init_card()
573 ns_rsqe_init(card->rsq.base + j); in ns_init_card()
575 writel(ALIGN(card->rsq.dma, NS_RSQ_ALIGNMENT), card->membase + RSQB); in ns_init_card()
576 PRINTK("nicstar%d: RSQ base at 0x%p.\n", i, card->rsq.base); in ns_init_card()
844 card->rsq.org, card->rsq.dma); in ns_init_card_error()
1559 card->rsq.base, card->rsq.next, in ns_close()
1560 card->rsq.last, readl(card->membase + RSQT)); in ns_close()
1961 if (!ns_rsqe_valid(card->rsq.next)) in process_rsq()
1964 dequeue_rx(card, card->rsq.next); in process_rsq()
1965 ns_rsqe_init(card->rsq.next); in process_rsq()
1966 previous = card->rsq.next; in process_rsq()
1967 if (card->rsq.next == card->rsq.last) in process_rsq()
1968 card->rsq.next = card->rsq.base; in process_rsq()
1970 card->rsq.next++; in process_rsq()
1971 } while (ns_rsqe_valid(card->rsq.next)); in process_rsq()
1972 writel(PTR_DIFF(previous, card->rsq.base), card->membase + RSQH); in process_rsq()