/titanic_41/usr/src/uts/common/sys/sata/adapters/ahci/ |
H A D | ahcivar.h | 69 #define AHCI_ADDR_IS_PORT(addrp) \ argument 70 ((addrp)->aa_qual & AHCI_ADDR_PORT) 71 #define AHCI_ADDR_IS_PMPORT(addrp) \ argument 72 ((addrp)->aa_qual & AHCI_ADDR_PMPORT) 73 #define AHCI_ADDR_IS_PMULT(addrp) \ argument 74 ((addrp)->aa_qual & AHCI_ADDR_PMULT) 75 #define AHCI_ADDR_IS_VALID(addrp) \ argument 76 ((addrp)->aa_port < SATA_MAX_CPORTS) && \ 77 ((addrp)->aa_pmport < SATA_MAX_PMPORTS) && \ 78 ((addrp)->aa_qual & AHCI_ADDR_VALID) [all …]
|
/titanic_41/usr/src/uts/i86pc/io/acpi/acpidev/ |
H A D | acpidev_resource.c | 430 ACPI_RESOURCE_ADDRESS64 *addrp) in acpidev_resource_address64() argument 435 ASSERT(addrp != NULL && rhdl != NULL); in acpidev_resource_address64() 436 if (addrp->Address.AddressLength == 0) { in acpidev_resource_address64() 440 switch (addrp->ResourceType) { in acpidev_resource_address64() 443 if (addrp->Decode == ACPI_SUB_DECODE) { in acpidev_resource_address64() 446 if (addrp->Info.Mem.Translation) { in acpidev_resource_address64() 449 if (addrp->Info.Mem.Caching == ACPI_NON_CACHEABLE_MEMORY) { in acpidev_resource_address64() 451 } else if (addrp->Info.Mem.Caching == ACPI_CACHABLE_MEMORY) { in acpidev_resource_address64() 453 } else if (addrp->Info.Mem.Caching == in acpidev_resource_address64() 456 } else if (addrp->Info.Mem.Caching == in acpidev_resource_address64() [all …]
|
/titanic_41/usr/src/ucblib/librpcsoc/ |
H A D | rtime.c | 76 rtime(addrp, timep, timeout) in rtime() argument 77 struct sockaddr_in *addrp; in rtime() 98 addrp->sin_family = AF_INET; 99 addrp->sin_port = htons(IPPORT_TIMESERVER); 102 (struct sockaddr *)addrp, sizeof (*addrp)); 128 if (_connect(s, (struct sockaddr *)addrp, 129 sizeof (*addrp)) < 0) {
|
/titanic_41/usr/src/lib/nsswitch/files/common/ |
H A D | gethostent.c | 50 void *addrp, int *addrsize) in check_name() argument 81 addrp, v6flag, addrsize)) { in check_name() 105 addrp, v6flag, addrsize)); in check_name() 131 void *addrp, int v6flag, int *h_length) in __nss_files_get_addr() argument 144 addrpv4 = (in_addr_t *)addrp; in __nss_files_get_addr() 149 addrpv6 = (struct in6_addr *)addrp; in __nss_files_get_addr() 355 void *addrp; local 429 addrp = (type == AF_INET)? 435 addrp, &i)) { 570 addrp = realloc(taddr, [all …]
|
/titanic_41/usr/src/uts/sun4u/vm/ |
H A D | mach_vm_dep.c | 174 map_addr_proc(caddr_t *addrp, size_t len, offset_t off, int vacalign, in map_addr_proc() argument 216 ((uintptr_t)*addrp) != 0)) { in map_addr_proc() 240 if ((flags & MAP_ALIGN) && ((uintptr_t)*addrp != 0) && in map_addr_proc() 241 ((uintptr_t)*addrp < align_amount)) in map_addr_proc() 242 align_amount = (uintptr_t)*addrp; in map_addr_proc() 255 if ((flags & MAP_ALIGN) && ((uintptr_t)*addrp > align_amount)) { in map_addr_proc() 256 align_amount = (uintptr_t)*addrp; in map_addr_proc() 295 *addrp = addr; in map_addr_proc() 299 *addrp = NULL; in map_addr_proc() 303 *addrp = NULL; /* no more virtual space */ in map_addr_proc()
|
/titanic_41/usr/src/uts/common/rpc/ |
H A D | xdr_array.c | 58 xdr_array(XDR *xdrs, caddr_t *addrp, uint_t *sizep, const uint_t maxsize, in xdr_array() argument 62 caddr_t target = *addrp; in xdr_array() 87 *addrp = target = (char *)mem_alloc(nodesize); in xdr_array() 110 mem_free(*addrp, nodesize); in xdr_array() 111 *addrp = NULL; in xdr_array()
|
/titanic_41/usr/src/uts/common/os/ |
H A D | grow.c | 499 choose_addr(struct as *as, caddr_t *addrp, size_t len, offset_t off, in choose_addr() argument 502 caddr_t basep = (caddr_t)(uintptr_t)((uintptr_t)*addrp & PAGEMASK); in choose_addr() 507 (void) as_unmap(as, *addrp, len); in choose_addr() 510 !as_gap(as, len, &basep, &lenp, 0, *addrp)) { in choose_addr() 512 *addrp = basep; in choose_addr() 518 map_addr(addrp, len, off, vacalign, flags); in choose_addr() 520 if (*addrp == NULL) in choose_addr() 530 zmap(struct as *as, caddr_t *addrp, size_t len, uint_t uprot, int flags, in zmap() argument 547 if (((uintptr_t)*addrp & PAGEOFFSET) != 0) in zmap() 552 switch (valid_usr_range(*addrp, len, uprot, as, userlimit)) { in zmap() [all …]
|
/titanic_41/usr/src/lib/libnsl/rpc/ |
H A D | xdr_array.c | 65 xdr_array(XDR *xdrs, caddr_t *addrp, uint_t *sizep, const uint_t maxsize, in xdr_array() argument 69 caddr_t target = *addrp; in xdr_array() 92 *addrp = target = malloc(nodesize); in xdr_array() 116 free(*addrp); in xdr_array() 117 *addrp = NULL; in xdr_array()
|
/titanic_41/usr/src/lib/libnsl/nss/ |
H A D | gethostent.c | 114 struct in_addr *addrp; in __str2hostent() local 170 addrp = (struct in_addr *)ROUND_DOWN(buffer + buflen, in __str2hostent() 171 sizeof (*addrp)); in __str2hostent() 172 addrp -= naddr; in __str2hostent() 173 addrvec = (char **)ROUND_DOWN(addrp, sizeof (*addrvec)); in __str2hostent() 214 addrvec[i] = (char *)&addrp[i]; in __str2hostent() 215 if ((addrp[i].s_addr = inet_addr(addrbuf)) == in __str2hostent()
|
/titanic_41/usr/src/uts/i86pc/io/gfx_private/ |
H A D | gfxp_segmap.c | 60 gfxp_ddi_segmap_setup(dev_t dev, off_t offset, struct as *as, caddr_t *addrp, in gfxp_ddi_segmap_setup() argument 129 map_addr(addrp, len, ptob(pfn), 0, flags); in gfxp_ddi_segmap_setup() 130 if (*addrp == NULL) { in gfxp_ddi_segmap_setup() 138 (void) as_unmap(as, *addrp, len); in gfxp_ddi_segmap_setup() 155 error = as_map(as, *addrp, len, segdev_create, &dev_a); in gfxp_ddi_segmap_setup()
|
/titanic_41/usr/src/uts/common/io/sata/adapters/ahci/ |
H A D | ahci.c | 1310 #define SET_PORTSTR(str, addrp) \ argument 1311 if (AHCI_ADDR_IS_PORT(addrp)) \ 1312 (void) sprintf((str), "%d", (addrp)->aa_port); \ 1313 else if (AHCI_ADDR_IS_PMULT(addrp)) \ 1314 (void) sprintf((str), "%d (pmult)", (addrp)->aa_port); \ 1316 (void) sprintf((str), "%d:%d", (addrp)->aa_port, \ 1317 (addrp)->aa_pmport); 1793 ahci_addr_t *addrp, sata_pkt_t *spkt) in ahci_do_sync_start() argument 1799 uint8_t port = addrp->aa_port; in ahci_do_sync_start() 1804 "port %d:%d spkt 0x%p", port, addrp->aa_pmport, spkt); in ahci_do_sync_start() [all …]
|
/titanic_41/usr/src/uts/common/rpc/sec/ |
H A D | authdesubr.c | 78 rtime(struct knetconfig *synconfig, struct netbuf *addrp, int calltype, in rtime() argument 120 unitdata->addr.len = addrp->len; in rtime() 121 bcopy(addrp->buf, unitdata->addr.buf, in rtime() 169 if (bcmp(addrp->buf, unitdata->addr.buf, in rtime() 221 server->addr.len = addrp->len; in rtime() 222 bcopy(addrp->buf, server->addr.buf, server->addr.len); in rtime() 328 error = clnt_tli_kcreate(synconfig, addrp, (rpcprog_t)RPCBPROG, in rtime()
|
/titanic_41/usr/src/cmd/sendmail/db/mp/ |
H A D | mp_fget.c | 31 memp_fget(dbmfp, pgnoaddr, flags, addrp) in memp_fget() argument 35 void *addrp; 158 *(void **)addrp = 238 *(void **)addrp = bhp->buf; 328 *(void **)addrp = bhp->buf; 349 *(void **)addrp = NULL;
|
/titanic_41/usr/src/uts/common/fs/sockfs/ |
H A D | nl7c.c | 356 nl7c_addr_t *addrp = NULL; in ncaportconf_read() local 400 if (addrp == NULL) { in ncaportconf_read() 401 addrp = kmem_zalloc(sizeof (*addrp), in ncaportconf_read() 439 if (inet_atob(string, addrp)) { in ncaportconf_read() 474 addrp->port = ntohs(atou(string)); in ncaportconf_read() 477 nl7c_addr_add(addrp); in ncaportconf_read() 478 addrp = NULL; in ncaportconf_read() 500 if (addrp != NULL) { in ncaportconf_read() 501 kmem_free(addrp, sizeof (*addrp)); in ncaportconf_read()
|
/titanic_41/usr/src/cmd/fs.d/cachefs/cfsadmin/ |
H A D | cfsadmin.c | 901 caddr_t addrp; in resource_file_grow() local 993 addrp = mmap(NULL, rnew.r_fsize, PROT_READ | PROT_WRITE, MAP_SHARED, in resource_file_grow() 995 if (addrp == (void *)-1) { in resource_file_grow() 1006 memmove(addrp + rnew.r_identoffset, addrp + rold.r_identoffset, in resource_file_grow() 1010 memset(addrp + rold.r_identoffset, 0, in resource_file_grow() 1014 xx = msync(addrp, rnew.r_fsize, MS_SYNC); in resource_file_grow() 1018 munmap(addrp, rnew.r_fsize); in resource_file_grow() 1024 cusagep = (struct cache_usage *)addrp; in resource_file_grow() 1028 xx = msync(addrp, rnew.r_fsize, MS_SYNC); in resource_file_grow() 1032 munmap(addrp, rnew.r_fsize); in resource_file_grow() [all …]
|
/titanic_41/usr/src/uts/sun4v/vm/ |
H A D | mach_vm_dep.c | 204 map_addr_proc(caddr_t *addrp, size_t len, offset_t off, int vacalign, in map_addr_proc() argument 248 ((uintptr_t)*addrp) != 0)) { in map_addr_proc() 272 if ((flags & MAP_ALIGN) && ((uintptr_t)*addrp != 0) && in map_addr_proc() 273 ((uintptr_t)*addrp < align_amount)) in map_addr_proc() 274 align_amount = (uintptr_t)*addrp; in map_addr_proc() 287 if ((flags & MAP_ALIGN) && ((uintptr_t)*addrp > align_amount)) { in map_addr_proc() 288 align_amount = (uintptr_t)*addrp; in map_addr_proc() 327 *addrp = addr; in map_addr_proc() 330 *addrp = NULL; /* no more virtual space */ in map_addr_proc()
|
/titanic_41/usr/src/lib/nsswitch/dns/common/ |
H A D | gethostent.c | 203 void *addrp; local 210 addrp = &unmapv4; 213 (void) memcpy(addrp, &argp->key.hostaddr.addr[12], addrlen); 215 addrp = (void *)argp->key.hostaddr.addr; 219 he = _gethostbyaddr(&argp->h_errno, addrp, addrlen, af);
|
/titanic_41/usr/src/uts/i86xpv/io/ |
H A D | privcmd.c | 306 privcmd_segmap(dev_t dev, off_t off, struct as *as, caddr_t *addrp, in privcmd_segmap() argument 317 map_addr(addrp, len, (offset_t)off, 0, flags); in privcmd_segmap() 318 if (*addrp == NULL) { in privcmd_segmap() 326 (void) as_unmap(as, *addrp, len); in privcmd_segmap() 344 error = as_map(as, *addrp, len, segmf_create, &a); in privcmd_segmap()
|
/titanic_41/usr/src/uts/common/sys/ |
H A D | vmsystm.h | 140 extern int choose_addr(struct as *as, caddr_t *addrp, size_t len, offset_t off, 142 extern void map_addr(caddr_t *addrp, size_t len, offset_t off, int vacalign, 145 extern void map_addr_proc(caddr_t *addrp, size_t len, offset_t off,
|
/titanic_41/usr/src/cmd/fs.d/cachefs/fsck/ |
H A D | res.c | 103 void *addrp; in res_create() local 154 addrp = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in res_create() 155 if (addrp == (void *)-1) { in res_create() 166 munmap(addrp, size); in res_create() 173 resp->p_addrp = addrp; in res_create() 176 resp->p_cusagep = (struct cache_usage *)addrp; in res_create() 177 resp->p_linfop = (struct cachefs_rl_info *)((char *)addrp + in res_create() 179 resp->p_rlentp = (rl_entry_t *)((char *)addrp + MAXBSIZE); in res_create()
|
/titanic_41/usr/src/cmd/fs.d/cachefs/cfsd/ |
H A D | cfsd_maptbl.c | 228 caddr_t *addrp) in maptbl_cidhashaddr() argument 237 dbug_precond(addrp); in maptbl_cidhashaddr() 256 *addrp = (caddr_t)pa; in maptbl_cidhashaddr() 263 *addrp = (caddr_t)pa; in maptbl_cidhashaddr() 286 *addrp = (caddr_t)pa; in maptbl_cidhashaddr() 293 *addrp = (caddr_t)pa; in maptbl_cidhashaddr()
|
/titanic_41/usr/src/cmd/ypcmd/ |
H A D | ypserv_resolv_common.h | 47 #define SETCALLER(xprt, addrp) *(svc_getcaller(xprt)) = *addrp; argument
|
H A D | ypserv_resolv_common.c | 70 char **addrp = (caddr_t *)&(ps->addr); in xdr_ypfwdreq_key6() local 75 xdr_array(xdrs, addrp, &addrsize, addrsize, in xdr_ypfwdreq_key6()
|
/titanic_41/usr/src/lib/libdlpi/common/ |
H A D | libdlpi.c | 267 uint8_t *sapp, *addrp; in dlpi_info() local 360 sapp = addrp = (uint8_t *)datap; in dlpi_info() 362 addrp += dip->dli_saplen; in dlpi_info() 366 (void) memcpy(infop->di_physaddr, addrp, infop->di_physaddrlen); in dlpi_info() 511 i_dlpi_multi(dlpi_handle_t dh, t_uscalar_t op, const uint8_t *addrp, in i_dlpi_multi() argument 530 (void) memcpy(&multireqp[1], addrp, addrlen); in i_dlpi_multi() 536 dlpi_enabmulti(dlpi_handle_t dh, const void *addrp, size_t addrlen) in dlpi_enabmulti() argument 538 return (i_dlpi_multi(dh, DL_ENABMULTI_REQ, addrp, addrlen)); in dlpi_enabmulti() 542 dlpi_disabmulti(dlpi_handle_t dh, const void *addrp, size_t addrlen) in dlpi_disabmulti() argument 544 return (i_dlpi_multi(dh, DL_DISABMULTI_REQ, addrp, addrlen)); in dlpi_disabmulti() [all …]
|
/titanic_41/usr/src/lib/libtsnet/common/ |
H A D | tsol_sgetrhent.c | 89 get_network_prefix(in_addr_t *addrp) in get_network_prefix() argument 94 addr = ntohl(*addrp); in get_network_prefix() 97 *addrp = htonl(addr); in get_network_prefix()
|