Home
last modified time | relevance | path

Searched refs:PAGE_SIZE (Results 1 – 25 of 60) sorted by relevance

123

/illumos-gate/usr/src/compat/bhyve/amd64/machine/
H A Dparam.h24 #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 Dparam.h96 #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/uts/common/io/bnxe/577xx/drivers/common/lm/fw/
H A Deth_constants.h12 #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/lib/cfgadm_plugins/ac/common/
H A Dmema_test.c197 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()
353 PAGE_SIZE(handle)) != 0) { in memory_test_quick()
391 PAGE_SIZE(handle)) != 0) { in memory_test_quick()
540 PAGE_SIZE(handle)) != 0) { in memory_test_extended()
547 PAGE_SIZE(handle)) != 0) { in memory_test_extended()
554 PAGE_SIZE(handle)) != 0) { in memory_test_extended()
605 PAGE_SIZE(handle)) != 0) { in memory_test_extended()
656 PAGE_SIZE(handle)) != 0) { in memory_test_extended()
[all …]
H A Dmema_test.h65 #define PAGE_SIZE(H) ((H)->page_size) macro
101 (size_t)PAGE_SIZE(H))
/illumos-gate/usr/src/boot/sys/i386/include/
H A Dparam.h89 #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/intel/io/vmm/amd/
H A Dsvm_softc.h32 #define SVM_IO_BITMAP_SIZE (3 * PAGE_SIZE)
33 #define SVM_MSR_BITMAP_SIZE (2 * PAGE_SIZE)
54 } __aligned(PAGE_SIZE);
60 uint8_t apic_page[VM_MAXCPU][PAGE_SIZE];
/illumos-gate/usr/src/uts/common/io/ib/clients/rdsv3/
H A Dpage.c63 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 Dmessage.c310 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()
H A Dcong.c160 zp = (unsigned long)kmem_zalloc(PAGE_SIZE, KM_NOSLEEP); in rdsv3_cong_from_addr()
179 kmem_free((void *)map->m_page_addrs[i], PAGE_SIZE); in rdsv3_cong_from_addr()
456 kmem_free((void *)map->m_page_addrs[i], PAGE_SIZE); in rdsv3_cong_exit()
/illumos-gate/usr/src/boot/sys/sys/
H A Dparam.h146 #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/test/bhyve-tests/tests/common/
H A Din_guest.c97 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/boot/i386/libi386/
H A Delf64_freebsd.c87 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 Dmultiboot.c63 #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 Dbootinfo64.c182 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 Dbootinfo32.c200 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/cmd/bhyve/
H A Dbootrom.c257 (var_size != 0 && var_size < PAGE_SIZE)) { in bootrom_loadrom()
278 for (i = 0; i < rom_size / PAGE_SIZE; i++) { in bootrom_loadrom()
279 rlen = read(fd, ptr + i * PAGE_SIZE, PAGE_SIZE); in bootrom_loadrom()
280 if (rlen != PAGE_SIZE) { in bootrom_loadrom()
/illumos-gate/usr/src/cmd/mdb/intel/modules/mdb_kb/
H A Dmdb_kb.c93 #define PAGE_SIZE 0x1000 macro
95 #define PAGE_OFFSET(a) ((a) & (PAGE_SIZE - 1))
96 #define PAGE_MASK(a) ((a) & ~(PAGE_SIZE - 1))
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()
1276 if (sect->gs_shdr.sh_entsize != PAGE_SIZE) in xkb_open_elf()
1413 PAGE_SIZE * xkb->xkb_nr_pages); in xkb_close()
1418 (void) munmap((void *)addr, PAGE_SIZE); in xkb_close()
[all …]
/illumos-gate/usr/src/uts/intel/io/vmm/
H A Dvmm_sol_glue.c153 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 Dpvscsi_var.h28 #define PVSCSI_MAX_IO_SIZE (PVSCSI_MAX_IO_PAGES * PAGE_SIZE)
120 #define PAGE_SIZE 4096 macro
H A Dpvscsi.c55 .dma_attr_align = PAGE_SIZE,
74 .dma_attr_maxxfer = PAGE_SIZE * PVSCSI_MAX_SG_SIZE,
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()
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()
806 bzero(CMP_RING(pvs), pvs->cmp_pages * PAGE_SIZE); in pvscsi_setup_rings()
817 base += PAGE_SIZE; in pvscsi_setup_rings()
[all …]
/illumos-gate/usr/src/uts/intel/io/vmm/intel/
H A Dvmx.h97 uint32_t reg[PAGE_SIZE / 4];
99 CTASSERT(sizeof (struct apic_page) == PAGE_SIZE);
H A Dvtd.c139 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, &regs, 0, PAGE_SIZE, &regs_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 Dbootinfo.c394 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 Disoboot.c378 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()

123