/illumos-gate/usr/src/uts/common/io/scsi/adapters/smrt/ |
H A D | smrt_commands.c | 172 contig_size += P2ROUNDUP_TYPED(sizeof (CommandList_t), 32, size_t); in smrt_command_alloc_impl() 175 contig_size += P2ROUNDUP_TYPED(sizeof (ErrorInfo_t), 32, size_t); in smrt_command_alloc_impl()
|
H A D | smrt_physical.c | 121 sz = P2ROUNDUP_TYPED(sz, 512, size_t); in smrt_phys_identify()
|
H A D | smrt_ciss.c | 1212 sz = P2ROUNDUP_TYPED(sizeof (*resp), 512, size_t); in smrt_ctlr_identify()
|
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | fastboot.c | 549 offs = P2ROUNDUP_TYPED(offs, 16, size_t); in fastboot_build_mbi() 681 fsize_roundup = P2ROUNDUP_TYPED(saved_file_size[i], in fastboot_reserve_mem() 733 fsize_roundup = P2ROUNDUP_TYPED(fb->fb_size, PAGESIZE, size_t); in fastboot_free_file() 960 fsize_roundup = P2ROUNDUP_TYPED(fsize, PAGESIZE, size_t); in fastboot_load_kernel() 1017 va = P2ROUNDUP_TYPED((uintptr_t)buf, PAGESIZE, uintptr_t); in fastboot_load_kernel()
|
H A D | ddi_impl.c | 1418 rsize = P2ROUNDUP_TYPED(size + align, KA_ALIGN, size_t); in kalloca() 1658 length = P2ROUNDUP_TYPED(length, attr->dma_attr_minxfer, in i_ddi_mem_alloc() 1666 length = P2ROUNDUP_TYPED(length, iomin, size_t); in i_ddi_mem_alloc()
|
/illumos-gate/usr/src/uts/common/io/ena/ |
H A D | ena_dma.c | 32 P2ROUNDUP_TYPED(conf->edc_size, ena->ena_page_sz, size_t); in ena_dma_attr()
|
H A D | ena.c | 805 ena->ena_tx_buf_sz = P2ROUNDUP_TYPED(ena->ena_max_frame_total, in ena_update_buf_sizes() 807 ena->ena_rx_buf_sz = P2ROUNDUP_TYPED(ena->ena_max_frame_total + in ena_update_buf_sizes()
|
/illumos-gate/usr/src/uts/common/fs/zfs/ |
H A D | zio_checksum.c | 362 size = P2ROUNDUP_TYPED(zilc.zc_nused, ZIL_MIN_BLKSZ, in zio_checksum_compute() 453 size = P2ROUNDUP_TYPED(nused, ZIL_MIN_BLKSZ, uint64_t); in zio_checksum_error_impl()
|
H A D | zil.c | 1478 wsz = P2ROUNDUP_TYPED(lwb->lwb_nused, ZIL_MIN_BLKSZ, uint64_t); in zil_lwb_write_issue() 1549 dlen = P2ROUNDUP_TYPED( in zil_lwb_commit() 1664 lrsize = P2ROUNDUP_TYPED(lrsize, sizeof (uint64_t), size_t); in zil_itx_create()
|
H A D | sa.c | 505 blocksize = P2ROUNDUP_TYPED(size, SPA_MINBLOCKSIZE, uint32_t); in sa_resize_spill()
|
H A D | zfs_vnops.c | 4786 io_len = P2ROUNDUP_TYPED(len + (off - io_off), blksz, size_t); in zfs_putpage()
|
/illumos-gate/usr/src/uts/common/inet/tcp/ |
H A D | tcp_fusion.c | 839 rwnd = P2ROUNDUP_TYPED(rwnd, PAGESIZE, size_t); in tcp_fuse_set_rcv_hiwat() 880 maxpsz = P2ROUNDUP_TYPED(maxpsz, PAGESIZE, uint_t) >> 1; in tcp_fuse_maxpsz()
|
/illumos-gate/usr/src/common/crypto/dh/ |
H A D | dh_impl.c | 328 s_alloc = P2ROUNDUP_TYPED(prime_bytes, sizeof (BIG_CHUNK_TYPE), size_t); in dh_key_derive()
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | sysmacros.h | 318 #define P2ROUNDUP_TYPED(x, align, type) \ macro
|
/illumos-gate/usr/src/common/fs/ |
H A D | bootrd_cpio.c | 186 tmpfile.fi_count = P2ROUNDUP_TYPED(len, DEV_BSIZE, size_t); in read_ramdisk()
|
/illumos-gate/usr/src/uts/common/fs/ufs/ |
H A D | ufs_dir.c | 379 endsearch = P2ROUNDUP_TYPED(dp->i_size, DIRBLKSIZ, u_offset_t); in ufs_dirlook() 1184 slotp->offset = P2ROUNDUP_TYPED(tdp->i_size, in ufs_dircheckforname() 1236 dirsize = P2ROUNDUP_TYPED(tdp->i_size, DIRBLKSIZ, u_offset_t); in ufs_dircheckforname() 1436 slotp->endoff = P2ROUNDUP_TYPED(enduseful, DIRBLKSIZ, off_t); in ufs_dircheckforname() 2004 dp->i_size = P2ROUNDUP_TYPED(entryend, DIRBLKSIZ, off_t); in dirprepareentry()
|
H A D | ufs_bmap.c | 523 P2ROUNDUP_TYPED(size, in bmap_write() 802 P2ROUNDUP_TYPED(size, in bmap_write()
|
H A D | ufs_vnops.c | 4503 P2ROUNDUP_TYPED(ip->i_size, PAGESIZE, u_offset_t); in ufs_getpage() 5979 cur_len = P2ROUNDUP_TYPED(cur_len, PAGESIZE, size_t); in ufs_pageio()
|
/illumos-gate/usr/src/uts/common/io/igc/ |
H A D | igc.c | 808 igc->igc_rx_buf_size = P2ROUNDUP_TYPED(igc->igc_max_frame + in igc_hw_buf_update() 810 tx_mtu = P2ROUNDUP_TYPED(igc->igc_max_frame, IGC_BUF_ALIGN, uint32_t); in igc_hw_buf_update()
|
/illumos-gate/usr/src/uts/sun4v/os/ |
H A D | error.c | 644 len = P2ROUNDUP_TYPED(orig_va + orig_len, MMU_PAGESIZE, uint64_t) - va; in mem_sync()
|
/illumos-gate/usr/src/uts/common/io/virtio/ |
H A D | virtio_main.c | 708 size_t sz_driver = P2ROUNDUP_TYPED(sz_descs + in virtio_queue_alloc() 712 size_t sz_device = P2ROUNDUP_TYPED(sizeof (virtio_vq_device_t) + in virtio_queue_alloc()
|
/illumos-gate/usr/src/uts/common/fs/specfs/ |
H A D | specvnops.c | 1191 P2ROUNDUP_TYPED(off + on + n, PAGESIZE, offset_t)) { in spec_write()
|
/illumos-gate/usr/src/uts/common/fs/tmpfs/ |
H A D | tmp_vnops.c | 220 P2ROUNDUP_TYPED(tp->tn_size, PAGESIZE, u_offset_t); in wrtmp()
|
/illumos-gate/usr/src/uts/common/vm/ |
H A D | vm_as.c | 1589 size = P2ROUNDUP_TYPED(size, PAGESIZE, size_t); in as_map_vnsegs()
|
/illumos-gate/usr/src/cmd/zfs/ |
H A D | zfs_main.c | 1007 volsize = P2ROUNDUP_TYPED(volsize, volblocksize, in zfs_do_create()
|