/illumos-gate/usr/src/uts/sun4v/os/ |
H A D | memseg.c | 93 if (!IS_P2ALIGNED((uint64_t)pp, PAGESIZE) && in memseg_alloc_meta() 118 if (!IS_P2ALIGNED((uint64_t)epp, PAGESIZE) && in memseg_alloc_meta() 134 ASSERT(IS_P2ALIGNED((uint64_t)pp, PAGESIZE)); in memseg_alloc_meta() 180 ASSERT(IS_P2ALIGNED((uint64_t)off, PAGESIZE)); in memseg_free_meta() 206 ASSERT(IS_P2ALIGNED((uint64_t)off, PAGESIZE)); in memseg_get_metapfn() 244 if (!IS_P2ALIGNED((uint64_t)pp, PAGESIZE) && in memseg_remap_meta() 271 if (!IS_P2ALIGNED((uint64_t)epp, PAGESIZE) && in memseg_remap_meta() 287 ASSERT(IS_P2ALIGNED((uint64_t)pp, PAGESIZE)); in memseg_remap_meta()
|
/illumos-gate/usr/src/common/crypto/modes/ |
H A D | ctr.c | 126 !IS_P2ALIGNED(in, sizeof (uint32_t)) && in ctr_xor() 127 !IS_P2ALIGNED(out, sizeof (uint32_t)) && in ctr_xor() 128 !IS_P2ALIGNED(keyp, sizeof (uint32_t))) { in ctr_xor() 135 IS_P2ALIGNED(in, sizeof (uint32_t)) && in ctr_xor() 136 IS_P2ALIGNED(out, sizeof (uint32_t)) && in ctr_xor() 137 IS_P2ALIGNED(keyp, sizeof (uint32_t))) { in ctr_xor()
|
/illumos-gate/usr/src/uts/common/io/sfxge/ |
H A D | efsys.h | 167 ASSERT(IS_P2ALIGNED(_offset, sizeof (efx_dword_t))); \ 185 ASSERT(IS_P2ALIGNED(_offset, sizeof (efx_qword_t))); \ 206 ASSERT(IS_P2ALIGNED(_offset, sizeof (efx_oword_t))); \ 233 ASSERT(IS_P2ALIGNED(_offset, sizeof (efx_dword_t))); \ 251 ASSERT(IS_P2ALIGNED(_offset, sizeof (efx_qword_t))); \ 272 ASSERT(IS_P2ALIGNED(_offset, sizeof (efx_oword_t))); \ 313 ASSERT(IS_P2ALIGNED(_offset, sizeof (efx_dword_t))); \ 338 ASSERT(IS_P2ALIGNED(_offset, sizeof (efx_qword_t))); \ 362 ASSERT(IS_P2ALIGNED(_offset, sizeof (efx_oword_t))); \ 396 ASSERT(IS_P2ALIGNED(_offset, sizeof (efx_dword_t))); \ [all …]
|
/illumos-gate/usr/src/uts/common/syscall/ |
H A D | memcntl.c | 228 if (!IS_P2ALIGNED(addr, pgsz) || in memcntl() 229 !IS_P2ALIGNED(len, pgsz)) { in memcntl() 269 if (!IS_P2ALIGNED(p->p_brkbase + p->p_brksize, pgsz)) { in memcntl() 279 ASSERT(IS_P2ALIGNED(len, pgsz)); in memcntl() 310 if (!IS_P2ALIGNED(p->p_usrstack - p->p_stksize, pgsz)) { in memcntl() 329 ASSERT(IS_P2ALIGNED(addr, pgsz)); in memcntl() 330 ASSERT(IS_P2ALIGNED(len, pgsz)); in memcntl()
|
/illumos-gate/usr/src/common/crypto/blowfish/ |
H A D | blowfish_impl.c | 385 if (IS_P2ALIGNED(block, sizeof (uint32_t))) { in blowfish_encrypt_block() 435 if (IS_P2ALIGNED(out_block, sizeof (uint32_t))) { in blowfish_encrypt_block() 480 if (IS_P2ALIGNED(block, sizeof (uint32_t))) { in blowfish_decrypt_block() 530 if (IS_P2ALIGNED(out_block, sizeof (uint32_t))) { in blowfish_decrypt_block() 704 if (IS_P2ALIGNED(in, sizeof (uint32_t)) && in blowfish_copy_block() 705 IS_P2ALIGNED(out, sizeof (uint32_t))) { in blowfish_copy_block() 719 if (IS_P2ALIGNED(dst, sizeof (uint32_t)) && in blowfish_xor_block() 720 IS_P2ALIGNED(data, sizeof (uint32_t))) { in blowfish_xor_block()
|
/illumos-gate/usr/src/common/crypto/des/ |
H A D | des_impl.c | 517 if (IS_P2ALIGNED(block, sizeof (uint64_t)) && in des3_crunch_block() 518 IS_P2ALIGNED(out_block, sizeof (uint64_t))) { in des3_crunch_block() 579 if (IS_P2ALIGNED(block, sizeof (uint64_t)) && in des_crunch_block() 580 IS_P2ALIGNED(out_block, sizeof (uint64_t))) { in des_crunch_block() 737 if (!IS_P2ALIGNED(key, sizeof (uint64_t))) { in des23_keycheck() 883 if (IS_P2ALIGNED(cipherKey, sizeof (uint64_t))) { in des_init_keysched() 997 if (IS_P2ALIGNED(in, sizeof (uint32_t)) && in des_copy_block() 998 IS_P2ALIGNED(out, sizeof (uint32_t))) { in des_copy_block() 1012 if (IS_P2ALIGNED(dst, sizeof (uint32_t)) && in des_xor_block() 1013 IS_P2ALIGNED(data, sizeof (uint32_t))) { in des_xor_block()
|
/illumos-gate/usr/src/uts/common/vm/ |
H A D | vm_anon.c | 1171 ASSERT(IS_P2ALIGNED(pgcnt, pgcnt)); in anon_decref_pages() 1172 ASSERT(IS_P2ALIGNED(an_idx, pgcnt)); in anon_decref_pages() 1405 ASSERT(IS_P2ALIGNED(pgcnt, pgcnt)); in anon_dup_fill_holes() 1428 ASSERT(IS_P2ALIGNED(off, pgcnt)); in anon_dup_fill_holes() 1514 ASSERT(IS_P2ALIGNED(pgcnt, pgcnt)); in anon_fill_cow_holes() 1536 ASSERT(IS_P2ALIGNED(off, pgcnt)); in anon_fill_cow_holes() 1631 ASSERT(IS_P2ALIGNED(pgcnt, pgcnt)); in anon_free_pages() 1655 ASSERT(IS_P2ALIGNED(off, pgcnt)); in anon_free_pages() 2044 ASSERT(IS_P2ALIGNED(pgcnt, pgcnt)); in anon_map_getpages() 2572 ASSERT(IS_P2ALIGNED(pgcnt, pgcnt)); in anon_map_privatepages() [all …]
|
H A D | seg_vn.c | 1924 if (!IS_P2ALIGNED(addr, pgsz) || !IS_P2ALIGNED(len, pgsz)) { in segvn_unmap() 3436 IS_P2ALIGNED(pfn, pages)) { in segvn_fill_vp_pages() 3878 ASSERT(IS_P2ALIGNED(a, maxpgsz)); in segvn_fault_vnodepages() 4239 IS_P2ALIGNED(pfn, pages)) { in segvn_fault_vnodepages() 4571 ASSERT(IS_P2ALIGNED(a, pgsz)); in segvn_fault_vnodepages() 4673 ASSERT(IS_P2ALIGNED(a, maxpgsz)); in segvn_fault_anonpages() 4844 (IS_P2ALIGNED(a, pgsz) && IS_P2ALIGNED(lpgeaddr, pgsz))); in segvn_fault_anonpages() 4874 ASSERT(IS_P2ALIGNED(a, pgsz)); in segvn_fault_anonpages() 5759 if (!IS_P2ALIGNED(addr, pgsz) || !IS_P2ALIGNED(len, pgsz)) { in segvn_setprot() 6107 if (!IS_P2ALIGNED(addr, pgsz) || in segvn_setpagesize() [all …]
|
/illumos-gate/usr/src/uts/common/fs/zfs/sys/ |
H A D | bitops.h | 76 ASSERT3U(IS_P2ALIGNED(val, 1U << shift), !=, B_FALSE); \ 81 ASSERT3U(IS_P2ALIGNED(val, 1ULL << shift), !=, B_FALSE); \
|
H A D | range_tree.h | 260 ASSERT(IS_P2ALIGNED(start, 1ULL << rt->rt_shift)); in rs_set_start() 268 ASSERT(IS_P2ALIGNED(end, 1ULL << rt->rt_shift)); in rs_set_end() 275 ASSERT(IS_P2ALIGNED(fill, 1ULL << rt->rt_shift)); in rs_set_fill()
|
H A D | arc.h | 48 ASSERT(IS_P2ALIGNED(x, 1U << SPA_MINBLOCKSHIFT)); \ 53 ASSERT(IS_P2ALIGNED((x), 1U << SPA_MINBLOCKSHIFT)); \
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | dkioc_free_util.c | 177 if (!IS_P2ALIGNED(dfi->dfi_max_bytes, bsize)) { in dfl_iter() 183 if (dfi->dfi_align == 0 || !IS_P2ALIGNED(dfi->dfi_align, bsize)) { in dfl_iter() 189 if (!IS_P2ALIGNED(dfi->dfi_max_ext_bytes, bsize)) { in dfl_iter()
|
H A D | grow.c | 173 if (addr >= p->p_bssbase && brkend > addr && IS_P2ALIGNED(len, pgsz)) { in brk_lpg() 283 if (IS_P2ALIGNED(p->p_bssbase, pgsz) || ova > rbss) { in brk_internal() 339 ASSERT(IS_P2ALIGNED(oldsize, PAGESIZE)); in grow() 340 ASSERT(IS_P2ALIGNED(newsize, PAGESIZE)); in grow() 412 if (addr >= saddr && growend > addr && IS_P2ALIGNED(len, pgsz)) { in grow_lpg() 489 if (IS_P2ALIGNED(p->p_usrstack, pgsz) || oldsp < austk) { in grow_internal()
|
H A D | cpu_uarray.c | 38 VERIFY(IS_P2ALIGNED(cua->cu_vals, CUA_ALIGN)); in cpu_uarray_zalloc()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_ipsec.c | 63 if (!IS_P2ALIGNED(hdr, 4)) { in interpret_esp() 118 if (!IS_P2ALIGNED(hdr, 4)) { in interpret_ah()
|
H A D | snoop_dhcp.c | 429 if (IS_P2ALIGNED(start, in show_options() 679 if (IS_P2ALIGNED(*opt, sizeof (ushort_t))) in display_number() 688 if (IS_P2ALIGNED(*opt, sizeof (ulong_t))) in display_number()
|
/illumos-gate/usr/src/common/zfs/ |
H A D | zfs_fletcher.c | 478 ASSERT(IS_P2ALIGNED(buf, sizeof (uint32_t))); in fletcher_4_native() 479 ASSERT(IS_P2ALIGNED(size, sizeof (uint32_t))); in fletcher_4_native() 526 ASSERT(IS_P2ALIGNED(buf, sizeof (uint32_t))); in fletcher_4_byteswap() 527 ASSERT(IS_P2ALIGNED(size, sizeof (uint32_t))); in fletcher_4_byteswap() 848 ASSERT(IS_P2ALIGNED(size, sizeof (uint32_t))); in abd_fletcher_4_iter()
|
/illumos-gate/usr/src/uts/sun4u/vm/ |
H A D | mach_sfmmu.c | 162 ASSERT(IS_P2ALIGNED(tsbsz, tsbsz)); in sfmmu_remap_kernel() 163 ASSERT(IS_P2ALIGNED(va, tsbsz)); in sfmmu_remap_kernel()
|
/illumos-gate/usr/src/uts/common/rpc/ |
H A D | xdr_mblk.c | 161 if (!IS_P2ALIGNED(m->b_rptr, sizeof (int32_t)) || in xdrmblk_getint32() 199 while (!IS_P2ALIGNED(m->b_wptr, sizeof (int32_t)) || in xdrmblk_putint32() 579 if (!IS_P2ALIGNED(*mptr, sizeof (int32_t)) || in xdrmblk_inline() 627 if (!IS_P2ALIGNED(m->b_rptr, sizeof (int32_t))) in xdrmblk_control()
|
/illumos-gate/usr/src/uts/sun4v/io/px/ |
H A D | px_tools_4v.c | 238 if (!IS_P2ALIGNED(prg_p->offset, size)) { in pxtool_pcicfg_access() 367 if (!IS_P2ALIGNED(prg_p->offset, size)) { in pxtool_pciiomem_access() 507 if (!IS_P2ALIGNED(prg.offset, size)) { in pxtool_bus_reg_ops()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/pppoe/ |
H A D | common.c | 154 assert(dptr != NULL && IS_P2ALIGNED(dptr, sizeof (poep_t *))); in poe_mkheader() 175 if (poep == NULL || !IS_P2ALIGNED(poep, sizeof (uint16_t)) || in poe_tagcheck()
|
/illumos-gate/usr/src/test/libc-tests/tests/ |
H A D | posix_memalign.c | 60 VERIFY3B(IS_P2ALIGNED(buf, sizeof (void *)), ==, B_TRUE); in main()
|
/illumos-gate/usr/src/uts/sun4u/serengeti/io/ |
H A D | sgsbbc_iosram.c | 425 if (IS_P2ALIGNED(sram_src, size) && in iosram_rw() 426 IS_P2ALIGNED(buf, size)) { in iosram_rw() 447 if (IS_P2ALIGNED(sram_src, size) && in iosram_rw() 448 IS_P2ALIGNED(buf, size)) { in iosram_rw()
|
/illumos-gate/usr/src/uts/common/io/ |
H A D | physmem.c | 362 if (!IS_P2ALIGNED(base_pa, PAGESIZE)) in physmem_setup_addrs() 364 if (!IS_P2ALIGNED(len, PAGESIZE)) in physmem_setup_addrs() 366 if (uvaddr != NULL && !IS_P2ALIGNED(uvaddr, PAGESIZE)) in physmem_setup_addrs() 469 if (!IS_P2ALIGNED(req_paddr, PAGESIZE)) in physmem_map_addrs()
|
/illumos-gate/usr/src/uts/intel/os/ |
H A D | sysi86.c | 703 ASSERT(IS_P2ALIGNED(ldt, PAGESIZE)); in ldt_alloc() 726 ASSERT(IS_P2ALIGNED(ldtsz, PAGESIZE)); in ldt_free() 826 ASSERT(IS_P2ALIGNED(nldt, PAGESIZE)); in ldt_grow()
|