fc_pci 79 drivers/media/pci/b2c2/flexcop-pci.c struct flexcop_pci *fc_pci = fc->bus_specific; fc_pci 81 drivers/media/pci/b2c2/flexcop-pci.c v.raw = readl(fc_pci->io_mem + r); fc_pci 94 drivers/media/pci/b2c2/flexcop-pci.c struct flexcop_pci *fc_pci = fc->bus_specific; fc_pci 101 drivers/media/pci/b2c2/flexcop-pci.c writel(v.raw, fc_pci->io_mem + r); fc_pci 107 drivers/media/pci/b2c2/flexcop-pci.c struct flexcop_pci *fc_pci = fc_pci 109 drivers/media/pci/b2c2/flexcop-pci.c struct flexcop_device *fc = fc_pci->fc_dev; fc_pci 113 drivers/media/pci/b2c2/flexcop-pci.c if (fc_pci->count == fc_pci->count_prev) { fc_pci 115 drivers/media/pci/b2c2/flexcop-pci.c if (fc_pci->stream_problem++ == 3) { fc_pci 131 drivers/media/pci/b2c2/flexcop-pci.c fc_pci->stream_problem = 0; fc_pci 134 drivers/media/pci/b2c2/flexcop-pci.c fc_pci->stream_problem = 0; fc_pci 135 drivers/media/pci/b2c2/flexcop-pci.c fc_pci->count_prev = fc_pci->count; fc_pci 139 drivers/media/pci/b2c2/flexcop-pci.c schedule_delayed_work(&fc_pci->irq_check_work, fc_pci 148 drivers/media/pci/b2c2/flexcop-pci.c struct flexcop_pci *fc_pci = dev_id; fc_pci 149 drivers/media/pci/b2c2/flexcop-pci.c struct flexcop_device *fc = fc_pci->fc_dev; fc_pci 154 drivers/media/pci/b2c2/flexcop-pci.c spin_lock_irqsave(&fc_pci->irq_lock, flags); fc_pci 167 drivers/media/pci/b2c2/flexcop-pci.c if ((fc_pci->count % 1000) == 0) fc_pci 168 drivers/media/pci/b2c2/flexcop-pci.c deb_chk("%d valid irq took place so far\n", fc_pci->count); fc_pci 171 drivers/media/pci/b2c2/flexcop-pci.c if (fc_pci->active_dma1_addr == 0) fc_pci 172 drivers/media/pci/b2c2/flexcop-pci.c flexcop_pass_dmx_packets(fc_pci->fc_dev, fc_pci 173 drivers/media/pci/b2c2/flexcop-pci.c fc_pci->dma[0].cpu_addr0, fc_pci 174 drivers/media/pci/b2c2/flexcop-pci.c fc_pci->dma[0].size / 188); fc_pci 176 drivers/media/pci/b2c2/flexcop-pci.c flexcop_pass_dmx_packets(fc_pci->fc_dev, fc_pci 177 drivers/media/pci/b2c2/flexcop-pci.c fc_pci->dma[0].cpu_addr1, fc_pci 178 drivers/media/pci/b2c2/flexcop-pci.c fc_pci->dma[0].size / 188); fc_pci 180 drivers/media/pci/b2c2/flexcop-pci.c deb_irq("page change to page: %d\n",!fc_pci->active_dma1_addr); fc_pci 181 drivers/media/pci/b2c2/flexcop-pci.c fc_pci->active_dma1_addr = !fc_pci->active_dma1_addr; fc_pci 187 drivers/media/pci/b2c2/flexcop-pci.c u32 cur_pos = cur_addr - fc_pci->dma[0].dma_addr0; fc_pci 190 drivers/media/pci/b2c2/flexcop-pci.c jiffies_to_usecs(jiffies - fc_pci->last_irq), fc_pci 192 drivers/media/pci/b2c2/flexcop-pci.c fc_pci->last_dma1_cur_pos); fc_pci 193 drivers/media/pci/b2c2/flexcop-pci.c fc_pci->last_irq = jiffies; fc_pci 198 drivers/media/pci/b2c2/flexcop-pci.c if (cur_pos < fc_pci->last_dma1_cur_pos) { fc_pci 200 drivers/media/pci/b2c2/flexcop-pci.c (fc_pci->dma[0].size*2 - 1) - fc_pci 201 drivers/media/pci/b2c2/flexcop-pci.c fc_pci->last_dma1_cur_pos); fc_pci 202 drivers/media/pci/b2c2/flexcop-pci.c flexcop_pass_dmx_data(fc_pci->fc_dev, fc_pci 203 drivers/media/pci/b2c2/flexcop-pci.c fc_pci->dma[0].cpu_addr0 + fc_pci 204 drivers/media/pci/b2c2/flexcop-pci.c fc_pci->last_dma1_cur_pos, fc_pci 205 drivers/media/pci/b2c2/flexcop-pci.c (fc_pci->dma[0].size*2) - fc_pci 206 drivers/media/pci/b2c2/flexcop-pci.c fc_pci->last_dma1_cur_pos); fc_pci 207 drivers/media/pci/b2c2/flexcop-pci.c fc_pci->last_dma1_cur_pos = 0; fc_pci 210 drivers/media/pci/b2c2/flexcop-pci.c if (cur_pos > fc_pci->last_dma1_cur_pos) { fc_pci 212 drivers/media/pci/b2c2/flexcop-pci.c cur_pos - fc_pci->last_dma1_cur_pos); fc_pci 213 drivers/media/pci/b2c2/flexcop-pci.c flexcop_pass_dmx_data(fc_pci->fc_dev, fc_pci 214 drivers/media/pci/b2c2/flexcop-pci.c fc_pci->dma[0].cpu_addr0 + fc_pci 215 drivers/media/pci/b2c2/flexcop-pci.c fc_pci->last_dma1_cur_pos, fc_pci 216 drivers/media/pci/b2c2/flexcop-pci.c cur_pos - fc_pci->last_dma1_cur_pos); fc_pci 220 drivers/media/pci/b2c2/flexcop-pci.c fc_pci->last_dma1_cur_pos = cur_pos; fc_pci 221 drivers/media/pci/b2c2/flexcop-pci.c fc_pci->count++; fc_pci 228 drivers/media/pci/b2c2/flexcop-pci.c spin_unlock_irqrestore(&fc_pci->irq_lock, flags); fc_pci 234 drivers/media/pci/b2c2/flexcop-pci.c struct flexcop_pci *fc_pci = fc->bus_specific; fc_pci 236 drivers/media/pci/b2c2/flexcop-pci.c flexcop_dma_config(fc, &fc_pci->dma[0], FC_DMA_1); fc_pci 237 drivers/media/pci/b2c2/flexcop-pci.c flexcop_dma_config(fc, &fc_pci->dma[1], FC_DMA_2); fc_pci 243 drivers/media/pci/b2c2/flexcop-pci.c fc_pci->last_dma1_cur_pos = 0; fc_pci 246 drivers/media/pci/b2c2/flexcop-pci.c fc_pci->count_prev = fc_pci->count; fc_pci 258 drivers/media/pci/b2c2/flexcop-pci.c static int flexcop_pci_dma_init(struct flexcop_pci *fc_pci) fc_pci 261 drivers/media/pci/b2c2/flexcop-pci.c ret = flexcop_dma_allocate(fc_pci->pdev, &fc_pci->dma[0], fc_pci 266 drivers/media/pci/b2c2/flexcop-pci.c ret = flexcop_dma_allocate(fc_pci->pdev, &fc_pci->dma[1], fc_pci 269 drivers/media/pci/b2c2/flexcop-pci.c flexcop_dma_free(&fc_pci->dma[0]); fc_pci 273 drivers/media/pci/b2c2/flexcop-pci.c flexcop_sram_set_dest(fc_pci->fc_dev, FC_SRAM_DEST_MEDIA | fc_pci 275 drivers/media/pci/b2c2/flexcop-pci.c flexcop_sram_set_dest(fc_pci->fc_dev, FC_SRAM_DEST_CAO | fc_pci 277 drivers/media/pci/b2c2/flexcop-pci.c fc_pci->init_state |= FC_PCI_DMA_INIT; fc_pci 281 drivers/media/pci/b2c2/flexcop-pci.c static void flexcop_pci_dma_exit(struct flexcop_pci *fc_pci) fc_pci 283 drivers/media/pci/b2c2/flexcop-pci.c if (fc_pci->init_state & FC_PCI_DMA_INIT) { fc_pci 284 drivers/media/pci/b2c2/flexcop-pci.c flexcop_dma_free(&fc_pci->dma[0]); fc_pci 285 drivers/media/pci/b2c2/flexcop-pci.c flexcop_dma_free(&fc_pci->dma[1]); fc_pci 287 drivers/media/pci/b2c2/flexcop-pci.c fc_pci->init_state &= ~FC_PCI_DMA_INIT; fc_pci 290 drivers/media/pci/b2c2/flexcop-pci.c static int flexcop_pci_init(struct flexcop_pci *fc_pci) fc_pci 294 drivers/media/pci/b2c2/flexcop-pci.c info("card revision %x", fc_pci->pdev->revision); fc_pci 296 drivers/media/pci/b2c2/flexcop-pci.c if ((ret = pci_enable_device(fc_pci->pdev)) != 0) fc_pci 298 drivers/media/pci/b2c2/flexcop-pci.c pci_set_master(fc_pci->pdev); fc_pci 300 drivers/media/pci/b2c2/flexcop-pci.c if ((ret = pci_request_regions(fc_pci->pdev, DRIVER_NAME)) != 0) fc_pci 303 drivers/media/pci/b2c2/flexcop-pci.c fc_pci->io_mem = pci_iomap(fc_pci->pdev, 0, 0x800); fc_pci 305 drivers/media/pci/b2c2/flexcop-pci.c if (!fc_pci->io_mem) { fc_pci 311 drivers/media/pci/b2c2/flexcop-pci.c pci_set_drvdata(fc_pci->pdev, fc_pci); fc_pci 312 drivers/media/pci/b2c2/flexcop-pci.c spin_lock_init(&fc_pci->irq_lock); fc_pci 313 drivers/media/pci/b2c2/flexcop-pci.c if ((ret = request_irq(fc_pci->pdev->irq, flexcop_pci_isr, fc_pci 314 drivers/media/pci/b2c2/flexcop-pci.c IRQF_SHARED, DRIVER_NAME, fc_pci)) != 0) fc_pci 317 drivers/media/pci/b2c2/flexcop-pci.c fc_pci->init_state |= FC_PCI_INIT; fc_pci 321 drivers/media/pci/b2c2/flexcop-pci.c pci_iounmap(fc_pci->pdev, fc_pci->io_mem); fc_pci 323 drivers/media/pci/b2c2/flexcop-pci.c pci_release_regions(fc_pci->pdev); fc_pci 325 drivers/media/pci/b2c2/flexcop-pci.c pci_disable_device(fc_pci->pdev); fc_pci 329 drivers/media/pci/b2c2/flexcop-pci.c static void flexcop_pci_exit(struct flexcop_pci *fc_pci) fc_pci 331 drivers/media/pci/b2c2/flexcop-pci.c if (fc_pci->init_state & FC_PCI_INIT) { fc_pci 332 drivers/media/pci/b2c2/flexcop-pci.c free_irq(fc_pci->pdev->irq, fc_pci); fc_pci 333 drivers/media/pci/b2c2/flexcop-pci.c pci_iounmap(fc_pci->pdev, fc_pci->io_mem); fc_pci 334 drivers/media/pci/b2c2/flexcop-pci.c pci_release_regions(fc_pci->pdev); fc_pci 335 drivers/media/pci/b2c2/flexcop-pci.c pci_disable_device(fc_pci->pdev); fc_pci 337 drivers/media/pci/b2c2/flexcop-pci.c fc_pci->init_state &= ~FC_PCI_INIT; fc_pci 344 drivers/media/pci/b2c2/flexcop-pci.c struct flexcop_pci *fc_pci; fc_pci 353 drivers/media/pci/b2c2/flexcop-pci.c fc_pci = fc->bus_specific; fc_pci 354 drivers/media/pci/b2c2/flexcop-pci.c fc_pci->fc_dev = fc; fc_pci 373 drivers/media/pci/b2c2/flexcop-pci.c fc_pci->pdev = pdev; fc_pci 374 drivers/media/pci/b2c2/flexcop-pci.c if ((ret = flexcop_pci_init(fc_pci)) != 0) fc_pci 382 drivers/media/pci/b2c2/flexcop-pci.c if ((ret = flexcop_pci_dma_init(fc_pci)) != 0) fc_pci 385 drivers/media/pci/b2c2/flexcop-pci.c INIT_DELAYED_WORK(&fc_pci->irq_check_work, flexcop_pci_irq_check_work); fc_pci 388 drivers/media/pci/b2c2/flexcop-pci.c schedule_delayed_work(&fc_pci->irq_check_work, fc_pci 397 drivers/media/pci/b2c2/flexcop-pci.c flexcop_pci_exit(fc_pci); fc_pci 408 drivers/media/pci/b2c2/flexcop-pci.c struct flexcop_pci *fc_pci = pci_get_drvdata(pdev); fc_pci 411 drivers/media/pci/b2c2/flexcop-pci.c cancel_delayed_work(&fc_pci->irq_check_work); fc_pci 413 drivers/media/pci/b2c2/flexcop-pci.c flexcop_pci_dma_exit(fc_pci); fc_pci 414 drivers/media/pci/b2c2/flexcop-pci.c flexcop_device_exit(fc_pci->fc_dev); fc_pci 415 drivers/media/pci/b2c2/flexcop-pci.c flexcop_pci_exit(fc_pci); fc_pci 416 drivers/media/pci/b2c2/flexcop-pci.c flexcop_device_kfree(fc_pci->fc_dev);