• Home
  • Raw
  • Download

Lines Matching refs:cobalt

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
268 COBALT_CVI_EVCNT(cobalt, rx); in cobalt_dma_start_streaming()
278 COBALT_TX_BASE(cobalt); in cobalt_dma_start_streaming()
296 struct cobalt *cobalt = s->cobalt; in cobalt_start_streaming() local
301 struct m00389_cvi_regmap __iomem *cvi = COBALT_CVI(cobalt, rx); in cobalt_start_streaming()
302 struct m00460_evcnt_regmap __iomem *evcnt = COBALT_CVI_EVCNT(cobalt, rx); in cobalt_start_streaming()
317 fw = COBALT_CVI_FREEWHEEL(cobalt, rx); in cobalt_start_streaming()
318 vmr = COBALT_CVI_VMR(cobalt, rx); in cobalt_start_streaming()
319 clkloss = COBALT_CVI_CLK_LOSS(cobalt, rx); in cobalt_start_streaming()
362 struct cobalt *cobalt = s->cobalt; in cobalt_dma_stop_streaming() local
370 COBALT_CVI_EVCNT(cobalt, rx); in cobalt_dma_stop_streaming()
376 COBALT_TX_BASE(cobalt); in cobalt_dma_stop_streaming()
398 cobalt_write_bar0(cobalt, DMA_INTERRUPT_STATUS_REG, in cobalt_dma_stop_streaming()
405 struct cobalt *cobalt = s->cobalt; in cobalt_stop_streaming() local
428 fw = COBALT_CVI_FREEWHEEL(cobalt, rx); in cobalt_stop_streaming()
429 vmr = COBALT_CVI_VMR(cobalt, rx); in cobalt_stop_streaming()
430 clkloss = COBALT_CVI_CLK_LOSS(cobalt, rx); in cobalt_stop_streaming()
452 static int cobalt_cobaltc(struct cobalt *cobalt, unsigned int cmd, void *arg) in cobalt_cobaltc() argument
455 void __iomem *adrs = cobalt->bar1 + regs->reg; in cobalt_cobaltc()
474 struct cobalt *cobalt = s->cobalt; in cobalt_g_register() local
476 return cobalt_cobaltc(cobalt, VIDIOC_DBG_G_REGISTER, reg); in cobalt_g_register()
483 struct cobalt *cobalt = s->cobalt; in cobalt_s_register() local
485 return cobalt_cobaltc(cobalt, VIDIOC_DBG_S_REGISTER, in cobalt_s_register()
494 struct cobalt *cobalt = s->cobalt; in cobalt_querycap() local
499 "PCIe:%s", pci_name(cobalt->pci_dev)); in cobalt_querycap()
507 if (cobalt->have_hsma_tx) in cobalt_querycap()
520 struct cobalt *cobalt = s->cobalt; in cobalt_video_input_status_show() local
524 cvi = COBALT_CVI(cobalt, rx); in cobalt_video_input_status_show()
525 vmr = COBALT_CVI_VMR(cobalt, rx); in cobalt_video_input_status_show()
526 fw = COBALT_CVI_FREEWHEEL(cobalt, rx); in cobalt_video_input_status_show()
527 clkloss = COBALT_CVI_CLK_LOSS(cobalt, rx); in cobalt_video_input_status_show()
528 packer = COBALT_CVI_PACKER(cobalt, rx); in cobalt_video_input_status_show()
593 struct cobalt *cobalt = s->cobalt; in cobalt_log_status() local
595 COBALT_TX_BASE(cobalt); in cobalt_log_status()
598 cobalt_info("%s", cobalt->hdl_info); in cobalt_log_status()
600 cobalt_g_sysctrl(cobalt), in cobalt_log_status()
601 cobalt_g_sysstat(cobalt)); in cobalt_log_status()
604 cobalt_pcie_status_show(cobalt); in cobalt_log_status()
605 cobalt_cpld_status(cobalt); in cobalt_log_status()
606 cobalt_irq_log_status(cobalt); in cobalt_log_status()
1166 static int cobalt_node_register(struct cobalt *cobalt, int node) in cobalt_node_register() argument
1170 struct cobalt_stream *s = cobalt->streams + node; in cobalt_node_register()
1179 "%s-%d", cobalt->v4l2_dev.name, node); in cobalt_node_register()
1200 vdev->v4l2_dev = &cobalt->v4l2_dev; in cobalt_node_register()
1251 int cobalt_nodes_register(struct cobalt *cobalt) in cobalt_nodes_register() argument
1257 ret = cobalt_node_register(cobalt, node); in cobalt_nodes_register()
1265 void cobalt_nodes_unregister(struct cobalt *cobalt) in cobalt_nodes_unregister() argument
1271 struct cobalt_stream *s = cobalt->streams + node; in cobalt_nodes_unregister()