Lines Matching refs:done_idx
70 unsigned int done_idx, in slic_get_free_queue_descs() argument
73 if (put_idx >= done_idx) in slic_get_free_queue_descs()
74 return (qlen - (put_idx - done_idx) - 1); in slic_get_free_queue_descs()
75 return (done_idx - put_idx - 1); in slic_get_free_queue_descs()
87 stat = &descs[stq->done_idx]; in slic_next_compl_idx()
97 stq->done_idx = slic_next_queue_idx(stq->done_idx, stq->len); in slic_next_compl_idx()
99 if (!stq->done_idx) { in slic_next_compl_idx()
117 return slic_get_free_queue_descs(txq->put_idx, txq->done_idx, txq->len); in slic_get_free_tx_descs()
122 return slic_get_free_queue_descs(rxq->put_idx, rxq->done_idx, rxq->len); in slic_get_free_rx_descs()
359 txq->done_idx = idx; in slic_xmit_complete()
559 while (todo && (rxq->done_idx != rxq->put_idx)) { in slic_handle_receive()
560 buff = &rxq->rxbuffs[rxq->done_idx]; in slic_handle_receive()
613 rxq->done_idx = slic_next_queue_idx(rxq->done_idx, rxq->len); in slic_handle_receive()
781 stq->done_idx = 0; in slic_init_stat_queue()
846 txq->done_idx = 0; in slic_init_tx_queue()
922 rxq->done_idx = 0; in slic_init_rx_queue()