Lines Matching defs:length
30 * - peripheral RXDMA wedged in a test with packets of length 512/512/1.
543 * are an exact multiple of the packet length. It appears that there's
546 * terminating zero length packet before the next transfer is written.
550 * length be a multiple of 64 bytes ... but the chip doesn't act that
556 * REVISIT try to handle terminating zero length packets using CPPI
565 size_t length = tx->buf_len - tx->offset;
578 && length > maxpacket
579 && length < 0xffff
580 && (length % maxpacket) != 0;
583 maxpacket = length;
586 if (length)
587 n_bds = DIV_ROUND_UP(length, maxpacket);
591 length = min(n_bds * maxpacket, length);
599 (unsigned long long)addr, length);
726 * (c) and read length is
766 size_t length = rx->buf_len - rx->offset;
782 && length > maxpacket
783 && (length & ~0xffff) == 0
784 && (length & 0x0fff) != 0
785 && (length & (maxpacket - 1)) == 0) {
786 maxpacket = length;
791 if (length > 0xffff) {
793 length = n_bds * maxpacket;
795 n_bds = DIV_ROUND_UP(length, maxpacket);
813 length = min(n_bds * maxpacket, length);
825 (unsigned long long)addr, length,
848 if (maxpacket < length)
851 bd_len = length;
860 bd->hw_options = CPPI_OWN_SET | (i == 0 ? length : 0);
861 length -= bd_len;
944 * @len: length of buffer
1037 /* actual packet received length */