/drivers/media/pci/cobalt/ |
D | cobalt-driver.c | 87 static void cobalt_set_interrupt(struct cobalt *cobalt, bool enable) in cobalt_set_interrupt() argument 104 if (cobalt->have_hsma_rx) in cobalt_set_interrupt() 109 if (cobalt->have_hsma_tx) in cobalt_set_interrupt() 114 cobalt_write_bar1(cobalt, COBALT_SYS_STAT_EDGE, 0xffffffff); in cobalt_set_interrupt() 117 cobalt_write_bar1(cobalt, COBALT_SYS_STAT_MASK, irqs); in cobalt_set_interrupt() 120 cobalt_write_bar1(cobalt, COBALT_SYS_STAT_MASK, 0); in cobalt_set_interrupt() 126 struct cobalt *cobalt = to_cobalt(sd->v4l2_dev); in cobalt_get_sd_nr() local 130 if (sd == cobalt->streams[i].sd) in cobalt_get_sd_nr() 139 struct cobalt *cobalt = to_cobalt(sd->v4l2_dev); in cobalt_notify() local 141 struct cobalt_stream *s = &cobalt->streams[sd_nr]; in cobalt_notify() [all …]
|
D | cobalt-cpld.c | 15 static u16 cpld_read(struct cobalt *cobalt, u32 offset) in cpld_read() argument 17 return cobalt_bus_read32(cobalt->bar1, ADRS(offset)); in cpld_read() 20 static void cpld_write(struct cobalt *cobalt, u32 offset, u16 val) in cpld_write() argument 22 return cobalt_bus_write32(cobalt->bar1, ADRS(offset), val); in cpld_write() 25 static void cpld_info_ver3(struct cobalt *cobalt) in cpld_info_ver3() argument 32 cpld_read(cobalt, 0)); in cpld_info_ver3() 35 cpld_read(cobalt, 0x04)); in cpld_info_ver3() 38 cpld_read(cobalt, 0x08)); in cpld_info_ver3() 40 cpld_read(cobalt, 0x0c)); in cpld_info_ver3() 42 cpld_read(cobalt, 0x10)); in cpld_info_ver3() [all …]
|
D | cobalt-irq.c | 17 struct cobalt *cobalt = s->cobalt; in cobalt_dma_stream_queue_handler() local 20 COBALT_CVI_FREEWHEEL(s->cobalt, rx); in cobalt_dma_stream_queue_handler() 22 COBALT_CVI_VMR(s->cobalt, rx); in cobalt_dma_stream_queue_handler() 24 COBALT_CVI(s->cobalt, rx); in cobalt_dma_stream_queue_handler() 26 COBALT_CVI_CLK_LOSS(s->cobalt, rx); in cobalt_dma_stream_queue_handler() 136 struct cobalt *cobalt = (struct cobalt *)dev_id; in cobalt_irq_handler() local 138 cobalt_read_bar0(cobalt, DMA_INTERRUPT_STATUS_REG) & 0xffff; in cobalt_irq_handler() 139 u32 mask = cobalt_read_bar1(cobalt, COBALT_SYS_STAT_MASK); in cobalt_irq_handler() 140 u32 edge = cobalt_read_bar1(cobalt, COBALT_SYS_STAT_EDGE); in cobalt_irq_handler() 144 cobalt_write_bar0(cobalt, DMA_INTERRUPT_STATUS_REG, dma_interrupt); in cobalt_irq_handler() [all …]
|
D | cobalt-driver.h | 124 #define COBALT_CVI(cobalt, c) \ argument 125 (cobalt->bar1 + COBALT_VID_BASE + (c) * COBALT_VID_SIZE) 126 #define COBALT_CVI_VMR(cobalt, c) \ argument 127 (cobalt->bar1 + COBALT_VID_BASE + (c) * COBALT_VID_SIZE + 0x100) 128 #define COBALT_CVI_EVCNT(cobalt, c) \ argument 129 (cobalt->bar1 + COBALT_VID_BASE + (c) * COBALT_VID_SIZE + 0x200) 130 #define COBALT_CVI_FREEWHEEL(cobalt, c) \ argument 131 (cobalt->bar1 + COBALT_VID_BASE + (c) * COBALT_VID_SIZE + 0x300) 132 #define COBALT_CVI_CLK_LOSS(cobalt, c) \ argument 133 (cobalt->bar1 + COBALT_VID_BASE + (c) * COBALT_VID_SIZE + 0x400) [all …]
|
D | Makefile | 2 cobalt-objs := cobalt-driver.o cobalt-irq.o cobalt-v4l2.o \ 3 cobalt-i2c.o cobalt-omnitek.o cobalt-flash.o cobalt-cpld.o \ 4 cobalt-alsa-main.o cobalt-alsa-pcm.o 6 obj-$(CONFIG_VIDEO_COBALT) += cobalt.o
|
D | cobalt-i2c.c | 82 cobalt_i2c_regs(struct cobalt *cobalt, unsigned idx) in cobalt_i2c_regs() argument 88 (cobalt->bar1 + COBALT_I2C_0_BASE); in cobalt_i2c_regs() 91 (cobalt->bar1 + COBALT_I2C_1_BASE); in cobalt_i2c_regs() 94 (cobalt->bar1 + COBALT_I2C_2_BASE); in cobalt_i2c_regs() 97 (cobalt->bar1 + COBALT_I2C_3_BASE); in cobalt_i2c_regs() 100 (cobalt->bar1 + COBALT_I2C_HSMA_BASE); in cobalt_i2c_regs() 305 int cobalt_i2c_init(struct cobalt *cobalt) in cobalt_i2c_init() argument 319 cobalt_i2c_regs(cobalt, i); in cobalt_i2c_init() 320 struct i2c_adapter *adap = &cobalt->i2c_adap[i]; in cobalt_i2c_init() 349 cobalt->i2c_data[i].cobalt = cobalt; in cobalt_i2c_init() [all …]
|
D | cobalt-omnitek.c | 42 #define BASE (cobalt->bar0) 65 static void show_dma_capability(struct cobalt *cobalt) in show_dma_capability() argument 98 struct cobalt *cobalt = s->cobalt; in omni_sg_dma_start() local 107 struct cobalt *cobalt = s->cobalt; in is_dma_done() local 117 struct cobalt *cobalt = s->cobalt; in omni_sg_dma_abort_channel() local 123 int omni_sg_dma_init(struct cobalt *cobalt) in omni_sg_dma_init() argument 128 cobalt->first_fifo_channel = 0; in omni_sg_dma_init() 129 cobalt->dma_channels = capa & 0xf; in omni_sg_dma_init() 131 cobalt->pci_32_bit = false; in omni_sg_dma_init() 133 cobalt->pci_32_bit = true; in omni_sg_dma_init() [all …]
|
D | cobalt-v4l2.c | 55 struct cobalt *cobalt = s->cobalt; in cobalt_buf_init() local 74 desc->dev = &cobalt->pci_dev->dev; in cobalt_buf_init() 80 ret = descriptor_list_create(cobalt, sg_desc->sgl, in cobalt_buf_init() 143 struct cobalt *cobalt = s->cobalt; in cobalt_enable_output() local 146 COBALT_TX_BASE(cobalt); in cobalt_enable_output() 156 if (!cobalt_cpld_set_freq(cobalt, clk)) { in cobalt_enable_output() 201 struct cobalt *cobalt = s->cobalt; in cobalt_enable_input() local 220 packer = COBALT_CVI_PACKER(cobalt, ch); in cobalt_enable_input() 251 struct cobalt *cobalt = s->cobalt; in cobalt_dma_start_streaming() local 254 COBALT_CVI_EVCNT(cobalt, rx); in cobalt_dma_start_streaming() [all …]
|
D | cobalt-flash.c | 85 int cobalt_flash_probe(struct cobalt *cobalt) in cobalt_flash_probe() argument 91 map->virt = cobalt->bar1; in cobalt_flash_probe() 98 cobalt->mtd = mtd; in cobalt_flash_probe() 105 mtd->dev.parent = &cobalt->pci_dev->dev; in cobalt_flash_probe() 110 void cobalt_flash_remove(struct cobalt *cobalt) in cobalt_flash_remove() argument 112 if (cobalt->mtd) { in cobalt_flash_remove() 113 mtd_device_unregister(cobalt->mtd); in cobalt_flash_remove() 114 map_destroy(cobalt->mtd); in cobalt_flash_remove()
|
D | cobalt-alsa-main.c | 64 struct cobalt *cobalt = s->cobalt; in snd_cobalt_card_set_names() local 72 cobalt->instance, s->video_channel); in snd_cobalt_card_set_names() 77 cobalt->instance, s->video_channel); in snd_cobalt_card_set_names() 84 struct cobalt *cobalt = s->cobalt; in cobalt_alsa_init() local 95 ret = snd_card_new(&cobalt->pci_dev->dev, SNDRV_DEFAULT_IDX1, in cobalt_alsa_init()
|
D | cobalt-v4l2.h | 9 int cobalt_nodes_register(struct cobalt *cobalt); 10 void cobalt_nodes_unregister(struct cobalt *cobalt);
|
D | cobalt-i2c.h | 12 int cobalt_i2c_init(struct cobalt *cobalt); 13 void cobalt_i2c_exit(struct cobalt *cobalt);
|
D | cobalt-flash.h | 14 int cobalt_flash_probe(struct cobalt *cobalt); 15 void cobalt_flash_remove(struct cobalt *cobalt);
|
D | cobalt-cpld.h | 14 void cobalt_cpld_status(struct cobalt *cobalt); 15 bool cobalt_cpld_set_freq(struct cobalt *cobalt, unsigned freq);
|
D | cobalt-omnitek.h | 29 int omni_sg_dma_init(struct cobalt *cobalt); 34 int descriptor_list_create(struct cobalt *cobalt,
|
D | cobalt-alsa-pcm.c | 465 struct cobalt *cobalt = s->cobalt; in snd_cobalt_pcm_create() local 471 cobalt_s_bit_sysctrl(cobalt, in snd_cobalt_pcm_create() 475 cobalt_s_bit_sysctrl(cobalt, in snd_cobalt_pcm_create() 499 cobalt_s_bit_sysctrl(cobalt, in snd_cobalt_pcm_create() 502 cobalt_s_bit_sysctrl(cobalt, in snd_cobalt_pcm_create()
|
D | cobalt-irq.h | 13 void cobalt_irq_log_status(struct cobalt *cobalt);
|
D | Kconfig | 25 module will be called cobalt.
|
/drivers/media/pci/ |
D | Makefile | 34 obj-$(CONFIG_VIDEO_COBALT) += cobalt/
|
D | Kconfig | 39 source "drivers/media/pci/cobalt/Kconfig"
|
/drivers/leds/ |
D | Makefile | 26 obj-$(CONFIG_LEDS_COBALT_QUBE) += leds-cobalt-qube.o 27 obj-$(CONFIG_LEDS_COBALT_RAQ) += leds-cobalt-raq.o
|