/titanic_41/usr/src/lib/libsecdb/common/ |
H A D | secdb.c | 46 kva_match(kva_t *kva, char *key) in kva_match() argument 51 if (kva == NULL || key == NULL) { in kva_match() 54 data = kva->data; in kva_match() 55 for (i = 0; i < kva->length; i++) { in kva_match() 68 _kva_free(kva_t *kva) in _kva_free() argument 73 if (kva == NULL) { in _kva_free() 76 data = kva->data; in _kva_free() 77 for (i = 0; i < kva->length; i++) { in _kva_free() 87 free(kva->data); in _kva_free() 88 free(kva); in _kva_free() [all …]
|
H A D | chkauthattr.c | 419 free_default_attrs(kva_t *kva) in free_default_attrs() argument 423 for (i = 0; i < kva->length; i++) in free_default_attrs() 424 free(kva->data[i].value); in free_default_attrs() 426 free(kva); in free_default_attrs() 437 kva_t *kva; in get_default_attrs() local 440 kva = malloc(sizeof (kva_t) + sizeof (kv_t) * NDFLTPLY); in get_default_attrs() 442 if (kva == NULL) in get_default_attrs() 445 kva->data = (kv_t *)(void *)&kva[1]; in get_default_attrs() 446 kva->length = 0; in get_default_attrs() 459 kva->data[kva->length].key = dfltply[i].attr; in get_default_attrs() [all …]
|
H A D | getexecattr.c | 235 findexecattr(const char *prof, kva_t *kva, void *ctxt, void *res) in findexecattr() argument
|
/titanic_41/usr/src/uts/i86xpv/os/ |
H A D | balloon.c | 810 balloon_free_pages(uint_t page_cnt, mfn_t *mfns, caddr_t kva, pfn_t *pfns) in balloon_free_pages() argument 821 if (kva != NULL) { in balloon_free_pages() 822 ASSERT(((uintptr_t)kva & PAGEOFFSET) == 0); in balloon_free_pages() 824 ASSERT(hat_getpfnum(kas.a_hat, kva) == pfns[0]); in balloon_free_pages() 830 if ((kva != NULL) && balloon_zero_memory) { in balloon_free_pages() 831 bzero(kva, (page_cnt * PAGESIZE)); in balloon_free_pages() 835 if ((kva != NULL) || (pfns != NULL)) { in balloon_free_pages() 852 (kva + (PAGESIZE * i))); in balloon_free_pages() 861 if ((kva == NULL) && (balloon_zero_memory)) { in balloon_free_pages() 870 if (kva != NULL) { in balloon_free_pages() [all …]
|
/titanic_41/usr/src/uts/i86pc/io/xsvc/ |
H A D | xsvc.c | 124 static int xsvc_umem_cookie_alloc(caddr_t kva, size_t size, int flags, 821 caddr_t kva; in xsvc_devmap() local 872 kva = vmem_alloc(heap_arena, psize, VM_SLEEP); in xsvc_devmap() 873 if (kva == NULL) { in xsvc_devmap() 877 kvai = kva; in xsvc_devmap() 898 err = xsvc_umem_cookie_alloc(kva, psize, KM_SLEEP, &cookie); in xsvc_devmap() 927 kvai = kva; in xsvc_devmap() 933 vmem_free(heap_arena, kva, psize); in xsvc_devmap() 945 xsvc_umem_cookie_alloc(caddr_t kva, size_t size, int flags, in xsvc_umem_cookie_alloc() argument 956 umem_cookiep->cvaddr = kva; in xsvc_umem_cookie_alloc() [all …]
|
/titanic_41/usr/src/cmd/allocate/ |
H A D | add_allocatable.c | 394 kva_t *kva; in check_args() local 422 kva = da_defs->devopts; in check_args() 423 if ((kval = kva_match(kva, DAOPT_MINLABEL)) != NULL) in check_args() 425 if ((kval = kva_match(kva, DAOPT_MAXLABEL)) != NULL) in check_args() 427 if ((kval = kva_match(kva, DAOPT_AUTHS)) != NULL) in check_args() 429 if ((kval = kva_match(kva, DAOPT_CSCRIPT)) != NULL) in check_args()
|
/titanic_41/usr/src/lib/libbsm/common/ |
H A D | au_usermask.c | 40 audit_flags(const char *name, kva_t *kva, void *ctxt, void *pres) in audit_flags() argument 44 if ((val = kva_match(kva, USERATTR_AUDIT_FLAGS_KW)) != NULL) { in audit_flags()
|
H A D | devalloc.c | 1747 kva_t *kva; in da_add_list() local 1826 kva = da_defs->devopts; in da_add_list() 1827 if ((kval = kva_match(kva, DAOPT_MINLABEL)) != NULL) in da_add_list() 1829 if ((kval = kva_match(kva, DAOPT_MAXLABEL)) != NULL) in da_add_list() 1831 if ((kval = kva_match(kva, DAOPT_AUTHS)) != NULL) in da_add_list() 1833 if ((kval = kva_match(kva, DAOPT_CSCRIPT)) != NULL) in da_add_list()
|
/titanic_41/usr/src/cmd/userattr/ |
H A D | userattr.c | 50 attr(const char *name, kva_t *kva, void *ctxt, void *pres) in attr() argument 54 if ((val = kva_match(kva, attr_name)) != NULL) { in attr()
|
/titanic_41/usr/src/uts/i86pc/io/gfx_private/ |
H A D | gfxp_devmap.c | 62 gfxp_umem_cookie_init(caddr_t kva, size_t size) in gfxp_umem_cookie_init() argument 71 umem_cookie->cvaddr = kva; in gfxp_umem_cookie_init()
|
H A D | gfx_private.h | 46 extern ddi_umem_cookie_t gfxp_umem_cookie_init(caddr_t kva, size_t size);
|
/titanic_41/usr/src/uts/sun4u/io/pci/ |
H A D | pci_reloc.c | 350 caddr_t kva = fdvma_p->kvbase[index]; in pci_fdvma_unregister_callbacks() local 354 ASSERT(kva != NULL); in pci_fdvma_unregister_callbacks() 357 i++, kva += IOMMU_PAGE_SIZE) in pci_fdvma_unregister_callbacks() 358 hat_delete_callback(kva, IOMMU_PAGE_SIZE, mp, HAC_PAGELOCK, in pci_fdvma_unregister_callbacks()
|
/titanic_41/usr/src/uts/common/io/drm/ |
H A D | drm_bufs.c | 87 caddr_t kva; in drm_addmap() local 178 kva = gfxp_map_kernel_space(map->offset, map->size, in drm_addmap() 180 if (kva == 0) { in drm_addmap() 186 map->handle = (void *)(uintptr_t)kva; in drm_addmap() 187 map->dev_addr = kva; in drm_addmap()
|
H A D | drm_sunmod.c | 524 caddr_t kva; in drm_sun_devmap() local 698 kva = map->dev_addr; in drm_sun_devmap() 699 cookie = gfxp_umem_cookie_init(kva, length); in drm_sun_devmap() 717 kva = map->dev_addr + koff; in drm_sun_devmap() 725 cookie = gfxp_umem_cookie_init(kva, length); in drm_sun_devmap()
|
/titanic_41/usr/src/lib/pam_modules/unix_cred/ |
H A D | unix_cred.c | 135 finddeflim(const char *name, kva_t *kva, void *ctxt, void *pres) in finddeflim() argument 141 val = kva_match(kva, USERATTR_DFLTPRIV_KW); in finddeflim() 146 val = kva_match(kva, USERATTR_LIMPRIV_KW); in finddeflim()
|
/titanic_41/usr/src/uts/i86pc/os/ |
H A D | ddi_impl.c | 1180 kmem_override_cache_attrs(caddr_t kva, size_t size, uint_t order) in kmem_override_cache_attrs() argument 1187 if (hat_getattr(kas.a_hat, kva, &hat_attr) == -1) { in kmem_override_cache_attrs() 1195 kva_end = (caddr_t)(((uintptr_t)kva + size + PAGEOFFSET) & in kmem_override_cache_attrs() 1197 kva = (caddr_t)((uintptr_t)kva & (uintptr_t)PAGEMASK); in kmem_override_cache_attrs() 1199 while (kva < kva_end) { in kmem_override_cache_attrs() 1200 pfn = hat_getpfnum(kas.a_hat, kva); in kmem_override_cache_attrs() 1201 hat_unload(kas.a_hat, kva, PAGESIZE, HAT_UNLOAD_UNLOCK); in kmem_override_cache_attrs() 1202 hat_devload(kas.a_hat, kva, PAGESIZE, pfn, hat_attr, hat_flags); in kmem_override_cache_attrs() 1203 kva += MMU_PAGESIZE; in kmem_override_cache_attrs()
|
/titanic_41/usr/src/lib/auditd_plugins/syslog/ |
H A D | sysplugin.c | 849 kva_t *kva = (kva_t *)kvlist; in auditd_plugin_open() local 854 if ((kvlist == NULL) || ((value = kva_match(kva, "p_flags")) == NULL)) { in auditd_plugin_open()
|
/titanic_41/usr/src/uts/common/io/ |
H A D | mem.c | 301 #define NEED_LOCK_KVADDR(kva) mmpagelock(&kas, kva) argument
|
/titanic_41/usr/src/uts/i86pc/i86hvm/io/xpv/ |
H A D | xpv_support.c | 259 balloon_free_pages(uint_t page_cnt, mfn_t *mfns, caddr_t kva, pfn_t *pfns) in balloon_free_pages() argument
|