Searched refs:n_bd (Results 1 - 7 of 7) sorted by relevance

/linux-master/drivers/net/wireless/intel/iwlegacy/
H A Dcommon.c2755 if (q->n_bd == 0)
2760 q->read_ptr = il_queue_inc_wrap(q->read_ptr, q->n_bd);
2789 if (txq->q.n_bd)
2790 dma_free_coherent(dev, il->hw_params.tfd_size * txq->q.n_bd,
2818 if (q->n_bd == 0)
2832 q->read_ptr = il_queue_inc_wrap(q->read_ptr, q->n_bd);
2869 if (txq->q.n_bd)
2870 dma_free_coherent(dev, il->hw_params.tfd_size * txq->q.n_bd,
2913 s -= q->n_bd;
2937 /* FIXME: remove q->n_bd */
[all...]
H A D3945.c280 for (idx = il_queue_inc_wrap(idx, q->n_bd); q->read_ptr != idx;
281 q->read_ptr = il_queue_inc_wrap(q->read_ptr, q->n_bd)) {
311 if (idx >= txq->q.n_bd || il_queue_used(&txq->q, idx) == 0) {
314 txq->q.n_bd, txq->q.write_ptr, txq->q.read_ptr);
H A Dcommon.h119 int n_bd; /* number of BDs in this queue */ member in struct:il_queue
2191 * @n_bd -- total number of entries in queue (must be power of 2)
2194 il_queue_inc_wrap(int idx, int n_bd) argument
2196 return ++idx & (n_bd - 1);
2202 * @n_bd -- total number of entries in queue (must be power of 2)
2205 il_queue_dec_wrap(int idx, int n_bd) argument
2207 return --idx & (n_bd - 1);
H A D4965-mac.c1875 q->write_ptr = il_queue_inc_wrap(q->write_ptr, q->n_bd);
2460 if (idx >= q->n_bd || il_queue_used(q, idx) == 0) {
2462 "is out of range [0-%d] %d %d.\n", txq_id, idx, q->n_bd,
2467 for (idx = il_queue_inc_wrap(idx, q->n_bd); q->read_ptr != idx;
2468 q->read_ptr = il_queue_inc_wrap(q->read_ptr, q->n_bd)) {
2773 if (idx >= txq->q.n_bd || il_queue_used(&txq->q, idx) == 0) {
2776 txq->q.n_bd, txq->q.write_ptr, txq->q.read_ptr);
2829 idx = il_queue_dec_wrap(scd_ssn & 0xff, txq->q.n_bd);
2943 idx = il_queue_dec_wrap(ba_resp_scd_ssn & 0xff, txq->q.n_bd);
H A D3945-mac.c614 q->write_ptr = il_queue_inc_wrap(q->write_ptr, q->n_bd);
/linux-master/drivers/net/wireless/intel/ipw2x00/
H A Dipw2200.c3669 s += q->n_bd;
3676 static inline int ipw_queue_inc_wrap(int index, int n_bd) argument
3678 return (++index == n_bd) ? 0 : index;
3698 q->n_bd = count;
3700 q->low_mark = q->n_bd / 4;
3704 q->high_mark = q->n_bd / 8;
3799 if (q->n_bd == 0)
3804 q->last_used = ipw_queue_inc_wrap(q->last_used, q->n_bd)) {
3809 dma_free_coherent(&dev->dev, sizeof(txq->bd[0]) * q->n_bd, txq->bd,
4968 if (hw_tail >= q->n_bd) {
[all...]
H A Dipw2200.h367 int n_bd; /**< number of BDs in this queue */ member in struct:clx2_queue

Completed in 208 milliseconds