/titanic_41/usr/src/grub/grub-0.97/stage2/zfs-include/ |
H A D | spa.h | 35 #define BF32_DECODE(x, low, len) P2PHASE((x) >> (low), 1U << (len)) 36 #define BF64_DECODE(x, low, len) P2PHASE((x) >> (low), 1ULL << (len)) 37 #define BF32_ENCODE(x, low, len) (P2PHASE((x), 1U << (len)) << (low)) 38 #define BF64_ENCODE(x, low, len) (P2PHASE((x), 1ULL << (len)) << (low))
|
/titanic_41/usr/src/lib/libumem/common/ |
H A D | misc.c | 60 var = P2PHASE((var), ERR_SIZE); \ 83 umem_error_begin = P2PHASE(umem_error_end + 1, ERR_SIZE); in umem_log_enter()
|
H A D | malloc.c | 222 ASSERT(P2PHASE((uintptr_t)ret, align) == 0); in memalign()
|
H A D | umem.c | 1119 NULL || P2PHASE((uintptr_t)bcp, UMEM_ALIGN) || in umem_error() 1417 ASSERT(P2PHASE((uintptr_t)slab, vmp->vm_quantum) == 0); in umem_slab_create() 2679 ASSERT(P2PHASE(phase, UMEM_ALIGN) == 0); in umem_cache_create() 2734 P2PHASE(bufsize, umem_lite_maxalign) != 0) { in umem_cache_create() 3030 if (P2PHASE(size, UMEM_ALIGN) != 0) { in umem_alloc_sizes_add()
|
H A D | vmem.c | 510 ASSERT(P2PHASE(vs_start, vmp->vm_quantum) == 0); in vmem_seg_alloc() 511 ASSERT(P2PHASE(addr, vmp->vm_quantum) == 0); in vmem_seg_alloc() 986 ASSERT(P2PHASE(addr, align) == phase); in vmem_xalloc()
|
/titanic_41/usr/src/uts/common/fs/zfs/ |
H A D | bpobj.c | 117 blkoff = P2PHASE(i, epb); in bpobj_free() 223 blkoff = P2PHASE(i, bpo->bpo_epb); in bpobj_iterate_impl() 282 blkoff = P2PHASE(i, epb); in bpobj_iterate_impl() 493 blkoff = P2PHASE(bpo->bpo_phys->bpo_num_blkptrs, bpo->bpo_epb); in bpobj_enqueue()
|
H A D | space_map.c | 86 VERIFY(P2PHASE(size, sizeof (uint64_t)) == 0); in space_map_load() 112 VERIFY0(P2PHASE(offset, 1ULL << sm->sm_shift)); in space_map_load() 113 VERIFY0(P2PHASE(size, 1ULL << sm->sm_shift)); in space_map_load()
|
H A D | vdev_cache.c | 197 uint64_t cache_phase = P2PHASE(zio->io_offset, VCBS); in vdev_cache_hit() 259 uint64_t cache_phase = P2PHASE(zio->io_offset, VCBS); in vdev_cache_read()
|
H A D | dmu_object.c | 60 if (P2PHASE(object, L2_dnode_count) == 0) { in dmu_object_alloc()
|
H A D | metaslab.c | 916 VERIFY0(P2PHASE(start, 1ULL << vd->vdev_ashift)); in metaslab_block_alloc() 917 VERIFY0(P2PHASE(size, 1ULL << vd->vdev_ashift)); in metaslab_block_alloc() 2287 ASSERT(P2PHASE(asize, 1ULL << vd->vdev_ashift) == 0); in metaslab_alloc_dva() 2401 VERIFY0(P2PHASE(offset, 1ULL << vd->vdev_ashift)); in metaslab_free_dva() 2402 VERIFY0(P2PHASE(size, 1ULL << vd->vdev_ashift)); in metaslab_free_dva() 2455 VERIFY0(P2PHASE(offset, 1ULL << vd->vdev_ashift)); in metaslab_claim_dva() 2456 VERIFY0(P2PHASE(size, 1ULL << vd->vdev_ashift)); in metaslab_claim_dva()
|
H A D | dnode.c | 392 ASSERT0(P2PHASE(size, SPA_MINBLOCKSIZE)); in dnode_setdblksz() 1553 blkoff = P2PHASE(off, blksz); in dnode_free_range() 1615 tail = P2PHASE(len, blksz); in dnode_free_range() 1617 ASSERT0(P2PHASE(off, blksz)); in dnode_free_range() 1804 ASSERT0(P2PHASE(space, 1<<DEV_BSHIFT)); in dnode_diduse_space()
|
H A D | zio.c | 507 ASSERT(P2PHASE(size, SPA_MINBLOCKSIZE) == 0); in zio_create() 508 ASSERT(P2PHASE(offset, SPA_MINBLOCKSIZE) == 0); in zio_create() 2623 P2PHASE(zio->io_size, align) != 0) { in zio_vdev_io_start() 2640 ASSERT0(P2PHASE(zio->io_offset, align)); in zio_vdev_io_start() 2641 ASSERT0(P2PHASE(zio->io_size, align)); in zio_vdev_io_start() 2647 ASSERT0(P2PHASE(zio->io_offset, SPA_MINBLOCKSIZE)); in zio_vdev_io_start() 2648 ASSERT0(P2PHASE(zio->io_size, SPA_MINBLOCKSIZE)); in zio_vdev_io_start()
|
H A D | dmu_tx.c | 256 if (P2PHASE(off, dn->dn_datablksz) || in dmu_tx_count_write() 266 P2PHASE(off+len, dn->dn_datablksz)) { in dmu_tx_count_write() 517 blkoff = P2PHASE(blkid, epb); in dmu_tx_count_free()
|
H A D | zfs_vnops.c | 615 P2PHASE(uio->uio_loffset, zfs_read_chunk_size)); in zfs_read() 847 P2PHASE(woff, max_blksz) == 0 && in zfs_write() 914 nbytes = MIN(n, max_blksz - P2PHASE(woff, max_blksz)); in zfs_write() 1133 blkoff = ISP2(size) ? P2PHASE(offset, size) : offset; in zfs_get_data() 5128 preamble = P2PHASE(offset, blksz); in zfs_reqzcbuf() 5135 postamble = P2PHASE(size, blksz); in zfs_reqzcbuf()
|
/titanic_41/usr/src/uts/common/os/ |
H A D | bp_map.c | 143 ASSERT(P2PHASE((uintptr_t)kaddr, bp_align) == color); in bp_mapin_common() 238 color = P2PHASE(base, bp_align); in bp_mapout()
|
H A D | vmem.c | 617 ASSERT(P2PHASE(vs_start, vmp->vm_quantum) == 0); in vmem_seg_alloc() 618 ASSERT(P2PHASE(addr, vmp->vm_quantum) == 0); in vmem_seg_alloc() 1061 aphase = (P2PHASE(phase, aquantum) != 0) ? in vmem_xalloc() 1108 ASSERT(P2PHASE(asize, in vmem_xalloc() 1182 ASSERT(P2PHASE(addr, align) == phase); in vmem_xalloc()
|
H A D | exec.c | 1858 ASSERT(P2PHASE((uintptr_t)usrstack, args->stk_align) == 0); in exec_args() 1886 ASSERT(P2PHASE(size, args->stk_align) == 0); in exec_args() 2016 ASSERT(P2PHASE(sp_slew, args->stk_align) == 0); in exec_args()
|
H A D | dumpsubr.c | 954 off = P2PHASE(pfn, CBUF_MAPNP); in dumpsys_get_maxmem() 986 off = P2PHASE(pfn, CBUF_MAPNP); in dumpsys_get_maxmem() 1362 off = P2PHASE(dumpbuf.vp_off, dumpbuf.size); in dumpvp_write() 2456 baseoff = P2PHASE(base, CBUF_MAPNP); in dumpsys_main_task()
|
/titanic_41/usr/src/grub/grub-0.97/stage2/ |
H A D | fsys_zfs.h | 110 #define P2PHASE(x, align) ((x) & ((align) - 1)) macro
|
/titanic_41/usr/src/uts/common/io/blkdev/ |
H A D | blkdev.c | 823 (P2PHASE(len, (1U << shift)) != 0)) { in bd_xfer_alloc() 1134 if ((P2PHASE(uio->uio_loffset, (1U << shift)) != 0) || in bd_check_uio() 1135 (P2PHASE(uio->uio_iov->iov_len, (1U << shift)) != 0)) { in bd_check_uio() 1222 if ((P2PHASE(bp->b_lblkno, (1U << (shift - DEV_BSHIFT))) != 0) || in bd_strategy() 1223 (P2PHASE(bp->b_bcount, (1U << shift)) != 0) || in bd_strategy() 1434 if (P2PHASE(length, (1U << bd->d_blkshift)) != 0) { in bd_tg_rdwr() 1619 (P2PHASE(bd->d_maxxfer, media.m_blksize))) { in bd_update_state() 1970 (P2PHASE(len, (1U << xi->i_blkshift)) != 0)) { in bd_xfer_done()
|
/titanic_41/usr/src/uts/common/fs/zfs/sys/ |
H A D | spa.h | 62 #define BF32_DECODE(x, low, len) P2PHASE((x) >> (low), 1U << (len)) 63 #define BF64_DECODE(x, low, len) P2PHASE((x) >> (low), 1ULL << (len)) 64 #define BF32_ENCODE(x, low, len) (P2PHASE((x), 1U << (len)) << (low)) 65 #define BF64_ENCODE(x, low, len) (P2PHASE((x), 1ULL << (len)) << (low))
|
/titanic_41/usr/src/uts/sun4/vm/ |
H A D | vm_dep.c | 671 if (P2PHASE((uintptr_t)addr ^ off, pgsz)) { in map_szcvec() 678 szcvec |= P2PHASE(~disable_lpgs, (1 << i)); in map_szcvec()
|
/titanic_41/usr/src/uts/common/sys/ |
H A D | sysmacros.h | 246 #define P2PHASE(x, align) ((x) & ((align) - 1)) macro
|
/titanic_41/usr/src/uts/sun4v/os/ |
H A D | mpo.c | 1115 ASSERT(P2PHASE(pfn, szcpgcnt) == 0); in plat_mem_node_iterator_init() 1127 if (P2PHASE(base_ra_to_pa_pfn, szcpgcnt)) { in plat_mem_node_iterator_init() 1166 if (P2PHASE(mpo_mblock[i].ra_to_pa, szcpagesize)) in plat_mem_node_iterator_init()
|
/titanic_41/usr/src/uts/common/vm/ |
H A D | seg_kmem.c | 1481 P2PHASE(segkmem_heaplp_quantum, segkmem_lpsize)) { in segkmem_lpsetup() 1630 ASSERT(P2PHASE(segkmem_kmemlp_min, in segkmem_heap_lp_init()
|