Lines Matching refs:slots
39 for (i = 0; i < buf_pool->slots; i++) { in xgene_enet_init_bufpool()
59 u32 slots = buf_pool->slots - 1; in xgene_enet_refill_bufpool() local
87 tail = (tail + 1) & slots; in xgene_enet_refill_bufpool()
114 u32 slots = buf_pool->slots - 1; in xgene_enet_delete_bufpool() local
121 tail = (tail - 1) & slots; in xgene_enet_delete_bufpool()
278 ring->exp_buf_tail = (ring->exp_buf_tail + 1) & ((ring->slots / 2) - 1); in xgene_enet_get_exp_bufs()
306 tail = (tail + 1) & (tx_ring->slots - 1); in xgene_enet_setup_tx_desc()
335 tail = (tail + 1) & (tx_ring->slots - 1); in xgene_enet_setup_tx_desc()
542 u16 slots = ring->slots - 1; in xgene_enet_process_ring() local
557 head = (head + 1) & slots; in xgene_enet_process_ring()
561 head = (head - 1) & slots; in xgene_enet_process_ring()
578 head = (head + 1) & slots; in xgene_enet_process_ring()
903 ring->num, ring->size, ring->id, ring->slots); in xgene_enet_create_desc_ring()
978 buf_pool->rx_skb = devm_kcalloc(dev, buf_pool->slots, in xgene_enet_create_desc_rings()
999 size = (tx_ring->slots / 2) * sizeof(__le64) * MAX_EXP_BUFFS; in xgene_enet_create_desc_rings()
1025 cp_ring->cp_skb = devm_kcalloc(dev, tx_ring->slots, in xgene_enet_create_desc_rings()
1033 cp_ring->frag_dma_addr = devm_kcalloc(dev, tx_ring->slots, in xgene_enet_create_desc_rings()
1044 pdata->tx_qcnt_hi = pdata->tx_ring->slots - 128; in xgene_enet_create_desc_rings()