Lines Matching refs:tvenc

152 	struct zx_tvenc *tvenc = to_zx_tvenc(encoder);  in zx_tvenc_encoder_mode_set()  local
164 DRM_DEV_ERROR(tvenc->dev, "failed to find zmode\n"); in zx_tvenc_encoder_mode_set()
168 zx_writel(tvenc->mmio + VENC_VIDEO_INFO, zmode->video_info); in zx_tvenc_encoder_mode_set()
169 zx_writel(tvenc->mmio + VENC_VIDEO_RES, zmode->video_res); in zx_tvenc_encoder_mode_set()
170 zx_writel(tvenc->mmio + VENC_FIELD1_PARAM, zmode->field1_param); in zx_tvenc_encoder_mode_set()
171 zx_writel(tvenc->mmio + VENC_FIELD2_PARAM, zmode->field2_param); in zx_tvenc_encoder_mode_set()
172 zx_writel(tvenc->mmio + VENC_LINE_O_1, zmode->burst_line_odd1); in zx_tvenc_encoder_mode_set()
173 zx_writel(tvenc->mmio + VENC_LINE_E_1, zmode->burst_line_even1); in zx_tvenc_encoder_mode_set()
174 zx_writel(tvenc->mmio + VENC_LINE_O_2, zmode->burst_line_odd2); in zx_tvenc_encoder_mode_set()
175 zx_writel(tvenc->mmio + VENC_LINE_E_2, zmode->burst_line_even2); in zx_tvenc_encoder_mode_set()
176 zx_writel(tvenc->mmio + VENC_LINE_TIMING_PARAM, in zx_tvenc_encoder_mode_set()
178 zx_writel(tvenc->mmio + VENC_WEIGHT_VALUE, zmode->weight_value); in zx_tvenc_encoder_mode_set()
179 zx_writel(tvenc->mmio + VENC_BLANK_BLACK_LEVEL, in zx_tvenc_encoder_mode_set()
181 zx_writel(tvenc->mmio + VENC_BURST_LEVEL, zmode->burst_level); in zx_tvenc_encoder_mode_set()
182 zx_writel(tvenc->mmio + VENC_CONTROL_PARAM, zmode->control_param); in zx_tvenc_encoder_mode_set()
183 zx_writel(tvenc->mmio + VENC_SUB_CARRIER_PHASE1, in zx_tvenc_encoder_mode_set()
185 zx_writel(tvenc->mmio + VENC_PHASE_LINE_INCR_CVBS, in zx_tvenc_encoder_mode_set()
191 struct zx_tvenc *tvenc = to_zx_tvenc(encoder); in zx_tvenc_encoder_enable() local
192 struct zx_tvenc_pwrctrl *pwrctrl = &tvenc->pwrctrl; in zx_tvenc_encoder_enable()
200 zx_writel(tvenc->mmio + VENC_ENABLE, 1); in zx_tvenc_encoder_enable()
205 struct zx_tvenc *tvenc = to_zx_tvenc(encoder); in zx_tvenc_encoder_disable() local
206 struct zx_tvenc_pwrctrl *pwrctrl = &tvenc->pwrctrl; in zx_tvenc_encoder_disable()
208 zx_writel(tvenc->mmio + VENC_ENABLE, 0); in zx_tvenc_encoder_disable()
224 struct zx_tvenc *tvenc = to_zx_tvenc(connector); in zx_tvenc_connector_get_modes() local
225 struct device *dev = tvenc->dev; in zx_tvenc_connector_get_modes()
249 struct zx_tvenc *tvenc = to_zx_tvenc(connector); in zx_tvenc_connector_mode_valid() local
254 DRM_DEV_ERROR(tvenc->dev, "unsupported mode: %s\n", mode->name); in zx_tvenc_connector_mode_valid()
274 static int zx_tvenc_register(struct drm_device *drm, struct zx_tvenc *tvenc) in zx_tvenc_register() argument
276 struct drm_encoder *encoder = &tvenc->encoder; in zx_tvenc_register()
277 struct drm_connector *connector = &tvenc->connector; in zx_tvenc_register()
299 static int zx_tvenc_pwrctrl_init(struct zx_tvenc *tvenc) in zx_tvenc_pwrctrl_init() argument
301 struct zx_tvenc_pwrctrl *pwrctrl = &tvenc->pwrctrl; in zx_tvenc_pwrctrl_init()
302 struct device *dev = tvenc->dev; in zx_tvenc_pwrctrl_init()
332 struct zx_tvenc *tvenc; in zx_tvenc_bind() local
335 tvenc = devm_kzalloc(dev, sizeof(*tvenc), GFP_KERNEL); in zx_tvenc_bind()
336 if (!tvenc) in zx_tvenc_bind()
339 tvenc->dev = dev; in zx_tvenc_bind()
340 dev_set_drvdata(dev, tvenc); in zx_tvenc_bind()
343 tvenc->mmio = devm_ioremap_resource(dev, res); in zx_tvenc_bind()
344 if (IS_ERR(tvenc->mmio)) { in zx_tvenc_bind()
345 ret = PTR_ERR(tvenc->mmio); in zx_tvenc_bind()
350 ret = zx_tvenc_pwrctrl_init(tvenc); in zx_tvenc_bind()
356 ret = zx_tvenc_register(drm, tvenc); in zx_tvenc_bind()