xvtc 165 drivers/media/platform/xilinx/xilinx-vtc.c static inline void xvtc_gen_write(struct xvtc_device *xvtc, u32 addr, u32 value) xvtc 167 drivers/media/platform/xilinx/xilinx-vtc.c xvip_write(&xvtc->xvip, XVTC_GENERATOR_OFFSET + addr, value); xvtc 174 drivers/media/platform/xilinx/xilinx-vtc.c int xvtc_generator_start(struct xvtc_device *xvtc, xvtc 179 drivers/media/platform/xilinx/xilinx-vtc.c if (!xvtc->has_generator) xvtc 182 drivers/media/platform/xilinx/xilinx-vtc.c ret = clk_prepare_enable(xvtc->xvip.clk); xvtc 189 drivers/media/platform/xilinx/xilinx-vtc.c xvtc_gen_write(xvtc, XVTC_POLARITY, xvtc 198 drivers/media/platform/xilinx/xilinx-vtc.c xvtc_gen_write(xvtc, XVTC_ENCODING, 0); xvtc 203 drivers/media/platform/xilinx/xilinx-vtc.c xvtc_gen_write(xvtc, XVTC_ACTIVE_SIZE, xvtc 206 drivers/media/platform/xilinx/xilinx-vtc.c xvtc_gen_write(xvtc, XVTC_HSIZE, config->hsize); xvtc 207 drivers/media/platform/xilinx/xilinx-vtc.c xvtc_gen_write(xvtc, XVTC_VSIZE, config->vsize); xvtc 208 drivers/media/platform/xilinx/xilinx-vtc.c xvtc_gen_write(xvtc, XVTC_HSYNC, xvtc 211 drivers/media/platform/xilinx/xilinx-vtc.c xvtc_gen_write(xvtc, XVTC_F0_VBLANK_H, 0); xvtc 212 drivers/media/platform/xilinx/xilinx-vtc.c xvtc_gen_write(xvtc, XVTC_F0_VSYNC_V, xvtc 215 drivers/media/platform/xilinx/xilinx-vtc.c xvtc_gen_write(xvtc, XVTC_F0_VSYNC_H, 0); xvtc 220 drivers/media/platform/xilinx/xilinx-vtc.c xvip_write(&xvtc->xvip, XVIP_CTRL_CONTROL, xvtc 238 drivers/media/platform/xilinx/xilinx-vtc.c int xvtc_generator_stop(struct xvtc_device *xvtc) xvtc 240 drivers/media/platform/xilinx/xilinx-vtc.c if (!xvtc->has_generator) xvtc 243 drivers/media/platform/xilinx/xilinx-vtc.c xvip_write(&xvtc->xvip, XVIP_CTRL_CONTROL, 0); xvtc 245 drivers/media/platform/xilinx/xilinx-vtc.c clk_disable_unprepare(xvtc->xvip.clk); xvtc 255 drivers/media/platform/xilinx/xilinx-vtc.c struct xvtc_device *xvtc; xvtc 265 drivers/media/platform/xilinx/xilinx-vtc.c list_for_each_entry(xvtc, &xvtc_list, list) { xvtc 266 drivers/media/platform/xilinx/xilinx-vtc.c if (xvtc->xvip.dev->of_node == xvtc_node) { xvtc 267 drivers/media/platform/xilinx/xilinx-vtc.c found = xvtc; xvtc 282 drivers/media/platform/xilinx/xilinx-vtc.c void xvtc_put(struct xvtc_device *xvtc) xvtc 291 drivers/media/platform/xilinx/xilinx-vtc.c static void xvtc_register_device(struct xvtc_device *xvtc) xvtc 294 drivers/media/platform/xilinx/xilinx-vtc.c list_add_tail(&xvtc->list, &xvtc_list); xvtc 298 drivers/media/platform/xilinx/xilinx-vtc.c static void xvtc_unregister_device(struct xvtc_device *xvtc) xvtc 301 drivers/media/platform/xilinx/xilinx-vtc.c list_del(&xvtc->list); xvtc 309 drivers/media/platform/xilinx/xilinx-vtc.c static int xvtc_parse_of(struct xvtc_device *xvtc) xvtc 311 drivers/media/platform/xilinx/xilinx-vtc.c struct device_node *node = xvtc->xvip.dev->of_node; xvtc 313 drivers/media/platform/xilinx/xilinx-vtc.c xvtc->has_detector = of_property_read_bool(node, "xlnx,detector"); xvtc 314 drivers/media/platform/xilinx/xilinx-vtc.c xvtc->has_generator = of_property_read_bool(node, "xlnx,generator"); xvtc 321 drivers/media/platform/xilinx/xilinx-vtc.c struct xvtc_device *xvtc; xvtc 324 drivers/media/platform/xilinx/xilinx-vtc.c xvtc = devm_kzalloc(&pdev->dev, sizeof(*xvtc), GFP_KERNEL); xvtc 325 drivers/media/platform/xilinx/xilinx-vtc.c if (!xvtc) xvtc 328 drivers/media/platform/xilinx/xilinx-vtc.c xvtc->xvip.dev = &pdev->dev; xvtc 330 drivers/media/platform/xilinx/xilinx-vtc.c ret = xvtc_parse_of(xvtc); xvtc 334 drivers/media/platform/xilinx/xilinx-vtc.c ret = xvip_init_resources(&xvtc->xvip); xvtc 338 drivers/media/platform/xilinx/xilinx-vtc.c platform_set_drvdata(pdev, xvtc); xvtc 340 drivers/media/platform/xilinx/xilinx-vtc.c xvip_print_version(&xvtc->xvip); xvtc 342 drivers/media/platform/xilinx/xilinx-vtc.c xvtc_register_device(xvtc); xvtc 349 drivers/media/platform/xilinx/xilinx-vtc.c struct xvtc_device *xvtc = platform_get_drvdata(pdev); xvtc 351 drivers/media/platform/xilinx/xilinx-vtc.c xvtc_unregister_device(xvtc); xvtc 353 drivers/media/platform/xilinx/xilinx-vtc.c xvip_cleanup_resources(&xvtc->xvip); xvtc 33 drivers/media/platform/xilinx/xilinx-vtc.h void xvtc_put(struct xvtc_device *xvtc); xvtc 35 drivers/media/platform/xilinx/xilinx-vtc.h int xvtc_generator_start(struct xvtc_device *xvtc, xvtc 37 drivers/media/platform/xilinx/xilinx-vtc.h int xvtc_generator_stop(struct xvtc_device *xvtc);