Home
last modified time | relevance | path

Searched refs:smap (Results 1 – 22 of 22) sorted by relevance

/freebsd/stand/i386/libi386/
H A Dbiosmem.c40 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 Dbiossmap.c42 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);
/freebsd/sys/dev/ata/chipsets/
H A Data-intel.c89 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/stand/i386/isoboot/
H A Disoboot.c88 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 Dgptboot.c91 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 Dnvdimm_e820.c303 const struct bios_smap *smapend, *smap; in nvdimm_e820_attach() local
311 for (nregions = 0, smap = smapbase; smap < smapend; smap++) { in nvdimm_e820_attach()
312 if (smap->type != SMAP_TYPE_PRAM || smap->length == 0) in nvdimm_e820_attach()
314 pram_segments[nregions].start = smap->base; in nvdimm_e820_attach()
315 pram_segments[nregions].size = smap->length; in nvdimm_e820_attach()
318 (uintmax_t)smap->base, (uintmax_t)smap in nvdimm_e820_attach()
[all...]
/freebsd/stand/userboot/userboot/
H A Dbiossmap.c44 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/sys/x86/x86/
H A Dnexus.c646 struct bios_smap *smapbase, *smap, *smapend; in ram_attach() local
665 for (smap = smapbase; smap < smapend; smap++) { in ram_attach()
666 if (smap->type != SMAP_TYPE_MEMORY || in ram_attach()
667 smap->length == 0) in ram_attach()
669 if (smap->base > mem_rman.rm_end) in ram_attach()
671 length = smap->base + smap->length > mem_rman.rm_end ? in ram_attach()
672 mem_rman.rm_end - smap->base : smap->length; in ram_attach()
674 smap->base, length); in ram_attach()
/freebsd/sys/i386/i386/
H A Dmachdep.c833 add_smap_entry(struct bios_smap *smap, vm_paddr_t *physmap, int *physmap_idxp) in add_smap_entry() argument
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
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
958 smap = (void *)vm86_addpage(&vmc, 1, PMAP_MAP_LOW + ptoa(1)); in getmemsize()
959 res = vm86_getptr(&vmc, (vm_offset_t)smap, &vmf.vmf_es, &vmf.vmf_di); in getmemsize()
[all …]
/freebsd/sys/amd64/amd64/
H A Dmachdep.c699 struct bios_smap *smap, *smapend; in bios_add_smap_entries() local
703 for (smap = smapbase; smap < smapend; smap++) { in bios_add_smap_entries()
706 smap->type, smap->base, smap->length); in bios_add_smap_entries()
708 if (smap->type != SMAP_TYPE_MEMORY) in bios_add_smap_entries()
711 if (!add_physmap_entry(smap->base, smap->length, physmap, in bios_add_smap_entries()
818 struct bios_smap *smap; in native_parse_memmap() local
832 smap = (struct bios_smap *)preload_search_info(kmdp, in native_parse_memmap()
834 if (efihdr == NULL && smap == NULL) in native_parse_memmap()
841 size = *((u_int32_t *)smap - 1); in native_parse_memmap()
842 bios_add_smap_entries(smap, size, physmap, physmap_idx); in native_parse_memmap()
[all …]
H A Dsupport.S768 .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 …]
/freebsd/sys/x86/xen/
H A Dhvm.c556 static struct bios_smap smap[128]; in xen_arch_init_physmem() local
558 .nr_entries = nitems(smap), in xen_arch_init_physmem()
563 set_xen_guest_handle(memmap.buffer, smap); in xen_arch_init_physmem()
576 if (smap[i].type != SMAP_TYPE_ACPI_ERROR) in xen_arch_init_physmem()
579 start = round_page(smap[i].base); in xen_arch_init_physmem()
581 end = MIN(trunc_page(smap[i].base + smap[i].length) - 1, in xen_arch_init_physmem()
/freebsd/stand/kboot/kboot/arch/amd64/
H A Dload_addr.c167 struct bios_smap smap[32], *sm; in bi_loadsmap() local
172 sm = &smap[smapnum]; in bi_loadsmap()
180 file_addmetadata(kfp, MODINFOMD_SMAP, len, &smap[0]); in bi_loadsmap()
/freebsd/sbin/sysctl/
H A Dsysctl.c838 struct bios_smap_xattr *smap, *end; in S_bios_smap_xattr() local
840 if (l2 % sizeof(*smap) != 0) { in S_bios_smap_xattr()
842 sizeof(*smap)); in S_bios_smap_xattr()
847 for (smap = p; smap < end; smap++) in S_bios_smap_xattr()
849 smap->type, smap->xattr, (uintmax_t)smap->base, in S_bios_smap_xattr()
850 (uintmax_t)smap->length); in S_bios_smap_xattr()
/freebsd/stand/i386/loader/
H A Dhelp.i38641 smap
/freebsd/sys/contrib/openzfs/module/zstd/lib/common/
H A Dcpu.h196 B(smap, 20)
/freebsd/sys/contrib/zstd/lib/common/
H A Dcpu.h194 B(smap, 20)
/freebsd/contrib/sendmail/src/
H A Dparseaddr.c1835 map_lookup(smap, key, argvect, pstat, e) in map_lookup() argument
1836 STAB *smap; in map_lookup()
1846 if (smap == NULL)
1849 map = &smap->s_map;
1859 smap->s_name, key);
1869 sm_dprintf("map_lookup(%s, ", smap->s_name);
1897 smap->s_name, key, errno);
1904 smap->s_name,
H A Dmap.c4116 MAP *smap = s->s_lmap; local
4118 if (tTd(38, 2) && smap != map)
4120 map->map_mname, smap->map_mname);
4121 smap->map_mflags &= ~(MF_OPEN|MF_WRITABLE);
4122 lmap = (SM_LDAP_STRUCT *) smap->map_db1;
8745 MAP *smap; local
8763 smap = s->s_socketmap;
8764 while (smap != NULL)
8768 if (tTd(38, 2) && smap != map)
8770 map->map_mname, smap->map_mname);
[all …]
/freebsd/tests/atf_python/sys/net/
H A Dvnet.py401 smap = SingleInterfaceMap(ifaces, [])
402 iface_map[iface_alias] = smap
/freebsd/sys/netpfil/ipfw/
H A Dip_fw_sockopt.c259 int *smap, rulenum; in update_skipto_cache() local
266 smap = chain->idxmap_back; in update_skipto_cache()
268 if (smap == NULL) in update_skipto_cache()
272 smap[i] = mi; in update_skipto_cache()
/freebsd/sys/vm/
H A Dvm_map.c3861 vm_map_t smap; in vm_map_sync() local
3865 smap = entry->object.sub_map; in vm_map_sync()
3866 vm_map_lock_read(smap); in vm_map_sync()
3867 (void) vm_map_lookup_entry(smap, offset, &tentry); in vm_map_sync()
3873 vm_map_unlock_read(smap); in vm_map_sync()