| /freebsd/crypto/openssl/crypto/sha/asm/ |
| H A D | keccak1600p8-ppc.pl | 378 my ($A_jagged,$inp,$len,$bsz) = map("r$_",(3..6)); 491 lvdx_u v26,0,$inp 492 addi $inp,$inp,8 496 lvdx_u v26,0,$inp 497 addi $inp,$inp,8 501 lvdx_u v26,0,$inp 502 addi $inp,$inp,8 506 lvdx_u v26,0,$inp 507 addi $inp,$inp,8 511 lvdx_u v26,0,$inp [all …]
|
| /freebsd/sys/netinet/ |
| H A D | in_pcb.c | 290 in_pcblbgroup_find(struct inpcb *inp, struct lbgroupbucket **bucket) in in_pcblbgroup_find() argument 292 const struct inpcbinfo *pcbinfo = inp->inp_pcbinfo; in in_pcblbgroup_find() 295 INP_WLOCK_ASSERT(inp); in in_pcblbgroup_find() 298 INP_PCBPORTHASH(inp->inp_lport, pcbinfo->ipi_lbgrouphashmask)]; in in_pcblbgroup_find() 304 if (inp == grp->il_inp[i]) in in_pcblbgroup_find() 308 if (inp == inp1) in in_pcblbgroup_find() 317 in_pcblbgroup_insert(struct inpcblbgroup *grp, struct inpcb *inp) in in_pcblbgroup_insert() argument 323 INP_WLOCK_ASSERT(inp); in in_pcblbgroup_insert() 325 if (inp->inp_socket->so_proto->pr_listen != pr_listen_notsupp && in in_pcblbgroup_insert() 326 !SOLISTENING(inp->inp_socket)) { in in_pcblbgroup_insert() [all …]
|
| H A D | sctp_usrreq.c | 171 sctp_notify(struct sctp_inpcb *inp, in sctp_notify() argument 208 (void)sctp_free_assoc(inp, stcb, SCTP_NORMAL_PROC, in sctp_notify() 228 sctp_timer_stop(SCTP_TIMER_TYPE_PATHMTURAISE, inp, stcb, net, in sctp_notify() 240 sctp_hc_set_mtu(&net->ro._l_addr, inp->fibnum, next_mtu + sizeof(struct udphdr)); in sctp_notify() 242 sctp_hc_set_mtu(&net->ro._l_addr, inp->fibnum, next_mtu); in sctp_notify() 251 sctp_timer_start(SCTP_TIMER_TYPE_PATHMTURAISE, inp, stcb, net); in sctp_notify() 264 struct sctp_inpcb *inp; in sctp_ctlinput() local 291 inp = NULL; in sctp_ctlinput() 295 &inp, &net, 1, in sctp_ctlinput() 299 (inp != NULL)) { in sctp_ctlinput() [all …]
|
| H A D | udp_usrreq.c | 237 udp_append(struct inpcb *inp, struct ip *ip, struct mbuf *n, int off, in udp_append() argument 248 INP_LOCK_ASSERT(inp); in udp_append() 253 up = intoudpcb(inp); in udp_append() 257 in_pcbref(inp); in udp_append() 258 INP_RUNLOCK(inp); in udp_append() 259 filtered = (*up->u_tun_func)(n, off, inp, in udp_append() 261 INP_RLOCK(inp); in udp_append() 262 if (in_pcbrele_rlocked(inp)) { in udp_append() 276 IPSEC_CHECK_POLICY(ipv4, n, inp) != 0) { in udp_append() 287 if (mac_inpcb_check_deliver(inp, n) != 0) { in udp_append() [all …]
|
| H A D | raw_ip.c | 166 rip_append(struct inpcb *inp, struct ip *ip, struct mbuf *m, in rip_append() argument 169 struct socket *so = inp->inp_socket; in rip_append() 172 INP_LOCK_ASSERT(inp); in rip_append() 176 if (IPSEC_ENABLED(ipv4) && IPSEC_CHECK_POLICY(ipv4, m, inp) != 0) in rip_append() 180 if (mac_inpcb_check_deliver(inp, m) != 0) in rip_append() 184 if (inp->inp_ip_minttl && inp->inp_ip_minttl > ip->ip_ttl) in rip_append() 190 if ((inp->inp_flags & INP_CONTROLOPTS) || in rip_append() 192 ip_savecontrol(inp, &opts, ip, n); in rip_append() 213 rip_inp_match(const struct inpcb *inp, void *v) in rip_inp_match() argument 217 if (inp->inp_ip_p && inp->inp_ip_p != ctx->proto) in rip_inp_match() [all …]
|
| H A D | sctp_peeloff.c | 50 struct sctp_inpcb *inp; in sctp_can_peel_off() local 58 inp = (struct sctp_inpcb *)head->so_pcb; in sctp_can_peel_off() 59 if (inp == NULL) { in sctp_can_peel_off() 63 if ((inp->sctp_flags & SCTP_PCB_FLAGS_TCPTYPE) || in sctp_can_peel_off() 64 (inp->sctp_flags & SCTP_PCB_FLAGS_IN_TCPPOOL)) { in sctp_can_peel_off() 65 SCTP_LTRACE_ERR_RET(inp, NULL, NULL, SCTP_FROM_SCTP_PEELOFF, EOPNOTSUPP); in sctp_can_peel_off() 68 stcb = sctp_findassociation_ep_asocid(inp, assoc_id, 1); in sctp_can_peel_off() 70 SCTP_LTRACE_ERR_RET(inp, stcb, NULL, SCTP_FROM_SCTP_PEELOFF, ENOENT); in sctp_can_peel_off() 77 SCTP_LTRACE_ERR_RET(inp, stcb, NULL, SCTP_FROM_SCTP_PEELOFF, ENOTCONN); in sctp_can_peel_off() 88 struct sctp_inpcb *inp, *n_inp; in sctp_do_peeloff() local [all …]
|
| H A D | tcp_usrreq.c | 156 struct inpcb *inp; in tcp_usr_attach() local 160 inp = sotoinpcb(so); in tcp_usr_attach() 161 KASSERT(inp == NULL, ("tcp_usr_attach: inp != NULL")); in tcp_usr_attach() 172 inp = sotoinpcb(so); in tcp_usr_attach() 173 tp = tcp_newtcpcb(inp, NULL); in tcp_usr_attach() 176 in_pcbfree(inp); in tcp_usr_attach() 181 INP_WUNLOCK(inp); in tcp_usr_attach() 197 struct inpcb *inp; in tcp_usr_detach() local 200 inp = sotoinpcb(so); in tcp_usr_detach() 201 KASSERT(inp != NULL, ("%s: inp == NULL", __func__)); in tcp_usr_detach() [all …]
|
| H A D | sctp_pcb.c | 775 if (prison_check_ip4(stcb->sctp_ep->ip_inp.inp.inp_cred, in sctp_does_stcb_own_this_addr() 794 if (prison_check_ip6(stcb->sctp_ep->ip_inp.inp.inp_cred, in sctp_does_stcb_own_this_addr() 894 struct sctp_inpcb *inp; in sctp_tcb_special_locate() local 934 LIST_FOREACH(inp, ephead, sctp_hash) { in sctp_tcb_special_locate() 935 SCTP_INP_RLOCK(inp); in sctp_tcb_special_locate() 936 if (inp->sctp_flags & SCTP_PCB_FLAGS_SOCKET_ALLGONE) { in sctp_tcb_special_locate() 937 SCTP_INP_RUNLOCK(inp); in sctp_tcb_special_locate() 940 if (lport != inp->sctp_lport) { in sctp_tcb_special_locate() 941 SCTP_INP_RUNLOCK(inp); in sctp_tcb_special_locate() 951 if (prison_check_ip4(inp->ip_inp.inp.inp_cred, in sctp_tcb_special_locate() [all …]
|
| /freebsd/sys/netinet6/ |
| H A D | in6_pcb.c | 124 struct inpcb *inp, struct ucred *cred) in in6_pcbsetport_locked() argument 126 struct socket *so = inp->inp_socket; in in6_pcbsetport_locked() 130 INP_WLOCK_ASSERT(inp); in in6_pcbsetport_locked() 133 ((inp->inp_flags & IN6P_IPV6_V6ONLY) != 0)); in in6_pcbsetport_locked() 141 error = in_pcb_lport(ipictx, inp, NULL, &lport, cred, lookupflags); in in6_pcbsetport_locked() 145 inp->inp_lport = lport; in in6_pcbsetport_locked() 146 if (__predict_false((error = in_pcbinshash(inp, ipictx)) != 0)) { in in6_pcbsetport_locked() 147 MPASS(inp->inp_socket->so_options & SO_REUSEPORT_LB); in in6_pcbsetport_locked() 148 inp->in6p_laddr = in6addr_any; in in6_pcbsetport_locked() 149 inp->inp_lport = 0; in in6_pcbsetport_locked() [all …]
|
| H A D | udp6_usrreq.c | 137 udp6_append(struct inpcb *inp, struct mbuf *n, int off, in udp6_append() argument 144 INP_LOCK_ASSERT(inp); in udp6_append() 149 up = intoudpcb(inp); in udp6_append() 153 in_pcbref(inp); in udp6_append() 154 INP_RUNLOCK(inp); in udp6_append() 155 filtered = (*up->u_tun_func)(n, off, inp, in udp6_append() 157 INP_RLOCK(inp); in udp6_append() 158 if (in_pcbrele_rlocked(inp)) in udp6_append() 161 INP_RUNLOCK(inp); in udp6_append() 171 if (IPSEC_CHECK_POLICY(ipv6, n, inp) != 0) { in udp6_append() [all …]
|
| H A D | sctp6_usrreq.c | 175 sctp6_notify(struct sctp_inpcb *inp, in sctp6_notify() argument 205 (void)sctp_free_assoc(inp, stcb, SCTP_NORMAL_PROC, in sctp6_notify() 218 sctp_timer_stop(SCTP_TIMER_TYPE_PATHMTURAISE, inp, stcb, net, in sctp6_notify() 230 sctp_hc_set_mtu(&net->ro._l_addr, inp->fibnum, next_mtu + sizeof(struct udphdr)); in sctp6_notify() 232 sctp_hc_set_mtu(&net->ro._l_addr, inp->fibnum, next_mtu); in sctp6_notify() 241 sctp_timer_start(SCTP_TIMER_TYPE_PATHMTURAISE, inp, stcb, net); in sctp6_notify() 254 struct sctp_inpcb *inp; in sctp6_ctlinput() local 295 inp = NULL; in sctp6_ctlinput() 299 &inp, &net, 1, SCTP_DEFAULT_VRFID); in sctp6_ctlinput() 302 (inp != NULL)) { in sctp6_ctlinput() [all …]
|
| H A D | raw_ip6.c | 156 rip6_inp_match(const struct inpcb *inp, void *v) in rip6_inp_match() argument 163 if ((inp->inp_vflag & INP_IPV6) == 0) in rip6_inp_match() 165 if (inp->inp_ip_p && inp->inp_ip_p != proto) in rip6_inp_match() 167 if (!IN6_IS_ADDR_UNSPECIFIED(&inp->in6p_laddr) && in rip6_inp_match() 168 !IN6_ARE_ADDR_EQUAL(&inp->in6p_laddr, &ip6->ip6_dst)) in rip6_inp_match() 170 if (!IN6_IS_ADDR_UNSPECIFIED(&inp->in6p_faddr) && in rip6_inp_match() 171 !IN6_ARE_ADDR_EQUAL(&inp->in6p_faddr, &ip6->ip6_src)) in rip6_inp_match() 187 struct inpcb *inp; in rip6_input() local 206 while ((inp = inp_next(&inpi)) != NULL) { in rip6_input() 207 INP_RLOCK_ASSERT(inp); in rip6_input() [all …]
|
| /freebsd/sbin/fsck_ffs/ |
| H A D | pass2.c | 58 struct inoinfo **inpp, *inp; in pass2() local 149 inp = *inpp; in pass2() 150 if (inp->i_isize == 0) in pass2() 152 if (inp->i_isize < MINDIRSIZE) { in pass2() 153 direrror(inp->i_number, "DIRECTORY TOO SHORT"); in pass2() 154 inp->i_isize = roundup(MINDIRSIZE, DIRBLKSIZ); in pass2() 156 ginode(inp->i_number, &ip); in pass2() 157 DIP_SET(ip.i_dp, di_size, inp->i_isize); in pass2() 161 } else if ((inp->i_isize & (DIRBLKSIZ - 1)) != 0) { in pass2() 162 getpathname(pathbuf, inp->i_number, inp->i_number); in pass2() [all …]
|
| H A D | pass3.c | 45 struct inoinfo *inp; in pass3() local 64 inp = inpsort[inpindex]; in pass3() 65 state = inoinfo(inp->i_number)->ino_state; in pass3() 66 if (inp->i_number == UFS_ROOTINO || in pass3() 67 (inp->i_parent != 0 && !S_IS_DUNFOUND(state))) in pass3() 79 if (inp->i_dotdot >= UFS_ROOTINO) in pass3() 80 inoinfo(inp->i_dotdot)->ino_linkcnt++; in pass3() 84 orphan = inp->i_number; in pass3() 85 if (inp->i_parent == 0 || in pass3() 86 !INO_IS_DUNFOUND(inp->i_parent) || in pass3() [all …]
|
| /freebsd/sys/netipsec/ |
| H A D | ipsec_pcb.c | 57 ipsec_setsockaddrs_inpcb(struct inpcb *inp, union sockaddr_union *src, in ipsec_setsockaddrs_inpcb() 62 if (inp->inp_vflag & INP_IPV6) { in ipsec_setsockaddrs_inpcb() 76 sin6->sin6_addr = inp->in6p_laddr; in ipsec_setsockaddrs_inpcb() 77 sin6->sin6_port = inp->inp_lport; in ipsec_setsockaddrs_inpcb() 78 if (IN6_IS_SCOPE_LINKLOCAL(&inp->in6p_laddr)) { in ipsec_setsockaddrs_inpcb() 82 inp->in6p_laddr.s6_addr16[1]); in ipsec_setsockaddrs_inpcb() 89 sin6->sin6_addr = inp->in6p_faddr; in ipsec_setsockaddrs_inpcb() 90 sin6->sin6_port = inp->inp_fport; in ipsec_setsockaddrs_inpcb() 91 if (IN6_IS_SCOPE_LINKLOCAL(&inp->in6p_faddr)) { in ipsec_setsockaddrs_inpcb() 95 inp in ipsec_setsockaddrs_inpcb() 56 ipsec_setsockaddrs_inpcb(struct inpcb * inp,union sockaddr_union * src,union sockaddr_union * dst,u_int dir) ipsec_setsockaddrs_inpcb() argument 127 ipsec_setspidx_inpcb(struct inpcb * inp,struct secpolicyindex * spidx,u_int dir) ipsec_setspidx_inpcb() argument 152 ipsec_init_pcbpolicy(struct inpcb * inp) ipsec_init_pcbpolicy() argument 167 ipsec_delete_pcbpolicy(struct inpcb * inp) ipsec_delete_pcbpolicy() argument 270 ipsec_set_pcbpolicy(struct inpcb * inp,struct ucred * cred,void * request,size_t len) ipsec_set_pcbpolicy() argument 358 ipsec_get_pcbpolicy(struct inpcb * inp,void * request,size_t * len) ipsec_get_pcbpolicy() argument 416 ipsec_control_pcbpolicy(struct inpcb * inp,struct sockopt * sopt) ipsec_control_pcbpolicy() argument 459 ipsec4_pcbctl(struct inpcb * inp,struct sockopt * sopt) ipsec4_pcbctl() argument 473 ipsec6_pcbctl(struct inpcb * inp,struct sockopt * sopt) ipsec6_pcbctl() argument [all...] |
| /freebsd/crypto/openssl/crypto/chacha/asm/ |
| H A D | chacha-x86_64.pl | 106 ($out,$inp,$len,$key,$counter)=("%rdi","%rsi","%rdx","%rcx","%r8"); 328 mov $inp,64+8(%rsp) # save inp 348 mov 64+8(%rsp),$inp # load inp 369 xor 4*0($inp),@x[0] # xor with input 370 xor 4*1($inp),@x[1] 371 xor 4*2($inp),@x[2] 372 xor 4*3($inp),@x[3] 373 xor 4*4($inp),@x[4] 374 xor 4*5($inp),@x[5] 375 xor 4*6($inp),@x[6] [all …]
|
| H A D | chacha-loongarch64.pl | 46 my ($out, $inp, $len, $key, $counter) = ($a0, $a1, $a2, $a3, $a4); 276 ld.w $t8,$inp,4*0 277 ld.w $a7,$inp,4*1 278 ld.w $a6,$inp,4*2 279 ld.w $a5,$inp,4*3 289 ld.w $t8,$inp,4*4 290 ld.w $a7,$inp,4*5 291 ld.w $a6,$inp,4*6 292 ld.w $a5,$inp,4*7 302 ld.w $t8,$inp,4*8 [all …]
|
| /freebsd/crypto/openssl/crypto/aes/asm/ |
| H A D | aes-s390x.pl | 111 $t2="%r2"; $inp="%r2"; 248 # void AES_encrypt(const unsigned char *inp, unsigned char *out, 261 #la %r2,0($inp) 273 llgf $s0,0($inp) 274 llgf $s1,4($inp) 275 llgf $s2,8($inp) 276 llgf $s3,12($inp) 574 # void AES_decrypt(const unsigned char *inp, unsigned char *out, 587 #la %r2,0($inp) 599 llgf $s0,0($inp) [all …]
|
| H A D | bsaes-x86_64.pl | 116 my ($inp,$out,$len,$key,$ivp)=("%rdi","%rsi","%rdx","%rcx"); 950 my ($out,$inp,$rounds,$const)=("%rax","%rcx","%r10d","%r11"); 982 movdqu ($inp), %xmm7 # load round 0 key 983 lea 0x10($inp), $inp 991 movdqu ($inp), %xmm6 # load round 1 key 1034 lea 0x10($inp), $inp 1044 movdqu ($inp), %xmm6 # load next round key 1071 mov 240($inp),%r10d # pass rounds 1072 mov $inp,%rcx # pass key 1085 movdqu 0x00($inp), @XMM[0] # load input [all …]
|
| H A D | aesni-mb-x86_64.pl | 99 $inp="%rdi"; # 1st arg 110 @inp=map("%xmm$_",(6..9)); 180 lea $inp_elm_size*2($inp),$inp 191 mov `$inp_elm_size*$i+2*$ptr_size-$inp_elm_size*2`($inp),$one 192 mov `$inp_elm_size*$i+0-$inp_elm_size*2`($inp),$inptr_reg 194 mov `$inp_elm_size*$i+$ptr_size-$inp_elm_size*2`($inp),$outptr_reg 198 movdqu `$inp_elm_size*$i+2*$ptr_size+8-$inp_elm_size*2`($inp),@out[$i] 213 movdqu (@inptr[0]),@inp[0] # load inputs 215 movdqu (@inptr[1]),@inp[1] 216 pxor @inp[0],@out[0] [all …]
|
| /freebsd/crypto/openssl/crypto/perlasm/ |
| H A D | sparcv9_modes.pl | 37 my ($inp,$out,$len,$key,$ivec)=map("%i$_",(0..5)); 52 sub $inp, $out, $blk_init ! $inp!=$out 73 prefetch [$inp], 20 74 prefetch [$inp + 63], 20 76 and $inp, 7, $ileft 77 andn $inp, 7, $inp 86 brnz,pn $blk_init, .L${bits}cbc_enc_blk ! $inp==$out) 94 ldx [$inp + 0], %o0 96 ldx [$inp + 8], %o1 98 ldx [$inp + 16], %o2 [all …]
|
| /freebsd/sys/dev/bhnd/nvram/ |
| H A D | bhnd_nvram_value_fmts.c | 57 static bool bhnd_nvram_ident_octet_string(const char *inp, 59 static bool bhnd_nvram_ident_num_string(const char *inp, 63 const bhnd_nvram_val_fmt **fmt, const void *inp, 70 const bhnd_nvram_val_fmt **fmt, const void *inp, 73 bhnd_nvram_val *value, const void *inp, 81 const bhnd_nvram_val_fmt **fmt, const void *inp, 87 bhnd_nvram_val *value, const void *inp, 91 bhnd_nvram_val *value, const void *inp, 96 const bhnd_nvram_val_fmt **fmt, const void *inp, 99 bhnd_nvram_val *value, const void *inp, [all …]
|
| /freebsd/bin/dd/ |
| H A D | conv.c | 54 u_char *inp; in def() local 59 for (inp = in.dbp - (cnt = in.dbrcnt); cnt--; ++inp) in def() 60 *inp = t[*inp]; in def() 98 u_char *inp, *outp; in block() local 111 for (inp = in.db, cnt = in.dbrcnt; cnt && *inp++ != '\n'; --cnt) in block() 121 in.dbp = inp + cnt - 1; in block() 129 for (inp = in.dbp - in.dbcnt, outp = out.dbp; in.dbcnt;) { in block() 132 for (cnt = 0; cnt < maxlen && (ch = *inp++) != '\n'; in block() 136 for (cnt = 0; cnt < maxlen && (ch = *inp++) != '\n'; in block() 161 if (!in.dbcnt || *inp != '\n') in block() [all …]
|
| /freebsd/sys/crypto/openssl/ |
| H A D | ossl_ppc.c | 97 void sha256_block_p8(void *ctx, const void *inp, size_t len); 98 void sha256_block_ppc(void *ctx, const void *inp, size_t len); 99 void sha256_block_data_order(void *ctx, const void *inp, size_t len); 100 void sha256_block_data_order(void *ctx, const void *inp, size_t len) in sha256_block_data_order() argument 102 OPENSSL_ppccap_P & PPC_CRYPTO207 ? sha256_block_p8(ctx, inp, len) : in sha256_block_data_order() 103 sha256_block_ppc(ctx, inp, len); in sha256_block_data_order() 106 void sha512_block_p8(void *ctx, const void *inp, size_t len); 107 void sha512_block_ppc(void *ctx, const void *inp, size_t len); 108 void sha512_block_data_order(void *ctx, const void *inp, size_t len); 109 void sha512_block_data_order(void *ctx, const void *inp, size_t len) in sha512_block_data_order() argument [all …]
|
| /freebsd/sys/dev/cxgbe/tom/ |
| H A D | t4_listen.c | 162 ntids = synqe->lctx->inp->inp_vflag & INP_IPV6 ? 2 : 1; in stop_stid_tab() 188 if (lctx->inp->inp_vflag & INP_IPV6) in restart_stid_tab() 328 alloc_lctx(struct adapter *sc, struct inpcb *inp, struct vi_info *vi) in alloc_lctx() argument 332 INP_WLOCK_ASSERT(inp); in alloc_lctx() 338 lctx->isipv6 = inp->inp_vflag & INP_IPV6; in alloc_lctx() 346 !IN6_ARE_ADDR_EQUAL(&in6addr_any, &inp->in6p_laddr)) { in alloc_lctx() 347 lctx->ce = t4_get_clip_entry(sc, &inp->in6p_laddr, true); in alloc_lctx() 358 lctx->inp = inp; in alloc_lctx() 359 lctx->vnet = inp->inp_socket->so_vnet; in alloc_lctx() 360 in_pcbref(inp); in alloc_lctx() [all …]
|