Home
last modified time | relevance | path

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

/dragonfly/stand/lib/
H A Dnet.h92 extern struct iodesc sockets[SOPEN_MAX];
95 u_char *arpwhohas(struct iodesc *, struct in_addr);
96 void arp_reply(struct iodesc *, void *);
100 ssize_t sendether(struct iodesc *d, void *pkt, size_t len,
102 ssize_t readether(struct iodesc *d, void *pkt, size_t len,
105 ssize_t sendudp(struct iodesc *, void *, size_t);
106 ssize_t readudp(struct iodesc *, void *, size_t, time_t);
107 ssize_t sendrecv(struct iodesc *,
108 ssize_t (*)(struct iodesc *, void *, size_t),
110 ssize_t (*)(struct iodesc *, void *, size_t, time_t),
H A Dnetif.h16 void (*netif_init)(struct iodesc *, void *);
17 int (*netif_get)(struct iodesc *, void *, size_t, time_t);
18 int (*netif_put)(struct iodesc *, void *, size_t);
57 void netif_attach(struct netif *, struct iodesc *, void *);
59 ssize_t netif_get(struct iodesc *, void *, size_t, time_t);
60 ssize_t netif_put(struct iodesc *, void *, size_t);
65 struct iodesc *socktodesc(int);
H A Dtftp.c88 struct iodesc *iodesc; member
113 recvtftp(struct iodesc *d, void *pkt, size_t max_len, time_t tleft) in recvtftp()
216 h->iodesc->myport = htons(tftpport + (getsecs() & 0x3ff)); in tftp_makereq()
217 h->iodesc->destport = htons(IPPORT_TFTP); in tftp_makereq()
218 h->iodesc->xid = 1; /* expected block */ in tftp_makereq()
220 res = sendrecv(h->iodesc, sendudp, &wbuf.t, wtail - (char *) &wbuf.t, in tftp_makereq()
256 h->iodesc->xid = h->currblock + 1; /* expected block */ in tftp_getnextblock()
258 res = sendrecv(h->iodesc, sendudp, &wbuf.t, wtail - (char *) &wbuf.t, in tftp_getnextblock()
275 struct iodesc *io; in tftp_open()
288 tftpfile->iodesc = io = socktodesc(*(int *) (f->f_devdata)); in tftp_open()
H A Drarp.c53 static ssize_t rarpsend(struct iodesc *, void *, size_t);
54 static ssize_t rarprecv(struct iodesc *, void *, size_t, time_t);
62 struct iodesc *d; in rarp_getipaddress()
133 rarpsend(struct iodesc *d, void *pkt, size_t len) in rarpsend()
149 rarprecv(struct iodesc *d, void *pkt, size_t len, time_t tleft) in rarprecv()
H A Darp.c65 static ssize_t arpsend(struct iodesc *, void *, size_t);
66 static ssize_t arprecv(struct iodesc *, void *, size_t, time_t);
70 arpwhohas(struct iodesc *d, struct in_addr addr) in arpwhohas()
146 arpsend(struct iodesc *d, void *pkt, size_t len) in arpsend()
162 arprecv(struct iodesc *d, void *pkt, size_t len, time_t tleft) in arprecv()
251 arp_reply(struct iodesc *d, void *pkt) in arp_reply()
H A Dnfs.c119 struct iodesc *iodesc; member
157 nfs_getrootfh(struct iodesc *d, char *path, u_char *fhp) in nfs_getrootfh()
267 cc = rpc_call(d->iodesc, NFS_PROG, NFS_VER2, NFSPROC_LOOKUP, in nfs_lookupfh()
305 cc = rpc_call(d->iodesc, NFS_PROG, NFS_VER2, NFSPROC_READLINK, in nfs_readlink()
359 cc = rpc_call(d->iodesc, NFS_PROG, NFS_VER2, NFSPROC_READ, in nfs_readdata()
392 struct iodesc *desc; in nfs_open()
429 nfs_root_node.iodesc = desc; in nfs_open()
465 newfd->iodesc = currfd->iodesc; in nfs_open()
546 currfd->iodesc = desc; in nfs_open()
723 cc = rpc_call(fp->iodesc, NFS_PROG, NFS_VER2, NFSPROC_READDIR, in nfs_readdir()
H A Dnetif.c46 struct iodesc sockets[SOPEN_MAX];
169 netif_attach(struct netif *nif, struct iodesc *desc, void *machdep_hint) in netif_attach()
206 netif_get(struct iodesc *desc, void *pkt, size_t len, time_t timo) in netif_get()
233 netif_put(struct iodesc *desc, void *pkt, size_t len) in netif_put()
259 struct iodesc *
273 struct iodesc *s; in netif_open()
H A Dbootp.c67 static ssize_t bootpsend(struct iodesc *, void *, size_t);
68 static ssize_t bootprecv(struct iodesc *, void *, size_t, time_t);
83 struct iodesc *d; in bootp()
251 bootpsend(struct iodesc *d, void *pkt, size_t len) in bootpsend()
272 bootprecv(struct iodesc *d, void *pkt, size_t len, time_t tleft) in bootprecv()
H A Drpc.c98 static ssize_t recvrpc(struct iodesc *, void *, size_t, time_t);
99 static int rpc_getport(struct iodesc *, n_long, n_long);
117 rpc_call(struct iodesc *d, n_long prog, n_long vers, n_long proc, void *sdata, in rpc_call()
236 recvrpc(struct iodesc *d, void *pkt, size_t len, time_t tleft) in recvrpc()
385 rpc_getport(struct iodesc *d, n_long prog, n_long vers) in rpc_getport()
H A Dnet.c70 sendrecv(struct iodesc *d, ssize_t (*sproc)(struct iodesc *, void *, size_t), in sendrecv() argument
72 ssize_t (*rproc)(struct iodesc *, void *, size_t, time_t), void *rbuf, in sendrecv() argument
H A Dether.c55 sendether(struct iodesc *d, void *pkt, size_t len, u_char *dea, int etype) in sendether()
86 readether(struct iodesc *d, void *pkt, size_t len, time_t tleft, in readether()
H A Diodesc.h40 struct iodesc { struct
H A Dudp.c60 sendudp(struct iodesc *d, void *pkt, size_t len) in sendudp()
132 readudp(struct iodesc *d, void *pkt, size_t len, time_t tleft) in readudp()
H A Drpc.h51 ssize_t rpc_call(struct iodesc *, n_long, n_long, n_long,
H A Dbootparam.c132 struct iodesc *d; in bp_whoami()
247 struct iodesc *d; in bp_getfile()
/dragonfly/stand/boot/pc32/libi386/
H A Dpxe.c87 static void pxe_netif_init(struct iodesc *desc, void *machdep_hint);
88 static int pxe_netif_get(struct iodesc *desc, void *pkt, size_t len,
90 static int pxe_netif_put(struct iodesc *desc, void *pkt, size_t len);
442 struct iodesc *iodesc; member
570 pxe_netif_init(struct iodesc *desc, void *machdep_hint) in pxe_netif_init()
579 pxe_netif_get(struct iodesc *desc, void *pkt, size_t len, time_t timeout) in pxe_netif_get()
585 pxe_netif_put(struct iodesc *desc, void *pkt, size_t len) in pxe_netif_put()
591 sendudp(struct iodesc *h, void *pkt, size_t len) in sendudp()
624 readudp(struct iodesc *h, void *pkt, size_t len, time_t timeout) in readudp()
/dragonfly/stand/boot/efi/libefi/
H A Definet.c47 static int efinet_get(struct iodesc *, void *, size_t, time_t);
48 static void efinet_init(struct iodesc *, void *);
51 static int efinet_put(struct iodesc *, void *, size_t);
117 efinet_put(struct iodesc *desc, void *pkt, size_t len) in efinet_put()
145 efinet_get(struct iodesc *desc, void *pkt, size_t len, time_t timeout) in efinet_get()
180 efinet_init(struct iodesc *desc, void *machdep_hint) in efinet_init()
/dragonfly/stand/boot/common/
H A Ddev_net.c212 struct iodesc *d; in net_getparams()