• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6.36/drivers/ieee1394/

Lines Matching defs:ohci

73 	struct ti_ohci *ohci;
115 struct ti_ohci *ohci;
152 DBGMSG(d->ohci->host->id, "Freeing dma_iso_ctx %d", d->ctx);
154 ohci1394_stop_context(d->ohci, d->ctrlClear, NULL);
156 ohci1394_unregister_iso_tasklet(d->ohci, &d->iso_tasklet);
180 alloc_dma_iso_ctx(struct ti_ohci *ohci, int type, int num_desc,
188 PRINT(KERN_ERR, ohci->host->id, "Failed to allocate dma_iso_ctx");
192 d->ohci = ohci;
205 if (dma_region_alloc(&d->dma, (d->num_desc - 1) * d->buf_size, ohci->dev,
207 PRINT(KERN_ERR, ohci->host->id, "Failed to allocate dma buffer");
221 if (ohci1394_register_iso_tasklet(ohci, &d->iso_tasklet) < 0) {
222 PRINT(KERN_ERR, ohci->host->id, "no free iso %s contexts",
231 PRINT(KERN_ERR, ohci->host->id, "Failed to allocate ir prg regs");
249 PRINT(KERN_ERR, ohci->host->id, "Failed to allocate dma ir prg");
260 sizeof(struct dma_cmd), ohci->dev)) {
261 PRINT(KERN_ERR, ohci->host->id, "Failed to allocate dma ir prg");
277 PRINT(KERN_ERR, ohci->host->id,
286 PRINT(KERN_ERR, ohci->host->id,
303 sizeof(struct it_dma_prg), ohci->dev)) {
304 PRINT(KERN_ERR, ohci->host->id, "Failed to allocate dma it prg");
325 PRINT(KERN_ERR, ohci->host->id,
333 DBGMSG(ohci->host->id, "Iso %s DMA: %d buffers "
436 struct ti_ohci *ohci = (struct ti_ohci *)d->ohci;
441 ohci1394_stop_context(ohci, d->ctrlClear, NULL);
449 reg_write(ohci, d->ctrlClear, 0xf0000000);
452 reg_write(ohci, d->ctrlSet, 0x80000000);
456 reg_write(ohci, d->ctrlSet, 0x40000000);
460 reg_write(ohci, d->ctxMatch, 0xf0000000|((tag&0xf)<<8)|d->channel);
463 reg_write(ohci, OHCI1394_IsoRecvIntMaskSet, 1<<d->ctx);
504 static inline void put_timestamp(struct ti_ohci *ohci, struct dma_iso_ctx * d,
515 cycleTimer = reg_read(ohci, OHCI1394_IsochronousCycleTimer);
555 struct ti_ohci *ohci = d->ohci;
564 put_timestamp(ohci, d, next);
643 struct ti_ohci *ohci)
685 struct ti_ohci *ohci = (struct ti_ohci *)d->ohci;
691 ohci1394_stop_context(ohci, d->ctrlClear, NULL);
697 reg_write(ohci, OHCI1394_IsoXmitIntMaskSet, 1<<d->ctx);
715 struct ti_ohci *ohci = ctx->ohci;
737 PRINT(KERN_ERR, ohci->host->id,
741 if (!(ohci->ISO_channel_usage & mask)) {
743 PRINT(KERN_INFO, ohci->host->id, "Found free channel %d", i);
749 PRINT(KERN_ERR, ohci->host->id,
755 DBGMSG(ohci->host->id, "mask: %08X%08X usage: %08X%08X\n",
757 (u32)(ohci->ISO_channel_usage>>32),
758 (u32)(ohci->ISO_channel_usage&0xffffffff));
759 if (ohci->ISO_channel_usage & mask) {
760 PRINT(KERN_ERR, ohci->host->id,
766 PRINT(KERN_ERR, ohci->host->id,
772 PRINT(KERN_ERR, ohci->host->id,
778 PRINT(KERN_ERR, ohci->host->id,
785 d = alloc_dma_iso_ctx(ohci, OHCI_ISO_RECEIVE,
790 PRINT(KERN_ERR, ohci->host->id,
801 DBGMSG(ohci->host->id,
806 d = alloc_dma_iso_ctx(ohci, OHCI_ISO_TRANSMIT,
811 PRINT(KERN_ERR, ohci->host->id,
824 DBGMSG(ohci->host->id,
833 ohci->ISO_channel_usage |= mask;
848 PRINT(KERN_ERR, ohci->host->id,
853 if (!(ohci->ISO_channel_usage & mask)) {
854 PRINT(KERN_ERR, ohci->host->id,
860 ohci->ISO_channel_usage &= ~mask;
868 DBGMSG(ohci->host->id, "Iso context %d "
888 PRINT(KERN_ERR, ohci->host->id,
896 PRINT(KERN_ERR, ohci->host->id,
917 if (!(reg_read(ohci, d->ctrlSet) & 0x8000))
919 DBGMSG(ohci->host->id, "Starting iso DMA ctx=%d",d->ctx);
922 reg_write(ohci, d->cmdPtr,
926 reg_write(ohci, d->ctrlSet, 0x8000);
930 if (!(reg_read(ohci, d->ctrlSet) & 0x400)) {
931 DBGMSG(ohci->host->id,
933 reg_write(ohci, d->ctrlSet, 0x1000);
954 PRINT(KERN_ERR, ohci->host->id,
985 PRINT(KERN_ERR, ohci->host->id,
1025 PRINT(KERN_ERR, ohci->host->id,
1048 PRINT(KERN_ERR, ohci->host->id,
1057 d, next_prg, psizes, ohci);
1082 if (!(reg_read(ohci, d->ctrlSet) & 0x8000))
1084 DBGMSG(ohci->host->id, "Starting iso transmit DMA ctx=%d",
1086 put_timestamp(ohci, d, d->last_buffer);
1091 reg_write(ohci, d->cmdPtr,
1095 reg_write(ohci, d->ctrlSet, 0x8000);
1099 if (!(reg_read(ohci, d->ctrlSet) & 0x400)) {
1100 DBGMSG(ohci->host->id,
1103 put_timestamp(ohci, d, d->last_buffer);
1107 reg_write(ohci, d->ctrlSet, 0x1000);
1127 PRINT(KERN_ERR, ohci->host->id,
1144 PRINT(KERN_ERR, ohci->host->id,
1160 PRINT(KERN_ERR, ctx->ohci->host->id,
1179 PRINT(KERN_ERR, ctx->ohci->host->id,
1201 struct ti_ohci *ohci;
1204 ohci = hpsb_get_hostinfo_bykey(&video1394_highlevel, i);
1205 if (ohci == NULL)
1210 PRINT(KERN_ERR, ohci->host->id, "Cannot malloc file_ctx");
1214 ctx->ohci = ohci;
1225 struct ti_ohci *ohci = ctx->ohci;
1234 if (!(ohci->ISO_channel_usage & mask))
1235 PRINT(KERN_ERR, ohci->host->id, "On release: Channel %d "
1238 ohci->ISO_channel_usage &= ~mask;
1239 DBGMSG(ohci->host->id, "On release: Iso %s context "
1305 struct ti_ohci *ohci;
1312 ohci = (struct ti_ohci *)host->hostdata;
1315 PRINT(KERN_ERR, ohci->host->id, "Cannot allocate hostinfo");
1319 hpsb_set_hostinfo(&video1394_highlevel, host, ohci);
1320 hpsb_set_hostinfo_key(&video1394_highlevel, host, ohci->host->id);
1322 minor = IEEE1394_MINOR_BLOCK_VIDEO1394 * 16 + ohci->host->id;
1324 NULL, "%s-%d", VIDEO1394_DRIVER_NAME, ohci->host->id);
1330 struct ti_ohci *ohci = hpsb_get_hostinfo(&video1394_highlevel, host);
1332 if (ohci)
1334 IEEE1394_MINOR_BLOCK_VIDEO1394 * 16 + ohci->host->id));