Searched refs:vdr (Results 1 – 4 of 4) sorted by relevance
/titanic_41/usr/src/uts/common/io/lvm/softpart/ |
H A D | sp_ioctl.c | 1575 vol_directed_rd_t *vdr; in md_sp_ioctl() local 1586 vdr = kmem_zalloc(sizeof (vol_directed_rd_t), KM_NOSLEEP); in md_sp_ioctl() 1587 if (vdr == NULL) in md_sp_ioctl() 1598 kmem_free(vdr, sizeof (vol_directed_rd_t)); in md_sp_ioctl() 1605 kmem_free(vdr, sizeof (*vdr)); in md_sp_ioctl() 1608 vdr->vdr_flags = vdr32->vdr_flags; in md_sp_ioctl() 1609 vdr->vdr_offset = vdr32->vdr_offset; in md_sp_ioctl() 1610 vdr->vdr_nbytes = vdr32->vdr_nbytes; in md_sp_ioctl() 1611 vdr->vdr_data = (void *)(uintptr_t)vdr32->vdr_data; in md_sp_ioctl() 1612 vdr->vdr_side = vdr32->vdr_side; in md_sp_ioctl() [all …]
|
H A D | sp.c | 1094 sp_directed_read(minor_t mnum, vol_directed_rd_t *vdr, int mode) in sp_directed_read() argument 1124 kbuffer = kmem_alloc(vdr->vdr_nbytes, KM_NOSLEEP); in sp_directed_read() 1126 vdr->vdr_flags |= DKV_DMR_ERROR; in sp_directed_read() 1134 vdr->vdr_flags |= DKV_DMR_ERROR; in sp_directed_read() 1137 kmem_free(kbuffer, vdr->vdr_nbytes); in sp_directed_read() 1142 parent_buf->b_bcount = vdr->vdr_nbytes; in sp_directed_read() 1143 parent_buf->b_lblkno = lbtodb(vdr->vdr_offset); in sp_directed_read() 1166 vdr->vdr_bytesread = 0; in sp_directed_read() 1184 vdr->vdr_flags |= DKV_DMR_SHORT; in sp_directed_read() 1189 cvdr.vdr_flags = vdr->vdr_flags; in sp_directed_read() [all …]
|
/titanic_41/usr/src/uts/common/io/lvm/mirror/ |
H A D | mirror_ioctl.c | 3310 vol_directed_rd_t *vdr; in md_mirror_ioctl() local 3320 vdr = kmem_zalloc(sizeof (vol_directed_rd_t), KM_NOSLEEP); in md_mirror_ioctl() 3321 if (vdr == NULL) in md_mirror_ioctl() 3327 kmem_free(vdr, sizeof (vol_directed_rd_t)); in md_mirror_ioctl() 3341 kmem_free(vdr, sizeof (*vdr)); in md_mirror_ioctl() 3344 vdr->vdr_flags = vdr32->vdr_flags; in md_mirror_ioctl() 3345 vdr->vdr_offset = vdr32->vdr_offset; in md_mirror_ioctl() 3346 vdr->vdr_nbytes = vdr32->vdr_nbytes; in md_mirror_ioctl() 3347 vdr->vdr_data = in md_mirror_ioctl() 3349 vdr->vdr_side = vdr32->vdr_side; in md_mirror_ioctl() [all …]
|
H A D | mirror.c | 4500 mirror_directed_read(dev_t mdev, vol_directed_rd_t *vdr, int mode) in mirror_directed_read() argument 4514 if (!(vdr->vdr_flags & DKV_DMR_NEXT_SIDE)) { in mirror_directed_read() 4519 if (vdr->vdr_offset % DEV_BSIZE) { in mirror_directed_read() 4527 kbuffer = kmem_alloc(vdr->vdr_nbytes, KM_NOSLEEP); in mirror_directed_read() 4530 " bytes\n", vdr->vdr_nbytes); in mirror_directed_read() 4538 bp->b_bcount = vdr->vdr_nbytes; in mirror_directed_read() 4539 bp->b_lblkno = lbtodb(vdr->vdr_offset); in mirror_directed_read() 4556 if (vdr->vdr_side == DKV_SIDE_INIT) { in mirror_directed_read() 4559 next_side = vdr->vdr_side + 1; in mirror_directed_read() 4565 vdr->vdr_flags |= DKV_DMR_ERROR; in mirror_directed_read() [all …]
|