Lines Matching refs:fms
270 struct fwmem_softc *fms; in fwmem_open() local
285 fms = dev->si_drv1; in fwmem_open()
286 fms->refcount++; in fwmem_open()
293 fms = dev->si_drv1; in fwmem_open()
294 bcopy(&fwmem_eui64, &fms->eui, sizeof(struct fw_eui64)); in fwmem_open()
295 fms->sc = sc; in fwmem_open()
296 fms->refcount = 1; in fwmem_open()
299 printf("%s: refcount=%d\n", __func__, fms->refcount); in fwmem_open()
307 struct fwmem_softc *fms; in fwmem_close() local
309 fms = dev->si_drv1; in fwmem_close()
311 FW_GLOCK(fms->sc->fc); in fwmem_close()
312 fms->refcount--; in fwmem_close()
313 FW_GUNLOCK(fms->sc->fc); in fwmem_close()
315 printf("%s: refcount=%d\n", __func__, fms->refcount); in fwmem_close()
316 if (fms->refcount < 1) { in fwmem_close()
347 struct fwmem_softc *fms; in fwmem_strategy() local
356 fms = dev->si_drv1; in fwmem_strategy()
357 fwdev = fw_noderesolve_eui64(fms->sc->fc, &fms->eui); in fwmem_strategy()
361 fms->eui.hi, fms->eui.lo); in fwmem_strategy()
410 struct fwmem_softc *fms; in fwmem_ioctl() local
413 fms = dev->si_drv1; in fwmem_ioctl()
416 bcopy(data, &fms->eui, sizeof(struct fw_eui64)); in fwmem_ioctl()
419 bcopy(&fms->eui, data, sizeof(struct fw_eui64)); in fwmem_ioctl()