Home
last modified time | relevance | path

Searched refs:kaddr (Results 1 – 25 of 83) sorted by relevance

1234

/titanic_44/usr/src/uts/common/crypto/io/
H A Ddca_dsa.c64 caddr_t kaddr; in dca_dsa_sign() local
123 kaddr = reqp->dr_ctx_kaddr + reqp->dr_offset; in dca_dsa_sign()
131 PUTDESC32(reqp, kaddr, DESC_BUFADDR, in dca_dsa_sign()
133 PUTDESC32(reqp, kaddr, DESC_NEXT, 0); in dca_dsa_sign()
134 PUTDESC16(reqp, kaddr, DESC_RSVD, 0); in dca_dsa_sign()
135 PUTDESC16(reqp, kaddr, DESC_LENGTH, DSAPARTLEN); in dca_dsa_sign()
208 caddr_t kaddr; in dca_dsa_verify() local
299 kaddr = reqp->dr_ctx_kaddr + reqp->dr_offset; in dca_dsa_verify()
300 PUTDESC32(reqp, kaddr, DESC_BUFADDR, reqp->dr_ibuf_paddr + SHA1LEN); in dca_dsa_verify()
301 PUTDESC32(reqp, kaddr, DESC_NEXT, in dca_dsa_verify()
[all …]
H A Ddca_rsa.c416 caddr_t kaddr; in dca_rsainit() local
556 kaddr = reqp->dr_ctx_kaddr + CTX_RSABIGNUMS; in dca_rsainit()
559 dca_reverse(p, kaddr, plen, pqfix); in dca_rsainit()
560 kaddr += pqfix; in dca_rsainit()
562 dca_reverse(q, kaddr, qlen, pqfix); in dca_rsainit()
563 kaddr += pqfix; in dca_rsainit()
565 dca_reverse(dp, kaddr, dplen, pqfix); in dca_rsainit()
566 kaddr += pqfix; in dca_rsainit()
568 dca_reverse(dq, kaddr, dqlen, pqfix); in dca_rsainit()
569 kaddr += pqfix; in dca_rsainit()
[all …]
/titanic_44/usr/src/lib/gss_mechs/mech_krb5/krb5/os/
H A Dmk_faddr.c42 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()
/titanic_44/usr/src/uts/intel/ia32/os/
H A Dcopy_subr.c73 copyinstr_noerr(const char *uaddr, char *kaddr, size_t maxlength, in copyinstr_noerr() argument
78 ASSERT((uintptr_t)kaddr > kernelbase); in copyinstr_noerr()
86 return (copystr_nofault(ua, kaddr, maxlength, lencopied)); in copyinstr_noerr()
90 copyoutstr_noerr(const char *kaddr, char *uaddr, size_t maxlength, in copyoutstr_noerr() argument
95 ASSERT((uintptr_t)kaddr > kernelbase); in copyoutstr_noerr()
103 return (copystr_nofault(kaddr, ua, maxlength, lencopied)); in copyoutstr_noerr()
/titanic_44/usr/src/uts/common/os/
H A Dbp_map.c90 caddr_t kaddr; in bp_mapin_common() local
118 kaddr = hat_kpm_mapin(pp, NULL); in bp_mapin_common()
119 bp->b_un.b_addr = kaddr + off; in bp_mapin_common()
131 kaddr = (caddr_t)vmem_alloc(bp_map_arena, in bp_mapin_common()
133 if (kaddr == NULL) in bp_mapin_common()
135 kaddr += color; in bp_mapin_common()
137 kaddr = vmem_xalloc(heap_arena, size, bp_align, color, in bp_mapin_common()
139 if (kaddr == NULL) in bp_mapin_common()
143 ASSERT(P2PHASE((uintptr_t)kaddr, bp_align) == color); in bp_mapin_common()
162 bp->b_un.b_addr = kaddr + off; in bp_mapin_common()
[all …]
H A Dschedctl.c493 caddr_t kaddr; in schedctl_shared_alloc() local
500 if ((error = schedctl_getpage(&amp, &kaddr)) != 0) { in schedctl_shared_alloc()
504 if ((error = schedctl_map(amp, &base, kaddr)) != 0) { in schedctl_shared_alloc()
505 schedctl_freepage(amp, kaddr); in schedctl_shared_alloc()
515 pagep->spc_base = (sc_shared_t *)kaddr; in schedctl_shared_alloc()
516 pagep->spc_end = (sc_shared_t *)(kaddr + sc_pagesize); in schedctl_shared_alloc()
579 schedctl_map(struct anon_map *amp, caddr_t *uaddrp, caddr_t kaddr) in schedctl_map() argument
588 map_addr(&addr, PAGESIZE, (offset_t)(uintptr_t)kaddr, 1, 0); in schedctl_map()
625 caddr_t kaddr; in schedctl_getpage() local
636 kaddr = segkp_get_withanonmap(segkp, PAGESIZE, in schedctl_getpage()
[all …]
H A Dwatchpoint.c778 watch_xcopyin(const void *uaddr, void *kaddr, size_t count) in watch_xcopyin() argument
782 caddr_t watch_kaddr = (caddr_t)kaddr; in watch_xcopyin()
862 watch_copyin(const void *kaddr, void *uaddr, size_t count) in watch_copyin() argument
864 return (watch_xcopyin(kaddr, uaddr, count) ? -1 : 0); in watch_copyin()
869 watch_xcopyout(const void *kaddr, void *uaddr, size_t count) in watch_xcopyout() argument
873 caddr_t watch_kaddr = (caddr_t)kaddr; in watch_xcopyout()
960 watch_copyout(const void *kaddr, void *uaddr, size_t count) in watch_copyout() argument
962 return (watch_xcopyout(kaddr, uaddr, count) ? -1 : 0); in watch_copyout()
968 char *kaddr, in watch_copyinstr() argument
1018 error = copyinstr_noerr(uaddr, kaddr, part, in watch_copyinstr()
[all …]
H A Durw.c133 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 Dvm_subr.c352 cow_mapin(struct as *as, caddr_t uaddr, caddr_t kaddr, struct page **cached_ppp, in cow_mapin() argument
449 if (kaddr != (caddr_t)-1) { in cow_mapin()
476 hat_devload(kas.a_hat, kaddr, PAGESIZE, in cow_mapin()
480 kaddr += PAGESIZE; in cow_mapin()
/titanic_44/usr/src/uts/sun4/cpu/
H A Dcpu_module.c257 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
/titanic_44/usr/src/cmd/mdb/common/modules/sctp/
H A Dsctp.c72 ns_to_stackid(uintptr_t kaddr) in ns_to_stackid() argument
76 if (mdb_vread(&nss, sizeof (nss), kaddr) == -1) { in ns_to_stackid()
77 mdb_warn("failed to read netdstack info %p", kaddr); in ns_to_stackid()
96 uintptr_t kaddr; in sctp_stacks_walk_step() local
103 kaddr = (uintptr_t)nss.netstack_modules[NS_SCTP]; in sctp_stacks_walk_step()
104 return (wsp->walk_callback(kaddr, wsp->walk_layer, wsp->walk_cbdata)); in sctp_stacks_walk_step()
1027 uintptr_t kaddr; in conn_size() local
1029 kaddr = (uintptr_t)&sctps->sctps_conn_hash_size; in conn_size()
1031 if (mdb_vread(&size, sizeof (size), kaddr) == -1) { in conn_size()
1032 mdb_warn("can't read 'sctps_conn_hash_size' at %p", kaddr); in conn_size()
[all …]
/titanic_44/usr/src/cmd/mdb/common/modules/genunix/
H A Dnet.c86 uintptr_t kaddr; in icmp_stacks_walk_step() local
93 kaddr = (uintptr_t)nss.netstack_modules[NS_ICMP]; in icmp_stacks_walk_step()
94 return (wsp->walk_callback(kaddr, wsp->walk_layer, wsp->walk_cbdata)); in icmp_stacks_walk_step()
110 uintptr_t kaddr; in tcp_stacks_walk_step() local
117 kaddr = (uintptr_t)nss.netstack_modules[NS_TCP]; in tcp_stacks_walk_step()
118 return (wsp->walk_callback(kaddr, wsp->walk_layer, wsp->walk_cbdata)); in tcp_stacks_walk_step()
134 uintptr_t kaddr; in udp_stacks_walk_step() local
141 kaddr = (uintptr_t)nss.netstack_modules[NS_UDP]; in udp_stacks_walk_step()
142 return (wsp->walk_callback(kaddr, wsp->walk_layer, wsp->walk_cbdata)); in udp_stacks_walk_step()
353 uintptr_t kaddr; in mi_payload_walk_step() local
[all …]
/titanic_44/usr/src/uts/i86pc/os/
H A Dppage.c77 i86_pp_map(page_t *pp, caddr_t kaddr) in i86_pp_map() argument
79 hat_devload(kas.a_hat, kaddr, MMU_PAGESIZE, page_pptonum(pp), in i86_pp_map()
89 i86_va_map(caddr_t vaddr, struct as *asp, caddr_t kaddr) in i86_va_map() argument
94 hat_devload(kas.a_hat, kaddr, MMU_PAGESIZE, pfnum, in i86_va_map()
/titanic_44/usr/src/uts/intel/dtrace/
H A Ddtrace_isa.c655 dtrace_copycheck(uintptr_t uaddr, uintptr_t kaddr, size_t size) in dtrace_copycheck() argument
657 ASSERT(kaddr >= kernelbase && kaddr + size >= kaddr); in dtrace_copycheck()
670 dtrace_copyin(uintptr_t uaddr, uintptr_t kaddr, size_t size, in dtrace_copyin() argument
673 if (dtrace_copycheck(uaddr, kaddr, size)) in dtrace_copyin()
674 dtrace_copy(uaddr, kaddr, size); in dtrace_copyin()
679 dtrace_copyout(uintptr_t kaddr, uintptr_t uaddr, size_t size, in dtrace_copyout() argument
682 if (dtrace_copycheck(uaddr, kaddr, size)) in dtrace_copyout()
683 dtrace_copy(kaddr, uaddr, size); in dtrace_copyout()
687 dtrace_copyinstr(uintptr_t uaddr, uintptr_t kaddr, size_t size, in dtrace_copyinstr() argument
690 if (dtrace_copycheck(uaddr, kaddr, size)) in dtrace_copyinstr()
[all …]
/titanic_44/usr/src/uts/common/vm/
H A Dseg_umap.c107 ASSERT((uintptr_t)a->kaddr > _userlimit); in segumap_create()
116 if ((uintptr_t)a->kaddr <= _userlimit || in segumap_create()
117 ((uintptr_t)a->kaddr + seg->s_size) < (uintptr_t)a->kaddr || in segumap_create()
119 ((uintptr_t)a->kaddr & PAGEOFFSET) != 0 || in segumap_create()
120 !segumap_verify_safe(a->kaddr, seg->s_size)) { in segumap_create()
126 data->sud_kaddr = a->kaddr; in segumap_create()
135 segumap_verify_safe(caddr_t kaddr, size_t len) in segumap_verify_safe() argument
149 seg = as_segat(&kas, kaddr); in segumap_verify_safe()
151 VERIFY(seg->s_base + seg->s_size >= kaddr + len); in segumap_verify_safe()
H A Dpage_retire.c599 caddr_t kaddr; in page_clear_transient_ue() local
625 kaddr = ppmapin(pp, PROT_READ|PROT_WRITE, (caddr_t)-1); in page_clear_transient_ue()
650 kaddr[i] = wb; in page_clear_transient_ue()
653 sync_data_memory(kaddr, PAGESIZE); in page_clear_transient_ue()
656 rb = kaddr[i]; in page_clear_transient_ue()
676 ppmapout(kaddr); in page_clear_transient_ue()
H A Dseg_umap.h24 caddr_t kaddr; member
/titanic_44/usr/src/uts/common/io/1394/targets/av1394/
H A Dav1394_isoch_recv.c845 caddr_t kaddr_begin, kaddr; in av1394_ir_copyout() local
860 kaddr = kaddr_begin = seg[idx].is_kaddr + irp->ir_read_off; in av1394_ir_copyout()
866 pkt_off = (uintptr_t)kaddr % pktsz; in av1394_ir_copyout()
872 (*(uint32_t *)(kaddr + AV1394_CIPSZ) == 0)) { in av1394_ir_copyout()
873 kaddr += pktsz; in av1394_ir_copyout()
885 if ((ret = uiomove(kaddr, len, UIO_READ, uiop)) != 0) { in av1394_ir_copyout()
890 kaddr += pktsz - pkt_off; in av1394_ir_copyout()
893 kaddr += len; in av1394_ir_copyout()
900 irp->ir_read_off = kaddr - kaddr_begin; in av1394_ir_copyout()
920 caddr_t kaddr, kaddr_end; in av1394_ir_zero_pkts() local
[all …]
H A Dav1394_isoch_xmit.c1166 caddr_t kaddr, kaddr_end; in av1394_it_copyin() local
1172 kaddr = seg[idx].is_kaddr + itp->it_write_off; in av1394_it_copyin()
1177 ret = uiomove(kaddr, len, UIO_WRITE, uiop); in av1394_it_copyin()
1189 kaddr = seg[idx].is_kaddr; in av1394_it_copyin()
1190 kaddr_end = kaddr + framesz; in av1394_it_copyin()
1191 while (!av1394_it_is_dv_frame_start(kaddr)) { in av1394_it_copyin()
1192 kaddr += icp->ic_pktsz; in av1394_it_copyin()
1193 if (kaddr == kaddr_end) { in av1394_it_copyin()
1197 start_resid = kaddr_end - kaddr; in av1394_it_copyin()
1199 bcopy(kaddr, seg[idx].is_kaddr, start_resid); in av1394_it_copyin()
[all …]
/titanic_44/usr/src/uts/intel/fs/proc/
H A Dprmachdep.c374 caddr_t kaddr; in prmapin() local
389 kaddr = ppmapin(pp, writing ? in prmapin()
391 return (kaddr + ((uintptr_t)addr & PAGEOFFSET)); in prmapin()
400 kaddr = vmem_alloc(heap_arena, PAGESIZE, VM_SLEEP); in prmapin()
402 hat_devload(kas.a_hat, kaddr, MMU_PAGESIZE, pfnum, in prmapin()
405 return (kaddr + ((uintptr_t)addr & PAGEOFFSET)); in prmapin()
/titanic_44/usr/src/uts/common/io/hxge/
H A Dhxge_send.c106 caddr_t kaddr; in hxge_start() local
326 kaddr = (caddr_t)DMA_COMMON_VPTR(tx_msg_p->buf_dma); in hxge_start()
327 hdrp = (p_tx_pkt_header_t)kaddr; in hxge_start()
387 kaddr = (caddr_t)DMA_COMMON_VPTR(tx_msg_p->buf_dma); in hxge_start()
389 hdrp = (p_tx_pkt_header_t)kaddr; in hxge_start()
397 kaddr += boff; in hxge_start()
404 tdc_stats->tx_hdr_pkts, kaddr, dma_ioaddr, in hxge_start()
413 b_rptr, kaddr, len, boff)); in hxge_start()
414 bcopy(b_rptr, kaddr, len); in hxge_start()
437 tdc_stats->tx_hdr_pkts, kaddr, dma_ioaddr, in hxge_start()
[all …]
/titanic_44/usr/src/uts/sparc/os/
H A Darchdep.c443 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()
/titanic_44/usr/src/uts/sun4u/serengeti/io/
H A Dsbdp_cpu.c738 caddr_t kaddr; in cpusram_map() local
753 kaddr = vmem_alloc(heap_arena, ptob(npages), VM_NOSLEEP); in cpusram_map()
754 if (kaddr == NULL) in cpusram_map()
761 hat_devload(kas.a_hat, kaddr, ptob(npages), pfn, mapping_attr, in cpusram_map()
764 *vaddrp = kaddr + pgoffset; in cpusram_map()
/titanic_44/usr/src/uts/common/io/ib/adapters/hermon/
H A Dhermon_cfg.c477 caddr_t kaddr; in hermon_check_iommu_bypass() local
512 DDI_DMA_SLEEP, NULL, (caddr_t *)&kaddr, &actual_len, &acc_hdl); in hermon_check_iommu_bypass()
521 status = ddi_dma_addr_bind_handle(dmahdl, NULL, kaddr, actual_len, in hermon_check_iommu_bypass()
/titanic_44/usr/src/uts/common/io/audio/drv/audio1575/
H A Daudio1575.c834 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()

1234