/freebsd/stand/i386/libi386/ |
H A D | biosmem.c | 40 static struct bios_smap_xattr smap; variable 105 v86.es = VTOPSEG(&smap); in bios_getmem() 106 v86.edi = VTOPOFF(&smap); in bios_getmem() 111 if ((smap.type == SMAP_TYPE_MEMORY) && (smap.base == 0) && in bios_getmem() 112 (smap.length >= (512 * 1024))) { in bios_getmem() 113 bios_basemem = smap.length; in bios_getmem() 118 if ((smap.type == SMAP_TYPE_MEMORY) && in bios_getmem() 119 (smap.base == 0x100000) && in bios_getmem() 121 bios_extmem = smap.length; in bios_getmem() 129 if ((smap.type == SMAP_TYPE_MEMORY) && in bios_getmem() [all …]
|
H A D | biossmap.c | 42 struct bios_smap smap; member 76 v86.ecx < sizeof(buf.smap) || v86.ecx > SMAP_BUFSIZE) in bios_getsmap() 82 next->smap = buf.smap; in bios_getsmap() 97 smapbase[n++] = cur->smap; in bios_getsmap() 133 COMMAND_SET(smap, "smap", "show BIOS SMAP", command_smap); 144 printf("SMAP type=%02x base=%016llx len=%016llx attr=%02x\n", in command_smap() 151 printf("SMAP type=%02x base=%016llx len=%016llx\n", in command_smap()
|
/freebsd/contrib/nvi/vi/ |
H A D | vs_smap.c | 28 static int vs_sm_down(SCR *, MARK *, recno_t, scroll_t, SMAP *); 32 static int vs_sm_up(SCR *, MARK *, recno_t, scroll_t, SMAP *); 44 SMAP *p; in vs_change() 161 * right position. There isn't any way to tell if an SMAP 175 SMAP *p, tmp; in vs_sm_fill() 178 /* Flush all cached information from the SMAP. */ in vs_sm_fill() 304 * Delete a line out of the SMAP. 309 SMAP *p, *t; in vs_sm_delete() 331 memmove(p, p + cnt_orig, (((TMAP - p) - cnt_orig) + 1) * sizeof(SMAP)); in vs_sm_delete() 352 * Insert a line into the SMAP. [all …]
|
H A D | vi.h | 179 * Structure for mapping lines to the screen. An SMAP is an array, with one 185 * The SMAP always has an entry for each line of the physical screen, plus a 209 } SMAP; typedef 267 SMAP *h_smap; /* First slot of the line map. */ 268 SMAP *t_smap; /* Last slot of the line map. */ 283 * Macros to get to the head/tail of the smap. If the screen only has 285 * the off-by-one errors that can result. If stepping through an SMAP 302 SMAP *sc_smap; /* SMAP entry where sc_col occurs. */ 308 #define VIP_N_REFRESH 0x0010 /* Repaint (from SMAP) on the next refresh. */
|
H A D | vs_line.c | 34 * PUBLIC: int vs_line(SCR *, SMAP *, size_t *, size_t *); 37 vs_line(SCR *sp, SMAP *smp, size_t *yp, size_t *xp) in vs_line() 41 SMAP *tsmp; in vs_line() 202 * information about the lines displayed in the SMAP. If we're in vs_line() 489 SMAP *smp; in vs_number()
|
H A D | vs_split.c | 45 SMAP *smp; in vs_split() 63 CALLOC(sp, _HMAP(new), SIZE_HMAP(sp), sizeof(SMAP)); in vs_split() 108 (sp->t_maxrows - new->rows) * sizeof(SMAP)); in vs_split() 223 CALLOC(sp, _HMAP(new), SIZE_HMAP(sp), sizeof(SMAP)); in vs_vsplit() 757 CALLOC_RET(nsp, _HMAP(nsp), SIZE_HMAP(nsp), sizeof(SMAP)); in vs_swap()
|
/freebsd/sys/dev/ata/chipsets/ |
H A D | ata-intel.c | 89 u_char smap[4]; member 93 &((struct ata_intel_data *)((ctlr)->chipset_data))->smap[(ch)->unit * 2] 314 u_char *smap; in ata_intel_ch_attach() local 334 smap = ATA_INTEL_SMAP(ctlr, ch); in ata_intel_ch_attach() 341 smap[0] = (map & 0x01) ^ ch->unit; in ata_intel_ch_attach() 342 smap[1] = 0; in ata_intel_ch_attach() 345 smap[0] = (map & 0x01) ? 1 : 0; in ata_intel_ch_attach() 346 smap[1] = (map & 0x01) ? 0 : 1; in ata_intel_ch_attach() 349 smap[0] = (map & 0x01) ? 1 : 0; in ata_intel_ch_attach() 350 smap[1] = (map & 0x01) ? 0 : 1; in ata_intel_ch_attach() [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Analysis/ |
H A D | CFGStmtMap.cpp | 22 typedef llvm::DenseMap<const Stmt*, CFGBlock*> SMap; typedef 23 static SMap *AsMap(void *m) { return (SMap*) m; } in AsMap() 28 SMap *SM = AsMap(M); in getBlock() 34 SMap::iterator I = SM->find(X); in getBlock() 49 static void Accumulate(SMap &SM, CFGBlock *B) { in Accumulate() 82 SMap *SM = new SMap(); in Build()
|
/freebsd/stand/i386/isoboot/ |
H A D | isoboot.c | 88 static struct bios_smap smap; variable 132 v86.es = VTOPSEG(&smap); in bios_getmem() 133 v86.edi = VTOPOFF(&smap); in bios_getmem() 138 if ((smap.type == SMAP_TYPE_MEMORY) && (smap.base == 0) && in bios_getmem() 139 (smap.length >= (512 * 1024))) in bios_getmem() 140 bios_basemem = smap.length; in bios_getmem() 142 if ((smap.type == SMAP_TYPE_MEMORY) && in bios_getmem() 143 (smap.base == 0x100000)) { in bios_getmem() 144 bios_extmem = smap.length; in bios_getmem() 151 if ((smap.type == SMAP_TYPE_MEMORY) && in bios_getmem() [all …]
|
/freebsd/stand/i386/gptboot/ |
H A D | gptboot.c | 91 static struct bios_smap smap; variable 149 v86.es = VTOPSEG(&smap); in bios_getmem() 150 v86.edi = VTOPOFF(&smap); in bios_getmem() 155 if ((smap.type == SMAP_TYPE_MEMORY) && (smap.base == 0) && in bios_getmem() 156 (smap.length >= (512 * 1024))) in bios_getmem() 157 bios_basemem = smap.length; in bios_getmem() 159 if ((smap.type == SMAP_TYPE_MEMORY) && in bios_getmem() 160 (smap.base == 0x100000)) { in bios_getmem() 161 bios_extmem = smap.length; in bios_getmem() 168 if ((smap.type == SMAP_TYPE_MEMORY) && in bios_getmem() [all …]
|
/freebsd/sys/dev/nvdimm/ |
H A D | nvdimm_e820.c | 270 /* Only supports BIOS SMAP for now. */ in nvdimm_e820_identify() 299 const struct bios_smap *smapend, *smap; in nvdimm_e820_attach() local 307 for (nregions = 0, smap = smapbase; smap < smapend; smap++) { in nvdimm_e820_attach() 308 if (smap->type != SMAP_TYPE_PRAM || smap->length == 0) in nvdimm_e820_attach() 310 pram_segments[nregions].start = smap->base; in nvdimm_e820_attach() 311 pram_segments[nregions].size = smap->length; in nvdimm_e820_attach() 314 (uintmax_t)smap->base, (uintmax_t)smap->length); in nvdimm_e820_attach()
|
/freebsd/sys/i386/i386/ |
H A D | machdep.c | 833 add_smap_entry(struct bios_smap *smap, vm_paddr_t *physmap, int *physmap_idxp) in add_smap_entry() argument 836 printf("SMAP type=%02x base=%016llx len=%016llx\n", in add_smap_entry() 837 smap->type, smap->base, smap->length); in add_smap_entry() 839 if (smap->type != SMAP_TYPE_MEMORY) in add_smap_entry() 842 return (add_physmap_entry(smap->base, smap->length, physmap, in add_smap_entry() 850 struct bios_smap *smap, *smapend; in add_smap_entries() local 857 * ie: an int32_t immediately precedes SMAP. in add_smap_entries() 862 for (smap = smapbase; smap < smapend; smap++) in add_smap_entries() 863 if (!add_smap_entry(smap, physmap, physmap_idxp)) in add_smap_entries() 905 struct bios_smap *smap, *smapbase; in getmemsize() local [all …]
|
/freebsd/sys/x86/x86/ |
H A D | nexus.c | 644 struct bios_smap *smapbase, *smap, *smapend; in ram_attach() local 659 for (smap = smapbase; smap < smapend; smap++) { in ram_attach() 660 if (smap->type != SMAP_TYPE_MEMORY || in ram_attach() 661 smap->length == 0) in ram_attach() 663 if (smap->base > mem_rman.rm_end) in ram_attach() 665 length = smap->base + smap->length > mem_rman.rm_end ? in ram_attach() 666 mem_rman.rm_end - smap->base : smap->length; in ram_attach() 668 smap->base, length); in ram_attach()
|
/freebsd/sys/amd64/amd64/ |
H A D | support.S | 768 .macro SMAP_DISABLE smap argument 769 .if \smap 775 .macro SMAP_ENABLE smap argument 776 .if \smap 790 SMAP_ENABLE smap=1 798 .macro COPYOUT smap erms 835 SMAP_DISABLE \smap 836 .if \smap == 1 845 COPYOUT smap=0 erms=0 849 COPYOUT smap=1 erms=0 [all …]
|
H A D | machdep.c | 706 struct bios_smap *smap, *smapend; in bios_add_smap_entries() local 710 for (smap = smapbase; smap < smapend; smap++) { in bios_add_smap_entries() 712 printf("SMAP type=%02x base=%016lx len=%016lx\n", in bios_add_smap_entries() 713 smap->type, smap->base, smap->length); in bios_add_smap_entries() 715 if (smap->type != SMAP_TYPE_MEMORY) in bios_add_smap_entries() 718 if (!add_physmap_entry(smap->base, smap->length, physmap, in bios_add_smap_entries() 829 struct bios_smap *smap; in native_parse_memmap() local 838 * ie: an int32_t immediately precedes smap. in native_parse_memmap() 843 smap = (struct bios_smap *)preload_search_info(preload_kmdp, in native_parse_memmap() 845 if (efihdr == NULL && smap == NULL) in native_parse_memmap() [all …]
|
H A D | trap.c | 675 * SMAP-induced if: in trap_is_smap() 676 * - SMAP is supported; in trap_is_smap() 680 * if SMAP is enabled. in trap_is_smap() 790 * If SMAP is enabled, filter SMAP faults also, in trap_pfault()
|
/freebsd/stand/userboot/userboot/ |
H A D | biossmap.c | 44 struct bios_smap smap[3], *sm; in bios_addsmapdata() local 48 sm = &smap[0]; in bios_addsmapdata() 70 file_addmetadata(kfp, MODINFOMD_SMAP, len, &smap[0]); in bios_addsmapdata()
|
/freebsd/stand/i386/loader/ |
H A D | help.i386 | 39 # Tsmap DDisplay BIOS SMAP table 41 smap 43 Displays the BIOS SMAP (system memory map) table.
|
/freebsd/sys/x86/xen/ |
H A D | hvm.c | 547 static struct bios_smap smap[128]; in xen_arch_init_physmem() local 549 .nr_entries = nitems(smap), in xen_arch_init_physmem() 554 set_xen_guest_handle(memmap.buffer, smap); in xen_arch_init_physmem() 567 if (smap[i].type != SMAP_TYPE_ACPI_ERROR) in xen_arch_init_physmem() 570 start = round_page(smap[i].base); in xen_arch_init_physmem() 572 end = MIN(trunc_page(smap[i].base + smap[i].length) - 1, in xen_arch_init_physmem()
|
/freebsd/usr.bin/vi/ |
H A D | extern.h | 281 int vs_line(SCR *, SMAP *, size_t *, size_t *); 301 int vs_sm_next(SCR *, SMAP *, SMAP *); 302 int vs_sm_prev(SCR *, SMAP *, SMAP *); 303 int vs_sm_cursor(SCR *, SMAP **); 305 recno_t vs_sm_nlines(SCR *, SMAP *, recno_t, size_t);
|
/freebsd/sys/amd64/include/pc/ |
H A D | bios.h | 34 * Int 15:E820 'SMAP' structure 36 #define SMAP_SIG 0x534D4150 /* 'SMAP' */
|
/freebsd/sbin/sysctl/ |
H A D | sysctl.c | 879 struct bios_smap_xattr *smap, *end; in S_bios_smap_xattr() local 881 if (l2 % sizeof(*smap) != 0) { in S_bios_smap_xattr() 883 sizeof(*smap)); in S_bios_smap_xattr() 888 for (smap = p; smap < end; smap++) in S_bios_smap_xattr() 890 smap->type, smap->xattr, (uintmax_t)smap->base, in S_bios_smap_xattr() 891 (uintmax_t)smap->length); in S_bios_smap_xattr()
|
/freebsd/sys/i386/include/pc/ |
H A D | bios.h | 204 * Int 15:E820 'SMAP' structure 206 #define SMAP_SIG 0x534D4150 /* 'SMAP' */
|
/freebsd/sys/contrib/zstd/lib/common/ |
H A D | cpu.h | 194 B(smap, 20)
|
/freebsd/sys/contrib/openzfs/module/zstd/lib/common/ |
H A D | cpu.h | 197 B(smap, 20)
|