Home | History | Annotate | Download | only in ieee1394

Lines Matching refs:fc

101 	struct firewire_comm *fc;
132 mutex_enter(&sc->fc->fc_mtx);
134 mutex_exit(&sc->fc->fc_mtx);
139 mutex_exit(&sc->fc->fc_mtx);
146 d->fc = sc->fc;
158 struct firewire_comm *fc;
172 fc = d->fc;
177 fw_bindremove(fc, fwb);
189 fc->irx_disable(fc, ir->dmach);
214 fc->itx_disable(fc, it->dmach);
233 struct firewire_comm *fc;
247 fc = d->fc;
256 mutex_enter(&fc->fc_mtx);
271 err = cv_timedwait_sig(&ir->cv, &fc->fc_mtx, hz);
277 mutex_exit(&fc->fc_mtx);
281 mutex_exit(&fc->fc_mtx);
284 if (fc->irx_post != NULL)
285 fc->irx_post(fc, fp->mode.ld);
293 fc->irx_enable(fc, ir->dmach);
298 mutex_enter(&fc->fc_mtx);
302 mutex_exit(&fc->fc_mtx);
310 struct firewire_comm *fc;
324 fc = d->fc;
333 mutex_enter(&fc->fc_mtx);
343 err = fc->itx_enable(fc, it->dmach);
347 err = cv_timedwait_sig(&it->cv, &fc->fc_mtx, hz);
356 mutex_exit(&fc->fc_mtx);
368 err = fc->itx_enable(fc, it->dmach);
372 mutex_enter(&fc->fc_mtx);
378 mutex_exit(&fc->fc_mtx);
386 struct firewire_comm *fc;
414 fc = d->fc;
421 i = fw_open_isodma(fc, /* tx */1);
426 it = fc->it[i];
427 err = fwdev_allocbuf(fc, it, &d->bufreq.tx);
449 i = fw_open_isodma(fc, /* tx */0);
454 ir = fc->ir[i];
455 err = fwdev_allocbuf(fc, ir, &d->bufreq.rx);
465 err = fc->irx_enable(fc, ir->dmach);
501 tinfo = &fc->tcode[fp->mode.hdr.tcode];
515 fwdev = fw_noderesolve_eui64(fc, &asyreq->req.dst.eui);
517 aprint_error_dev(fc->bdev,
541 if ((err = fw_asyreq(fc, -1, xfer)) != 0)
553 tinfo = &fc->tcode[xfer->recv.hdr.mode.hdr.tcode];
576 fc->ibr(fc);
580 fwb = fw_bindlookup(fc, bindreq->start.hi, bindreq->start.lo);
585 fw_bindremove(fc, fwb);
611 err = fw_bindadd(fc, fwb);
615 PAGE_SIZE, PAGE_SIZE, 5, fc, (void *)fwb, fw_hand);
626 devinfo->dst = fc->nodeid;
628 devinfo->eui.hi = fc->eui.hi;
629 devinfo->eui.lo = fc->eui.lo;
630 STAILQ_FOREACH(fwdev, &fc->devices, link) {
646 memcpy(data, fc->topology_map,
647 (fc->topology_map->crc_len + 1) * 4);
651 STAILQ_FOREACH(fwdev, &fc->devices, link)
655 if (!FW_EUI64_EQUAL(fc->eui, crom_buf->eui)) {
663 ((uint32_t *)ptr)[i] = ntohl(fc->config_rom[i]);
683 fc->ioctl(dev, cmd, data, flag, td);
751 fwdev_allocbuf(struct firewire_comm *fc, struct fw_xferq *q,
766 q->buf = fwdma_malloc_multiseg(fc, sizeof(uint32_t), b->psize,
823 mutex_enter(&d->fc->fc_mtx);
828 err = cv_wait_sig(&d->cv, &d->fc->fc_mtx);
830 mutex_exit(&d->fc->fc_mtx);
839 mutex_exit(&d->fc->fc_mtx);
842 if (fc->irx_post != NULL)
843 fc->irx_post(fc, fp->mode.ld);
845 tinfo = &xfer->fc->tcode[fp->mode.hdr.tcode];
856 mutex_enter(&d->fc->fc_mtx);
858 mutex_exit(&d->fc->fc_mtx);
873 tinfo = &d->fc->tcode[pkt.mode.hdr.tcode];
890 xfer->fc = d->fc;
895 if ((err = fw_asyreq(xfer->fc, -1, xfer)))
907 mutex_enter(&xfer->fc->fc_mtx);
909 mutex_exit(&xfer->fc->fc_mtx);
926 mutex_enter(&xfer->fc->fc_mtx);
929 mutex_exit(&xfer->fc->fc_mtx);