Home
last modified time | relevance | path

Searched refs:sc_fd (Results 1 – 22 of 22) sorted by relevance

/netbsd-src/sys/dev/ieee1394/
H A Dsbp.c327 struct firewire_dev_comm sc_fd; member
478 sc->sc_fd.dev = self; in sbpattach()
482 sc->sc_fd.fc = fc = fwa->fc; in sbpattach()
503 sc_adapter->adapt_dev = sc->sc_fd.dev; in sbpattach()
520 sc->sc_bus = config_found(sc->sc_fd.dev, sc_channel, scsiprint, in sbpattach()
528 dv_unit = device_unit(sc->sc_fd.dev); in sbpattach()
537 sc->sc_fd.post_busreset = sbp_post_busreset; in sbpattach()
538 sc->sc_fd.post_explore = sbp_post_explore; in sbpattach()
550 struct firewire_comm *fc = sc->sc_fd.fc; in sbpdetach()
651 aprint_normal_dev(sc->sc_fd.dev, in sbp_show_sdev_info()
[all …]
H A Dif_fwip.c175 sc->sc_fd.dev = self; in fwipattach()
187 sc->sc_fd.fc = fwa->fc; in fwipattach()
189 tx_speed = sc->sc_fd.fc->speed; in fwipattach()
191 sc->sc_fd.post_explore = NULL; in fwipattach()
192 sc->sc_fd.post_busreset = fwip_post_busreset; in fwipattach()
198 hwaddr->sender_unique_ID_hi = htonl(sc->sc_fd.fc->eui.hi); in fwipattach()
199 hwaddr->sender_unique_ID_lo = htonl(sc->sc_fd.fc->eui.lo); in fwipattach()
200 hwaddr->sender_max_rec = sc->sc_fd.fc->maxrec; in fwipattach()
201 hwaddr->sspd = sc->sc_fd.fc->speed; in fwipattach()
337 fc = sc->sc_fd.fc; in fwip_init()
[all …]
H A Dif_fwipvar.h49 struct firewire_dev_comm sc_fd; member
/netbsd-src/sys/arch/pmax/stand/common/
H A Dif_prom.c103 static int sc_fd; /* PROM file id */ variable
175 sc_fd = prom_open(device, 0); in prom_init()
177 sc_fd = (*callv->_bootinit)(device); in prom_init()
179 if (sc_fd < 0) in prom_init()
197 s = prom_write(sc_fd, pkt, len); in prom_put()
220 s = prom_read(sc_fd, pkt, len); in prom_get()
241 prom_close(sc_fd); in prom_end()
H A Drz.c51 int sc_fd; /* PROM file id */ member
90 if (prom_lseek(sc->sc_fd, offset, 0) < 0) in rzstrategy()
92 s = prom_read(sc->sc_fd, addr, reqcnt); in rzstrategy()
145 sc->sc_fd = i; in rzopen()
182 prom_close(((struct rz_softc *)f->f_devdata)->sc_fd); in rzclose()
/netbsd-src/sys/arch/usermode/dev/
H A Dld_thunkbus.c72 int sc_fd; member
106 sc->sc_fd = thunk_open(path, O_RDWR, 0); in ld_thunkbus_attach()
107 if (sc->sc_fd == -1) { in ld_thunkbus_attach()
111 if (thunk_fstat_getsize(sc->sc_fd, &size, &blksize) == -1) { in ld_thunkbus_attach()
167 tt->tt_aio.aio_fildes = sc->sc_fd; in ld_thunkbus_ldstart()
279 ret = thunk_pread(sc->sc_fd, bp->b_data, bp->b_bcount, offset); in ld_thunkbus_complete()
281 ret = thunk_pwrite(sc->sc_fd, bp->b_data, bp->b_bcount, offset); in ld_thunkbus_complete()
312 len = thunk_pwrite(sc->sc_fd, data, blkcnt, blkno * ld->sc_secsize); in ld_thunkbus_lddump()
332 if (thunk_fsync(sc->sc_fd) == -1) in ld_thunkbus_ioctl()
H A Dvatapi.c87 int sc_fd; member
132 sc->sc_fd = thunk_open(taa->u.vdev.path, O_RDWR, 0); in vatapi_attach()
133 if (sc->sc_fd < 0) { in vatapi_attach()
324 if (thunk_ioctl(sc->sc_fd, SCIOCCOMMAND, &kreq) != -1) { in vatapi_complete()
/netbsd-src/sys/arch/mipsco/stand/common/
H A Dsaio.c48 int sc_fd; /* PROM file id */ member
122 iob = saiob[sc->sc_fd]; in saiostrategy()
126 if (prom_lseek(sc->sc_fd, offset, 0) < 0) in saiostrategy()
132 s = prom_read(sc->sc_fd, iob->i_buf, 512); in saiostrategy()
179 sc->sc_fd = i; in saioopen()
220 prom_close(((struct saio_softc *)f->f_devdata)->sc_fd); in saioclose()
/netbsd-src/sys/arch/arc/stand/boot/
H A Ddisk.c50 u_long sc_fd; /* ARCBIOS file id */ member
86 error = arcbios_Seek(sc->sc_fd, &offset, 0); in diskstrategy()
89 error = arcbios_Read(sc->sc_fd, addr, reqcnt, &count); in diskstrategy()
143 sc->sc_fd = fd; in diskopen()
197 arcbios_Close(((struct disk_softc *)(f->f_devdata))->sc_fd); in diskclose()
/netbsd-src/sys/arch/sgimips/stand/common/
H A Ddisk.c50 u_long sc_fd; /* ARCBIOS file id */ member
86 error = arcbios_Seek(sc->sc_fd, &offset, 0); in diskstrategy()
89 error = arcbios_Read(sc->sc_fd, addr, reqcnt, &count); in diskstrategy()
143 sc->sc_fd = fd; in diskopen()
197 arcbios_Close(((struct disk_softc *)(f->f_devdata))->sc_fd); in diskclose()
/netbsd-src/sys/dev/isa/
H A Dfdcvar.h130 struct fd_softc *sc_fd[4]; /* pointers to children */ member
H A Dfd.c326 if ((fd = fdc->sc_fd[drive]) == NULL) in fdcsuspend()
342 KASSERT(fdc->sc_fd[drive] == fd); /* but the kid is not my son */ in fdc_childdet()
343 fdc->sc_fd[drive] = NULL; in fdc_childdet()
582 fdc->sc_fd[drive] = fd; in fdattach()
843 if ((fd = fdc->sc_fd[n]) && (fd->sc_flags & FD_MOTOR)) in fd_set_motor()
1103 struct fd_softc *ofd = fdc->sc_fd[fd->sc_drive ^ 1]; in fdcintr1()
/netbsd-src/sys/arch/arc/jazz/
H A Dfdcvar.h115 struct fd_softc *sc_fd[4]; /* pointers to children */ member
H A Dfd.c359 fdc->sc_fd[drive] = fd; in fdattach()
574 if ((fd = fdc->sc_fd[n]) && (fd->sc_flags & FD_MOTOR)) in fd_set_motor()
821 struct fd_softc *ofd = fdc->sc_fd[fd->sc_drive ^ 1]; in fdcintr()
/netbsd-src/sys/net/
H A Dif_gre.h106 int sc_fd; member
H A Dif_gre.c310 sc->sc_fd = -1; in gre_clone_create()
1010 ofd = sc->sc_fd; in gre_fp_recv()
1031 sc->sc_fd = fd; in gre_fp_recv()
/netbsd-src/sys/arch/atari/dev/
H A Dhdfd.c196 struct fd_softc *sc_fd[4]; /* pointers to children */ member
549 fdc->sc_fd[drive] = fd; in fdattach()
748 if ((fd = fdc->sc_fd[n]) && (fd->sc_flags & FD_MOTOR)) in fd_set_motor()
994 struct fd_softc *ofd = fdc->sc_fd[fd->sc_drive ^ 1]; in fdcintr()
/netbsd-src/sys/arch/acorn32/mainbus/
H A Dfd.c168 struct fd_softc *sc_fd[4]; /* pointers to children */ member
519 fdc->sc_fd[drive] = fd; in fdattach()
708 if ((fd = fdc->sc_fd[n]) && (fd->sc_flags & FD_MOTOR)) in fd_set_motor()
958 struct fd_softc *ofd = fdc->sc_fd[fd->sc_drive ^ 1]; in fdcintr()
/netbsd-src/sys/arch/sparc/dev/
H A Dfd.c183 struct fd_softc *sc_fd[4]; /* pointers to children */ member
804 fdc->sc_fd[drive] = fd; in fdattach()
1010 if ((fd = fdc->sc_fd[n]) && (fd->sc_flags & FD_MOTOR)) in fd_set_motor()
1017 if ((fd = fdc->sc_fd[n]) != NULL && in fd_set_motor()
1490 struct fd_softc *ofd = fdc->sc_fd[fd->sc_drive ^ 1]; in fdcstate()
/netbsd-src/sys/arch/sun3/dev/
H A Dfd.c161 struct fd_softc *sc_fd[4]; /* pointers to children */ member
588 fdc->sc_fd[drive] = fd; in fdattach()
802 if ((fd = fdc->sc_fd[n]) && (fd->sc_flags & FD_MOTOR)) in fd_set_motor()
1216 struct fd_softc *ofd = fdc->sc_fd[fd->sc_drive ^ 1]; in fdcstate()
/netbsd-src/sys/arch/sparc64/dev/
H A Dfdc.c196 struct fd_softc *sc_fd[4]; /* pointers to children */ member
975 fdc->sc_fd[drive] = fd;
1188 if ((fd = fdc->sc_fd[n]) && (fd->sc_flags & FD_MOTOR))
1196 if ((fd = fdc->sc_fd[n]) != NULL &&
1673 struct fd_softc *ofd = fdc->sc_fd[fd->sc_drive ^ 1];
/netbsd-src/sys/arch/x68k/dev/
H A Dfd.c156 struct fd_softc *sc_fd[4]; /* pointers to children */ member
652 fdc->sc_fd[drive] = fd; in fdattach()
834 fd = fdc->sc_fd[n]; in fd_set_motor()
1156 struct fd_softc *ofd = fdc->sc_fd[i]; in fdcintr()