Lines Matching refs:rsq
351 kfree(card->rsq.org); in nicstar_remove_one()
664 card->rsq.org = kmalloc(NS_RSQSIZE + NS_RSQ_ALIGNMENT, GFP_KERNEL); in ns_init_card()
665 if (card->rsq.org == NULL) in ns_init_card()
672 card->rsq.base = (ns_rsqe *) ALIGN_ADDRESS(card->rsq.org, NS_RSQ_ALIGNMENT); in ns_init_card()
673 card->rsq.next = card->rsq.base; in ns_init_card()
674 card->rsq.last = card->rsq.base + (NS_RSQ_NUM_ENTRIES - 1); in ns_init_card()
676 ns_rsqe_init(card->rsq.base + j); in ns_init_card()
678 writel((u32) virt_to_bus(card->rsq.base), card->membase + RSQB); in ns_init_card()
679 PRINTK("nicstar%d: RSQ base at 0x%x.\n", i, (u32) card->rsq.base); in ns_init_card()
970 kfree(card->rsq.org); in ns_init_card_error()
1701 (u32) card->rsq.base, (u32) card->rsq.next,(u32) card->rsq.last, in ns_close()
2105 if (!ns_rsqe_valid(card->rsq.next)) in process_rsq()
2107 while (ns_rsqe_valid(card->rsq.next)) in process_rsq()
2109 dequeue_rx(card, card->rsq.next); in process_rsq()
2110 ns_rsqe_init(card->rsq.next); in process_rsq()
2111 previous = card->rsq.next; in process_rsq()
2112 if (card->rsq.next == card->rsq.last) in process_rsq()
2113 card->rsq.next = card->rsq.base; in process_rsq()
2115 card->rsq.next++; in process_rsq()
2117 writel((((u32) previous) - ((u32) card->rsq.base)), in process_rsq()