Lines Matching refs:offset
47 offset_t offset; in crypto_init_ptrs() local
58 offset = out->cd_offset; in crypto_init_ptrs()
60 offset >= uiop->uio_iov[vec_idx].iov_len; in crypto_init_ptrs()
61 offset -= uiop->uio_iov[vec_idx++].iov_len) in crypto_init_ptrs()
64 *current_offset = offset; in crypto_init_ptrs()
72 offset = out->cd_offset; in crypto_init_ptrs()
73 for (mp = out->cd_mp; mp != NULL && offset >= MBLKL(mp); in crypto_init_ptrs()
74 offset -= MBLKL(mp), mp = mp->b_cont) in crypto_init_ptrs()
77 *current_offset = offset; in crypto_init_ptrs()
95 offset_t offset; in crypto_get_ptrs() local
101 offset = *current_offset; in crypto_get_ptrs()
103 if ((offset + amt) <= iov->iov_len) { in crypto_get_ptrs()
105 *out_data_1 = (uint8_t *)iov->iov_base + offset; in crypto_get_ptrs()
108 *current_offset = offset + amt; in crypto_get_ptrs()
116 offset_t offset; in crypto_get_ptrs() local
120 offset = *current_offset; in crypto_get_ptrs()
123 p = (uint8_t *)iov->iov_base + offset; in crypto_get_ptrs()
126 if (offset + amt <= iov->iov_len) { in crypto_get_ptrs()
130 *current_offset = offset + amt; in crypto_get_ptrs()
133 *out_data_1_len = iov->iov_len - offset; in crypto_get_ptrs()
149 offset = *current_offset; in crypto_get_ptrs()
151 p = mp->b_rptr + offset; in crypto_get_ptrs()
157 *current_offset = offset + amt; in crypto_get_ptrs()
243 off_t offset = data->cd_offset; in crypto_uio_data() local
263 offset >= uiop->uio_iov[vec_idx].iov_len; in crypto_uio_data()
264 offset -= uiop->uio_iov[vec_idx++].iov_len) in crypto_uio_data()
277 offset, length); in crypto_uio_data()
280 offset); in crypto_uio_data()
305 offset = 0; in crypto_uio_data()
333 off_t offset = data->cd_offset; in crypto_mblk_data() local
347 for (mp = data->cd_mp; mp != NULL && offset >= MBLKL(mp); in crypto_mblk_data()
348 offset -= MBLKL(mp), mp = mp->b_cont) in crypto_mblk_data()
362 cur_len = MIN(MBLKL(mp) - offset, length); in crypto_mblk_data()
364 datap = (uchar_t *)(mp->b_rptr + offset); in crypto_mblk_data()
388 offset = 0; in crypto_mblk_data()