/illumos-gate/usr/src/uts/common/crypto/io/ |
H A D | dca_dsa.c | 62 caddr_t kaddr; in dca_dsa_sign() local 121 kaddr = reqp->dr_ctx_kaddr + reqp->dr_offset; in dca_dsa_sign() 129 PUTDESC32(reqp, kaddr, DESC_BUFADDR, in dca_dsa_sign() 131 PUTDESC32(reqp, kaddr, DESC_NEXT, 0); in dca_dsa_sign() 132 PUTDESC16(reqp, kaddr, DESC_RSVD, 0); in dca_dsa_sign() 133 PUTDESC16(reqp, kaddr, DESC_LENGTH, DSAPARTLEN); in dca_dsa_sign() 206 caddr_t kaddr; in dca_dsa_verify() local 297 kaddr = reqp->dr_ctx_kaddr + reqp->dr_offset; in dca_dsa_verify() 298 PUTDESC32(reqp, kaddr, DESC_BUFADDR, reqp->dr_ibuf_paddr + SHA1LEN); in dca_dsa_verify() 299 PUTDESC32(reqp, kaddr, DESC_NEXT, in dca_dsa_verify() [all …]
|
H A D | dca_rsa.c | 414 caddr_t kaddr; in dca_rsainit() local 554 kaddr = reqp->dr_ctx_kaddr + CTX_RSABIGNUMS; in dca_rsainit() 557 dca_reverse(p, kaddr, plen, pqfix); in dca_rsainit() 558 kaddr += pqfix; in dca_rsainit() 560 dca_reverse(q, kaddr, qlen, pqfix); in dca_rsainit() 561 kaddr += pqfix; in dca_rsainit() 563 dca_reverse(dp, kaddr, dplen, pqfix); in dca_rsainit() 564 kaddr += pqfix; in dca_rsainit() 566 dca_reverse(dq, kaddr, dqlen, pqfix); in dca_rsainit() 567 kaddr += pqfix; in dca_rsainit() [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | mk_faddr.c | 42 krb5_make_fulladdr(krb5_context context, krb5_address *kaddr, krb5_address *kport, krb5_address *ra… in krb5_make_fulladdr() argument 51 raddr->length = kaddr->length + kport->length + (4 * sizeof(krb5_int32)); in krb5_make_fulladdr() 58 tmp16 = kaddr->addrtype; in krb5_make_fulladdr() 64 tmp32 = kaddr->length; in krb5_make_fulladdr() 70 (void) memcpy((char *)marshal, (char *)(kaddr->contents), kaddr->length); in krb5_make_fulladdr() 71 marshal += kaddr->length; in krb5_make_fulladdr()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | bp_map.c | 88 caddr_t kaddr; in bp_mapin_common() local 117 kaddr = hat_kpm_mapin(pp, NULL); in bp_mapin_common() 118 bp->b_un.b_addr = kaddr + off; in bp_mapin_common() 130 kaddr = (caddr_t)vmem_alloc(bp_map_arena, in bp_mapin_common() 132 if (kaddr == NULL) in bp_mapin_common() 134 kaddr += color; in bp_mapin_common() 136 kaddr = vmem_xalloc(heap_arena, size, bp_align, color, in bp_mapin_common() 138 if (kaddr == NULL) in bp_mapin_common() 142 ASSERT(P2PHASE((uintptr_t)kaddr, bp_align) == color); in bp_mapin_common() 161 bp->b_un.b_addr = kaddr + off; in bp_mapin_common() [all …]
|
H A D | schedctl.c | 510 caddr_t kaddr; in schedctl_shared_alloc() local 517 if ((error = schedctl_getpage(&, &kaddr)) != 0) { in schedctl_shared_alloc() 521 if ((error = schedctl_map(amp, &base, kaddr)) != 0) { in schedctl_shared_alloc() 522 schedctl_freepage(amp, kaddr); in schedctl_shared_alloc() 532 pagep->spc_base = (sc_shared_t *)kaddr; in schedctl_shared_alloc() 533 pagep->spc_end = (sc_shared_t *)(kaddr + sc_pagesize); in schedctl_shared_alloc() 596 schedctl_map(struct anon_map *amp, caddr_t *uaddrp, caddr_t kaddr) in schedctl_map() argument 605 map_addr(&addr, PAGESIZE, (offset_t)(uintptr_t)kaddr, 1, 0); in schedctl_map() 642 caddr_t kaddr; in schedctl_getpage() local 653 kaddr = segkp_get_withanonmap(segkp, PAGESIZE, in schedctl_getpage() [all …]
|
H A D | watchpoint.c | 755 watch_xcopyin(const void *uaddr, void *kaddr, size_t count) in watch_xcopyin() argument 759 caddr_t watch_kaddr = (caddr_t)kaddr; in watch_xcopyin() 838 watch_copyin(const void *kaddr, void *uaddr, size_t count) in watch_copyin() argument 840 return (watch_xcopyin(kaddr, uaddr, count) ? -1 : 0); in watch_copyin() 845 watch_xcopyout(const void *kaddr, void *uaddr, size_t count) in watch_xcopyout() argument 849 caddr_t watch_kaddr = (caddr_t)kaddr; in watch_xcopyout() 936 watch_copyout(const void *kaddr, void *uaddr, size_t count) in watch_copyout() argument 938 return (watch_xcopyout(kaddr, uaddr, count) ? -1 : 0); in watch_copyout() 944 char *kaddr, in watch_copyinstr() argument 994 error = copyinstr_noerr(uaddr, kaddr, part, in watch_copyinstr() [all …]
|
H A D | urw.c | 133 caddr_t kaddr; in mapin() local 148 kaddr = ppmapin(pp, writing ? in mapin() 150 return (kaddr + ((uintptr_t)addr & PAGEOFFSET)); in mapin() 159 kaddr = vmem_alloc(heap_arena, PAGESIZE, VM_SLEEP); in mapin() 161 hat_devload(kas.a_hat, kaddr, PAGESIZE, pfnum, in mapin() 164 return (kaddr + ((uintptr_t)addr & PAGEOFFSET)); in mapin()
|
H A D | vm_subr.c | 340 cow_mapin(struct as *as, caddr_t uaddr, caddr_t kaddr, struct page **cached_ppp, in cow_mapin() argument 437 if (kaddr != (caddr_t)-1) { in cow_mapin() 464 hat_devload(kas.a_hat, kaddr, PAGESIZE, in cow_mapin() 468 kaddr += PAGESIZE; in cow_mapin()
|
/illumos-gate/usr/src/uts/intel/os/ |
H A D | copy_subr.c | 71 copyinstr_noerr(const char *uaddr, char *kaddr, size_t maxlength, in copyinstr_noerr() argument 76 ASSERT((uintptr_t)kaddr > kernelbase); in copyinstr_noerr() 84 return (copystr_nofault(ua, kaddr, maxlength, lencopied)); in copyinstr_noerr() 88 copyoutstr_noerr(const char *kaddr, char *uaddr, size_t maxlength, in copyoutstr_noerr() argument 93 ASSERT((uintptr_t)kaddr > kernelbase); in copyoutstr_noerr() 101 return (copystr_nofault(kaddr, ua, maxlength, lencopied)); in copyoutstr_noerr()
|
/illumos-gate/usr/src/cmd/mdb/common/modules/sctp/ |
H A D | sctp.c | 73 ns_to_stackid(uintptr_t kaddr) in ns_to_stackid() argument 77 if (mdb_vread(&nss, sizeof (nss), kaddr) == -1) { in ns_to_stackid() 78 mdb_warn("failed to read netdstack info %p", kaddr); in ns_to_stackid() 97 uintptr_t kaddr; in sctp_stacks_walk_step() local 104 kaddr = (uintptr_t)nss.netstack_modules[NS_SCTP]; in sctp_stacks_walk_step() 105 return (wsp->walk_callback(kaddr, wsp->walk_layer, wsp->walk_cbdata)); in sctp_stacks_walk_step() 1029 uintptr_t kaddr; in conn_size() local 1031 kaddr = (uintptr_t)&sctps->sctps_conn_hash_size; in conn_size() 1033 if (mdb_vread(&size, sizeof (size), kaddr) == -1) { in conn_size() 1034 mdb_warn("can't read 'sctps_conn_hash_size' at %p", kaddr); in conn_size() [all …]
|
/illumos-gate/usr/src/uts/sun4/cpu/ |
H A D | cpu_module.c | 257 copyin(const void *uaddr, void *kaddr, size_t count) in copyin() argument 262 xcopyin(const void *uaddr, void *kaddr, size_t count) in xcopyin() argument 267 xcopyin_nta(const void *uaddr, void *kaddr, size_t count, int dummy) in xcopyin_nta() argument 272 copyout(const void *kaddr, void *uaddr, size_t count) in copyout() argument 277 xcopyout(const void *kaddr, void *uaddr, size_t count) in xcopyout() argument 282 xcopyout_nta(const void *kaddr, void *uaddr, size_t count, int dummy) in xcopyout_nta() argument 297 xcopyin_little(const void *uaddr, void *kaddr, size_t count) in xcopyin_little() argument 302 xcopyout_little(const void *kaddr, void *uaddr, size_t count) in xcopyout_little() argument
|
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | net.c | 92 uintptr_t kaddr; in icmp_stacks_walk_step() local 99 kaddr = (uintptr_t)nss.netstack_modules[NS_ICMP]; in icmp_stacks_walk_step() 100 return (wsp->walk_callback(kaddr, wsp->walk_layer, wsp->walk_cbdata)); in icmp_stacks_walk_step() 116 uintptr_t kaddr; in tcp_stacks_walk_step() local 123 kaddr = (uintptr_t)nss.netstack_modules[NS_TCP]; in tcp_stacks_walk_step() 124 return (wsp->walk_callback(kaddr, wsp->walk_layer, wsp->walk_cbdata)); in tcp_stacks_walk_step() 140 uintptr_t kaddr; in udp_stacks_walk_step() local 147 kaddr = (uintptr_t)nss.netstack_modules[NS_UDP]; in udp_stacks_walk_step() 148 return (wsp->walk_callback(kaddr, wsp->walk_layer, wsp->walk_cbdata)); in udp_stacks_walk_step() 359 uintptr_t kaddr; in mi_payload_walk_step() local [all …]
|
H A D | thread.c | 832 uintptr_t kaddr; in stackinfo() local 848 if (mdb_readsym(&kaddr, sizeof (kaddr), in stackinfo() 854 if (kaddr == 0) { in stackinfo() 858 if (mdb_vread(log, usize, kaddr) == -1) { in stackinfo() 860 mdb_warn("failed to read %p\n", kaddr); in stackinfo()
|
/illumos-gate/usr/src/uts/intel/dtrace/ |
H A D | dtrace_isa.c | 699 dtrace_copycheck(uintptr_t uaddr, uintptr_t kaddr, size_t size) in dtrace_copycheck() argument 701 ASSERT(kaddr >= kernelbase && kaddr + size >= kaddr); in dtrace_copycheck() 714 dtrace_copyin(uintptr_t uaddr, uintptr_t kaddr, size_t size, in dtrace_copyin() argument 717 if (dtrace_copycheck(uaddr, kaddr, size)) in dtrace_copyin() 718 dtrace_copy(uaddr, kaddr, size); in dtrace_copyin() 723 dtrace_copyout(uintptr_t kaddr, uintptr_t uaddr, size_t size, in dtrace_copyout() argument 726 if (dtrace_copycheck(uaddr, kaddr, size)) in dtrace_copyout() 727 dtrace_copy(kaddr, uaddr, size); in dtrace_copyout() 731 dtrace_copyinstr(uintptr_t uaddr, uintptr_t kaddr, size_t size, in dtrace_copyinstr() argument 734 if (dtrace_copycheck(uaddr, kaddr, size)) in dtrace_copyinstr() [all …]
|
/illumos-gate/usr/src/uts/i86pc/os/ |
H A D | ppage.c | 75 i86_pp_map(page_t *pp, caddr_t kaddr) in i86_pp_map() argument 77 hat_devload(kas.a_hat, kaddr, MMU_PAGESIZE, page_pptonum(pp), in i86_pp_map() 87 i86_va_map(caddr_t vaddr, struct as *asp, caddr_t kaddr) in i86_va_map() argument 92 hat_devload(kas.a_hat, kaddr, MMU_PAGESIZE, pfnum, in i86_va_map()
|
/illumos-gate/usr/src/uts/common/vm/ |
H A D | seg_umap.c | 108 ASSERT((uintptr_t)a->kaddr > _userlimit); in segumap_create() 117 if ((uintptr_t)a->kaddr <= _userlimit || in segumap_create() 118 ((uintptr_t)a->kaddr + seg->s_size) < (uintptr_t)a->kaddr || in segumap_create() 120 ((uintptr_t)a->kaddr & PAGEOFFSET) != 0 || in segumap_create() 121 !segumap_verify_safe(a->kaddr, seg->s_size)) { in segumap_create() 127 data->sud_kaddr = a->kaddr; in segumap_create() 136 segumap_verify_safe(caddr_t kaddr, size_t len) in segumap_verify_safe() argument 150 seg = as_segat(&kas, kaddr); in segumap_verify_safe() 152 VERIFY(seg->s_base + seg->s_size >= kaddr + len); in segumap_verify_safe()
|
H A D | page_retire.c | 601 caddr_t kaddr; in page_clear_transient_ue() local 627 kaddr = ppmapin(pp, PROT_READ|PROT_WRITE, (caddr_t)-1); in page_clear_transient_ue() 653 kaddr[i] = wb; in page_clear_transient_ue() 656 sync_data_memory(kaddr, PAGESIZE); in page_clear_transient_ue() 659 rb = kaddr[i]; in page_clear_transient_ue() 679 ppmapout(kaddr); in page_clear_transient_ue()
|
/illumos-gate/usr/src/uts/common/io/1394/targets/av1394/ |
H A D | av1394_isoch_recv.c | 771 caddr_t kaddr_begin, kaddr; in av1394_ir_copyout() local 786 kaddr = kaddr_begin = seg[idx].is_kaddr + irp->ir_read_off; in av1394_ir_copyout() 792 pkt_off = (uintptr_t)kaddr % pktsz; in av1394_ir_copyout() 798 (*(uint32_t *)(kaddr + AV1394_CIPSZ) == 0)) { in av1394_ir_copyout() 799 kaddr += pktsz; in av1394_ir_copyout() 811 if ((ret = uiomove(kaddr, len, UIO_READ, uiop)) != 0) { in av1394_ir_copyout() 816 kaddr += pktsz - pkt_off; in av1394_ir_copyout() 819 kaddr += len; in av1394_ir_copyout() 826 irp->ir_read_off = kaddr - kaddr_begin; in av1394_ir_copyout() 846 caddr_t kaddr, kaddr_end; in av1394_ir_zero_pkts() local [all …]
|
H A D | av1394_isoch_xmit.c | 1085 caddr_t kaddr, kaddr_end; in av1394_it_copyin() local 1091 kaddr = seg[idx].is_kaddr + itp->it_write_off; in av1394_it_copyin() 1096 ret = uiomove(kaddr, len, UIO_WRITE, uiop); in av1394_it_copyin() 1108 kaddr = seg[idx].is_kaddr; in av1394_it_copyin() 1109 kaddr_end = kaddr + framesz; in av1394_it_copyin() 1110 while (!av1394_it_is_dv_frame_start(kaddr)) { in av1394_it_copyin() 1111 kaddr += icp->ic_pktsz; in av1394_it_copyin() 1112 if (kaddr == kaddr_end) { in av1394_it_copyin() 1116 start_resid = kaddr_end - kaddr; in av1394_it_copyin() 1118 bcopy(kaddr, seg[idx].is_kaddr, start_resid); in av1394_it_copyin() [all …]
|
/illumos-gate/usr/src/uts/common/io/hxge/ |
H A D | hxge_send.c | 106 caddr_t kaddr; in hxge_start() local 318 kaddr = (caddr_t)DMA_COMMON_VPTR(tx_msg_p->buf_dma); in hxge_start() 319 hdrp = (p_tx_pkt_header_t)kaddr; in hxge_start() 379 kaddr = (caddr_t)DMA_COMMON_VPTR(tx_msg_p->buf_dma); in hxge_start() 381 hdrp = (p_tx_pkt_header_t)kaddr; in hxge_start() 389 kaddr += boff; in hxge_start() 396 tdc_stats->tx_hdr_pkts, kaddr, dma_ioaddr, in hxge_start() 405 b_rptr, kaddr, len, boff)); in hxge_start() 406 bcopy(b_rptr, kaddr, len); in hxge_start() 429 tdc_stats->tx_hdr_pkts, kaddr, dma_ioaddr, in hxge_start() [all …]
|
/illumos-gate/usr/src/uts/sparc/os/ |
H A D | archdep.c | 443 xcopyin_nta(const void *uaddr, void *kaddr, size_t count, int dummy) in xcopyin_nta() argument 445 return (xcopyin(uaddr, kaddr, count)); in xcopyin_nta() 449 xcopyout_nta(const void *kaddr, void *uaddr, size_t count, int dummy) in xcopyout_nta() argument 451 return (xcopyout(kaddr, uaddr, count)); in xcopyout_nta()
|
/illumos-gate/usr/src/uts/intel/fs/proc/ |
H A D | prmachdep.c | 536 caddr_t kaddr; in prmapin() local 551 kaddr = ppmapin(pp, writing ? in prmapin() 553 return (kaddr + ((uintptr_t)addr & PAGEOFFSET)); in prmapin() 562 kaddr = vmem_alloc(heap_arena, PAGESIZE, VM_SLEEP); in prmapin() 564 hat_devload(kas.a_hat, kaddr, MMU_PAGESIZE, pfnum, in prmapin() 567 return (kaddr + ((uintptr_t)addr & PAGEOFFSET)); in prmapin()
|
/illumos-gate/usr/src/uts/common/io/nxge/ |
H A D | nxge_send.c | 155 caddr_t kaddr; in nxge_start() local 494 kaddr = (caddr_t)DMA_COMMON_VPTR(tx_msg_p->buf_dma); in nxge_start() 495 hdrp = (p_tx_pkt_header_t)kaddr; in nxge_start() 559 kaddr = (caddr_t)DMA_COMMON_VPTR(tx_msg_p->buf_dma); in nxge_start() 561 hdrp = (p_tx_pkt_header_t)kaddr; in nxge_start() 569 kaddr += boff; in nxge_start() 580 kaddr, in nxge_start() 591 b_rptr, kaddr, len, boff)); in nxge_start() 593 bcopy(b_rptr, kaddr, len); in nxge_start() 623 kaddr, in nxge_start() [all …]
|
/illumos-gate/usr/src/uts/sun4u/serengeti/io/ |
H A D | sbdp_cpu.c | 739 caddr_t kaddr; in cpusram_map() local 754 kaddr = vmem_alloc(heap_arena, ptob(npages), VM_NOSLEEP); in cpusram_map() 755 if (kaddr == NULL) in cpusram_map() 762 hat_devload(kas.a_hat, kaddr, ptob(npages), pfn, mapping_attr, in cpusram_map() 765 *vaddrp = kaddr + pgoffset; in cpusram_map()
|
/illumos-gate/usr/src/uts/common/io/audio/drv/audio1575/ |
H A D | audio1575.c | 834 uint32_t *kaddr; in audio1575_alloc_port() local 921 kaddr = (void *)port->bdl_kaddr; in audio1575_alloc_port() 925 ddi_put32(port->bdl_acch, kaddr, port->samp_paddr); in audio1575_alloc_port() 926 kaddr++; in audio1575_alloc_port() 929 ddi_put32(port->bdl_acch, kaddr, in audio1575_alloc_port() 931 kaddr++; in audio1575_alloc_port()
|