Home
last modified time | relevance | path

Searched refs:devtab (Results 1 – 25 of 58) sorted by relevance

123

/plan9/sys/src/cmd/usb/usbd/
H A Dmkfile7 devtab.$O\
30 CLEANFILES=devtab.c
37 devtab.c: usbdb ../lib/usb.h mkdev
H A Dmkdev39 Devtab devtab[] = {
/plan9/sys/src/9/ip/
H A Dethermedium.c168 devtab[cchan4->type]->write(cchan4, nbmsg, strlen(nbmsg), 0); in etherbind()
180 n = devtab[schan->type]->read(schan, buf, 511, 0); in etherbind()
216 devtab[cchan6->type]->write(cchan6, nbmsg, strlen(nbmsg), 0); in etherbind()
315 devtab[er->mchan4->type]->bwrite(er->mchan4, bp, 0); in etherbwrite()
320 devtab[er->mchan6->type]->bwrite(er->mchan6, bp, 0); in etherbwrite()
347 bp = devtab[er->mchan4->type]->bread(er->mchan4, ifc->maxtu, 0); in etherread4()
386 bp = devtab[er->mchan6->type]->bread(er->mchan6, ifc->maxtu, 0); in etherread6()
418 devtab[er->cchan4->type]->write(er->cchan4, buf, strlen(buf), 0); in etheraddmulti()
421 devtab[er->cchan6->type]->write(er->cchan6, buf, strlen(buf), 0); in etheraddmulti()
440 devtab[er->cchan4->type]->write(er->cchan4, buf, strlen(buf), 0); in etherremmulti()
[all …]
H A Dchandial.c65 n = devtab[cchan->type]->read(cchan, name, sizeof(name)-1, 0); in call()
81 devtab[cchan->type]->write(cchan, name, strlen(name), 0); in call()
H A Dnetdevmedium.c94 devtab[er->mchan->type]->bwrite(er->mchan, bp, 0); in netdevbwrite()
117 bp = devtab[er->mchan->type]->bread(er->mchan, ifc->maxtu, 0); in netdevread()
/plan9/sys/src/cmd/unix/drawterm/kern/
H A Ddev.c22 for(i = 0; devtab[i] != nil; i++) { in devno()
23 if(devtab[i]->dc == c) in devno()
39 db->type = devtab[c->type]->dc; in devdir()
149 panic("clone of open file type %C\n", devtab[c->type]->dc); in devclone()
209 devtab[nc->type]->name, nc->qid.path); in devwalk()
287 print("devstat %C %llux\n", devtab[c->type]->dc, c->qid.path); in devstat()
414 bp->wp += devtab[c->type]->read(c, bp->wp, n, offset); in devbread()
428 n = devtab[c->type]->write(c, bp->rp, BLEN(bp), offset); in devbwrite()
H A Dchan.c39 f->from->qid.vers, devtab[f->from->type]->dc, in dumpmount()
42 …%.8llux dev %C %lud)\n", t, t->to->name->s, t->to->umh, t->to->qid.path, devtab[t->to->type]->dc, … in dumpmount()
192 for(i=0; devtab[i] != nil; i++) in chandevreset()
193 devtab[i]->reset(); in chandevreset()
201 for(i=0; devtab[i] != nil; i++) in chandevinit()
202 devtab[i]->init(); in chandevinit()
211 for(i=0; devtab[i] != nil; i++) in chandevshutdown()
214 devtab[i]->shutdown(); in chandevshutdown()
363 devtab[c->type]->close(c); in cclose()
635 wq = devtab[c->type]->walk(c, nil, nil, 0); in cclone()
[all …]
H A Dsysfile.c207 d = devtab[devno('|', 0)]; in _syspipe()
354 c->umc = devtab[c->umc->type]->open(c->umc, OREAD); in unionread()
357 nr = devtab[c->umc->type]->read(c->umc, va, n, c->umc->offset); in unionread()
408 n = devtab[c->type]->read(c, buf, n, off); in kread()
473 m = devtab[c->type]->write(c, buf, n, off); in kwrite()
514 if(devtab[c->type]->dc == '|') in _sysseek()
540 n = devtab[c->type]->stat(c, buf, sizeof buf); in _sysseek()
599 l = devtab[c->type]->stat(c, buf, l); in _sysfstat()
619 l = devtab[c->type]->stat(c, buf, l); in _sysstat()
682 c0 = devtab[ret]->attach((char*)&bogus); in bindmount()
[all …]
H A Dexportfs.c175 n = (*devtab[fs->io->type].read)(fs->io, buf, len, 0); in exportproc()
283 (*devtab[fs->io->type].write)(fs->io, buf, n, 0); in exflush()
419 (*devtab[fs->io->type].write)(fs->io, q->buf, n, 0); in exslave()
638 c = (*devtab[c->type].open)(c, rpc->mode); in Exopen()
664 (*devtab[c->type].create)(c, rpc->name, rpc->mode, rpc->perm); in Excreate()
719 n = (*devtab[c->type].read)(c, rpc->data, n, off); in Exread()
748 rpc->count = (*devtab[c->type].write)(c, rpc->data, rpc->count, rpc->offset); in Exwrite()
768 (*devtab[c->type].stat)(c, rpc->stat); in Exstat()
788 (*devtab[c->type].wstat)(c, rpc->stat); in Exwstat()
808 (*devtab[c->type].remove)(c); in Exremove()
H A Ddevtab.c20 Dev *devtab[] = { variable
H A DMakefile25 devtab.$O\
/plan9/sys/src/9/port/
H A Ddev.c23 for(i = 0; devtab[i] != nil; i++) { in devno()
24 if(devtab[i]->dc == c) in devno()
40 db->type = devtab[c->type]->dc; in devdir()
152 panic("clone of open file type %C\n", devtab[c->type]->dc); in devclone()
209 devtab[nc->type]->name, nc->qid.path); in devwalk()
404 bp->wp += devtab[c->type]->read(c, bp->wp, n, offset); in devbread()
418 n = devtab[c->type]->write(c, bp->rp, BLEN(bp), offset); in devbwrite()
H A Dsysfile.c195 d = devtab[devno('|', 0)]; in syspipe()
344 c->umc = devtab[c->umc->type]->open(c->umc, OREAD); in unionread()
347 nr = devtab[c->umc->type]->read(c->umc, va, n, c->umc->offset); in unionread()
580 l = devtab[nc->type]->stat(nc, buf, nbuf); in mountfix()
677 nn = devtab[c->type]->read(c, p, n, c->devoffset); in read()
681 nnn = nn = devtab[c->type]->read(c, p, n, off); in read()
753 m = devtab[c->type]->write(c, (void*)arg[1], n, off); in write()
808 if(devtab[c->type]->dc == '|') in sseek()
840 n = devtab[c->type]->stat(c, buf, sizeof buf); in sseek()
942 l = devtab[c->type]->stat(c, (uchar*)arg[1], l); in sysfstat()
[all …]
H A Dchan.c68 f->from->qid.vers, devtab[f->from->type]->dc, in dumpmount()
71 …#.8llux dev %C %lud)\n", t, t->to->path->s, t->to->umh, t->to->qid.path, devtab[t->to->type]->dc, … in dumpmount()
199 for(i=0; devtab[i] != nil; i++) { in chandevreset()
201 iprint(" %s", devtab[i]->name); in chandevreset()
202 devtab[i]->reset(); in chandevreset()
215 for(i=0; devtab[i] != nil; i++) { in chandevinit()
217 iprint(" %s", devtab[i]->name); in chandevinit()
218 devtab[i]->init(); in chandevinit()
230 for(i=0; devtab[i] != nil; i++) in chandevshutdown()
233 devtab[i]->shutdown(); in chandevshutdown()
[all …]
H A Dmkfile8 X , s/Dev (.*)devtab.*{.*\n L?''(.*)''/DEV \1 \2\n/
H A Dswap.c385 n = devtab[c->type]->write(c, kaddr, BY2PG, out->daddr); in executeio()
426 if(devtab[c->type]->dc != L'M'){ in setswapchan()
427 n = devtab[c->type]->stat(c, dirbuf, sizeof dirbuf); in setswapchan()
H A Dsdaoe.c167 devtab[c->type]->read(c, d->ident, sizeof d->ident, 0); in aoeidentify()
269 devtab[c->type]->write(c, up->genbuf, n, 0); in aoeprobe()
467 rio = devtab[c->c->type]->read; in aoerio()
471 rio = devtab[c->c->type]->write; in aoerio()
/plan9/sys/src/cmd/unix/drawterm/kern/unused/
H A Dsyscall.c169 devtab[c->type]->stat((Chan*)c, buf); in sysfstat()
186 devtab[c->type]->wstat((Chan*)c, buf); in sysfwstat()
257 c0 = (*devtab[devno('M', 0)].attach)(&mntparam); in sysmount()
335 nc = (*devtab[nc->type].open)((Chan*)nc, OREAD); in unionread()
337 nr = (*devtab[nc->type].read)((Chan*)nc, va, n, nc->offset); in unionread()
382 n = (*devtab[c->type].read)((Chan*)c, va, n, c->offset); in sysread()
407 (*devtab[c->type].remove)((Chan*)c); in sysremove()
445 (*devtab[c->type].stat)(c, buf); in sysseek()
465 (*devtab[c->type].stat)((Chan*)c, buf); in sysstat()
485 n = (*devtab[c->type].write)((Chan*)c, va, n, c->offset); in syswrite()
[all …]
/plan9/sys/src/9/pc/
H A Dvgavesa.c65 devtab[cmem->type]->write(cmem, modebuf, sizeof modebuf, pa); in vbecall()
67 devtab[creg->type]->write(creg, u, sizeof *u, 0); in vbecall()
69 devtab[creg->type]->read(creg, u, sizeof *u, 0); in vbecall()
72 devtab[cmem->type]->read(cmem, modebuf, sizeof modebuf, pa); in vbecall()
/plan9/sys/src/9/pcboot/
H A Dpxeload.c156 n = devtab[c->type]->write(c, buf, dlen, c->offset); in udpsend()
306 len = devtab[c->type]->read(c, buf, buflen, c->offset); in udprecv()
703 devtab[icc->type]->write(icc, buf, strlen(buf), 0); /* bind ether %s */ in binddevip()
727 devtab[rc->type]->write(rc, buf, strlen(buf), 0); in adddefroute()
765 n = devtab[c->type]->read(c, num, sizeof num - 1, 0); in openetherdev()
774 devtab[c->type]->write(c, promisc, sizeof promisc-1, 0); in openetherdev()
789 devtab[oe->ifcctl->type]->write(oe->ifcctl, buf, n, 0); /* add %I */ in minip4cfg()
807 devtab[oe->ifcctl->type]->write(oe->ifcctl, buf, n, 0); /* remove %I */ in unminip4cfg()
878 devtab[oe->ifcctl->type]->write(oe->ifcctl, buf, n, 0); in ip4cfg()
898 n = devtab[cc->type]->read(cc, buf, sizeof buf - 1, 0); in openudp()
[all …]
H A Ddir.c31 n = devtab[chan->type]->stat(chan, buf, BIT16SZ + nd); in dirchstat()
122 c->umc = devtab[c->umc->type]->open(c->umc, OREAD); in unionread()
125 nr = devtab[c->umc->type]->read(c->umc, va, n, c->umc->offset); in unionread()
358 l = devtab[nc->type]->stat(nc, buf, nbuf); in mountfix()
H A Ddiskload.c87 nn = devtab[c->type]->read(c, p, n, c->devoffset); in dirread0()
91 nnn = nn = devtab[c->type]->read(c, p, n, off); in dirread0()
221 while((n = devtab[ch->type]->read(ch, buf, Bufsize, ch->offset)) > 0) in partboot()
/plan9/sys/src/cmd/vnc/
H A Ddev.c22 for(i = 0; devtab[i] != nil; i++){ in devno()
23 if(devtab[i]->dc == c) in devno()
37 db->type = devtab[c->type]->dc; in devdir()
101 panic("clone of open file type %C\n", devtab[c->type]->dc); in devclone()
H A Dexportfs.c602 wq = (*devtab[c->type]->walk)(c, nf->chan, rpc->wname, nwname); in Exwalk()
644 c = (*devtab[c->type]->open)(c, rpc->mode); in Exopen()
673 (*devtab[c->type]->create)(c, rpc->name, rpc->mode, rpc->perm); in Excreate()
707 rpc->count = (*devtab[c->type]->read)(c, rpc->data, rpc->count, off); in Exread()
729 rpc->count = (*devtab[c->type]->write)(c, rpc->data, rpc->count, rpc->offset); in Exwrite()
750 rpc->nstat = (*devtab[c->type]->stat)(c, rpc->stat, Maxrpc); in Exstat()
770 (*devtab[c->type]->wstat)(c, rpc->stat, rpc->nstat); in Exwstat()
790 (*devtab[c->type]->remove)(c); in Exremove()
H A Dchan.c44 devtab[c->type]->close(c); in cclose()
57 wq = devtab[c->type]->walk(c, nil, nil, 0); in cclone()

123