Lines Matching defs:nr_frags
184 for (i = 0; i < txb->nr_frags; i++)
190 static struct ieee80211_txb *ieee80211_alloc_txb(int nr_frags, int txb_size,
195 txb = kmalloc(sizeof(struct ieee80211_txb) + (sizeof(u8 *) * nr_frags),
201 txb->nr_frags = nr_frags;
204 for (i = 0; i < nr_frags; i++) {
213 if (unlikely(i != nr_frags)) {
259 int i, bytes_per_frag, nr_frags, bytes_last_frag, frag_size,
406 nr_frags = bytes / bytes_per_frag;
409 nr_frags++;
413 nr_frags = 1;
421 nr_frags++;
426 txb = ieee80211_alloc_txb(nr_frags, frag_size,
435 txb->payload_size = frag_size * (nr_frags - 1) +
466 for (; i < nr_frags; i++) {
479 if (i != nr_frags - 1) {