Lines Matching refs:nr_frags
185 for (i = 0; i < txb->nr_frags; i++) in libipw_txb_free()
191 static struct libipw_txb *libipw_alloc_txb(int nr_frags, int txb_size, in libipw_alloc_txb() argument
196 txb = kmalloc(sizeof(struct libipw_txb) + (sizeof(u8 *) * nr_frags), in libipw_alloc_txb()
202 txb->nr_frags = nr_frags; in libipw_alloc_txb()
205 for (i = 0; i < nr_frags; i++) { in libipw_alloc_txb()
214 if (unlikely(i != nr_frags)) { in libipw_alloc_txb()
260 int i, bytes_per_frag, nr_frags, bytes_last_frag, frag_size, in libipw_xmit() local
406 nr_frags = bytes / bytes_per_frag; in libipw_xmit()
409 nr_frags++; in libipw_xmit()
413 nr_frags = 1; in libipw_xmit()
421 nr_frags++; in libipw_xmit()
426 txb = libipw_alloc_txb(nr_frags, frag_size, in libipw_xmit()
435 txb->payload_size = frag_size * (nr_frags - 1) + in libipw_xmit()
466 for (; i < nr_frags; i++) { in libipw_xmit()
479 if (i != nr_frags - 1) { in libipw_xmit()