Lines Matching refs:num_desc
325 dma_free_coherent(&card->pdev->dev, chain->num_desc, in spider_net_free_chain()
349 alloc_size = chain->num_desc * sizeof(struct spider_net_hw_descr); in spider_net_init_chain()
357 memset(chain->ring, 0, chain->num_desc * sizeof(struct spider_net_descr)); in spider_net_init_chain()
363 for (i=0; i < chain->num_desc; i++, descr++, hwdescr++) { in spider_net_init_chain()
761 if (cnt < card->tx_chain.num_desc/4) in spider_net_set_low_watermark()
1037 chain->num_desc); in show_rx_chain()
1067 int from = (chain->num_desc + off - cnt) % chain->num_desc; in show_rx_chain()
1068 int to = (chain->num_desc + off - 1) % chain->num_desc; in show_rx_chain()
1136 for (i=0; i<chain->num_desc; i++) { in spider_net_resync_head_ptr()
1156 for (i=0; i<chain->num_desc; i++) { in spider_net_resync_tail_ptr()
1164 if ((i == chain->num_desc) || (i == 0)) in spider_net_resync_tail_ptr()
2395 card->rx_chain.num_desc = rx_descriptors; in spider_net_alloc_card()
2397 card->tx_chain.num_desc = tx_descriptors; in spider_net_alloc_card()