Lines Matching refs:dp
87 dblk_t *dp = mp->b_datap; in ip_cksum() local
94 ASSERT(dp); in ip_cksum()
101 if (dp->db_struioflag & STRUIO_IP) { in ip_cksum()
106 if ((offset > dp->db_cksumstart) || in ip_cksum()
108 dp->db_cksumend)) { in ip_cksum()
117 dp->db_struioflag &= ~STRUIO_IP; in ip_cksum()
120 ASSERT(mp->b_wptr == (mp->b_rptr + dp->db_cksumend)); in ip_cksum()
121 psum = *(ushort_t *)dp->db_struioun.data; in ip_cksum()
122 if ((mlen = dp->db_cksumstart - offset) < 0) in ip_cksum()
126 if (mlen && dp->db_cksumstart != dp->db_cksumstuff && in ip_cksum()
127 dp->db_cksumend != dp->db_cksumstuff) { in ip_cksum()
137 dp->db_cksumstuff); in ip_cksum()
142 mlen = dp->db_cksumend - dp->db_cksumstuff; in ip_cksum()
143 } else if (dp->db_cksumend != dp->db_cksumstuff) { in ip_cksum()
151 mlen += dp->db_cksumend in ip_cksum()
152 - dp->db_cksumstuff; in ip_cksum()
155 dp->db_cksumstuff); in ip_cksum()
158 mlen = dp->db_cksumend in ip_cksum()
159 - dp->db_cksumstuff; in ip_cksum()
180 if (dp->db_struioflag & STRUIO_IP) in ip_cksum()
181 psum = *(ushort_t *)dp->db_struioun.data; in ip_cksum()
200 } else if (dp->db_struioflag & STRUIO_IP) { in ip_cksum()
205 if ((offset > dp->db_cksumstart) || in ip_cksum()
207 dp->db_cksumend)) { in ip_cksum()
216 dp->db_struioflag &= ~STRUIO_IP; in ip_cksum()
219 ASSERT(mp->b_wptr == (mp->b_rptr + dp->db_cksumend)); in ip_cksum()
220 if ((mlen = dp->db_cksumstart - offset) < 0) in ip_cksum()
222 if (mlen && dp->db_cksumstart != dp->db_cksumstuff) { in ip_cksum()
236 odd = is_odd(dp->db_cksumstuff - in ip_cksum()
237 dp->db_cksumstart); in ip_cksum()
252 if (dp->db_cksumend != dp->db_cksumstuff) { in ip_cksum()
259 mlen += dp->db_cksumend in ip_cksum()
260 - dp->db_cksumstuff; in ip_cksum()
263 dp->db_cksumstuff); in ip_cksum()
264 mlen = dp->db_cksumend - in ip_cksum()
265 dp->db_cksumstuff; in ip_cksum()
364 dp = mp->b_datap; in ip_cksum()
365 if (dp->db_struioflag & STRUIO_IP) in ip_cksum()
366 psum = *(ushort_t *)dp->db_struioun.data; in ip_cksum()