Home
last modified time | relevance | path

Searched refs:IS_P2ALIGNED (Results 1 – 25 of 104) sorted by relevance

12345

/illumos-gate/usr/src/uts/sun4v/os/
H A Dmemseg.c93 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 Dctr.c126 !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 Defsys.h167 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 Dmemcntl.c228 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 Dblowfish_impl.c385 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 Ddes_impl.c517 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 Dvm_anon.c1171 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 Dseg_vn.c1924 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 Dbitops.h76 ASSERT3U(IS_P2ALIGNED(val, 1U << shift), !=, B_FALSE); \
81 ASSERT3U(IS_P2ALIGNED(val, 1ULL << shift), !=, B_FALSE); \
H A Drange_tree.h260 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 Darc.h48 ASSERT(IS_P2ALIGNED(x, 1U << SPA_MINBLOCKSHIFT)); \
53 ASSERT(IS_P2ALIGNED((x), 1U << SPA_MINBLOCKSHIFT)); \
/illumos-gate/usr/src/uts/common/os/
H A Ddkioc_free_util.c177 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 Dgrow.c173 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 Dcpu_uarray.c38 VERIFY(IS_P2ALIGNED(cua->cu_vals, CUA_ALIGN)); in cpu_uarray_zalloc()
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_ipsec.c63 if (!IS_P2ALIGNED(hdr, 4)) { in interpret_esp()
118 if (!IS_P2ALIGNED(hdr, 4)) { in interpret_ah()
H A Dsnoop_dhcp.c429 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 Dzfs_fletcher.c478 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 Dmach_sfmmu.c162 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 Dxdr_mblk.c161 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 Dpx_tools_4v.c238 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 Dcommon.c154 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 Dposix_memalign.c60 VERIFY3B(IS_P2ALIGNED(buf, sizeof (void *)), ==, B_TRUE); in main()
/illumos-gate/usr/src/uts/sun4u/serengeti/io/
H A Dsgsbbc_iosram.c425 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 Dphysmem.c362 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 Dsysi86.c703 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()

12345