Lines Matching refs:cobalt
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()
264 COBALT_TX_BASE(cobalt); in cobalt_dma_start_streaming()
282 struct cobalt *cobalt = s->cobalt; in cobalt_start_streaming() local
287 struct m00389_cvi_regmap __iomem *cvi = COBALT_CVI(cobalt, rx); in cobalt_start_streaming()
288 struct m00460_evcnt_regmap __iomem *evcnt = COBALT_CVI_EVCNT(cobalt, rx); in cobalt_start_streaming()
303 fw = COBALT_CVI_FREEWHEEL(cobalt, rx); in cobalt_start_streaming()
304 vmr = COBALT_CVI_VMR(cobalt, rx); in cobalt_start_streaming()
305 clkloss = COBALT_CVI_CLK_LOSS(cobalt, rx); in cobalt_start_streaming()
348 struct cobalt *cobalt = s->cobalt; in cobalt_dma_stop_streaming() local
356 COBALT_CVI_EVCNT(cobalt, rx); in cobalt_dma_stop_streaming()
362 COBALT_TX_BASE(cobalt); in cobalt_dma_stop_streaming()
384 cobalt_write_bar0(cobalt, DMA_INTERRUPT_STATUS_REG, in cobalt_dma_stop_streaming()
391 struct cobalt *cobalt = s->cobalt; in cobalt_stop_streaming() local
414 fw = COBALT_CVI_FREEWHEEL(cobalt, rx); in cobalt_stop_streaming()
415 vmr = COBALT_CVI_VMR(cobalt, rx); in cobalt_stop_streaming()
416 clkloss = COBALT_CVI_CLK_LOSS(cobalt, rx); in cobalt_stop_streaming()
438 static int cobalt_cobaltc(struct cobalt *cobalt, unsigned int cmd, void *arg) in cobalt_cobaltc() argument
441 void __iomem *adrs = cobalt->bar1 + regs->reg; in cobalt_cobaltc()
460 struct cobalt *cobalt = s->cobalt; in cobalt_g_register() local
462 return cobalt_cobaltc(cobalt, VIDIOC_DBG_G_REGISTER, reg); in cobalt_g_register()
469 struct cobalt *cobalt = s->cobalt; in cobalt_s_register() local
471 return cobalt_cobaltc(cobalt, VIDIOC_DBG_S_REGISTER, in cobalt_s_register()
480 struct cobalt *cobalt = s->cobalt; in cobalt_querycap() local
485 "PCIe:%s", pci_name(cobalt->pci_dev)); in cobalt_querycap()
488 if (cobalt->have_hsma_tx) in cobalt_querycap()
501 struct cobalt *cobalt = s->cobalt; in cobalt_video_input_status_show() local
505 cvi = COBALT_CVI(cobalt, rx); in cobalt_video_input_status_show()
506 vmr = COBALT_CVI_VMR(cobalt, rx); in cobalt_video_input_status_show()
507 fw = COBALT_CVI_FREEWHEEL(cobalt, rx); in cobalt_video_input_status_show()
508 clkloss = COBALT_CVI_CLK_LOSS(cobalt, rx); in cobalt_video_input_status_show()
509 packer = COBALT_CVI_PACKER(cobalt, rx); in cobalt_video_input_status_show()
574 struct cobalt *cobalt = s->cobalt; in cobalt_log_status() local
576 COBALT_TX_BASE(cobalt); in cobalt_log_status()
579 cobalt_info("%s", cobalt->hdl_info); in cobalt_log_status()
581 cobalt_g_sysctrl(cobalt), in cobalt_log_status()
582 cobalt_g_sysstat(cobalt)); in cobalt_log_status()
585 cobalt_pcie_status_show(cobalt); in cobalt_log_status()
586 cobalt_cpld_status(cobalt); in cobalt_log_status()
587 cobalt_irq_log_status(cobalt); in cobalt_log_status()
1199 static int cobalt_node_register(struct cobalt *cobalt, int node) in cobalt_node_register() argument
1203 struct cobalt_stream *s = cobalt->streams + node; in cobalt_node_register()
1212 "%s-%d", cobalt->v4l2_dev.name, node); in cobalt_node_register()
1233 vdev->v4l2_dev = &cobalt->v4l2_dev; in cobalt_node_register()
1264 q->dev = &cobalt->pci_dev->dev; in cobalt_node_register()
1290 int cobalt_nodes_register(struct cobalt *cobalt) in cobalt_nodes_register() argument
1296 ret = cobalt_node_register(cobalt, node); in cobalt_nodes_register()
1304 void cobalt_nodes_unregister(struct cobalt *cobalt) in cobalt_nodes_unregister() argument
1310 struct cobalt_stream *s = cobalt->streams + node; in cobalt_nodes_unregister()