Lines Matching refs:mdSize
162 …uint32_t mdSize; /* size in pages (pages are assumed to be 4K). Multiply by 4096 to… member
245 if (uio->uio_offset > (mdev[devid].mdSize << 12)) { in mdevrw()
248 count = imin(uio_resid(uio), (mdev[devid].mdSize << 12) - uio->uio_offset); in mdevrw()
283 …if (blkoff >= (mdev[devid].mdSize << 12)) { /* Are they trying to read/write a… in mdevstrategy()
284 if (blkoff != (mdev[devid].mdSize << 12)) { /* Are we trying to read after EOF? */ in mdevstrategy()
291 …if ((blkoff + buf_count(bp)) > (mdev[devid].mdSize << 12)) { /* Will this read go past … in mdevstrategy()
292 buf_setcount(bp, (uint32_t)((mdev[devid].mdSize << 12) - blkoff)); /* Yes, trim to max */ in mdevstrategy()
437 *o = ((mdev[devid].mdSize << 12) + mdev[devid].mdSecsize - 1) / mdev[devid].mdSecsize; in mdevioctl()
454 memdev_info->mi_size = mdev[devid].mdSize; in mdevioctl()
648 …if (!(((base + size - 1) < mdev[i].mdBase) || ((mdev[i].mdBase + mdev[i].mdSize - 1) < base))) { /… in mdevadd()
649 …verlapping memory device at %016llX-%016llX", mdev[i].mdBase, mdev[i].mdBase + mdev[i].mdSize - 1); in mdevadd()
699 …mdev[devid].mdSize = size; /* Set the length … in mdevadd()
736 mdev[i].mdSize = 0; in mdevremoveall()
763 *size = mdev[devid].mdSize << 12; in mdevgetrange()