Lines Matching refs:fc
75 static flexcop_ibi_value flexcop_pci_read_ibi_reg(struct flexcop_device *fc, in flexcop_pci_read_ibi_reg() argument
78 struct flexcop_pci *fc_pci = fc->bus_specific; in flexcop_pci_read_ibi_reg()
90 static int flexcop_pci_write_ibi_reg(struct flexcop_device *fc, in flexcop_pci_write_ibi_reg() argument
93 struct flexcop_pci *fc_pci = fc->bus_specific; in flexcop_pci_write_ibi_reg()
108 struct flexcop_device *fc = fc_pci->fc_dev; in flexcop_pci_irq_check_work() local
110 if (fc->feedcount) { in flexcop_pci_irq_check_work()
118 spin_lock_irq(&fc->demux.lock); in flexcop_pci_irq_check_work()
119 list_for_each_entry(feed, &fc->demux.feed_list, in flexcop_pci_irq_check_work()
121 flexcop_pid_feed_control(fc, feed, 0); in flexcop_pci_irq_check_work()
124 list_for_each_entry(feed, &fc->demux.feed_list, in flexcop_pci_irq_check_work()
126 flexcop_pid_feed_control(fc, feed, 1); in flexcop_pci_irq_check_work()
128 spin_unlock_irq(&fc->demux.lock); in flexcop_pci_irq_check_work()
148 struct flexcop_device *fc = fc_pci->fc_dev; in flexcop_pci_isr() local
154 v = fc->read_ibi_reg(fc, irq_20c); in flexcop_pci_isr()
185 fc->read_ibi_reg(fc,dma1_008).dma_0x8.dma_cur_addr << 2; in flexcop_pci_isr()
232 static int flexcop_pci_stream_control(struct flexcop_device *fc, int onoff) in flexcop_pci_stream_control() argument
234 struct flexcop_pci *fc_pci = fc->bus_specific; in flexcop_pci_stream_control()
236 flexcop_dma_config(fc, &fc_pci->dma[0], FC_DMA_1); in flexcop_pci_stream_control()
237 flexcop_dma_config(fc, &fc_pci->dma[1], FC_DMA_2); in flexcop_pci_stream_control()
238 flexcop_dma_config_timer(fc, FC_DMA_1, 0); in flexcop_pci_stream_control()
239 flexcop_dma_xfer_control(fc, FC_DMA_1, in flexcop_pci_stream_control()
244 flexcop_dma_control_timer_irq(fc, FC_DMA_1, 1); in flexcop_pci_stream_control()
248 flexcop_dma_control_timer_irq(fc, FC_DMA_1, 0); in flexcop_pci_stream_control()
251 flexcop_dma_xfer_control(fc, FC_DMA_1, in flexcop_pci_stream_control()
343 struct flexcop_device *fc; in flexcop_pci_probe() local
347 if ((fc = flexcop_device_kmalloc(sizeof(struct flexcop_pci))) == NULL) { in flexcop_pci_probe()
353 fc_pci = fc->bus_specific; in flexcop_pci_probe()
354 fc_pci->fc_dev = fc; in flexcop_pci_probe()
356 fc->read_ibi_reg = flexcop_pci_read_ibi_reg; in flexcop_pci_probe()
357 fc->write_ibi_reg = flexcop_pci_write_ibi_reg; in flexcop_pci_probe()
358 fc->i2c_request = flexcop_i2c_request; in flexcop_pci_probe()
359 fc->get_mac_addr = flexcop_eeprom_check_mac_addr; in flexcop_pci_probe()
360 fc->stream_control = flexcop_pci_stream_control; in flexcop_pci_probe()
367 fc->pid_filtering = enable_pid_filtering; in flexcop_pci_probe()
368 fc->bus_type = FC_PCI; in flexcop_pci_probe()
369 fc->dev = &pdev->dev; in flexcop_pci_probe()
370 fc->owner = THIS_MODULE; in flexcop_pci_probe()
378 if ((ret = flexcop_device_initialize(fc)) != 0) in flexcop_pci_probe()
395 flexcop_device_exit(fc); in flexcop_pci_probe()
399 flexcop_device_kfree(fc); in flexcop_pci_probe()