Lines Matching defs:psum
8563 * Checksum buffer *bp for len bytes with psum partial checksum,
8567 bcksum(uchar_t *bp, int len, unsigned int psum)
8576 return (ip_ocsum((ushort_t *)bp, len >> 1, psum));
8585 psum += *bp;
8587 psum += *bp << 8;
8592 psum += (tsum << 8) & 0xffff | (tsum >> 8);
8596 psum += *bp << 8;
8598 psum += *bp;
8605 psum = ip_ocsum((ushort_t *)bp, len >> 1, psum);
8609 psum += *bp;
8611 psum += *bp << 8;
8616 * Normalize psum to 16 bits before returning the new partial
8617 * checksum. The max psum value before normalization is 0x3FDFE.
8619 return ((psum >> 16) + (psum & 0xFFFF));