Lines Matching refs:fc

86 	struct firewire_comm *fc;
95 fwdev_allocbuf(struct firewire_comm *fc, struct fw_xferq *q,
107 q->buf = fwdma_malloc_multiseg(fc, sizeof(uint32_t),
170 FW_GLOCK(sc->fc);
172 FW_GUNLOCK(sc->fc);
177 FW_GUNLOCK(sc->fc);
190 d->fc = sc->fc;
200 struct firewire_comm *fc;
210 fc = d->fc;
215 fw_bindremove(fc, fwb);
227 fc->irx_disable(fc, ir->dmach);
252 fc->itx_disable(fc, it->dmach);
275 FW_GLOCK(d->fc);
277 err = msleep(&d->rq, FW_GMTX(d->fc), FWPRI, "fwra", 0);
280 FW_GUNLOCK(d->fc);
286 FW_GUNLOCK(xfer->fc);
290 if (fc->irx_post != NULL)
291 fc->irx_post(fc, fp->mode.ld);
293 tinfo = &xfer->fc->tcode[fp->mode.hdr.tcode];
304 FW_GLOCK(xfer->fc);
306 FW_GUNLOCK(xfer->fc);
318 struct firewire_comm *fc;
326 fc = d->fc;
335 FW_GLOCK(fc);
352 err = msleep(ir, FW_GMTX(fc), FWPRI, "fw_read", hz);
358 FW_GUNLOCK(fc);
362 FW_GUNLOCK(fc);
365 if (fc->irx_post != NULL)
366 fc->irx_post(fc, fp->mode.ld);
378 fc->irx_enable(fc, ir->dmach);
383 FW_GLOCK(fc);
401 tinfo = &d->fc->tcode[pkt.mode.hdr.tcode];
418 xfer->fc = d->fc;
423 if ((err = fw_asyreq(xfer->fc, -1, xfer)))
435 FW_GLOCK(xfer->fc);
437 FW_GUNLOCK(xfer->fc);
453 struct firewire_comm *fc;
460 fc = d->fc;
469 FW_GLOCK(fc);
481 err = fc->itx_enable(fc, it->dmach);
485 err = msleep(it, FW_GMTX(fc), FWPRI, "fw_write", hz);
494 FW_GUNLOCK(fc);
506 err = fc->itx_enable(fc, it->dmach);
510 FW_GLOCK(fc);
516 FW_GUNLOCK(fc);
528 FW_GLOCK(xfer->fc);
530 FW_GUNLOCK(xfer->fc);
540 struct firewire_comm *fc;
565 fc = d->fc;
572 i = fw_open_isodma(fc, /* tx */1);
577 it = fc->it[i];
578 err = fwdev_allocbuf(fc, it, &d->bufreq.tx);
598 i = fw_open_isodma(fc, /* tx */0);
603 ir = fc->ir[i];
604 err = fwdev_allocbuf(fc, ir, &d->bufreq.rx);
614 err = fc->irx_enable(fc, ir->dmach);
646 tinfo = &fc->tcode[fp->mode.hdr.tcode];
659 fwdev = fw_noderesolve_eui64(fc,
662 device_printf(fc->bdev,
684 if ((err = fw_asyreq(fc, -1, xfer)) != 0)
696 tinfo = &fc->tcode[xfer->recv.hdr.mode.hdr.tcode];
717 fc->ibr(fc);
720 fwb = fw_bindlookup(fc,
726 fw_bindremove(fc, fwb);
746 err = fw_bindadd(fc, fwb);
751 fc, fwb, fw_hand);
759 devinfo->dst = fc->nodeid;
761 devinfo->eui.hi = fc->eui.hi;
762 devinfo->eui.lo = fc->eui.lo;
763 STAILQ_FOREACH(fwdev, &fc->devices, link) {
778 bcopy(fc->topology_map, data,
779 (fc->topology_map->crc_len + 1) * 4);
782 STAILQ_FOREACH(fwdev, &fc->devices, link)
786 if (!FW_EUI64_EQUAL(fc->eui, crom_buf->eui)) {
795 = ntohl(fc->config_rom[i]);
814 fc->ioctl(dev, cmd, data, flag, td);
883 unit = device_get_unit(sc->fc->bdev);