Lines Matching refs:fc

83 	struct firewire_comm *fc;
182 FW_GLOCK(sc->fc);
184 FW_GUNLOCK(sc->fc);
189 FW_GUNLOCK(sc->fc);
197 d->fc = sc->fc;
221 struct firewire_comm *fc;
229 fc = d->fc;
234 gFirewire->fw_bindremove(fc, fwb);
246 fc->irx_disable(fc, ir->dmach);
271 fc->itx_disable(fc, it->dmach);
298 FW_GLOCK(d->fc);
300 //err = msleep(&d->rq, FW_GMTX(d->fc), FWPRI, "fwra", 0);
301 FW_GUNLOCK(d->fc);
304 FW_GLOCK(d->fc);
310 FW_GUNLOCK(d->fc);
316 FW_GUNLOCK(xfer->fc);
320 if (fc->irx_post != NULL)
321 fc->irx_post(fc, fp->mode.ld);
323 tinfo = &xfer->fc->tcode[fp->mode.hdr.tcode];
350 FW_GLOCK(xfer->fc);
352 FW_GUNLOCK(xfer->fc);
365 struct firewire_comm *fc;
374 fc = d->fc;
383 FW_GLOCK(fc);
400 //err = msleep(ir, FW_GMTX(fc), FWPRI, "fw_read", hz);
401 FW_GUNLOCK(fc);
403 FW_GLOCK(fc);
410 FW_GUNLOCK(fc);
414 FW_GUNLOCK(fc);
417 if (fc->irx_post != NULL)
418 fc->irx_post(fc, fp->mode.ld);
437 fc->irx_enable(fc, ir->dmach);
442 FW_GLOCK(fc);
473 tinfo = &d->fc->tcode[pkt.mode.hdr.tcode];
511 xfer->fc = d->fc;
516 if ((err = gFirewire->fw_asyreq(xfer->fc, -1, xfer)))
528 FW_GLOCK(xfer->fc);
530 FW_GUNLOCK(xfer->fc);
547 struct firewire_comm *fc;
555 fc = d->fc;
564 FW_GLOCK(fc);
576 err = fc->itx_enable(fc, it->dmach);
580 // err = msleep(it, FW_GMTX(fc), FWPRI, "fw_write", hz);
581 FW_GUNLOCK(fc);
583 FW_GLOCK(fc);
594 FW_GUNLOCK(fc);
620 err = fc->itx_enable(fc, it->dmach);
625 FW_GLOCK(fc);
631 FW_GUNLOCK(fc);
644 FW_GLOCK(xfer->fc);
646 FW_GUNLOCK(xfer->fc);
658 struct firewire_comm *fc;
680 fc = d->fc;
687 i = gFirewire->fw_open_isodma(fc, /* tx */1);
692 it = fc->it[i];
713 i = gFirewire->fw_open_isodma(fc, /* tx */0);
718 ir = fc->ir[i];
729 err = fc->irx_enable(fc, ir->dmach);
761 tinfo = &fc->tcode[fp->mode.hdr.tcode];
774 fwdev = gFirewire->fw_noderesolve_eui64(fc,
798 if ((err = gFirewire->fw_asyreq(fc, -1, xfer)) != 0)
810 tinfo = &fc->tcode[xfer->recv.hdr.mode.hdr.tcode];
831 fc->ibr(fc);
834 fwb = gFirewire->fw_bindlookup(fc,
840 gFirewire->fw_bindremove(fc, fwb);
864 err = gFirewire->fw_bindadd(fc, fwb);
869 fc, (void *)fwb, fw_hand);
877 devinfo->dst = fc->nodeid;
879 devinfo->eui.hi = fc->eui.hi;
880 devinfo->eui.lo = fc->eui.lo;
881 STAILQ_FOREACH(fwdev, &fc->devices, link) {
896 bcopy(fc->topology_map, data,
897 (fc->topology_map->crc_len + 1) * 4);
900 STAILQ_FOREACH(fwdev, &fc->devices, link)
904 if (!FW_EUI64_EQUAL(fc->eui, crom_buf->eui)) {
913 = B_BENDIAN_TO_HOST_INT32(fc->config_rom[i]);
933 fc->ioctl (fc, cmd, data, length);