Lines Matching refs:pidx
175 u16 pidx; /* producer index (SW) */ member
188 u16 pidx; /* producer index (SW) */ member
824 struct freelQ_ce *ce = &q->centries[q->pidx]; in refill_free_list()
825 struct freelQ_e *e = &q->entries[q->pidx]; in refill_free_list()
852 if (++q->pidx == q->size) { in refill_free_list()
853 q->pidx = 0; in refill_free_list()
1006 struct freelQ_e *to = &fl->entries[fl->pidx]; in recycle_fl_buf()
1008 fl->centries[fl->pidx] = fl->centries[idx]; in recycle_fl_buf()
1016 if (++fl->pidx == fl->size) { in recycle_fl_buf()
1017 fl->pidx = 0; in recycle_fl_buf()
1160 static inline unsigned int write_large_page_tx_descs(unsigned int pidx, in write_large_page_tx_descs() argument
1183 if (++pidx == q->size) { in write_large_page_tx_descs()
1184 pidx = 0; in write_large_page_tx_descs()
1194 return pidx; in write_large_page_tx_descs()
1202 unsigned int pidx, unsigned int gen, in write_tx_descs() argument
1211 e = e1 = &q->entries[pidx]; in write_tx_descs()
1212 ce = &q->centries[pidx]; in write_tx_descs()
1237 if (++pidx == q->size) { in write_tx_descs()
1238 pidx = 0; in write_tx_descs()
1243 pidx = write_large_page_tx_descs(pidx, &e1, &ce, &gen, in write_tx_descs()
1260 if (++pidx == q->size) { in write_tx_descs()
1261 pidx = 0; in write_tx_descs()
1272 pidx = write_large_page_tx_descs(pidx, &e1, &ce, &gen, in write_tx_descs()
1321 unsigned int genbit, pidx, count; in restart_sched() local
1326 pidx = q->pidx; in restart_sched()
1327 q->pidx += count; in restart_sched()
1328 if (q->pidx >= q->size) { in restart_sched()
1329 q->pidx -= q->size; in restart_sched()
1332 write_tx_descs(adapter, skb, pidx, genbit, q); in restart_sched()
1702 unsigned int credits, pidx, genbit, count, use_sched_skb = 0; in t1_sge_tx() local
1708 pidx = q->pidx; in t1_sge_tx()
1746 pidx = q->pidx; in t1_sge_tx()
1753 pidx = q->pidx; in t1_sge_tx()
1754 q->pidx += count; in t1_sge_tx()
1755 if (q->pidx >= q->size) { in t1_sge_tx()
1756 q->pidx -= q->size; in t1_sge_tx()
1761 write_tx_descs(adapter, skb, pidx, genbit, q); in t1_sge_tx()