Home
last modified time | relevance | path

Searched refs:iodesc (Results 1 – 25 of 53) sorted by relevance

123

/netbsd/src/sys/lib/libsa/
Dnet.h107 u_char *arpwhohas(struct iodesc *, struct in_addr);
108 void arp_reply(struct iodesc *, void *);
112 ssize_t sendether(struct iodesc *, void *, size_t, u_char *, int);
113 ssize_t readether(struct iodesc *, void *, size_t, saseconds_t, u_int16_t *);
115 ssize_t sendip __P((struct iodesc *, void *, size_t, u_int8_t));
116 ssize_t readip __P((struct iodesc *, void *, size_t, time_t, u_int8_t));
118 ssize_t sendudp(struct iodesc *, void *, size_t);
119 ssize_t readudp(struct iodesc *, void *, size_t, saseconds_t);
121 int tcp_connect __P((struct iodesc *));
122 ssize_t sendtcp __P((struct iodesc *, void *, size_t));
[all …]
Dtftp.c69 struct iodesc *iodesc; member
93 static ssize_t recvtftp(struct iodesc *, void *, size_t, saseconds_t);
102 recvtftp(struct iodesc *d, void *pkt, size_t len, saseconds_t tleft) in recvtftp()
176 h->iodesc->myport = htons(tftpport + (getsecs() & 0x3ff)); in tftp_makereq()
177 h->iodesc->destport = htons(IPPORT_TFTP); in tftp_makereq()
178 h->iodesc->xid = 1; /* expected block */ in tftp_makereq()
180 res = sendrecv(h->iodesc, sendudp, &wbuf.t, wtail - (char *)&wbuf.t, in tftp_makereq()
212 h->iodesc->xid = h->currblock + 1; /* expected block */ in tftp_getnextblock()
214 res = sendrecv(h->iodesc, sendudp, &wbuf.t, wtail - (char *)&wbuf.t, in tftp_getnextblock()
247 (void)sendudp(h->iodesc, &wbuf.t, wtail - (char *)&wbuf.t); in tftp_terminate()
[all …]
Diodesc.h65 struct iodesc { struct
75 struct iodesc *socktodesc(int); argument
76 ssize_t netif_get(struct iodesc *, void *, size_t, saseconds_t);
77 ssize_t netif_put(struct iodesc *, void *, size_t);
Dnetif.h40 void (*netif_init)(struct iodesc *, void *);
41 int (*netif_get)(struct iodesc *, void *, size_t, saseconds_t);
42 int (*netif_put)(struct iodesc *, void *, size_t);
82 void netif_attach(struct netif *, struct iodesc *, void *);
Dnfs.c90 struct iodesc *iodesc; member
138 int nfs_getrootfh(struct iodesc *, char *, u_char *, int *);
149 nfs_getrootfh(struct iodesc *d, char *path, u_char *fhp, int *versionp) in nfs_getrootfh()
282 cc = rpc_call(d->iodesc, NFS_PROG, NFS_VER2, NFSPROC_LOOKUP, in nfs_lookupfh()
301 cc = rpc_call(d->iodesc, NFS_PROG, NFS_VER3, NFSV3PROC_LOOKUP, in nfs_lookupfh()
364 cc = rpc_call(d->iodesc, NFS_PROG, d->version, NFSPROC_READLINK, in nfs_readlink()
461 cc = rpc_call(d->iodesc, NFS_PROG, d->version, NFSPROC_READ, in nfs_readdata()
477 cc = rpc_call(d->iodesc, NFS_PROG, d->version, NFSPROC_READ, in nfs_readdata()
542 struct iodesc *desc; in nfs_mount()
556 nfs_root_node.iodesc = desc; in nfs_mount()
[all …]
/netbsd/src/sys/arch/ews4800mips/stand/common/
Dether_if.c59 void ether_init(struct iodesc *, void *);
60 int ether_get(struct iodesc *, void *, size_t, saseconds_t);
61 int ether_put(struct iodesc *, void *, size_t);
106 ether_init(struct iodesc *iodesc, void *hint) in ether_init() argument
110 lance_eaddr(iodesc->myea); in ether_init()
114 ether_get(struct iodesc *iodesc, void *pkt, size_t len, saseconds_t timeout) in ether_get() argument
121 ether_put(struct iodesc *iodesc, void *pkt, size_t len) in ether_put() argument
/netbsd/src/sys/arch/sbmips/stand/netboot/
Dif_cfe.c53 void cfenet_init(struct iodesc *, void *);
54 int cfenet_get(struct iodesc *, void *, size_t, saseconds_t);
55 int cfenet_put(struct iodesc *, void *, size_t);
95 cfenet_put(struct iodesc *desc, void *pkt, size_t len) in cfenet_put()
105 cfenet_get(struct iodesc *desc, void *pkt, size_t len, saseconds_t timeout) in cfenet_get()
122 cfenet_init(struct iodesc *desc, void *machdep_hint) in cfenet_init()
/netbsd/src/sys/arch/x68k/stand/boot/
Dif_ne.c47 static void ne_init(struct iodesc *, void *);
48 static int ne_get(struct iodesc *, void *, size_t, saseconds_t);
49 static int ne_put(struct iodesc *, void *, size_t);
83 ne_init(struct iodesc *desc, void *machdep_hint) in ne_init()
98 ne_get(struct iodesc *desc, void *pkt, size_t maxlen, saseconds_t timeout) in ne_get()
114 ne_put(struct iodesc *desc, void *pkt, size_t len) in ne_put()
/netbsd/src/sys/arch/cobalt/stand/boot/
Dnif_tlp.c51 static void tlp_attach(struct iodesc *, void *);
52 static int tlp_get(struct iodesc *, void *, size_t, saseconds_t);
53 static int tlp_put(struct iodesc *, void *, size_t);
97 tlp_attach(struct iodesc *desc, void *hint) in tlp_attach()
106 tlp_get(struct iodesc *desc, void *pkt, size_t maxlen, saseconds_t timeout) in tlp_get()
126 tlp_put(struct iodesc *desc, void *pkt, size_t len) in tlp_put()
/netbsd/src/sys/arch/ofppc/stand/ofwboot/
Dnetif_of.c59 static struct iodesc sdesc;
61 struct iodesc *
72 struct iodesc *io; in netif_of_open()
103 struct iodesc *io; in netif_of_close()
129 netif_put(struct iodesc *desc, void *pkt, size_t len) in netif_put()
172 netif_get(struct iodesc *desc, void *pkt, size_t maxlen, saseconds_t timo) in netif_get()
/netbsd/src/sys/arch/shark/stand/ofwboot/
Dnetif_of.c59 static struct iodesc sdesc;
61 struct iodesc *
72 struct iodesc *io; in netif_of_open()
103 struct iodesc *io; in netif_of_close()
129 netif_put(struct iodesc *desc, void *pkt, size_t len) in netif_put()
172 netif_get(struct iodesc *desc, void *pkt, size_t maxlen, saseconds_t timo) in netif_get()
/netbsd/src/sys/arch/newsmips/stand/boot/
Dnetif_news.c56 static struct iodesc sdesc;
58 struct iodesc *
70 struct iodesc *io; in netif_news_open()
94 struct iodesc *io; in netif_news_close()
105 netif_put(struct iodesc *desc, void *pkt, size_t len) in netif_put()
149 netif_get(struct iodesc *desc, void *pkt, size_t maxlen, saseconds_t timo) in netif_get()
/netbsd/src/sys/arch/sparc/stand/common/
Dnetif_sun.c57 struct iodesc sockets[SOPEN_MAX];
59 struct iodesc *
73 struct iodesc *io; in netif_open()
108 struct iodesc *io; in netif_close()
130 netif_put(struct iodesc *desc, void *pkt, size_t len) in netif_put()
174 netif_get(struct iodesc *desc, void *pkt, size_t maxlen, saseconds_t timo) in netif_get()
/netbsd/src/sys/arch/macppc/stand/ofwboot/
Dnetif_of.c59 static struct iodesc sdesc;
61 struct iodesc *
72 struct iodesc *io; in netif_of_open()
107 struct iodesc *io; in netif_of_close()
133 netif_put(struct iodesc *desc, void *pkt, size_t len) in netif_put()
180 netif_get(struct iodesc *desc, void *pkt, size_t maxlen, saseconds_t timo) in netif_get()
/netbsd/src/sys/arch/sparc/stand/ofwboot/
Dnetif_of.c61 struct iodesc sockets[SOPEN_MAX];
63 struct iodesc *
75 struct iodesc *io; in netif_open()
107 struct iodesc *io; in netif_close()
138 netif_put(struct iodesc *desc, void *pkt, size_t len) in netif_put()
184 netif_get(struct iodesc *desc, void *pkt, size_t maxlen, saseconds_t timo) in netif_get()
/netbsd/src/sys/arch/vax/boot/boot/
Dnetio.c93 static struct iodesc desc;
96 struct iodesc *
105 struct iodesc *s; in net_devinit()
173 netif_put(struct iodesc *desc, void *pkt, size_t len) in netif_put()
180 netif_get(struct iodesc *desc, void *pkt, size_t len, saseconds_t timo) in netif_get()
/netbsd/src/sys/arch/mvmeppc/stand/libsa/
Dif_bug.c52 static void bug_init(struct iodesc *, void *);
53 static int bug_get(struct iodesc *, void *, size_t, saseconds_t);
54 static int bug_put(struct iodesc *, void *, size_t);
104 bug_init(struct iodesc *desc, void *machdep_hint) in bug_init()
140 bug_get(struct iodesc *desc, void *pkt, size_t len, saseconds_t timeout) in bug_get()
169 bug_put(struct iodesc *desc, void *pkt, size_t len) in bug_put()
/netbsd/src/sys/arch/sun68k/stand/libsa/
Dnetif_sun.c64 struct iodesc sockets[SOPEN_MAX];
79 int netif_attach(struct netif *, struct iodesc *, void *);
181 netif_attach(struct netif *nif, struct iodesc *s, void *aux) in netif_attach()
217 struct iodesc *s; in netif_open()
241 struct iodesc *s; in netif_close()
259 struct iodesc *
275 netif_put(struct iodesc *desc, void *pkt, size_t len) in netif_put()
341 netif_get(struct iodesc *desc, void *pkt, size_t maxlen, saseconds_t timo) in netif_get()
/netbsd/src/sys/arch/pmax/stand/common/
Dif_prom.c78 void prom_init(struct iodesc *, void *);
79 int prom_get(struct iodesc *, void *, size_t, saseconds_t);
80 int prom_put(struct iodesc *, void *, size_t);
124 prom_init(struct iodesc *desc, void *machdep_hint) in prom_init()
185 prom_put(struct iodesc *desc, void *pkt, size_t len) in prom_put()
209 prom_get(struct iodesc *desc, void *pkt, size_t len, saseconds_t timeout) in prom_get()
/netbsd/src/sys/arch/luna68k/stand/boot/
Dif_le.c82 static void le_init(struct iodesc *, void *);
83 static int le_get(struct iodesc *, void *, size_t, saseconds_t);
84 static int le_put(struct iodesc *, void *, size_t);
164 le_init(struct iodesc *desc, void *machdep_hint) in le_init()
186 le_get(struct iodesc *desc, void *pkt, size_t maxlen, saseconds_t timeout) in le_get()
205 le_put(struct iodesc *desc, void *pkt, size_t len) in le_put()
/netbsd/src/sys/arch/hpcmips/stand/lcboot/
Dif_cs.c43 static void cs_init(struct iodesc *, void *);
44 static int cs_get(struct iodesc *, void *, size_t, time_t);
45 static int cs_put(struct iodesc *, void *, size_t);
142 cs_init(struct iodesc *desc, void *machdep_hint) in cs_init()
194 cs_get(struct iodesc *desc, void *pkt, size_t len, time_t timeout) in cs_get()
232 cs_put(struct iodesc *desc, void *pkt, size_t len) in cs_put()
/netbsd/src/sys/arch/sandpoint/stand/altboot/
Dnif.c54 static struct iodesc netdesc;
69 struct iodesc *s; in netif_init()
133 netif_put(struct iodesc *desc, void *pkt, size_t len) in netif_put()
145 netif_get(struct iodesc *desc, void *pkt, size_t maxlen, saseconds_t timo) in netif_get()
156 struct iodesc *
/netbsd/src/sys/arch/evbarm/stand/boot2440/
Dnetif.c64 static struct iodesc netdesc;
98 struct iodesc *s; in netif_init()
139 netif_put(struct iodesc *desc, void *pkt, size_t len) in netif_put()
148 netif_get(struct iodesc *desc, void *pkt, size_t maxlen, saseconds_t timo) in netif_get()
157 struct iodesc*
/netbsd/src/sys/arch/emips/stand/common/
Denic.c80 static void enicinit (struct iodesc *, void *);
81 static int enicget (struct iodesc *, void *, size_t, saseconds_t);
82 static int enicput (struct iodesc *, void *, size_t);
265 enicinit(struct iodesc *desc, void *machdep_hint) in enicinit()
283 enicput(struct iodesc *desc, void *pkt, size_t len) in enicput()
295 enicget(struct iodesc *desc, void *pkt, size_t len, saseconds_t timeout) in enicget()
/netbsd/src/sys/arch/ia64/stand/efi/libefi/
Definet.c50 void efinet_init(struct iodesc *, void *);
51 int efinet_get(struct iodesc *, void *, size_t, saseconds_t);
52 int efinet_put(struct iodesc *, void *, size_t);
116 efinet_put(struct iodesc *desc, void *pkt, size_t len) in efinet_put()
145 efinet_get(struct iodesc *desc, void *pkt, size_t len, saseconds_t timeout) in efinet_get()
180 efinet_init(struct iodesc *desc, void *machdep_hint) in efinet_init()

123