Lines Matching full:fc

76 static flexcop_ibi_value flexcop_pci_read_ibi_reg(struct flexcop_device *fc,  in flexcop_pci_read_ibi_reg()  argument
79 struct flexcop_pci *fc_pci = fc->bus_specific; in flexcop_pci_read_ibi_reg()
91 static int flexcop_pci_write_ibi_reg(struct flexcop_device *fc, in flexcop_pci_write_ibi_reg() argument
94 struct flexcop_pci *fc_pci = fc->bus_specific; in flexcop_pci_write_ibi_reg()
109 struct flexcop_device *fc = fc_pci->fc_dev; in flexcop_pci_irq_check_work() local
111 if (fc->feedcount) { in flexcop_pci_irq_check_work()
119 spin_lock_irq(&fc->demux.lock); in flexcop_pci_irq_check_work()
120 list_for_each_entry(feed, &fc->demux.feed_list, in flexcop_pci_irq_check_work()
122 flexcop_pid_feed_control(fc, feed, 0); in flexcop_pci_irq_check_work()
125 list_for_each_entry(feed, &fc->demux.feed_list, in flexcop_pci_irq_check_work()
127 flexcop_pid_feed_control(fc, feed, 1); in flexcop_pci_irq_check_work()
129 spin_unlock_irq(&fc->demux.lock); in flexcop_pci_irq_check_work()
149 struct flexcop_device *fc = fc_pci->fc_dev; in flexcop_pci_isr() local
155 v = fc->read_ibi_reg(fc, irq_20c); in flexcop_pci_isr()
186 fc->read_ibi_reg(fc,dma1_008).dma_0x8.dma_cur_addr << 2; in flexcop_pci_isr()
235 static int flexcop_pci_stream_control(struct flexcop_device *fc, int onoff) in flexcop_pci_stream_control() argument
237 struct flexcop_pci *fc_pci = fc->bus_specific; in flexcop_pci_stream_control()
239 flexcop_dma_config(fc, &fc_pci->dma[0], FC_DMA_1); in flexcop_pci_stream_control()
240 flexcop_dma_config(fc, &fc_pci->dma[1], FC_DMA_2); in flexcop_pci_stream_control()
241 flexcop_dma_config_timer(fc, FC_DMA_1, 0); in flexcop_pci_stream_control()
242 flexcop_dma_xfer_control(fc, FC_DMA_1, in flexcop_pci_stream_control()
247 flexcop_dma_control_timer_irq(fc, FC_DMA_1, 1); in flexcop_pci_stream_control()
251 flexcop_dma_control_timer_irq(fc, FC_DMA_1, 0); in flexcop_pci_stream_control()
254 flexcop_dma_xfer_control(fc, FC_DMA_1, in flexcop_pci_stream_control()
346 struct flexcop_device *fc; in flexcop_pci_probe() local
350 if ((fc = flexcop_device_kmalloc(sizeof(struct flexcop_pci))) == NULL) { in flexcop_pci_probe()
356 fc_pci = fc->bus_specific; in flexcop_pci_probe()
357 fc_pci->fc_dev = fc; in flexcop_pci_probe()
359 fc->read_ibi_reg = flexcop_pci_read_ibi_reg; in flexcop_pci_probe()
360 fc->write_ibi_reg = flexcop_pci_write_ibi_reg; in flexcop_pci_probe()
361 fc->i2c_request = flexcop_i2c_request; in flexcop_pci_probe()
362 fc->get_mac_addr = flexcop_eeprom_check_mac_addr; in flexcop_pci_probe()
363 fc->stream_control = flexcop_pci_stream_control; in flexcop_pci_probe()
370 fc->pid_filtering = enable_pid_filtering; in flexcop_pci_probe()
371 fc->bus_type = FC_PCI; in flexcop_pci_probe()
372 fc->dev = &pdev->dev; in flexcop_pci_probe()
373 fc->owner = THIS_MODULE; in flexcop_pci_probe()
381 if ((ret = flexcop_device_initialize(fc)) != 0) in flexcop_pci_probe()
398 flexcop_device_exit(fc); in flexcop_pci_probe()
402 flexcop_device_kfree(fc); in flexcop_pci_probe()