Home
last modified time | relevance | path

Searched refs:P2PHASE (Results 1 – 25 of 44) sorted by relevance

12

/titanic_41/usr/src/grub/grub-0.97/stage2/zfs-include/
H A Dspa.h35 #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 Dmisc.c60 var = P2PHASE((var), ERR_SIZE); \
83 umem_error_begin = P2PHASE(umem_error_end + 1, ERR_SIZE); in umem_log_enter()
H A Dmalloc.c222 ASSERT(P2PHASE((uintptr_t)ret, align) == 0); in memalign()
H A Dumem.c1119 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 Dvmem.c510 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 Dbpobj.c117 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 Dspace_map.c86 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 Dvdev_cache.c197 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 Ddmu_object.c60 if (P2PHASE(object, L2_dnode_count) == 0) { in dmu_object_alloc()
H A Dmetaslab.c916 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 Ddnode.c392 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 Dzio.c507 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 Ddmu_tx.c256 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 Dzfs_vnops.c615 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 Dbp_map.c143 ASSERT(P2PHASE((uintptr_t)kaddr, bp_align) == color); in bp_mapin_common()
238 color = P2PHASE(base, bp_align); in bp_mapout()
H A Dvmem.c617 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 Dexec.c1858 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 Ddumpsubr.c954 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 Dfsys_zfs.h110 #define P2PHASE(x, align) ((x) & ((align) - 1)) macro
/titanic_41/usr/src/uts/common/io/blkdev/
H A Dblkdev.c823 (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 Dspa.h62 #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 Dvm_dep.c671 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 Dsysmacros.h246 #define P2PHASE(x, align) ((x) & ((align) - 1)) macro
/titanic_41/usr/src/uts/sun4v/os/
H A Dmpo.c1115 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 Dseg_kmem.c1481 P2PHASE(segkmem_heaplp_quantum, segkmem_lpsize)) { in segkmem_lpsetup()
1630 ASSERT(P2PHASE(segkmem_kmemlp_min, in segkmem_heap_lp_init()

12