Searched refs:inp (Results 1 - 25 of 120) sorted by relevance

12345

/openbsd-current/sbin/fsck_ext2fs/
H A Dpass3.c43 struct inoinfo **inpp, *inp; local
48 inp = *inpp;
49 if (inp->i_number == EXT2_ROOTINO ||
50 !(inp->i_parent == 0 || statemap[inp->i_number] == DSTATE))
52 if (statemap[inp->i_number] == DCLEAR)
55 orphan = inp->i_number;
56 if (inp->i_parent == 0 ||
57 statemap[inp->i_parent] != DSTATE ||
60 inp
[all...]
H A Dpass2.c60 struct inoinfo **inpp, *inp; local
123 inp = *inpp;
124 if (inp->i_isize == 0)
126 if (inp->i_isize < MINDIRSIZE) {
127 direrror(inp->i_number, "DIRECTORY TOO SHORT");
128 inp->i_isize = roundup(MINDIRSIZE, sblock.e2fs_bsize);
130 dp = ginode(inp->i_number);
131 inossize(dp, inp->i_isize);
134 } else if ((inp->i_isize & (sblock.e2fs_bsize - 1)) != 0) {
135 getpathname(pathbuf, sizeof pathbuf, inp
195 struct inoinfo *inp; local
[all...]
/openbsd-current/sbin/fsck_ffs/
H A Dpass3.c52 struct inoinfo **inpp, *inp, *pinp; local
59 inp = *inpp;
60 if (inp->i_number == ROOTINO ||
61 (inp->i_parent != 0 && GET_ISTATE(inp->i_number) != DSTATE))
63 if (GET_ISTATE(inp->i_number) == DCLEAR)
66 orphan = inp->i_number;
67 if (inp->i_parent == 0 ||
68 GET_ISTATE(inp->i_parent) != DSTATE ||
71 inp
[all...]
H A Dpass2.c76 struct inoinfo **inpp, *inp, *pinp; local
150 inp = *inpp;
152 if (inp->i_isize == 0)
154 if (inp->i_isize < MINDIRSIZE) {
155 direrror(inp->i_number, "DIRECTORY TOO SHORT");
156 inp->i_isize = roundup(MINDIRSIZE, DIRBLKSIZ);
158 dp = ginode(inp->i_number);
159 DIP_SET(dp, di_size, inp->i_isize);
162 } else if ((inp->i_isize & (DIRBLKSIZ - 1)) != 0) {
164 inp
248 struct inoinfo *inp; local
[all...]
/openbsd-current/sys/netinet/
H A Din_pcb.c233 struct inpcb *inp; local
235 inp = pool_get(&inpcb_pool, (wait == M_WAIT ? PR_WAITOK : PR_NOWAIT) |
237 if (inp == NULL)
239 inp->inp_table = table;
240 inp->inp_socket = so;
241 refcnt_init_trace(&inp->inp_refcnt, DT_REFCNT_IDX_INPCB);
242 mtx_init(&inp->inp_mtx, IPL_SOFTNET);
243 inp->inp_seclevel.sl_auth = IPSEC_AUTH_LEVEL_DEFAULT;
244 inp->inp_seclevel.sl_esp_trans = IPSEC_ESP_TRANS_LEVEL_DEFAULT;
245 inp
276 in_pcbbind_locked(struct inpcb *inp, struct mbuf *nam, const void *laddr, struct proc *p) argument
351 in_pcbbind(struct inpcb *inp, struct mbuf *nam, struct proc *p) argument
365 in_pcbaddrisavail_lock(const struct inpcb *inp, struct sockaddr_in *sin, int wild, struct proc *p, int lock) argument
436 in_pcbaddrisavail(const struct inpcb *inp, struct sockaddr_in *sin, int wild, struct proc *p) argument
443 in_pcbpickport(u_int16_t *lport, const void *laddr, int wild, const struct inpcb *inp, struct proc *p) argument
506 in_pcbconnect(struct inpcb *inp, struct mbuf *nam) argument
571 in_pcbdisconnect(struct inpcb *inp) argument
583 in_pcbdetach(struct inpcb *inp) argument
624 in_pcbref(struct inpcb *inp) argument
633 in_pcbunref(struct inpcb *inp) argument
649 in_setsockaddr(struct inpcb *inp, struct mbuf *nam) argument
670 in_setpeeraddr(struct inpcb *inp, struct mbuf *nam) argument
693 struct inpcb *inp; local
704 struct inpcb *inp; local
725 struct inpcb *inp; local
773 in_losing(struct inpcb *inp) argument
809 in_rtchange(struct inpcb *inp, int errno) argument
825 struct inpcb *inp, *match = NULL; local
900 in_pcbrtentry(struct inpcb *inp) argument
920 in_pcbselsrc(struct in_addr *insrc, struct sockaddr_in *sin, struct inpcb *inp) argument
1005 in_pcbrehash(struct inpcb *inp) argument
1013 in_pcbhash_insert(struct inpcb *inp) argument
1044 struct inpcb *inp; local
1079 struct inpcb *inp; local
1129 struct inpcb *inp; local
1179 struct inpcb *inp; local
1242 in_pcbset_rtableid(struct inpcb *inp, u_int rtableid) argument
1263 in_pcbset_laddr(struct inpcb *inp, const struct sockaddr *sa, u_int rtableid) argument
1292 in_pcbunset_faddr(struct inpcb *inp) argument
1309 in_pcbunset_laddr(struct inpcb *inp) argument
[all...]
H A Dudp_usrreq.c199 struct inpcb *inp = NULL; local
418 TAILQ_FOREACH(inp, &table->inpt_queue, inp_queue) {
420 KASSERT(ISSET(inp->inp_flags, INP_IPV6));
422 KASSERT(!ISSET(inp->inp_flags, INP_IPV6));
424 if (inp->inp_socket->so_rcv.sb_state & SS_CANTRCVMORE)
426 if (rtable_l2(inp->inp_rtableid) !=
429 if (inp->inp_lport != uh->uh_dport)
433 if (inp->inp_ip6_minhlim &&
434 inp->inp_ip6_minhlim > ip6->ip6_hlim)
436 if (!IN6_IS_ADDR_UNSPECIFIED(&inp
646 udp_sbappend(struct inpcb *inp, struct mbuf *m, struct ip *ip, struct ip6_hdr *ip6, int hlen, struct udphdr *uh, struct sockaddr *srcaddr, u_int32_t ipsecflowinfo) argument
718 udp_notify(struct inpcb *inp, int errno) argument
740 struct inpcb *inp; local
884 struct inpcb *inp; local
928 udp_output(struct inpcb *inp, struct mbuf *m, struct mbuf *addr, struct mbuf *control) argument
1131 struct inpcb *inp; local
1146 struct inpcb *inp = sotoinpcb(so); local
1155 struct inpcb *inp = sotoinpcb(so); local
1164 struct inpcb *inp = sotoinpcb(so); local
1172 struct inpcb *inp = sotoinpcb(so); local
1181 struct inpcb *inp = sotoinpcb(so); local
1207 struct inpcb *inp = sotoinpcb(so); local
1240 struct inpcb *inp = sotoinpcb(so); local
[all...]
H A Draw_ip.c136 struct inpcb *inp; local
172 TAILQ_FOREACH(inp, &rawcbtable.inpt_queue, inp_queue) {
173 KASSERT(!ISSET(inp->inp_flags, INP_IPV6));
180 if (ISSET(READ_ONCE(inp->inp_socket->so_rcv.sb_state),
183 if (rtable_l2(inp->inp_rtableid) !=
187 if (inp->inp_ip.ip_p && inp->inp_ip.ip_p != ip->ip_p)
189 if (inp->inp_laddr.s_addr &&
190 inp->inp_laddr.s_addr != key->s_addr)
192 if (inp
266 struct inpcb *inp; local
419 struct inpcb *inp = sotoinpcb(so); local
478 struct inpcb *inp; local
501 struct inpcb *inp = sotoinpcb(so); local
520 struct inpcb *inp = sotoinpcb(so); local
529 struct inpcb *inp = sotoinpcb(so); local
538 struct inpcb *inp = sotoinpcb(so); local
546 struct inpcb *inp = sotoinpcb(so); local
572 struct inpcb *inp = sotoinpcb(so); local
592 struct inpcb *inp = sotoinpcb(so); local
624 struct inpcb *inp = sotoinpcb(so); local
[all...]
H A Dip_divert.c91 divert_output(struct inpcb *inp, struct mbuf *m, struct mbuf *nam, argument
147 rt = rtalloc(sintosa(sin), 0, inp->inp_rtableid);
172 m->m_pkthdr.ph_rtableid = inp->inp_rtableid;
174 error = ip_output(m, NULL, &inp->inp_route,
190 struct inpcb *inp = NULL; local
203 TAILQ_FOREACH(inp, &divbtable.inpt_queue, inp_queue) {
204 if (inp->inp_lport != divert_port)
206 in_pcbref(inp);
210 if (inp == NULL) {
244 so = inp
288 struct inpcb *inp = sotoinpcb(so); local
302 struct inpcb *inp = sotoinpcb(so); local
311 struct inpcb *inp = sotoinpcb(so); local
320 struct inpcb *inp = sotoinpcb(so); local
328 struct inpcb *inp = sotoinpcb(so); local
346 struct inpcb *inp = sotoinpcb(so); local
[all...]
H A Dtcp_subr.c206 struct inpcb *inp = tp->t_inpcb; local
242 ipovly->ih_src = inp->inp_laddr;
243 ipovly->ih_dst = inp->inp_faddr;
256 ip6->ip6_src = inp->inp_laddr6;
257 ip6->ip6_dst = inp->inp_faddr6;
259 (inp->inp_flowinfo & IPV6_FLOWLABEL_MASK);
263 ip6->ip6_hlim = in6_selecthlim(inp); /*XXX*/
272 th->th_sport = inp->inp_lport;
273 th->th_dport = inp->inp_fport;
430 tcp_newtcpcb(struct inpcb *inp, in argument
512 struct inpcb *inp = tp->t_inpcb; local
574 tcp_notify(struct inpcb *inp, int error) argument
610 struct inpcb *inp; local
715 struct inpcb *inp; local
856 tcp_mtudisc(struct inpcb *inp, int errno) argument
894 tcp_mtudisc_increase(struct inpcb *inp, int errno) argument
[all...]
H A Dtcp_usrreq.c187 struct inpcb *inp; local
195 if ((inp = sotoinpcb(so)) == NULL || (tp = intotcpcb(inp)) == NULL) {
201 *rinp = inp;
311 struct inpcb *inp; local
315 inp = sotoinpcb(so);
316 if (inp == NULL)
320 if (ISSET(inp->inp_flags, INP_IPV6))
327 tp = intotcpcb(inp);
460 struct inpcb *inp; local
511 struct inpcb *inp; local
546 struct inpcb *inp; local
572 struct inpcb *inp; local
613 struct inpcb *inp; local
693 struct inpcb *inp; local
723 struct inpcb *inp; local
751 struct inpcb *inp; local
786 struct inpcb *inp; local
820 struct inpcb *inp; local
859 struct inpcb *inp; local
882 struct inpcb *inp; local
901 struct inpcb *inp; local
935 struct inpcb *inp; local
987 struct inpcb *inp; local
1007 struct inpcb *inp; local
1105 struct inpcb *inp; local
[all...]
/openbsd-current/sys/netinet6/
H A Din6_pcb.c153 in6_pcbaddrisavail_lock(const struct inpcb *inp, struct sockaddr_in6 *sin6, argument
156 struct socket *so = inp->inp_socket;
157 struct inpcbtable *table = inp->inp_table;
164 inp->inp_outputopts6, inp->inp_moptions6) != 0)
194 inp->inp_rtableid)) == NULL)
222 inp->inp_rtableid, lock);
231 wild, inp->inp_rtableid, lock);
243 in6_pcbaddrisavail(const struct inpcb *inp, struct sockaddr_in6 *sin6, argument
246 return in6_pcbaddrisavail_lock(inp, sin
258 in6_pcbconnect(struct inpcb *inp, struct mbuf *nam) argument
354 in6_setsockaddr(struct inpcb *inp, struct mbuf *nam) argument
375 in6_setpeeraddr(struct inpcb *inp, struct mbuf *nam) argument
394 struct inpcb *inp; local
405 struct inpcb *inp; local
431 struct inpcb *inp; local
561 in6_pcbrtentry(struct inpcb *inp) argument
575 struct inpcb *inp; local
610 struct inpcb *inp; local
652 struct inpcb *inp; local
[all...]
H A Draw_ip6.c139 struct inpcb *inp; local
186 TAILQ_FOREACH(inp, &rawin6pcbtable.inpt_queue, inp_queue) {
187 KASSERT(ISSET(inp->inp_flags, INP_IPV6));
194 if (ISSET(READ_ONCE(inp->inp_socket->so_rcv.sb_state),
197 if (rtable_l2(inp->inp_rtableid) !=
201 if ((inp->inp_ipv6.ip6_nxt || proto == IPPROTO_ICMPV6) &&
202 inp->inp_ipv6.ip6_nxt != proto)
204 if (!IN6_IS_ADDR_UNSPECIFIED(&inp->inp_laddr6) &&
205 !IN6_ARE_ADDR_EQUAL(&inp->inp_laddr6, key))
207 if (!IN6_IS_ADDR_UNSPECIFIED(&inp
344 struct inpcb *inp; local
393 struct inpcb *inp; local
596 struct inpcb *inp; local
629 struct inpcb *inp = sotoinpcb(so); local
650 struct inpcb *inp = sotoinpcb(so); local
659 struct inpcb *inp = sotoinpcb(so); local
668 struct inpcb *inp = sotoinpcb(so); local
676 struct inpcb *inp = sotoinpcb(so); local
704 struct inpcb *inp = sotoinpcb(so); local
731 struct inpcb *inp = sotoinpcb(so); local
761 struct inpcb *inp = sotoinpcb(so); local
[all...]
H A Dudp6_output.c96 udp6_output(struct inpcb *inp, struct mbuf *m, struct mbuf *addr6, argument
110 if ((inp->inp_socket->so_state & SS_PRIV) != 0)
114 inp->inp_outputopts6, priv, IPPROTO_UDP)) != 0)
118 optp = inp->inp_outputopts6;
133 if (!IN6_IS_ADDR_UNSPECIFIED(&inp->inp_faddr6)) {
147 inp->inp_outputopts6, inp->inp_moptions6) != 0) {
152 error = in6_pcbselsrc(&laddr, sin6, inp, optp);
156 if (inp->inp_lport == 0){
157 error = in_pcbbind(inp, NUL
[all...]
/openbsd-current/lib/libcrypto/whrlpool/
H A Dwhrlpool.h31 int WHIRLPOOL_Update (WHIRLPOOL_CTX *c,const void *inp,size_t bytes);
32 void WHIRLPOOL_BitUpdate(WHIRLPOOL_CTX *c,const void *inp,size_t bits);
34 unsigned char *WHIRLPOOL(const void *inp,size_t bytes,unsigned char *md);
/openbsd-current/bin/dd/
H A Dconv.c58 u_char *inp; local
62 for (inp = in.dbp - (cnt = in.dbrcnt); cnt--; ++inp)
63 *inp = t[*inp];
114 u_char *inp, *outp; local
124 for (inp = in.db, cnt = in.dbrcnt;
125 cnt && *inp++ != '\n'; --cnt);
134 in.dbp = inp + cnt - 1;
141 for (inp
224 u_char *inp; local
[all...]
/openbsd-current/lib/libcrypto/rc4/asm/
H A Drc4-586.pl69 $inp="esi";
119 &movq ("mm2",&QWP(0,$inp)) if ($i==1);
120 &movq (&QWP(-8,(@XX[0],$inp)),"mm1") if ($i==0);
141 &movq ("mm0",&QWP(0,$inp)) if ($i<=0);
142 &movq (&QWP(-8,($out,$inp)),"mm2") if ($i==0);
155 # void rc4_internal(RC4_KEY *key, size_t len, const unsigned char *inp,
160 &mov ($inp,&wparam(2)); # load inp
173 &lea ($tx,&DWP(0,$inp,$ty));
174 &sub ($out,$inp); # r
[all...]
H A Drc4-x86_64.pl118 $inp="%rdx"; # arg3
141 mov $inp,%r12
145 my $inp="%r12";
166 sub $inp,$out
185 xorb ($inp),$TY#b
186 movb $TY#b,($out,$inp)
187 lea 1($inp),$inp
217 xor ($inp),%r8
218 mov %r8,($out,$inp)
[all...]
/openbsd-current/lib/libcrypto/aes/asm/
H A Daesni-x86.pl63 $inp="esi";
163 # void $PREFIX_encrypt (const void *inp,void *out,const AES_KEY *key);
179 # void $PREFIX_decrypt (const void *inp,void *out,const AES_KEY *key);
362 &mov ($inp,&wparam(0));
378 &movdqu ($inout0,&QWP(0,$inp));
379 &movdqu ($inout1,&QWP(0x10,$inp));
380 &movdqu ($inout2,&QWP(0x20,$inp));
381 &movdqu ($inout3,&QWP(0x30,$inp));
382 &movdqu ($inout4,&QWP(0x40,$inp));
383 &movdqu ($inout5,&QWP(0x50,$inp));
[all...]
H A Daesni-x86_64.pl186 $inp="%rdi";
237 # void $PREFIX_[en|de]crypt (const void *inp,void *out,const AES_KEY *key);
239 { my ($inp,$out,$key) = @_4args;
247 movups ($inp),$inout0 # load input
261 movups ($inp),$inout0 # load input
551 movdqu ($inp),$inout0
552 movdqu 0x10($inp),$inout1
553 movdqu 0x20($inp),$inout2
554 movdqu 0x30($inp),$inout3
555 movdqu 0x40($inp),
[all...]
/openbsd-current/usr.sbin/npppd/npppd/
H A Dlcp.c427 lcp_reqci(fsm *f, u_char *inp, int *lenp, int reject_if_disagree) argument
437 inp0 = inp;
448 #define remlen() (*lenp - (inp - inp0))
455 GETCHAR(type, inp);
456 GETCHAR(len, inp);
464 GETSHORT(mru, inp);
468 inp -= 2;
474 inp -= 2;
475 memcpy(nakbuf, inp, len);
477 inp
546 lcp_ackci(fsm *f, u_char *inp, int inlen) argument
637 show_hd(debug_get_debugfp(), inp, remlen()); local
644 lcp_nakci(fsm *f, u_char *inp, int inlen) argument
774 show_hd(debug_get_debugfp(), inp, inlen); local
784 lcp_rejci(fsm *f, u_char *inp, int inlen) argument
881 show_hd(debug_get_debugfp(), inp, inlen); local
887 lcp_rcoderej(fsm *f, u_char *inp, int inlen) argument
977 lcp_rechoreq(fsm *f, int id, u_char *inp, int inlen) argument
997 lcp_ext(fsm *f, int code, int id, u_char *inp, int inlen) argument
1176 lcp_proxy_recv_ci(fsm *f, u_char *inp, int inlen) argument
1252 lcp_proxy_sent_ci(fsm *f, u_char *inp, int inlen) argument
[all...]
/openbsd-current/lib/libcrypto/modes/asm/
H A Dghash-x86.pl126 $inp = "edi";
150 my $cnt = $inp;
253 &mov ($inp,&wparam(0)); # load Xi
256 &mov ($Zhh,&DWP(0,$inp)); # load Xi[16]
257 &mov ($Zhl,&DWP(4,$inp));
258 &mov ($Zlh,&DWP(8,$inp));
259 &mov ($Zll,&DWP(12,$inp));
274 &mov ($inp,&wparam(0));
277 &mov (&DWP(12,$inp),$Zll);
278 &mov (&DWP(8,$inp),
[all...]
/openbsd-current/gnu/usr.bin/binutils/gdb/cli/
H A Dcli-dump.h36 extern char *skip_spaces (char *inp);
/openbsd-current/usr.bin/patch/
H A DMakefile4 SRCS= patch.c pch.c inp.c util.c backupfile.c mkpath.c ed.c
/openbsd-current/usr.bin/m4/
H A Dtrace.c133 print_header(struct input_file *inp) argument
137 fprintf(traceout, "%s:", inp->name);
139 fprintf(traceout, "%lu:", inp->lineno);
146 trace(const char *argv[], int argc, struct input_file *inp) argument
150 print_header(inp);
153 print_header(inp);
175 print_header(inp);
/openbsd-current/usr.sbin/pppd/
H A Dupap.c296 u_char *inp; local
304 inp = inpacket;
309 GETCHAR(code, inp);
310 GETCHAR(id, inp);
311 GETSHORT(len, inp);
327 upap_rauthreq(u, inp, id, len);
331 upap_rauthack(u, inp, id, len);
335 upap_rauthnak(u, inp, id, len);
348 upap_rauthreq(u, inp, id, len)
350 u_char *inp;
[all...]

Completed in 317 milliseconds

12345