• Home
  • Raw
  • Download

Lines Matching refs:cobalt

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()
145 cobalt_write_bar1(cobalt, COBALT_SYS_STAT_MASK, mask & ~edge); in cobalt_irq_handler()
146 cobalt_write_bar1(cobalt, COBALT_SYS_STAT_EDGE, edge); in cobalt_irq_handler()
149 struct cobalt_stream *s = &cobalt->streams[i]; in cobalt_irq_handler()
153 cobalt->irq_dma[i]++; in cobalt_irq_handler()
159 cobalt_write_bar1(cobalt, COBALT_SYS_STAT_MASK, in cobalt_irq_handler()
169 cobalt->irq_full_fifo++; in cobalt_irq_handler()
173 queue_work(cobalt->irq_work_queues, &cobalt->irq_work_queue); in cobalt_irq_handler()
181 cobalt->irq_adv1++; in cobalt_irq_handler()
187 cobalt->irq_adv2++; in cobalt_irq_handler()
189 cobalt->irq_advout++; in cobalt_irq_handler()
191 cobalt->irq_dma_tot++; in cobalt_irq_handler()
193 cobalt->irq_none++; in cobalt_irq_handler()
194 dma_interrupt = cobalt_read_bar0(cobalt, DMA_INTERRUPT_STATUS_REG); in cobalt_irq_handler()
201 struct cobalt *cobalt = in cobalt_irq_work_handler() local
202 container_of(work, struct cobalt, irq_work_queue); in cobalt_irq_work_handler()
206 struct cobalt_stream *s = &cobalt->streams[i]; in cobalt_irq_work_handler()
211 v4l2_subdev_call(cobalt->streams[i].sd, core, in cobalt_irq_work_handler()
213 mask = cobalt_read_bar1(cobalt, COBALT_SYS_STAT_MASK); in cobalt_irq_work_handler()
214 cobalt_write_bar1(cobalt, COBALT_SYS_STAT_MASK, in cobalt_irq_work_handler()
220 void cobalt_irq_log_status(struct cobalt *cobalt) in cobalt_irq_log_status() argument
226 cobalt->irq_adv1, cobalt->irq_adv2, cobalt->irq_advout, in cobalt_irq_log_status()
227 cobalt->irq_none, cobalt->irq_full_fifo); in cobalt_irq_log_status()
228 cobalt_info("irq: dma_tot=%u (", cobalt->irq_dma_tot); in cobalt_irq_log_status()
230 pr_cont("%s%u", i ? "/" : "", cobalt->irq_dma[i]); in cobalt_irq_log_status()
232 cobalt->irq_dma_tot = cobalt->irq_adv1 = cobalt->irq_adv2 = 0; in cobalt_irq_log_status()
233 cobalt->irq_advout = cobalt->irq_none = cobalt->irq_full_fifo = 0; in cobalt_irq_log_status()
234 memset(cobalt->irq_dma, 0, sizeof(cobalt->irq_dma)); in cobalt_irq_log_status()
236 mask = cobalt_read_bar1(cobalt, COBALT_SYS_STAT_MASK); in cobalt_irq_log_status()
237 cobalt_write_bar1(cobalt, COBALT_SYS_STAT_MASK, in cobalt_irq_log_status()