Home
last modified time | relevance | path

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

12

/trueos/usr.sbin/kgzip/
HDkgzip.h35 struct iodesc { struct
46 void xclose(const struct iodesc *); argument
47 void xcopy(const struct iodesc *, const struct iodesc *, size_t, off_t);
48 void xzero(const struct iodesc *, size_t);
49 size_t xread(const struct iodesc *, void *, size_t, off_t);
50 void xwrite(const struct iodesc *, const void *, size_t);
51 void xseek(const struct iodesc *, off_t);
HDkgzcmp.c48 static void mk_data(const struct iodesc *i, const struct iodesc *,
50 static int ld_elf(const struct iodesc *, const struct iodesc *,
52 static int ld_aout(const struct iodesc *, const struct iodesc *,
61 struct iodesc idi, ido; in kgzcmp()
114 mk_data(const struct iodesc * idi, const struct iodesc * ido, in mk_data()
122 struct iodesc idp; in mk_data()
175 ld_elf(const struct iodesc * idi, const struct iodesc * ido, in ld_elf()
220 ld_aout(const struct iodesc * idi, const struct iodesc * ido, in ld_aout()
HDxio.c39 xclose(const struct iodesc *id) in xclose()
49 xcopy(const struct iodesc * idi, const struct iodesc * ido, in xcopy()
70 xzero(const struct iodesc * id, size_t nbyte) in xzero()
88 xread(const struct iodesc * id, void *buf, size_t nbyte, off_t offset) in xread()
103 xwrite(const struct iodesc * id, const void *buf, size_t nbyte) in xwrite()
117 xseek(const struct iodesc *id, off_t offset) in xseek()
HDkgzld.c53 struct iodesc idi; in kgzld()
/trueos/lib/libstand/
HDnet.h89 extern struct iodesc sockets[SOPEN_MAX];
92 u_char *arpwhohas(struct iodesc *, struct in_addr);
93 void arp_reply(struct iodesc *, void *);
97 ssize_t sendether(struct iodesc *d, void *pkt, size_t len,
99 ssize_t readether(struct iodesc *d, void *pkt, size_t len,
102 ssize_t sendudp(struct iodesc *, void *, size_t);
103 ssize_t readudp(struct iodesc *, void *, size_t, time_t);
104 ssize_t sendrecv(struct iodesc *,
105 ssize_t (*)(struct iodesc *, void *, size_t),
107 ssize_t (*)(struct iodesc *, void *, size_t, time_t),
HDnetif.h15 void (*netif_init)(struct iodesc *, void *);
16 int (*netif_get)(struct iodesc *, void *, size_t, time_t);
17 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);
HDtftp.c74 ssize_t (*sproc)(struct iodesc *, void *, size_t),
109 struct iodesc *iodesc; member
163 sendudp(h->iodesc, &wbuf.t, wtail - (char *) &wbuf.t); in tftp_senderr()
180 sendudp(h->iodesc, &wbuf.t, wtail - (char *) &wbuf.t); in tftp_sendack()
187 struct iodesc *d = h->iodesc; in recvtftp()
320 h->iodesc->myport = htons(tftpport + (getsecs() & 0x3ff)); in tftp_makereq()
321 h->iodesc->destport = htons(IPPORT_TFTP); in tftp_makereq()
322 h->iodesc->xid = 1; /* expected block */ in tftp_makereq()
374 h->iodesc->xid = h->currblock + 1; /* expected block */ in tftp_getnextblock()
390 sendudp(h->iodesc, &wbuf.t, wtail - (char *)&wbuf.t); in tftp_getnextblock()
[all …]
HDrarp.c56 static ssize_t rarpsend(struct iodesc *, void *, size_t);
57 static ssize_t rarprecv(struct iodesc *, void *, size_t, time_t);
66 struct iodesc *d;
138 struct iodesc *d; in rarpsend()
157 struct iodesc *d; in rarprecv()
HDarp.c67 static ssize_t arpsend(struct iodesc *, void *, size_t);
68 static ssize_t arprecv(struct iodesc *, void *, size_t, time_t);
73 struct iodesc *d; in arpwhohas()
151 struct iodesc *d; in arpsend()
170 struct iodesc *d; in arprecv()
260 struct iodesc *d; in arp_reply()
HDnfs.c115 struct iodesc *iodesc; member
179 struct iodesc *iodesc; member
219 nfs_getrootfh(struct iodesc *d, char *path, u_char *fhp) in nfs_getrootfh()
318 cc = rpc_call(d->iodesc, NFS_PROG, NFS_VER2, NFSPROC_LOOKUP, in nfs_lookupfh()
356 cc = rpc_call(d->iodesc, NFS_PROG, NFS_VER2, NFSPROC_READLINK, in nfs_readlink()
410 cc = rpc_call(d->iodesc, NFS_PROG, NFS_VER2, NFSPROC_READ, in nfs_readdata()
443 struct iodesc *desc; in nfs_open()
493 nfs_root_node.iodesc = desc; in nfs_open()
540 newfd->iodesc = currfd->iodesc; in nfs_open()
612 currfd->iodesc = desc; in nfs_open()
[all …]
HDnetif.c50 struct iodesc sockets[SOPEN_MAX];
181 struct iodesc *desc;
221 struct iodesc *desc; in netif_get()
252 struct iodesc *desc; in netif_put()
280 struct iodesc *
296 struct iodesc *s;
HDrpc.c100 static ssize_t recvrpc(struct iodesc *, void *, size_t, time_t);
101 static int rpc_getport(struct iodesc *, n_long, n_long);
111 rpc_call(struct iodesc *d, n_long prog, n_long vers, n_long proc, in rpc_call()
230 recvrpc(struct iodesc *d, void *pkt, size_t len, time_t tleft) in recvrpc()
375 rpc_getport(struct iodesc *d, n_long prog, n_long vers) in rpc_getport()
HDnet.c72 sendrecv(struct iodesc *d, in sendrecv()
73 ssize_t (*sproc)(struct iodesc *, void *, size_t), in sendrecv() argument
75 ssize_t (*rproc)(struct iodesc *, void *, size_t, time_t), in sendrecv() argument
HDether.c58 struct iodesc *d; in sendether()
94 struct iodesc *d; in readether()
HDbootp.c74 static ssize_t bootpsend(struct iodesc *, void *, size_t);
75 static ssize_t bootprecv(struct iodesc *, void *, size_t, time_t);
99 struct iodesc *d;
268 struct iodesc *d; in bootpsend()
292 struct iodesc *d; in bootprecv()
HDiodesc.h42 struct iodesc { struct
HDrpc.h50 ssize_t rpc_call(struct iodesc *, n_long, n_long, n_long,
HDudp.c63 struct iodesc *d; in sendudp()
138 struct iodesc *d; in readudp()
HDbootparam.c134 struct iodesc *d;
253 struct iodesc *d;
/trueos/sys/boot/i386/libi386/
HDpxe.c85 static void pxe_netif_init(struct iodesc *desc, void *machdep_hint);
86 static int pxe_netif_get(struct iodesc *desc, void *pkt, size_t len,
88 static int pxe_netif_put(struct iodesc *desc, void *pkt, size_t len);
92 int nfs_getrootfh(struct iodesc*, char*, u_char*);
94 int nfs_getrootfh(struct iodesc*, char*, uint32_t*, u_char*);
414 struct iodesc *iodesc; member
425 struct iodesc *d; in pxe_rpcmountcall()
434 nfs_root_node.iodesc = d; in pxe_rpcmountcall()
449 if (nfs_root_node.iodesc == NULL) in pxe_setnfshandle()
465 struct iodesc *iodesc; member
[all …]
/trueos/sys/boot/ofw/libofw/
HDofw_net.c48 static void ofwn_init(struct iodesc *, void *);
49 static int ofwn_get(struct iodesc *, void *, size_t, time_t);
50 static int ofwn_put(struct iodesc *, void *, size_t);
91 ofwn_put(struct iodesc *desc, void *pkt, size_t len) in ofwn_put()
128 ofwn_get(struct iodesc *desc, void *pkt, size_t len, time_t timeout) in ofwn_get()
180 ofwn_init(struct iodesc *desc, void *machdep_hint) in ofwn_init()
/trueos/sys/boot/powerpc/ps3/
HDps3net.c57 static void ps3net_init(struct iodesc *, void *);
58 static int ps3net_get(struct iodesc *, void *, size_t, time_t);
59 static int ps3net_put(struct iodesc *, void *, size_t);
106 ps3net_put(struct iodesc *desc, void *pkt, size_t len) in ps3net_put()
165 ps3net_get(struct iodesc *desc, void *pkt, size_t len, time_t timeout) in ps3net_get()
225 ps3net_init(struct iodesc *desc, void *machdep_hint) in ps3net_init()
/trueos/sys/boot/uboot/lib/
HDnet.c52 static void net_init(struct iodesc *, void *);
53 static int net_get(struct iodesc *, void *, size_t, time_t);
54 static int net_put(struct iodesc *, void *, size_t);
229 net_put(struct iodesc *desc, void *pkt, size_t len) in net_put()
268 net_get(struct iodesc *desc, void *pkt, size_t len, time_t timeout) in net_get()
308 net_init(struct iodesc *desc, void *machdep_hint) in net_init()
/trueos/sys/boot/efi/libefi/
HDefinet.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);
114 efinet_put(struct iodesc *desc, void *pkt, size_t len) in efinet_put()
142 efinet_get(struct iodesc *desc, void *pkt, size_t len, time_t timeout) in efinet_get()
177 efinet_init(struct iodesc *desc, void *machdep_hint) in efinet_init()
/trueos/sys/amd64/vmm/
HDvmm_ioport.c71 static const char *iodesc[] = { in inout_instruction() local
96 KASSERT(index < nitems(iodesc), ("%s: invalid index %d", in inout_instruction()
99 return (iodesc[index]); in inout_instruction()

12