Lines Matching refs:newlen
304 u16 newlen, pbclen, lastdesc, dma_mapped; in qib_user_sdma_page_to_frags() local
340 newlen = pkt->tidsm[pkt->tidsmidx].length; in qib_user_sdma_page_to_frags()
342 newlen = len; in qib_user_sdma_page_to_frags()
352 if ((pkt->payload_size + newlen) >= pkt->frag_size) { in qib_user_sdma_page_to_frags()
353 newlen = pkt->frag_size - pkt->payload_size; in qib_user_sdma_page_to_frags()
356 if (newlen == pkt->tidsm[pkt->tidsmidx].length) in qib_user_sdma_page_to_frags()
359 if (newlen == pkt->bytes_togo) in qib_user_sdma_page_to_frags()
365 offset, newlen, /* offset, len */ in qib_user_sdma_page_to_frags()
370 pkt->bytes_togo -= newlen; in qib_user_sdma_page_to_frags()
371 pkt->payload_size += newlen; in qib_user_sdma_page_to_frags()
401 pkt->tidsm[pkt->tidsmidx].length -= newlen; in qib_user_sdma_page_to_frags()
403 pkt->tidsm[pkt->tidsmidx].offset += newlen; in qib_user_sdma_page_to_frags()
539 if (newlen != len) { in qib_user_sdma_page_to_frags()
546 len -= newlen; in qib_user_sdma_page_to_frags()
547 offset += newlen; in qib_user_sdma_page_to_frags()