Lines Matching refs:fms
166 struct fwmem_softc *fms; in fwmem_open() local
177 fms = (struct fwmem_softc *)sc->si_drv1; in fwmem_open()
178 fms->refcount++; in fwmem_open()
185 fms = (struct fwmem_softc *)sc->si_drv1; in fwmem_open()
186 memcpy(&fms->eui, &fwmem_eui64, sizeof(struct fw_eui64)); in fwmem_open()
187 fms->sc = sc; in fwmem_open()
188 fms->refcount = 1; in fwmem_open()
189 STAILQ_INIT(&fms->xferlist); in fwmem_open()
191 STAILQ_INSERT_TAIL(&fms->xferlist, xfer, link); in fwmem_open()
194 printf("%s: refcount=%d\n", __func__, fms->refcount); in fwmem_open()
203 struct fwmem_softc *fms; in fwmem_close() local
210 fms = (struct fwmem_softc *)sc->si_drv1; in fwmem_close()
212 fms->refcount--; in fwmem_close()
214 printf("%s: refcount=%d\n", __func__, fms->refcount); in fwmem_close()
215 if (fms->refcount < 1) { in fwmem_close()
216 while ((xfer = STAILQ_FIRST(&fms->xferlist)) != NULL) { in fwmem_close()
217 STAILQ_REMOVE_HEAD(&fms->xferlist, link); in fwmem_close()
231 struct fwmem_softc *fms; in fwmem_strategy() local
244 fms = (struct fwmem_softc *)sc->si_drv1; in fwmem_strategy()
245 fwdev = fw_noderesolve_eui64(fms->sc->fc, &fms->eui); in fwmem_strategy()
249 fms->eui.hi, fms->eui.lo); in fwmem_strategy()
295 struct fwmem_softc *fms; in fwmem_ioctl() local
302 fms = (struct fwmem_softc *)sc->si_drv1; in fwmem_ioctl()
305 memcpy(&fms->eui, data, sizeof(struct fw_eui64)); in fwmem_ioctl()
309 memcpy(data, &fms->eui, sizeof(struct fw_eui64)); in fwmem_ioctl()