Lines Matching refs:fc

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