/drivers/media/pci/cobalt/ |
D | cobalt-driver.c | 97 static void cobalt_set_interrupt(struct cobalt *cobalt, bool enable) in cobalt_set_interrupt() argument 114 if (cobalt->have_hsma_rx) in cobalt_set_interrupt() 119 if (cobalt->have_hsma_tx) in cobalt_set_interrupt() 124 cobalt_write_bar1(cobalt, COBALT_SYS_STAT_EDGE, 0xffffffff); in cobalt_set_interrupt() 127 cobalt_write_bar1(cobalt, COBALT_SYS_STAT_MASK, irqs); in cobalt_set_interrupt() 130 cobalt_write_bar1(cobalt, COBALT_SYS_STAT_MASK, 0); in cobalt_set_interrupt() 136 struct cobalt *cobalt = to_cobalt(sd->v4l2_dev); in cobalt_get_sd_nr() local 140 if (sd == cobalt->streams[i].sd) in cobalt_get_sd_nr() 149 struct cobalt *cobalt = to_cobalt(sd->v4l2_dev); in cobalt_notify() local 151 struct cobalt_stream *s = &cobalt->streams[sd_nr]; in cobalt_notify() [all …]
|
D | cobalt-cpld.c | 27 static u16 cpld_read(struct cobalt *cobalt, u32 offset) in cpld_read() argument 29 return cobalt_bus_read32(cobalt->bar1, ADRS(offset)); in cpld_read() 32 static void cpld_write(struct cobalt *cobalt, u32 offset, u16 val) in cpld_write() argument 34 return cobalt_bus_write32(cobalt->bar1, ADRS(offset), val); in cpld_write() 37 static void cpld_info_ver3(struct cobalt *cobalt) in cpld_info_ver3() argument 44 cpld_read(cobalt, 0)); in cpld_info_ver3() 47 cpld_read(cobalt, 0x04)); in cpld_info_ver3() 50 cpld_read(cobalt, 0x08)); in cpld_info_ver3() 52 cpld_read(cobalt, 0x0c)); in cpld_info_ver3() 54 cpld_read(cobalt, 0x10)); in cpld_info_ver3() [all …]
|
D | cobalt-irq.c | 29 struct cobalt *cobalt = s->cobalt; in cobalt_dma_stream_queue_handler() local 32 COBALT_CVI_FREEWHEEL(s->cobalt, rx); in cobalt_dma_stream_queue_handler() 34 COBALT_CVI_VMR(s->cobalt, rx); in cobalt_dma_stream_queue_handler() 36 COBALT_CVI(s->cobalt, rx); in cobalt_dma_stream_queue_handler() 38 COBALT_CVI_CLK_LOSS(s->cobalt, rx); in cobalt_dma_stream_queue_handler() 148 struct cobalt *cobalt = (struct cobalt *)dev_id; in cobalt_irq_handler() local 150 cobalt_read_bar0(cobalt, DMA_INTERRUPT_STATUS_REG) & 0xffff; in cobalt_irq_handler() 151 u32 mask = cobalt_read_bar1(cobalt, COBALT_SYS_STAT_MASK); in cobalt_irq_handler() 152 u32 edge = cobalt_read_bar1(cobalt, COBALT_SYS_STAT_EDGE); in cobalt_irq_handler() 156 cobalt_write_bar0(cobalt, DMA_INTERRUPT_STATUS_REG, dma_interrupt); in cobalt_irq_handler() [all …]
|
D | cobalt-driver.h | 135 #define COBALT_CVI(cobalt, c) \ argument 136 (cobalt->bar1 + COBALT_VID_BASE + (c) * COBALT_VID_SIZE) 137 #define COBALT_CVI_VMR(cobalt, c) \ argument 138 (cobalt->bar1 + COBALT_VID_BASE + (c) * COBALT_VID_SIZE + 0x100) 139 #define COBALT_CVI_EVCNT(cobalt, c) \ argument 140 (cobalt->bar1 + COBALT_VID_BASE + (c) * COBALT_VID_SIZE + 0x200) 141 #define COBALT_CVI_FREEWHEEL(cobalt, c) \ argument 142 (cobalt->bar1 + COBALT_VID_BASE + (c) * COBALT_VID_SIZE + 0x300) 143 #define COBALT_CVI_CLK_LOSS(cobalt, c) \ argument 144 (cobalt->bar1 + COBALT_VID_BASE + (c) * COBALT_VID_SIZE + 0x400) [all …]
|
D | Makefile | 1 cobalt-objs := cobalt-driver.o cobalt-irq.o cobalt-v4l2.o \ 2 cobalt-i2c.o cobalt-omnitek.o cobalt-flash.o cobalt-cpld.o \ 3 cobalt-alsa-main.o cobalt-alsa-pcm.o 5 obj-$(CONFIG_VIDEO_COBALT) += cobalt.o
|
D | cobalt-v4l2.c | 65 alloc_ctxs[0] = s->cobalt->alloc_ctx; in cobalt_queue_setup() 72 struct cobalt *cobalt = s->cobalt; in cobalt_buf_init() local 91 desc->dev = &cobalt->pci_dev->dev; in cobalt_buf_init() 97 ret = descriptor_list_create(cobalt, sg_desc->sgl, in cobalt_buf_init() 160 struct cobalt *cobalt = s->cobalt; in cobalt_enable_output() local 163 COBALT_TX_BASE(cobalt); in cobalt_enable_output() 170 if (!cobalt_cpld_set_freq(cobalt, bt->pixelclock)) { in cobalt_enable_output() 215 struct cobalt *cobalt = s->cobalt; in cobalt_enable_input() local 234 packer = COBALT_CVI_PACKER(cobalt, ch); in cobalt_enable_input() 265 struct cobalt *cobalt = s->cobalt; in cobalt_dma_start_streaming() local [all …]
|
D | cobalt-i2c.c | 94 cobalt_i2c_regs(struct cobalt *cobalt, unsigned idx) in cobalt_i2c_regs() argument 100 (cobalt->bar1 + COBALT_I2C_0_BASE); in cobalt_i2c_regs() 103 (cobalt->bar1 + COBALT_I2C_1_BASE); in cobalt_i2c_regs() 106 (cobalt->bar1 + COBALT_I2C_2_BASE); in cobalt_i2c_regs() 109 (cobalt->bar1 + COBALT_I2C_3_BASE); in cobalt_i2c_regs() 112 (cobalt->bar1 + COBALT_I2C_HSMA_BASE); in cobalt_i2c_regs() 317 int cobalt_i2c_init(struct cobalt *cobalt) in cobalt_i2c_init() argument 331 cobalt_i2c_regs(cobalt, i); in cobalt_i2c_init() 332 struct i2c_adapter *adap = &cobalt->i2c_adap[i]; in cobalt_i2c_init() 361 cobalt->i2c_data[i].cobalt = cobalt; in cobalt_i2c_init() [all …]
|
D | cobalt-omnitek.c | 54 #define BASE (cobalt->bar0) 77 static void show_dma_capability(struct cobalt *cobalt) in show_dma_capability() argument 110 struct cobalt *cobalt = s->cobalt; in omni_sg_dma_start() local 119 struct cobalt *cobalt = s->cobalt; in is_dma_done() local 129 struct cobalt *cobalt = s->cobalt; in omni_sg_dma_abort_channel() local 135 int omni_sg_dma_init(struct cobalt *cobalt) in omni_sg_dma_init() argument 140 cobalt->first_fifo_channel = 0; in omni_sg_dma_init() 141 cobalt->dma_channels = capa & 0xf; in omni_sg_dma_init() 143 cobalt->pci_32_bit = false; in omni_sg_dma_init() 145 cobalt->pci_32_bit = true; in omni_sg_dma_init() [all …]
|
D | cobalt-flash.c | 97 int cobalt_flash_probe(struct cobalt *cobalt) in cobalt_flash_probe() argument 103 map->virt = cobalt->bar1; in cobalt_flash_probe() 110 cobalt->mtd = mtd; in cobalt_flash_probe() 117 mtd->dev.parent = &cobalt->pci_dev->dev; in cobalt_flash_probe() 122 void cobalt_flash_remove(struct cobalt *cobalt) in cobalt_flash_remove() argument 124 if (cobalt->mtd) { in cobalt_flash_remove() 125 mtd_device_unregister(cobalt->mtd); in cobalt_flash_remove() 126 map_destroy(cobalt->mtd); in cobalt_flash_remove()
|
D | cobalt-alsa-main.c | 76 struct cobalt *cobalt = s->cobalt; in snd_cobalt_card_set_names() local 84 cobalt->instance, s->video_channel); in snd_cobalt_card_set_names() 89 cobalt->instance, s->video_channel); in snd_cobalt_card_set_names() 96 struct cobalt *cobalt = s->cobalt; in cobalt_alsa_init() local 107 ret = snd_card_new(&cobalt->pci_dev->dev, SNDRV_DEFAULT_IDX1, in cobalt_alsa_init()
|
D | cobalt-v4l2.h | 21 int cobalt_nodes_register(struct cobalt *cobalt); 22 void cobalt_nodes_unregister(struct cobalt *cobalt);
|
D | cobalt-i2c.h | 24 int cobalt_i2c_init(struct cobalt *cobalt); 25 void cobalt_i2c_exit(struct cobalt *cobalt);
|
D | cobalt-flash.h | 26 int cobalt_flash_probe(struct cobalt *cobalt); 27 void cobalt_flash_remove(struct cobalt *cobalt);
|
D | cobalt-cpld.h | 26 void cobalt_cpld_status(struct cobalt *cobalt); 27 bool cobalt_cpld_set_freq(struct cobalt *cobalt, unsigned freq);
|
D | cobalt-omnitek.h | 41 int omni_sg_dma_init(struct cobalt *cobalt); 46 int descriptor_list_create(struct cobalt *cobalt,
|
D | cobalt-irq.h | 25 void cobalt_irq_log_status(struct cobalt *cobalt);
|
D | cobalt-alsa-pcm.c | 542 struct cobalt *cobalt = s->cobalt; in snd_cobalt_pcm_create() local 548 cobalt_s_bit_sysctrl(cobalt, in snd_cobalt_pcm_create() 552 cobalt_s_bit_sysctrl(cobalt, in snd_cobalt_pcm_create() 574 cobalt_s_bit_sysctrl(cobalt, in snd_cobalt_pcm_create() 577 cobalt_s_bit_sysctrl(cobalt, in snd_cobalt_pcm_create()
|
D | Kconfig | 20 module will be called cobalt.
|
/drivers/leds/ |
D | Makefile | 22 obj-$(CONFIG_LEDS_COBALT_QUBE) += leds-cobalt-qube.o 23 obj-$(CONFIG_LEDS_COBALT_RAQ) += leds-cobalt-raq.o
|
/drivers/media/pci/ |
D | Makefile | 32 obj-$(CONFIG_VIDEO_COBALT) += cobalt/
|
D | Kconfig | 36 source "drivers/media/pci/cobalt/Kconfig"
|