Home
last modified time | relevance | path

Searched refs:dma_ch (Results 1 – 12 of 12) sorted by relevance

/freebsd/sys/dev/firewire/
H A Dfwisound.c205 int dma_ch, err; in fwisound_iso_start() local
210 if (sc->dma_ch >= 0 || sc->state == FWISOUND_STATE_STREAMING) { in fwisound_iso_start()
221 dma_ch = fw_open_isodma(fc, 0); in fwisound_iso_start()
222 if (dma_ch < 0) { in fwisound_iso_start()
228 if (sc->dma_ch >= 0) { in fwisound_iso_start()
230 fc->ir[dma_ch]->flag &= ~FWXFERQ_OPEN; in fwisound_iso_start()
235 xferq = fc->ir[dma_ch]; in fwisound_iso_start()
273 err = fc->irx_enable(fc, dma_ch); in fwisound_iso_start()
283 fc->irx_disable(fc, dma_ch); in fwisound_iso_start()
288 sc->dma_ch = dma_ch; in fwisound_iso_start()
[all …]
H A Dfwdv.c404 int dma_ch, err; in fwdv_iso_start() local
410 if (sc->dma_ch >= 0 || sc->state == FWDV_STATE_STREAMING) { in fwdv_iso_start()
431 dma_ch = fw_open_isodma(fc, 0); in fwdv_iso_start()
432 if (dma_ch < 0) { in fwdv_iso_start()
438 if (sc->dma_ch >= 0) { in fwdv_iso_start()
440 fc->ir[dma_ch]->flag &= ~FWXFERQ_OPEN; in fwdv_iso_start()
445 xferq = fc->ir[dma_ch]; in fwdv_iso_start()
473 err = fc->irx_enable(fc, dma_ch); in fwdv_iso_start()
482 fc->irx_disable(fc, dma_ch); in fwdv_iso_start()
486 sc->dma_ch = dma_ch; in fwdv_iso_start()
[all …]
H A Dfwcam.c355 if (sc->dma_ch >= 0 && in fwcam_probe_task()
395 int dma_ch, err; in fwcam_iso_start() local
400 if (sc->dma_ch >= 0 || sc->state == FWCAM_STATE_STREAMING) { in fwcam_iso_start()
410 dma_ch = fw_open_isodma(fc, 0); in fwcam_iso_start()
411 if (dma_ch < 0) { in fwcam_iso_start()
417 if (sc->dma_ch >= 0) { in fwcam_iso_start()
419 fc->ir[dma_ch]->flag &= ~FWXFERQ_OPEN; in fwcam_iso_start()
424 xferq = fc->ir[dma_ch]; in fwcam_iso_start()
514 err = fc->irx_enable(fc, dma_ch); in fwcam_iso_start()
525 fc->irx_disable(fc, dma_ch); in fwcam_iso_start()
[all …]
H A Dif_fwe.c153 fwe->dma_ch = -1; in fwe_attach()
214 if (fwe->dma_ch >= 0) { in fwe_stop()
215 xferq = fc->ir[fwe->dma_ch]; in fwe_stop()
218 fc->irx_disable(fc, fwe->dma_ch); in fwe_stop()
232 fwe->dma_ch = -1; in fwe_stop()
276 if (fwe->dma_ch < 0) { in fwe_init()
277 fwe->dma_ch = fw_open_isodma(fc, /* tx */0); in fwe_init()
278 if (fwe->dma_ch < 0) in fwe_init()
280 xferq = fc->ir[fwe->dma_ch]; in fwe_init()
312 xferq = fc->ir[fwe->dma_ch]; in fwe_init()
[all …]
H A Dfw_helpers.h261 fw_iso_rearm(struct fw_xferq *xferq, struct firewire_comm *fc, int dma_ch) in fw_iso_rearm() argument
264 if (STAILQ_FIRST(&xferq->stfree) != NULL && dma_ch >= 0) in fw_iso_rearm()
265 fc->irx_enable(fc, dma_ch); in fw_iso_rearm()
279 struct mtx *mtx, int *active, int *cur_dma_ch, int dma_ch) in fw_iso_rearm_done() argument
283 if (*cur_dma_ch == dma_ch) in fw_iso_rearm_done()
284 fw_iso_rearm(xferq, fc, dma_ch); in fw_iso_rearm_done()
H A Dif_fwip.c168 fwip->dma_ch = -1; in fwip_attach()
220 if (fwip->dma_ch >= 0) { in fwip_stop()
221 xferq = fc->ir[fwip->dma_ch]; in fwip_stop()
224 fc->irx_disable(fc, fwip->dma_ch); in fwip_stop()
240 fwip->dma_ch = -1; in fwip_stop()
283 if (fwip->dma_ch < 0) { in fwip_init()
284 fwip->dma_ch = fw_open_isodma(fc, /* tx */0); in fwip_init()
285 if (fwip->dma_ch < 0) in fwip_init()
287 xferq = fc->ir[fwip->dma_ch]; in fwip_init()
338 xferq = fc->ir[fwip->dma_ch]; in fwip_init()
[all …]
H A Dif_fwevar.h45 short dma_ch; member
H A Dif_fwipvar.h46 short dma_ch; member
H A Dfwisound.h87 int dma_ch; /* -1 = not open */ member
H A Dfwdv.h170 int dma_ch; member
H A Dfwcam.h243 int dma_ch; /* IR DMA channel, -1 if none */ member
H A Dfwohcireg.h319 struct ohci_dma dma_ch[0x4]; member