/freebsd/sys/amd64/vmm/intel/ |
H A D | vtd.c | 158 struct domain *dom; in domain_id() local 162 SLIST_FOREACH(dom, &domhead, next) { in domain_id() 163 if (dom->id == id) in domain_id() 166 if (dom == NULL) in domain_id() 439 struct domain *dom = arg; in vtd_add_device() local 444 KASSERT(dom != NULL, ("domain is NULL")); in vtd_add_device() 448 pt_paddr = vtophys(dom->ptp); in vtd_add_device() 465 ctxp[idx + 1] = dom->addrwidth | (dom->id << 8); in vtd_add_device() 518 struct domain *dom; in vtd_update_mapping() local 522 dom = arg; in vtd_update_mapping() [all …]
|
/freebsd/tools/regression/sockets/so_setfib/ |
H A D | so_setfib.c | 96 so_setfib(int s, int i, u_int dom, u_int type) in so_setfib() argument 103 printf("ok %d %s_%s_%d\n", testno, t_dom[dom].name, in so_setfib() 108 t_dom[dom].name, t_type[type].name, i, s, i); in so_setfib() 110 printf("ok %d %s_%s_%d\n", testno, t_dom[dom].name, in so_setfib() 115 t_dom[dom].name, t_type[type].name, i, s, i, in so_setfib() 118 printf("not ok %d %s_%s_%d\n", testno, t_dom[dom].name, in so_setfib() 130 t(u_int dom, u_int type) in t() argument 135 if (t_dom[dom].domain == PF_ROUTE && t_type[type].type != SOCK_RAW) in t() 137 if (t_dom[dom].domain == PF_LOCAL && t_type[type].type == SOCK_RAW) in t() 141 s = socket(t_dom[dom].domain, t_type[type].type, 0); in t() [all …]
|
/freebsd/sys/amd64/vmm/io/ |
H A D | iommu.h | 43 typedef void (*iommu_remove_device_t)(void *dom, uint16_t rid); 44 typedef void (*iommu_invalidate_tlb_t)(void *dom); 67 void iommu_destroy_domain(void *dom); 68 void iommu_create_mapping(void *dom, vm_paddr_t gpa, vm_paddr_t hpa, 70 void iommu_remove_mapping(void *dom, vm_paddr_t gpa, size_t len); 71 void iommu_add_device(void *dom, uint16_t rid); 72 void iommu_remove_device(void *dom, uint16_t rid);
|
H A D | iommu.c | 88 IOMMU_DESTROY_DOMAIN(void *dom) in IOMMU_DESTROY_DOMAIN() argument 92 (*ops->destroy_domain)(dom); in IOMMU_DESTROY_DOMAIN() 277 iommu_destroy_domain(void *dom) in iommu_destroy_domain() argument 280 IOMMU_DESTROY_DOMAIN(dom); in iommu_destroy_domain() 284 iommu_create_mapping(void *dom, vm_paddr_t gpa, vm_paddr_t hpa, size_t len) in iommu_create_mapping() argument 291 mapped = IOMMU_CREATE_MAPPING(dom, gpa, hpa, remaining); in iommu_create_mapping() 299 iommu_remove_mapping(void *dom, vm_paddr_t gpa, size_t len) in iommu_remove_mapping() argument 306 unmapped = IOMMU_REMOVE_MAPPING(dom, gpa, remaining); in iommu_remove_mapping() 320 iommu_add_device(void *dom, uint16_t rid) in iommu_add_device() argument 323 IOMMU_ADD_DEVICE(dom, rid); in iommu_add_device() [all …]
|
/freebsd/sys/net/route/ |
H A D | route_tables.c | 221 struct domain *dom; in grow_rtables() local 248 SLIST_FOREACH(dom, &domains, dom_next) { in grow_rtables() 249 if (dom->dom_rtattach == NULL) in grow_rtables() 251 family = dom->dom_family; in grow_rtables() 256 rh = dom->dom_rtattach(i); in grow_rtables() 259 dom->dom_family, i); in grow_rtables() 284 SLIST_FOREACH(dom, &domains, dom_next) { in grow_rtables() 285 if (dom->dom_rtattach != NULL) in grow_rtables() 286 fib_setup_family(dom->dom_family, num_tables); in grow_rtables() 324 struct domain *dom; in rtables_destroy() local [all...] |
/freebsd/sys/dev/xen/privcmd/ |
H A D | privcmd.c | 102 domid_t dom; member 272 if (u->dom != DOMID_INVALID) { in privcmd_ioctl() 313 if (u->dom != DOMID_INVALID && u->dom != mmap->dom) { in privcmd_ioctl() 326 add.u.foreign_domid = mmap->dom; in privcmd_ioctl() 399 if (u->dom != DOMID_INVALID && u->dom != mmap->dom) { in privcmd_ioctl() 406 adq.domid = mmap->dom; in privcmd_ioctl() 454 if (u->dom != DOMID_INVALID && u->dom != dmop->dom) { in privcmd_ioctl() 485 error = HYPERVISOR_dm_op(dmop->dom, dmop->num, hbufs); in privcmd_ioctl() 501 domid_t dom; in privcmd_ioctl() local 503 dom = *(domid_t *)arg; in privcmd_ioctl() [all …]
|
/freebsd/sys/x86/iommu/ |
H A D | amd_iommu.h | 130 #define AMDIOMMU_DOMAIN_LOCK(dom) mtx_lock(&(dom)->iodom.lock) argument 131 #define AMDIOMMU_DOMAIN_UNLOCK(dom) mtx_unlock(&(dom)->iodom.lock) argument 132 #define AMDIOMMU_DOMAIN_ASSERT_LOCKED(dom) \ argument 133 mtx_assert(&(dom)->iodom.lock, MA_OWNED) 135 #define AMDIOMMU_DOMAIN_PGLOCK(dom) VM_OBJECT_WLOCK((dom)->pgtbl_obj) argument 136 #define AMDIOMMU_DOMAIN_PGTRYLOCK(dom) VM_OBJECT_TRYWLOCK((dom)->pgtbl_obj) argument 137 #define AMDIOMMU_DOMAIN_PGUNLOCK(dom) VM_OBJECT_WUNLOCK((dom)->pgtbl_obj) argument 138 #define AMDIOMMU_DOMAIN_ASSERT_PGLOCKED(dom) \ argument 139 VM_OBJECT_ASSERT_WLOCKED((dom)->pgtbl_obj)
|
H A D | intel_dmar.h | 77 #define DMAR_DOMAIN_PGLOCK(dom) VM_OBJECT_WLOCK((dom)->pgtbl_obj) argument 78 #define DMAR_DOMAIN_PGTRYLOCK(dom) VM_OBJECT_TRYWLOCK((dom)->pgtbl_obj) argument 79 #define DMAR_DOMAIN_PGUNLOCK(dom) VM_OBJECT_WUNLOCK((dom)->pgtbl_obj) argument 80 #define DMAR_DOMAIN_ASSERT_PGLOCKED(dom) \ argument 81 VM_OBJECT_ASSERT_WLOCKED((dom)->pgtbl_obj) 83 #define DMAR_DOMAIN_LOCK(dom) mtx_lock(&(dom)->iodom.lock) argument 84 #define DMAR_DOMAIN_UNLOCK(dom) mtx_unlock(&(dom)->iodom.lock) argument 85 #define DMAR_DOMAIN_ASSERT_LOCKED(dom) mtx_assert(&(dom)->iodom.lock, MA_OWNED) argument
|
H A D | amd_intrmap.c | 306 int dom; in amdiommu_ctx_init_irte() local 318 if (bus_get_domain(unit->iommu.dev, &dom) != 0) in amdiommu_ctx_init_irte() 319 dom = -1; in amdiommu_ctx_init_irte() 324 if (dom != -1) { in amdiommu_ctx_init_irte() 325 ptr = contigmalloc_domainset(sz, M_DEVBUF, DOMAINSET_PREF(dom), in amdiommu_ctx_init_irte()
|
/freebsd/lib/libc/gen/ |
H A D | getnetgrent.c | 477 const char* dom, const char* group) argument 488 dom ? dom : lookupdom); 495 dom ? dom : lookupdom); 534 const char *group, *host, *user, *dom; local 539 dom = va_arg(ap, const char *); 578 host?host:user, dom, group); 582 } else if (ret == 0 && dom != NULL) { 589 return (_innetgr_fallback(retval, mdata, group, host, user, dom)); 594 const char *user, const char *dom) argument 640 (dom == NULL || d == NULL || strcmp(dom, d) == 0)) { [all …]
|
/freebsd/sys/contrib/xen/ |
H A D | event_channel.h | 95 domid_t dom, remote_dom; member 211 domid_t dom; member 224 domid_t dom; member 227 domid_t dom; member 277 domid_t dom; member
|
H A D | grant_table.h | 348 domid_t dom; member 390 domid_t dom; member 409 domid_t dom; member 487 domid_t dom; member 548 domid_t dom; member 562 domid_t dom; member
|
/freebsd/sys/arm64/arm64/ |
H A D | mp_machdep.c | 363 struct cpu_group *dom, *root; in cpu_topo() local 367 dom = smp_topo_alloc(vm_ndomains); in cpu_topo() 370 root->cg_child = dom; in cpu_topo() 381 for (i = 0; i < vm_ndomains; i++, dom++) { in cpu_topo() 382 dom->cg_parent = root; in cpu_topo() 383 dom->cg_child = NULL; in cpu_topo() 384 CPU_COPY(&cpuset_domain[i], &dom->cg_mask); in cpu_topo() 385 dom->cg_count = CPU_COUNT(&dom->cg_mask); in cpu_topo() 386 dom->cg_children = 0; in cpu_topo() 387 dom->cg_level = CG_SHARE_L3; in cpu_topo() [all …]
|
/freebsd/sys/dev/iommu/ |
H A D | iommu.h | 156 #define IOMMU_DOMAIN_LOCK(dom) mtx_lock(&(dom)->lock) argument 157 #define IOMMU_DOMAIN_UNLOCK(dom) mtx_unlock(&(dom)->lock) argument 158 #define IOMMU_DOMAIN_ASSERT_LOCKED(dom) mtx_assert(&(dom)->lock, MA_OWNED) argument
|
/freebsd/sys/contrib/openzfs/include/os/linux/spl/sys/ |
H A D | sid.h | 41 ksid_lookupdomain(const char *dom) in ksid_lookupdomain() argument 44 int len = strlen(dom); in ksid_lookupdomain() 48 memcpy(kd->kd_name, dom, len); in ksid_lookupdomain()
|
/freebsd/sys/xen/ |
H A D | privcmd.h | 47 domid_t dom; /* target domain */ member 54 domid_t dom; /* target domain */ member 72 domid_t dom; /* target domain */ member
|
/freebsd/lib/libc/yp/ |
H A D | yplib.c | 281 _yp_dobind(char *dom, struct dom_binding **ypdb) in _yp_dobind() argument 298 if (strchr(dom, '/') != NULL) in _yp_dobind() 318 if (dom == NULL || strlen(dom) == 0) in _yp_dobind() 322 if (strcmp(dom, ysd->dom_domain) == 0) in _yp_dobind() 371 snprintf(path, sizeof(path), "%s/%s.%d", BINDINGDIR, dom, 2); in _yp_dobind() 465 (xdrproc_t)xdr_domainname, &dom, in _yp_dobind() 476 "YP: server for domain %s not responding, retrying\n", dom); in _yp_dobind() 513 strlcpy(ysd->dom_domain, dom, sizeof(ysd->dom_domain)); in _yp_dobind() 598 yp_bind_locked(char *dom) in yp_bind_locked() argument 600 return (_yp_dobind(dom, NULL)); in yp_bind_locked() [all …]
|
/freebsd/crypto/heimdal/lib/krb5/ |
H A D | get_host_realm.c | 96 char dom[MAXHOSTNAMELEN]; in dns_find_realm() local 111 ret = snprintf(dom, sizeof(dom), "%s.%s.", labels[i], domain); in dns_find_realm() 112 if(ret < 0 || (size_t)ret >= sizeof(dom)) { in dns_find_realm() 117 r = rk_dns_lookup(dom, "TXT"); in dns_find_realm()
|
/freebsd/include/rpcsvc/ |
H A D | ypclnt.h | 73 int yp_bind(char *dom); 74 int _yp_dobind(char *dom, struct dom_binding **ypdb); 75 void yp_unbind(char *dom);
|
/freebsd/usr.sbin/cron/cron/ |
H A D | cron.c | 218 int second, minute, hour, dom, month, dow; local 227 dom = tm->tm_mday -FIRST_DOM; 232 getpid(), second, minute, hour, dom, month, dow)) 319 ? (bit_test(e->dow,otzdow) && bit_test(e->dom,otzdom)) 320 : (bit_test(e->dow,otzdow) || bit_test(e->dom,otzdom)) 339 ? (bit_test(e->dow,dow) && bit_test(e->dom,dom)) 340 : (bit_test(e->dow,dow) || bit_test(e->dom,dom))
|
/freebsd/usr.sbin/ypset/ |
H A D | ypset.c | 57 bind_tohost(struct sockaddr_in *sin, char *dom, char *server) in bind_tohost() argument 79 ypsd.ypsetdom_domain = dom; in bind_tohost() 101 " - make sure ypbind was started with -ypset or -ypsetme", dom, in bind_tohost()
|
/freebsd/usr.sbin/cron/lib/ |
H A D | entry.c | 163 bit_set(e->dom, 0); in load_entry() 172 bit_set(e->dom, 0); in load_entry() 181 bit_nset(e->dom, 0, (LAST_DOM-FIRST_DOM+1)); in load_entry() 190 bit_nset(e->dom, 0, (LAST_DOM-FIRST_DOM+1)); in load_entry() 198 bit_nset(e->dom, 0, (LAST_DOM-FIRST_DOM+1)); in load_entry() 206 bit_nset(e->dom, 0, (LAST_DOM-FIRST_DOM+1)); in load_entry() 215 bit_nset(e->dom, 0, (LAST_DOM-FIRST_DOM+1)); in load_entry() 263 ch = get_list(e->dom, FIRST_DOM, LAST_DOM, in load_entry()
|
/freebsd/sys/arm64/acpica/ |
H A D | acpi_iort.c | 476 int i, matches, dom; in srat_resolve_its_pxm() local 484 dom = acpi_map_pxm_to_vm_domainid(gicits->ProximityDomain); in srat_resolve_its_pxm() 491 if (dom == -1) in srat_resolve_its_pxm() 497 i = ++map_counts[dom + 1]; in srat_resolve_its_pxm() 500 if (dom != -1) in srat_resolve_its_pxm() 502 " same NUMA domain %d!\n", dom); in srat_resolve_its_pxm() 512 its_entry->pxm = dom; in srat_resolve_its_pxm()
|
/freebsd/sys/vm/ |
H A D | vm_phys.c | 281 int dom, error, flind, oind, pind; in sysctl_vm_phys_free() local 287 for (dom = 0; dom < vm_ndomains; dom++) { in sysctl_vm_phys_free() 288 sbuf_printf(&sbuf,"\nDOMAIN %d:\n", dom); in sysctl_vm_phys_free() 303 fl = vm_phys_free_queues[dom][flind][pind]; in sysctl_vm_phys_free() 517 int dom, flind, freelist, oind, pind, segind; in vm_phys_init() 631 for (dom = 0; dom < vm_ndomains; dom in vm_phys_init() 515 int dom, flind, freelist, oind, pind, segind; vm_phys_init() local 2022 int flind, oind, pind, dom; DB_SHOW_COMMAND_FLAGS() local [all...] |
/freebsd/crypto/openssl/crypto/ec/curve448/ |
H A D | eddsa.c | 70 uint8_t dom[2]; in hash_init_with_dom() local 76 dom[0] = (uint8_t)(2 - (prehashed == 0 ? 1 : 0) in hash_init_with_dom() 78 dom[1] = (uint8_t)context_len; in hash_init_with_dom() 86 || !EVP_DigestUpdate(hashctx, dom, sizeof(dom)) in hash_init_with_dom()
|