Lines Matching refs:fms
271 struct fwmem_softc *fms; in fwmem_open() local
286 fms = dev->si_drv1; in fwmem_open()
287 fms->refcount++; in fwmem_open()
294 fms = dev->si_drv1; in fwmem_open()
295 bcopy(&fwmem_eui64, &fms->eui, sizeof(struct fw_eui64)); in fwmem_open()
296 fms->sc = sc; in fwmem_open()
297 fms->refcount = 1; in fwmem_open()
300 printf("%s: refcount=%d\n", __func__, fms->refcount); in fwmem_open()
308 struct fwmem_softc *fms; in fwmem_close() local
310 fms = dev->si_drv1; in fwmem_close()
312 FW_GLOCK(fms->sc->fc); in fwmem_close()
313 fms->refcount--; in fwmem_close()
314 FW_GUNLOCK(fms->sc->fc); in fwmem_close()
316 printf("%s: refcount=%d\n", __func__, fms->refcount); in fwmem_close()
317 if (fms->refcount < 1) { in fwmem_close()
348 struct fwmem_softc *fms; in fwmem_strategy() local
357 fms = dev->si_drv1; in fwmem_strategy()
358 fwdev = fw_noderesolve_eui64(fms->sc->fc, &fms->eui); in fwmem_strategy()
362 fms->eui.hi, fms->eui.lo); in fwmem_strategy()
411 struct fwmem_softc *fms; in fwmem_ioctl() local
414 fms = dev->si_drv1; in fwmem_ioctl()
417 bcopy(data, &fms->eui, sizeof(struct fw_eui64)); in fwmem_ioctl()
420 bcopy(&fms->eui, data, sizeof(struct fw_eui64)); in fwmem_ioctl()