/illumos-gate/usr/src/compat/bhyve/amd64/machine/ |
H A D | param.h | 24 #define PAGE_SIZE (1<<PAGE_SHIFT) /* bytes/page */ macro 25 #define PAGE_MASK (PAGE_SIZE-1) 28 #define NPTEPG (PAGE_SIZE/(sizeof (pt_entry_t))) 31 #define NPDEPG (PAGE_SIZE/(sizeof (pd_entry_t))) 34 #define NPDPEPG (PAGE_SIZE/(sizeof (pdp_entry_t))) 37 #define NPML4EPG (PAGE_SIZE/(sizeof (pml4_entry_t)))
|
/illumos-gate/usr/src/boot/sys/amd64/include/ |
H A D | param.h | 96 #define NPTEPG (PAGE_SIZE/(sizeof (pt_entry_t))) 99 #define PAGE_SIZE (1<<PAGE_SHIFT) /* bytes/page */ macro 100 #define PAGE_MASK (PAGE_SIZE-1) 102 #define NPDEPG (PAGE_SIZE/(sizeof (pd_entry_t))) 108 #define NPDPEPG (PAGE_SIZE/(sizeof (pdp_entry_t))) 114 #define NPML4EPG (PAGE_SIZE/(sizeof (pml4_entry_t))) 128 #define IOPERM_BITMAP_SIZE (IOPAGES * PAGE_SIZE + 1) 150 #define pgtok(x) ((unsigned long)(x) * (PAGE_SIZE / 1024))
|
/illumos-gate/usr/src/lib/cfgadm_plugins/ac/common/ |
H A D | mema_test.c | 112 (void) sprintf(msgbuf, pg_header_msg, PAGE_SIZE(handle) * pageno); in error_print() 115 for (offset = 0; offset < PAGE_SIZE(handle); offset++) { in error_print() 151 npages = BANK_SIZE(handle) / PAGE_SIZE(handle); in memory_test_normal() 156 (void) memset((void *)patternbuf1, 0x55, PAGE_SIZE(handle)); in memory_test_normal() 157 (void) memset((void *)patternbuf2, 0xaa, PAGE_SIZE(handle)); in memory_test_normal() 197 PAGE_SIZE(handle)) != 0) { in memory_test_normal() 235 PAGE_SIZE(handle)) != 0) { in memory_test_normal() 263 PAGE_SIZE(handle)) != 0) { in memory_test_normal() 306 npages = BANK_SIZE(handle) / PAGE_SIZE(handle); in memory_test_quick() 311 (void) memset((void *)patternbuf1, 0x55, PAGE_SIZE(handle)); in memory_test_quick() [all …]
|
H A D | mema_test.h | 65 #define PAGE_SIZE(H) ((H)->page_size) macro 101 (size_t)PAGE_SIZE(H))
|
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/fw/ |
H A D | eth_constants.h | 12 #define NUM_OF_ETH_BDS_IN_PAGE ((PAGE_SIZE)/(STRUCT_SIZE(eth_tx_bd)/8)) 23 #define U_ETH_SGES_PER_PAGE_INVERSE_MASK (0xFFFF - ((PAGE_SIZE/((STRUCT_SIZE(eth_rx_sge))/8))-1)) 25 #define TU_ETH_CQES_PER_PAGE (PAGE_SIZE/(STRUCT_SIZE(eth_rx_cqe)/8)) 26 #define U_ETH_BDS_PER_PAGE (PAGE_SIZE/(STRUCT_SIZE(eth_rx_bd)/8)) 27 #define U_ETH_SGES_PER_PAGE (PAGE_SIZE/(STRUCT_SIZE(eth_rx_sge)/8))
|
/illumos-gate/usr/src/boot/sys/i386/include/ |
H A D | param.h | 89 #define PAGE_SIZE (1<<PAGE_SHIFT) /* bytes/page */ macro 90 #define PAGE_MASK (PAGE_SIZE-1) 91 #define NPTEPG (PAGE_SIZE/(sizeof (pt_entry_t))) 105 #define NPDEPG (PAGE_SIZE/(sizeof (pd_entry_t))) 163 #define pgtok(x) ((x) * (PAGE_SIZE / 1024))
|
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/ |
H A D | page.c | 63 if (bytes >= PAGE_SIZE) { in rdsv3_page_remainder_alloc() 64 page = kmem_alloc(PAGE_SIZE, gfp); in rdsv3_page_remainder_alloc() 68 rdsv3_sg_set_page(scat, page, PAGE_SIZE, 0); in rdsv3_page_remainder_alloc()
|
H A D | message.c | 310 rm = rdsv3_message_alloc(ceil(total_len, PAGE_SIZE), KM_NOSLEEP); in rdsv3_message_map_pages() 320 rm->m_nents = ceil(total_len, PAGE_SIZE); in rdsv3_message_map_pages() 328 PAGE_SIZE, 0); in rdsv3_message_map_pages() 345 rm = rdsv3_message_alloc(ceil(total_len, PAGE_SIZE), KM_NOSLEEP); in rdsv3_message_copy_from_user()
|
/illumos-gate/usr/src/boot/sys/sys/ |
H A D | param.h | 146 #define BLKDEV_IOSIZE PAGE_SIZE /* default block device I/O size */ 155 #define MAXDUMPPGS (DFLTPHYS/PAGE_SIZE) 172 #if PAGE_SIZE < 2048 174 #elif PAGE_SIZE <= 8192 175 #define MJUMPAGESIZE PAGE_SIZE
|
/illumos-gate/usr/src/uts/intel/io/vmm/amd/ |
H A D | svm_softc.h | 32 #define SVM_IO_BITMAP_SIZE (3 * PAGE_SIZE) 33 #define SVM_MSR_BITMAP_SIZE (2 * PAGE_SIZE) 58 } __aligned(PAGE_SIZE); 64 uint8_t apic_page[VM_MAXCPU][PAGE_SIZE];
|
/illumos-gate/usr/src/cmd/bhyve/common/ |
H A D | bootrom.c | 260 (var_size != 0 && var_size < PAGE_SIZE)) { in bootrom_loadrom() 281 for (i = 0; i < rom_size / PAGE_SIZE; i++) { in bootrom_loadrom() 282 rlen = read(fd, ptr + i * PAGE_SIZE, PAGE_SIZE); in bootrom_loadrom() 283 if (rlen != PAGE_SIZE) { in bootrom_loadrom()
|
/illumos-gate/usr/src/boot/i386/libi386/ |
H A D | elf64_freebsd.c | 87 bzero(PT4, PAGE_SIZE); in elf64_exec() 88 bzero(PT3, PAGE_SIZE); in elf64_exec() 89 bzero(PT2, PAGE_SIZE); in elf64_exec()
|
H A D | multiboot.c | 63 #define METADATA_FIXED_SIZE (PAGE_SIZE*4) 64 #define METADATA_MODULE_SIZE PAGE_SIZE 67 roundup(METADATA_FIXED_SIZE + METADATA_MODULE_SIZE * mod_num, PAGE_SIZE) 465 rfp->f_size = roundup(rfp->f_size, PAGE_SIZE); in multiboot_obj_loadfile() 513 rfp->f_size = roundup(rfp->f_size, PAGE_SIZE); in multiboot_obj_loadfile()
|
H A D | bootinfo64.c | 182 addr = roundup(addr, PAGE_SIZE); in bi_load64() 203 envp = roundup(addr + size, PAGE_SIZE); in bi_load64() 207 kernend = roundup(addr, PAGE_SIZE); in bi_load64()
|
H A D | bootinfo32.c | 200 addr = roundup(addr, PAGE_SIZE); in bi_load32() 207 addr = roundup(addr, PAGE_SIZE); in bi_load32() 223 kernend = roundup(addr + size, PAGE_SIZE); in bi_load32()
|
/illumos-gate/usr/src/test/bhyve-tests/tests/common/ |
H A D | in_guest.c | 97 pte_loc += PAGE_SIZE) { in populate_identity_table() 98 uint64_t *ptep = vm_map_gpa(ctx, pte_loc, PAGE_SIZE); in populate_identity_table() 110 uint64_t *pdep = vm_map_gpa(ctx, MEM_LOC_PAGE_TABLE_1G, PAGE_SIZE); in populate_identity_table() 112 pdep[1] = (MEM_LOC_PAGE_TABLE_2M + PAGE_SIZE) | PT_VALID | PT_WRITABLE; in populate_identity_table() 114 (MEM_LOC_PAGE_TABLE_2M + 2 * PAGE_SIZE) | PT_VALID | PT_WRITABLE; in populate_identity_table() 116 (MEM_LOC_PAGE_TABLE_2M + 3 * PAGE_SIZE) | PT_VALID | PT_WRITABLE; in populate_identity_table() 118 pdep = vm_map_gpa(ctx, MEM_LOC_PAGE_TABLE_512G, PAGE_SIZE); in populate_identity_table() 313 const uint64_t msg_map_end = MIN(msg_addr + PAGE_SIZE, lowmem_end); in test_msg_get() 360 const size_t map_len = P2ROUNDUP(len, PAGE_SIZE); in load_payload()
|
/illumos-gate/usr/src/cmd/mdb/intel/modules/mdb_kb/ |
H A D | mdb_kb.c | 93 #define PAGE_SIZE 0x1000 macro 95 #define PAGE_OFFSET(a) ((a) & (PAGE_SIZE - 1)) 96 #define PAGE_MASK(a) ((a) & ~(PAGE_SIZE - 1)) 97 #define PAGE_ALIGNED(a) (((a) & (PAGE_SIZE -1)) == 0) 394 size = (sizeof (mfn_t) * count) + (PAGE_SIZE * 2); in xkb_map_p2m() 572 size_t sz = MIN(left, PAGE_SIZE - pageoff); in xkb_read_helper() 678 return (PAGE_SIZE * pfn); in xkb_pfn_to_off() 680 return (PAGE_SIZE * (xkb->xkb_elf.xe_off[pfn])); in xkb_pfn_to_off() 712 (void) munmap(mm->mm_map, PAGE_SIZE); in xkb_map_mfn() 719 mm->mm_map = mmap(NULL, PAGE_SIZE, PROT_READ, MAP_SHARED, in xkb_map_mfn() [all …]
|
/illumos-gate/usr/src/uts/intel/io/vmm/ |
H A D | vmm_sol_glue.c | 153 kmem_free(i->vpi_vaddr, PAGE_SIZE); in vmm_ptp_hash_valdtor() 195 p = kmem_zalloc(PAGE_SIZE, KM_SLEEP); in vmm_ptp_alloc() 229 .dma_attr_align = PAGE_SIZE, in vmm_contig_alloc() 235 .dma_attr_granular = PAGE_SIZE, in vmm_contig_alloc() 240 res = contig_alloc(size, &attr, PAGE_SIZE, 1); in vmm_contig_alloc()
|
/illumos-gate/usr/src/uts/common/io/scsi/adapters/pvscsi/ |
H A D | pvscsi_var.h | 28 #define PVSCSI_MAX_IO_SIZE (PVSCSI_MAX_IO_PAGES * PAGE_SIZE) 120 #define PAGE_SIZE 4096 macro
|
H A D | pvscsi.c | 55 .dma_attr_align = PAGE_SIZE, 74 .dma_attr_maxxfer = PAGE_SIZE * PVSCSI_MAX_SG_SIZE, 738 if (pvscsi_setup_dma_buffer(pvs, PAGE_SIZE, &pvs->state_buf) != in pvscsi_allocate_rings() 746 if (pvscsi_setup_dma_buffer(pvs, pvs->req_pages * PAGE_SIZE, in pvscsi_allocate_rings() 753 if (pvscsi_setup_dma_buffer(pvs, pvs->cmp_pages * PAGE_SIZE, in pvscsi_allocate_rings() 761 if (pvscsi_setup_dma_buffer(pvs, pvs->msg_pages * PAGE_SIZE, in pvscsi_allocate_rings() 794 base += PAGE_SIZE; in pvscsi_setup_rings() 801 base += PAGE_SIZE; in pvscsi_setup_rings() 804 bzero(RINGS_STATE(pvs), PAGE_SIZE); in pvscsi_setup_rings() 805 bzero(REQ_RING(pvs), pvs->req_pages * PAGE_SIZE); in pvscsi_setup_rings() [all …]
|
/illumos-gate/usr/src/uts/common/io/cxgbe/shared/ |
H A D | osdep.h | 110 #define PAGE_SIZE 8192 macro 114 #define PAGE_SIZE 4096 macro
|
/illumos-gate/usr/src/uts/intel/io/vmm/intel/ |
H A D | vmx.h | 97 uint32_t reg[PAGE_SIZE / 4]; 99 CTASSERT(sizeof (struct apic_page) == PAGE_SIZE);
|
H A D | vtd.c | 139 static uint64_t root_table[PAGE_SIZE / sizeof (uint64_t)] __aligned(4096); 140 static uint64_t ctx_tables[256][PAGE_SIZE / sizeof (uint64_t)] __aligned(4096); 333 error = ddi_regs_map_setup(dip, 0, ®s, 0, PAGE_SIZE, ®s_attr, in vtd_map() 378 reg.regspec_size = PAGE_SIZE; in vtd_get_dip() 412 pdptr->par_reg->regspec_size = PAGE_SIZE; in vtd_get_dip()
|
/illumos-gate/usr/src/boot/efi/loader/ |
H A D | bootinfo.c | 394 addr = roundup(addr, PAGE_SIZE); in bi_load() 401 addr = roundup(addr, PAGE_SIZE); in bi_load() 410 addr += roundup(dtb_size, PAGE_SIZE); in bi_load() 436 kernend = roundup(addr + size, PAGE_SIZE); in bi_load()
|
/illumos-gate/usr/src/boot/i386/isoboot/ |
H A D | isoboot.c | 378 fs_off = PAGE_SIZE; in load() 381 p += roundup2(hdr.ex.a_text, PAGE_SIZE); in load() 384 p += hdr.ex.a_data + roundup2(hdr.ex.a_bss, PAGE_SIZE); in load() 415 p += roundup2(ep[1].p_memsz, PAGE_SIZE); in load()
|