vpbe_dev           51 drivers/media/platform/davinci/vpbe.c vpbe_current_encoder_info(struct vpbe_device *vpbe_dev)
vpbe_dev           53 drivers/media/platform/davinci/vpbe.c 	struct vpbe_config *cfg = vpbe_dev->cfg;
vpbe_dev           54 drivers/media/platform/davinci/vpbe.c 	int index = vpbe_dev->current_sd_index;
vpbe_dev           95 drivers/media/platform/davinci/vpbe.c static int vpbe_enum_outputs(struct vpbe_device *vpbe_dev,
vpbe_dev           98 drivers/media/platform/davinci/vpbe.c 	struct vpbe_config *cfg = vpbe_dev->cfg;
vpbe_dev          110 drivers/media/platform/davinci/vpbe.c static int vpbe_get_mode_info(struct vpbe_device *vpbe_dev, char *mode,
vpbe_dev          113 drivers/media/platform/davinci/vpbe.c 	struct vpbe_config *cfg = vpbe_dev->cfg;
vpbe_dev          124 drivers/media/platform/davinci/vpbe.c 			vpbe_dev->current_timings = var;
vpbe_dev          132 drivers/media/platform/davinci/vpbe.c static int vpbe_get_current_mode_info(struct vpbe_device *vpbe_dev,
vpbe_dev          138 drivers/media/platform/davinci/vpbe.c 	*mode_info = vpbe_dev->current_timings;
vpbe_dev          144 drivers/media/platform/davinci/vpbe.c static int vpbe_get_std_info(struct vpbe_device *vpbe_dev,
vpbe_dev          147 drivers/media/platform/davinci/vpbe.c 	struct vpbe_config *cfg = vpbe_dev->cfg;
vpbe_dev          149 drivers/media/platform/davinci/vpbe.c 	int curr_output = vpbe_dev->current_out_index;
vpbe_dev          152 drivers/media/platform/davinci/vpbe.c 	for (i = 0; i < vpbe_dev->cfg->outputs[curr_output].num_modes; i++) {
vpbe_dev          156 drivers/media/platform/davinci/vpbe.c 			vpbe_dev->current_timings = var;
vpbe_dev          164 drivers/media/platform/davinci/vpbe.c static int vpbe_get_std_info_by_name(struct vpbe_device *vpbe_dev,
vpbe_dev          167 drivers/media/platform/davinci/vpbe.c 	struct vpbe_config *cfg = vpbe_dev->cfg;
vpbe_dev          169 drivers/media/platform/davinci/vpbe.c 	int curr_output = vpbe_dev->current_out_index;
vpbe_dev          172 drivers/media/platform/davinci/vpbe.c 	for (i = 0; i < vpbe_dev->cfg->outputs[curr_output].num_modes; i++) {
vpbe_dev          175 drivers/media/platform/davinci/vpbe.c 			vpbe_dev->current_timings = var;
vpbe_dev          190 drivers/media/platform/davinci/vpbe.c static int vpbe_set_output(struct vpbe_device *vpbe_dev, int index)
vpbe_dev          193 drivers/media/platform/davinci/vpbe.c 			vpbe_current_encoder_info(vpbe_dev);
vpbe_dev          194 drivers/media/platform/davinci/vpbe.c 	struct vpbe_config *cfg = vpbe_dev->cfg;
vpbe_dev          195 drivers/media/platform/davinci/vpbe.c 	struct venc_platform_data *venc_device = vpbe_dev->venc_device;
vpbe_dev          203 drivers/media/platform/davinci/vpbe.c 	mutex_lock(&vpbe_dev->lock);
vpbe_dev          205 drivers/media/platform/davinci/vpbe.c 	sd_index = vpbe_dev->current_sd_index;
vpbe_dev          231 drivers/media/platform/davinci/vpbe.c 	ret = v4l2_subdev_call(vpbe_dev->encoders[sd_index], video,
vpbe_dev          244 drivers/media/platform/davinci/vpbe.c 	ret = vpbe_get_mode_info(vpbe_dev,
vpbe_dev          247 drivers/media/platform/davinci/vpbe.c 		struct osd_state *osd_device = vpbe_dev->osd_device;
vpbe_dev          250 drivers/media/platform/davinci/vpbe.c 			vpbe_dev->current_timings.left_margin);
vpbe_dev          252 drivers/media/platform/davinci/vpbe.c 		vpbe_dev->current_timings.upper_margin);
vpbe_dev          253 drivers/media/platform/davinci/vpbe.c 		vpbe_dev->current_sd_index = sd_index;
vpbe_dev          254 drivers/media/platform/davinci/vpbe.c 		vpbe_dev->current_out_index = index;
vpbe_dev          257 drivers/media/platform/davinci/vpbe.c 	mutex_unlock(&vpbe_dev->lock);
vpbe_dev          261 drivers/media/platform/davinci/vpbe.c static int vpbe_set_default_output(struct vpbe_device *vpbe_dev)
vpbe_dev          263 drivers/media/platform/davinci/vpbe.c 	struct vpbe_config *cfg = vpbe_dev->cfg;
vpbe_dev          269 drivers/media/platform/davinci/vpbe.c 			int ret = vpbe_set_output(vpbe_dev, i);
vpbe_dev          272 drivers/media/platform/davinci/vpbe.c 				vpbe_dev->current_out_index = i;
vpbe_dev          285 drivers/media/platform/davinci/vpbe.c static unsigned int vpbe_get_output(struct vpbe_device *vpbe_dev)
vpbe_dev          287 drivers/media/platform/davinci/vpbe.c 	return vpbe_dev->current_out_index;
vpbe_dev          296 drivers/media/platform/davinci/vpbe.c static int vpbe_s_dv_timings(struct vpbe_device *vpbe_dev,
vpbe_dev          299 drivers/media/platform/davinci/vpbe.c 	struct vpbe_config *cfg = vpbe_dev->cfg;
vpbe_dev          300 drivers/media/platform/davinci/vpbe.c 	int out_index = vpbe_dev->current_out_index;
vpbe_dev          302 drivers/media/platform/davinci/vpbe.c 	int sd_index = vpbe_dev->current_sd_index;
vpbe_dev          318 drivers/media/platform/davinci/vpbe.c 	vpbe_dev->current_timings = output->modes[i];
vpbe_dev          319 drivers/media/platform/davinci/vpbe.c 	mutex_lock(&vpbe_dev->lock);
vpbe_dev          321 drivers/media/platform/davinci/vpbe.c 	ret = v4l2_subdev_call(vpbe_dev->encoders[sd_index], video,
vpbe_dev          323 drivers/media/platform/davinci/vpbe.c 	if (!ret && vpbe_dev->amp) {
vpbe_dev          325 drivers/media/platform/davinci/vpbe.c 		ret = v4l2_subdev_call(vpbe_dev->amp, video,
vpbe_dev          330 drivers/media/platform/davinci/vpbe.c 		struct osd_state *osd_device = vpbe_dev->osd_device;
vpbe_dev          333 drivers/media/platform/davinci/vpbe.c 		vpbe_dev->current_timings.left_margin);
vpbe_dev          335 drivers/media/platform/davinci/vpbe.c 		vpbe_dev->current_timings.upper_margin);
vpbe_dev          337 drivers/media/platform/davinci/vpbe.c 	mutex_unlock(&vpbe_dev->lock);
vpbe_dev          348 drivers/media/platform/davinci/vpbe.c static int vpbe_g_dv_timings(struct vpbe_device *vpbe_dev,
vpbe_dev          351 drivers/media/platform/davinci/vpbe.c 	struct vpbe_config *cfg = vpbe_dev->cfg;
vpbe_dev          352 drivers/media/platform/davinci/vpbe.c 	int out_index = vpbe_dev->current_out_index;
vpbe_dev          358 drivers/media/platform/davinci/vpbe.c 	if (vpbe_dev->current_timings.timings_type &
vpbe_dev          360 drivers/media/platform/davinci/vpbe.c 		*dv_timings = vpbe_dev->current_timings.dv_timings;
vpbe_dev          373 drivers/media/platform/davinci/vpbe.c static int vpbe_enum_dv_timings(struct vpbe_device *vpbe_dev,
vpbe_dev          376 drivers/media/platform/davinci/vpbe.c 	struct vpbe_config *cfg = vpbe_dev->cfg;
vpbe_dev          377 drivers/media/platform/davinci/vpbe.c 	int out_index = vpbe_dev->current_out_index;
vpbe_dev          405 drivers/media/platform/davinci/vpbe.c static int vpbe_s_std(struct vpbe_device *vpbe_dev, v4l2_std_id std_id)
vpbe_dev          407 drivers/media/platform/davinci/vpbe.c 	struct vpbe_config *cfg = vpbe_dev->cfg;
vpbe_dev          408 drivers/media/platform/davinci/vpbe.c 	int out_index = vpbe_dev->current_out_index;
vpbe_dev          409 drivers/media/platform/davinci/vpbe.c 	int sd_index = vpbe_dev->current_sd_index;
vpbe_dev          416 drivers/media/platform/davinci/vpbe.c 	ret = vpbe_get_std_info(vpbe_dev, std_id);
vpbe_dev          420 drivers/media/platform/davinci/vpbe.c 	mutex_lock(&vpbe_dev->lock);
vpbe_dev          422 drivers/media/platform/davinci/vpbe.c 	ret = v4l2_subdev_call(vpbe_dev->encoders[sd_index], video,
vpbe_dev          426 drivers/media/platform/davinci/vpbe.c 		struct osd_state *osd_device = vpbe_dev->osd_device;
vpbe_dev          429 drivers/media/platform/davinci/vpbe.c 		vpbe_dev->current_timings.left_margin);
vpbe_dev          431 drivers/media/platform/davinci/vpbe.c 		vpbe_dev->current_timings.upper_margin);
vpbe_dev          433 drivers/media/platform/davinci/vpbe.c 	mutex_unlock(&vpbe_dev->lock);
vpbe_dev          444 drivers/media/platform/davinci/vpbe.c static int vpbe_g_std(struct vpbe_device *vpbe_dev, v4l2_std_id *std_id)
vpbe_dev          446 drivers/media/platform/davinci/vpbe.c 	struct vpbe_enc_mode_info *cur_timings = &vpbe_dev->current_timings;
vpbe_dev          447 drivers/media/platform/davinci/vpbe.c 	struct vpbe_config *cfg = vpbe_dev->cfg;
vpbe_dev          448 drivers/media/platform/davinci/vpbe.c 	int out_index = vpbe_dev->current_out_index;
vpbe_dev          468 drivers/media/platform/davinci/vpbe.c static int vpbe_set_mode(struct vpbe_device *vpbe_dev,
vpbe_dev          472 drivers/media/platform/davinci/vpbe.c 	struct vpbe_config *cfg = vpbe_dev->cfg;
vpbe_dev          475 drivers/media/platform/davinci/vpbe.c 	int out_index = vpbe_dev->current_out_index;
vpbe_dev          490 drivers/media/platform/davinci/vpbe.c 				return vpbe_s_std(vpbe_dev,
vpbe_dev          496 drivers/media/platform/davinci/vpbe.c 				return vpbe_s_dv_timings(vpbe_dev, &dv_timings);
vpbe_dev          505 drivers/media/platform/davinci/vpbe.c 	mutex_lock(&vpbe_dev->lock);
vpbe_dev          507 drivers/media/platform/davinci/vpbe.c 	osd_device = vpbe_dev->osd_device;
vpbe_dev          508 drivers/media/platform/davinci/vpbe.c 	vpbe_dev->current_timings = *preset_mode;
vpbe_dev          510 drivers/media/platform/davinci/vpbe.c 		vpbe_dev->current_timings.left_margin);
vpbe_dev          512 drivers/media/platform/davinci/vpbe.c 		vpbe_dev->current_timings.upper_margin);
vpbe_dev          514 drivers/media/platform/davinci/vpbe.c 	mutex_unlock(&vpbe_dev->lock);
vpbe_dev          518 drivers/media/platform/davinci/vpbe.c static int vpbe_set_default_mode(struct vpbe_device *vpbe_dev)
vpbe_dev          522 drivers/media/platform/davinci/vpbe.c 	ret = vpbe_get_std_info_by_name(vpbe_dev, def_mode);
vpbe_dev          527 drivers/media/platform/davinci/vpbe.c 	return vpbe_set_mode(vpbe_dev, &vpbe_dev->current_timings);
vpbe_dev          533 drivers/media/platform/davinci/vpbe.c 	struct vpbe_device *vpbe_dev = data;
vpbe_dev          536 drivers/media/platform/davinci/vpbe.c 		vpbe_dev->osd_device = platform_get_drvdata(pdev);
vpbe_dev          538 drivers/media/platform/davinci/vpbe.c 		vpbe_dev->venc_device = dev_get_platdata(&pdev->dev);
vpbe_dev          555 drivers/media/platform/davinci/vpbe.c static int vpbe_initialize(struct device *dev, struct vpbe_device *vpbe_dev)
vpbe_dev          572 drivers/media/platform/davinci/vpbe.c 	if (!vpbe_dev || !dev) {
vpbe_dev          577 drivers/media/platform/davinci/vpbe.c 	if (vpbe_dev->initialized)
vpbe_dev          580 drivers/media/platform/davinci/vpbe.c 	mutex_lock(&vpbe_dev->lock);
vpbe_dev          582 drivers/media/platform/davinci/vpbe.c 	if (strcmp(vpbe_dev->cfg->module_name, "dm644x-vpbe-display") != 0) {
vpbe_dev          584 drivers/media/platform/davinci/vpbe.c 		vpbe_dev->dac_clk = clk_get(vpbe_dev->pdev, "vpss_dac");
vpbe_dev          585 drivers/media/platform/davinci/vpbe.c 		if (IS_ERR(vpbe_dev->dac_clk)) {
vpbe_dev          586 drivers/media/platform/davinci/vpbe.c 			ret =  PTR_ERR(vpbe_dev->dac_clk);
vpbe_dev          589 drivers/media/platform/davinci/vpbe.c 		if (clk_prepare_enable(vpbe_dev->dac_clk)) {
vpbe_dev          591 drivers/media/platform/davinci/vpbe.c 			clk_put(vpbe_dev->dac_clk);
vpbe_dev          600 drivers/media/platform/davinci/vpbe.c 	ret = v4l2_device_register(dev, &vpbe_dev->v4l2_dev);
vpbe_dev          606 drivers/media/platform/davinci/vpbe.c 	v4l2_info(&vpbe_dev->v4l2_dev, "vpbe v4l2 device registered\n");
vpbe_dev          608 drivers/media/platform/davinci/vpbe.c 	err = bus_for_each_dev(&platform_bus_type, NULL, vpbe_dev,
vpbe_dev          615 drivers/media/platform/davinci/vpbe.c 	vpbe_dev->venc = venc_sub_dev_init(&vpbe_dev->v4l2_dev,
vpbe_dev          616 drivers/media/platform/davinci/vpbe.c 					   vpbe_dev->cfg->venc.module_name);
vpbe_dev          618 drivers/media/platform/davinci/vpbe.c 	if (!vpbe_dev->venc) {
vpbe_dev          619 drivers/media/platform/davinci/vpbe.c 		v4l2_err(&vpbe_dev->v4l2_dev,
vpbe_dev          625 drivers/media/platform/davinci/vpbe.c 	osd_device = vpbe_dev->osd_device;
vpbe_dev          629 drivers/media/platform/davinci/vpbe.c 			v4l2_err(&vpbe_dev->v4l2_dev,
vpbe_dev          640 drivers/media/platform/davinci/vpbe.c 	num_encoders = vpbe_dev->cfg->num_ext_encoders + 1;
vpbe_dev          641 drivers/media/platform/davinci/vpbe.c 	vpbe_dev->encoders = kmalloc_array(num_encoders,
vpbe_dev          642 drivers/media/platform/davinci/vpbe.c 					   sizeof(*vpbe_dev->encoders),
vpbe_dev          644 drivers/media/platform/davinci/vpbe.c 	if (!vpbe_dev->encoders) {
vpbe_dev          649 drivers/media/platform/davinci/vpbe.c 	i2c_adap = i2c_get_adapter(vpbe_dev->cfg->i2c_adapter_id);
vpbe_dev          650 drivers/media/platform/davinci/vpbe.c 	for (i = 0; i < (vpbe_dev->cfg->num_ext_encoders + 1); i++) {
vpbe_dev          653 drivers/media/platform/davinci/vpbe.c 			enc_subdev = &vpbe_dev->encoders[i];
vpbe_dev          654 drivers/media/platform/davinci/vpbe.c 			*enc_subdev = vpbe_dev->venc;
vpbe_dev          657 drivers/media/platform/davinci/vpbe.c 		enc_info = &vpbe_dev->cfg->ext_encoders[i];
vpbe_dev          659 drivers/media/platform/davinci/vpbe.c 			enc_subdev = &vpbe_dev->encoders[i];
vpbe_dev          661 drivers/media/platform/davinci/vpbe.c 						&vpbe_dev->v4l2_dev, i2c_adap,
vpbe_dev          664 drivers/media/platform/davinci/vpbe.c 				v4l2_info(&vpbe_dev->v4l2_dev,
vpbe_dev          668 drivers/media/platform/davinci/vpbe.c 				v4l2_err(&vpbe_dev->v4l2_dev, "encoder %s failed to register",
vpbe_dev          674 drivers/media/platform/davinci/vpbe.c 			v4l2_warn(&vpbe_dev->v4l2_dev, "non-i2c encoders currently not supported");
vpbe_dev          677 drivers/media/platform/davinci/vpbe.c 	if ((strcmp(vpbe_dev->cfg->module_name, "dm365-vpbe-display") == 0) &&
vpbe_dev          678 drivers/media/platform/davinci/vpbe.c 	   vpbe_dev->cfg->amp) {
vpbe_dev          679 drivers/media/platform/davinci/vpbe.c 		amp_info = vpbe_dev->cfg->amp;
vpbe_dev          681 drivers/media/platform/davinci/vpbe.c 			vpbe_dev->amp = v4l2_i2c_new_subdev_board(
vpbe_dev          682 drivers/media/platform/davinci/vpbe.c 			&vpbe_dev->v4l2_dev, i2c_adap,
vpbe_dev          684 drivers/media/platform/davinci/vpbe.c 			if (!vpbe_dev->amp) {
vpbe_dev          685 drivers/media/platform/davinci/vpbe.c 				v4l2_err(&vpbe_dev->v4l2_dev,
vpbe_dev          691 drivers/media/platform/davinci/vpbe.c 			v4l2_info(&vpbe_dev->v4l2_dev,
vpbe_dev          695 drivers/media/platform/davinci/vpbe.c 			    vpbe_dev->amp = NULL;
vpbe_dev          696 drivers/media/platform/davinci/vpbe.c 			    v4l2_warn(&vpbe_dev->v4l2_dev, "non-i2c amplifiers currently not supported");
vpbe_dev          699 drivers/media/platform/davinci/vpbe.c 	    vpbe_dev->amp = NULL;
vpbe_dev          703 drivers/media/platform/davinci/vpbe.c 	vpbe_dev->current_sd_index = 0;
vpbe_dev          704 drivers/media/platform/davinci/vpbe.c 	vpbe_dev->current_out_index = 0;
vpbe_dev          706 drivers/media/platform/davinci/vpbe.c 	mutex_unlock(&vpbe_dev->lock);
vpbe_dev          709 drivers/media/platform/davinci/vpbe.c 	ret = vpbe_set_default_output(vpbe_dev);
vpbe_dev          711 drivers/media/platform/davinci/vpbe.c 		v4l2_err(&vpbe_dev->v4l2_dev, "Failed to set default output %s",
vpbe_dev          717 drivers/media/platform/davinci/vpbe.c 	ret = vpbe_set_default_mode(vpbe_dev);
vpbe_dev          719 drivers/media/platform/davinci/vpbe.c 		v4l2_err(&vpbe_dev->v4l2_dev, "Failed to set default mode %s",
vpbe_dev          723 drivers/media/platform/davinci/vpbe.c 	vpbe_dev->initialized = 1;
vpbe_dev          728 drivers/media/platform/davinci/vpbe.c 	mutex_lock(&vpbe_dev->lock);
vpbe_dev          729 drivers/media/platform/davinci/vpbe.c 	kfree(vpbe_dev->amp);
vpbe_dev          731 drivers/media/platform/davinci/vpbe.c 	kfree(vpbe_dev->encoders);
vpbe_dev          733 drivers/media/platform/davinci/vpbe.c 	v4l2_device_unregister(&vpbe_dev->v4l2_dev);
vpbe_dev          735 drivers/media/platform/davinci/vpbe.c 	if (strcmp(vpbe_dev->cfg->module_name, "dm644x-vpbe-display") != 0) {
vpbe_dev          736 drivers/media/platform/davinci/vpbe.c 		clk_disable_unprepare(vpbe_dev->dac_clk);
vpbe_dev          737 drivers/media/platform/davinci/vpbe.c 		clk_put(vpbe_dev->dac_clk);
vpbe_dev          740 drivers/media/platform/davinci/vpbe.c 	mutex_unlock(&vpbe_dev->lock);
vpbe_dev          753 drivers/media/platform/davinci/vpbe.c static void vpbe_deinitialize(struct device *dev, struct vpbe_device *vpbe_dev)
vpbe_dev          755 drivers/media/platform/davinci/vpbe.c 	v4l2_device_unregister(&vpbe_dev->v4l2_dev);
vpbe_dev          756 drivers/media/platform/davinci/vpbe.c 	if (strcmp(vpbe_dev->cfg->module_name, "dm644x-vpbe-display") != 0) {
vpbe_dev          757 drivers/media/platform/davinci/vpbe.c 		clk_disable_unprepare(vpbe_dev->dac_clk);
vpbe_dev          758 drivers/media/platform/davinci/vpbe.c 		clk_put(vpbe_dev->dac_clk);
vpbe_dev          761 drivers/media/platform/davinci/vpbe.c 	kfree(vpbe_dev->amp);
vpbe_dev          762 drivers/media/platform/davinci/vpbe.c 	kfree(vpbe_dev->encoders);
vpbe_dev          763 drivers/media/platform/davinci/vpbe.c 	vpbe_dev->initialized = 0;
vpbe_dev          785 drivers/media/platform/davinci/vpbe.c 	struct vpbe_device *vpbe_dev;
vpbe_dev          801 drivers/media/platform/davinci/vpbe.c 	vpbe_dev = kzalloc(sizeof(*vpbe_dev), GFP_KERNEL);
vpbe_dev          802 drivers/media/platform/davinci/vpbe.c 	if (!vpbe_dev)
vpbe_dev          805 drivers/media/platform/davinci/vpbe.c 	vpbe_dev->cfg = cfg;
vpbe_dev          806 drivers/media/platform/davinci/vpbe.c 	vpbe_dev->ops = vpbe_dev_ops;
vpbe_dev          807 drivers/media/platform/davinci/vpbe.c 	vpbe_dev->pdev = &pdev->dev;
vpbe_dev          810 drivers/media/platform/davinci/vpbe.c 		vpbe_dev->current_timings = vpbe_dev->cfg->outputs[0].modes[0];
vpbe_dev          812 drivers/media/platform/davinci/vpbe.c 		kfree(vpbe_dev);
vpbe_dev          817 drivers/media/platform/davinci/vpbe.c 	platform_set_drvdata(pdev, vpbe_dev);
vpbe_dev          818 drivers/media/platform/davinci/vpbe.c 	mutex_init(&vpbe_dev->lock);
vpbe_dev          825 drivers/media/platform/davinci/vpbe.c 	struct vpbe_device *vpbe_dev = platform_get_drvdata(device);
vpbe_dev          827 drivers/media/platform/davinci/vpbe.c 	kfree(vpbe_dev);
vpbe_dev           46 drivers/media/platform/davinci/vpbe_display.c 	struct vpbe_device *vpbe_dev = disp_dev->vpbe_dev;
vpbe_dev           49 drivers/media/platform/davinci/vpbe_display.c 	ret = v4l2_subdev_call(vpbe_dev->venc,
vpbe_dev           55 drivers/media/platform/davinci/vpbe_display.c 		v4l2_err(&vpbe_dev->v4l2_dev,
vpbe_dev          198 drivers/media/platform/davinci/vpbe_display.c 	struct vpbe_device *vpbe_dev = layer->disp_dev->vpbe_dev;
vpbe_dev          201 drivers/media/platform/davinci/vpbe_display.c 	v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev,
vpbe_dev          210 drivers/media/platform/davinci/vpbe_display.c 		v4l2_err(&vpbe_dev->v4l2_dev,
vpbe_dev          229 drivers/media/platform/davinci/vpbe_display.c 	struct vpbe_device *vpbe_dev = layer->disp_dev->vpbe_dev;
vpbe_dev          231 drivers/media/platform/davinci/vpbe_display.c 	v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, "vpbe_buffer_setup\n");
vpbe_dev          258 drivers/media/platform/davinci/vpbe_display.c 	struct vpbe_device *vpbe_dev = layer->disp_dev->vpbe_dev;
vpbe_dev          261 drivers/media/platform/davinci/vpbe_display.c 	v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev,
vpbe_dev          377 drivers/media/platform/davinci/vpbe_display.c 	struct vpbe_device *vpbe_dev = disp_dev->vpbe_dev;
vpbe_dev          391 drivers/media/platform/davinci/vpbe_display.c 		v4l2_err(&vpbe_dev->v4l2_dev,
vpbe_dev          405 drivers/media/platform/davinci/vpbe_display.c 			v4l2_err(&vpbe_dev->v4l2_dev,
vpbe_dev          422 drivers/media/platform/davinci/vpbe_display.c 	struct vpbe_device *vpbe_dev = disp_dev->vpbe_dev;
vpbe_dev          429 drivers/media/platform/davinci/vpbe_display.c 	v4l2_std_id standard_id = vpbe_dev->current_timings.std_id;
vpbe_dev          456 drivers/media/platform/davinci/vpbe_display.c 		h_scale = vpbe_dev->current_timings.xres / pixfmt->width;
vpbe_dev          517 drivers/media/platform/davinci/vpbe_display.c 	v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev,
vpbe_dev          527 drivers/media/platform/davinci/vpbe_display.c 	struct vpbe_device *vpbe_dev = disp_dev->vpbe_dev;
vpbe_dev          530 drivers/media/platform/davinci/vpbe_display.c 			vpbe_dev->current_timings.xres - cfg->xsize);
vpbe_dev          532 drivers/media/platform/davinci/vpbe_display.c 			vpbe_dev->current_timings.yres - cfg->ysize);
vpbe_dev          534 drivers/media/platform/davinci/vpbe_display.c 	v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev,
vpbe_dev          542 drivers/media/platform/davinci/vpbe_display.c 	struct vpbe_device *vpbe_dev = disp_dev->vpbe_dev;
vpbe_dev          545 drivers/media/platform/davinci/vpbe_display.c 	  ((c->width + c->left) > vpbe_dev->current_timings.xres))
vpbe_dev          546 drivers/media/platform/davinci/vpbe_display.c 		c->width = vpbe_dev->current_timings.xres - c->left;
vpbe_dev          549 drivers/media/platform/davinci/vpbe_display.c 	  vpbe_dev->current_timings.yres))
vpbe_dev          550 drivers/media/platform/davinci/vpbe_display.c 		c->height = vpbe_dev->current_timings.yres - c->top;
vpbe_dev          553 drivers/media/platform/davinci/vpbe_display.c 	if (vpbe_dev->current_timings.interlaced)
vpbe_dev          567 drivers/media/platform/davinci/vpbe_display.c 	struct vpbe_device *vpbe_dev = disp_dev->vpbe_dev;
vpbe_dev          582 drivers/media/platform/davinci/vpbe_display.c 		if (vpbe_dev->current_timings.interlaced)
vpbe_dev          596 drivers/media/platform/davinci/vpbe_display.c 	max_width = vpbe_dev->current_timings.xres;
vpbe_dev          597 drivers/media/platform/davinci/vpbe_display.c 	max_height = vpbe_dev->current_timings.yres;
vpbe_dev          603 drivers/media/platform/davinci/vpbe_display.c 		pixfmt->width = vpbe_dev->current_timings.xres;
vpbe_dev          608 drivers/media/platform/davinci/vpbe_display.c 		pixfmt->height = vpbe_dev->current_timings.yres;
vpbe_dev          630 drivers/media/platform/davinci/vpbe_display.c 	struct vpbe_device *vpbe_dev = layer->disp_dev->vpbe_dev;
vpbe_dev          633 drivers/media/platform/davinci/vpbe_display.c 		dev_name(vpbe_dev->pdev));
vpbe_dev          635 drivers/media/platform/davinci/vpbe_display.c 		 dev_name(vpbe_dev->pdev));
vpbe_dev          636 drivers/media/platform/davinci/vpbe_display.c 	strscpy(cap->card, vpbe_dev->cfg->module_name, sizeof(cap->card));
vpbe_dev          646 drivers/media/platform/davinci/vpbe_display.c 	struct vpbe_device *vpbe_dev = disp_dev->vpbe_dev;
vpbe_dev          652 drivers/media/platform/davinci/vpbe_display.c 	v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev,
vpbe_dev          677 drivers/media/platform/davinci/vpbe_display.c 		v4l2_err(&vpbe_dev->v4l2_dev,
vpbe_dev          691 drivers/media/platform/davinci/vpbe_display.c 		v4l2_err(&vpbe_dev->v4l2_dev,
vpbe_dev          714 drivers/media/platform/davinci/vpbe_display.c 	struct vpbe_device *vpbe_dev = layer->disp_dev->vpbe_dev;
vpbe_dev          718 drivers/media/platform/davinci/vpbe_display.c 	v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev,
vpbe_dev          738 drivers/media/platform/davinci/vpbe_display.c 		rect->width = vpbe_dev->current_timings.xres;
vpbe_dev          739 drivers/media/platform/davinci/vpbe_display.c 		rect->height = vpbe_dev->current_timings.yres;
vpbe_dev          752 drivers/media/platform/davinci/vpbe_display.c 	struct vpbe_device *vpbe_dev = layer->disp_dev->vpbe_dev;
vpbe_dev          754 drivers/media/platform/davinci/vpbe_display.c 	v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, "VIDIOC_CROPCAP ioctl\n");
vpbe_dev          759 drivers/media/platform/davinci/vpbe_display.c 	*f = vpbe_dev->current_timings.aspect;
vpbe_dev          767 drivers/media/platform/davinci/vpbe_display.c 	struct vpbe_device *vpbe_dev = layer->disp_dev->vpbe_dev;
vpbe_dev          769 drivers/media/platform/davinci/vpbe_display.c 	v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev,
vpbe_dev          775 drivers/media/platform/davinci/vpbe_display.c 		v4l2_err(&vpbe_dev->v4l2_dev, "invalid type\n");
vpbe_dev          788 drivers/media/platform/davinci/vpbe_display.c 	struct vpbe_device *vpbe_dev = layer->disp_dev->vpbe_dev;
vpbe_dev          790 drivers/media/platform/davinci/vpbe_display.c 	v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev,
vpbe_dev          794 drivers/media/platform/davinci/vpbe_display.c 		v4l2_err(&vpbe_dev->v4l2_dev, "Invalid format index\n");
vpbe_dev          812 drivers/media/platform/davinci/vpbe_display.c 	struct vpbe_device *vpbe_dev = disp_dev->vpbe_dev;
vpbe_dev          818 drivers/media/platform/davinci/vpbe_display.c 	v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev,
vpbe_dev          826 drivers/media/platform/davinci/vpbe_display.c 		v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, "invalid type\n");
vpbe_dev          848 drivers/media/platform/davinci/vpbe_display.c 			v4l2_err(&vpbe_dev->v4l2_dev,
vpbe_dev          863 drivers/media/platform/davinci/vpbe_display.c 	cfg->interlaced = vpbe_dev->current_timings.interlaced;
vpbe_dev          881 drivers/media/platform/davinci/vpbe_display.c 		v4l2_err(&vpbe_dev->v4l2_dev,
vpbe_dev          898 drivers/media/platform/davinci/vpbe_display.c 	struct vpbe_device *vpbe_dev = layer->disp_dev->vpbe_dev;
vpbe_dev          901 drivers/media/platform/davinci/vpbe_display.c 	v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, "VIDIOC_TRY_FMT\n");
vpbe_dev          904 drivers/media/platform/davinci/vpbe_display.c 		v4l2_err(&vpbe_dev->v4l2_dev, "invalid type\n");
vpbe_dev          923 drivers/media/platform/davinci/vpbe_display.c 	struct vpbe_device *vpbe_dev = layer->disp_dev->vpbe_dev;
vpbe_dev          926 drivers/media/platform/davinci/vpbe_display.c 	v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, "VIDIOC_S_STD\n");
vpbe_dev          931 drivers/media/platform/davinci/vpbe_display.c 	if (vpbe_dev->ops.s_std) {
vpbe_dev          932 drivers/media/platform/davinci/vpbe_display.c 		ret = vpbe_dev->ops.s_std(vpbe_dev, std_id);
vpbe_dev          934 drivers/media/platform/davinci/vpbe_display.c 			v4l2_err(&vpbe_dev->v4l2_dev,
vpbe_dev          955 drivers/media/platform/davinci/vpbe_display.c 	struct vpbe_device *vpbe_dev = layer->disp_dev->vpbe_dev;
vpbe_dev          957 drivers/media/platform/davinci/vpbe_display.c 	v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev,	"VIDIOC_G_STD\n");
vpbe_dev          960 drivers/media/platform/davinci/vpbe_display.c 	if (vpbe_dev->current_timings.timings_type & VPBE_ENC_STD) {
vpbe_dev          961 drivers/media/platform/davinci/vpbe_display.c 		*std_id = vpbe_dev->current_timings.std_id;
vpbe_dev          978 drivers/media/platform/davinci/vpbe_display.c 	struct vpbe_device *vpbe_dev = layer->disp_dev->vpbe_dev;
vpbe_dev          981 drivers/media/platform/davinci/vpbe_display.c 	v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev,	"VIDIOC_ENUM_OUTPUT\n");
vpbe_dev          984 drivers/media/platform/davinci/vpbe_display.c 	if (!vpbe_dev->ops.enum_outputs)
vpbe_dev          987 drivers/media/platform/davinci/vpbe_display.c 	ret = vpbe_dev->ops.enum_outputs(vpbe_dev, output);
vpbe_dev          989 drivers/media/platform/davinci/vpbe_display.c 		v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev,
vpbe_dev         1005 drivers/media/platform/davinci/vpbe_display.c 	struct vpbe_device *vpbe_dev = layer->disp_dev->vpbe_dev;
vpbe_dev         1008 drivers/media/platform/davinci/vpbe_display.c 	v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev,	"VIDIOC_S_OUTPUT\n");
vpbe_dev         1013 drivers/media/platform/davinci/vpbe_display.c 	if (!vpbe_dev->ops.set_output)
vpbe_dev         1016 drivers/media/platform/davinci/vpbe_display.c 	ret = vpbe_dev->ops.set_output(vpbe_dev, i);
vpbe_dev         1018 drivers/media/platform/davinci/vpbe_display.c 		v4l2_err(&vpbe_dev->v4l2_dev,
vpbe_dev         1034 drivers/media/platform/davinci/vpbe_display.c 	struct vpbe_device *vpbe_dev = layer->disp_dev->vpbe_dev;
vpbe_dev         1036 drivers/media/platform/davinci/vpbe_display.c 	v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, "VIDIOC_G_OUTPUT\n");
vpbe_dev         1038 drivers/media/platform/davinci/vpbe_display.c 	*i = vpbe_dev->current_out_index;
vpbe_dev         1054 drivers/media/platform/davinci/vpbe_display.c 	struct vpbe_device *vpbe_dev = layer->disp_dev->vpbe_dev;
vpbe_dev         1057 drivers/media/platform/davinci/vpbe_display.c 	v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, "VIDIOC_ENUM_DV_TIMINGS\n");
vpbe_dev         1060 drivers/media/platform/davinci/vpbe_display.c 	if (!vpbe_dev->ops.enum_dv_timings)
vpbe_dev         1063 drivers/media/platform/davinci/vpbe_display.c 	ret = vpbe_dev->ops.enum_dv_timings(vpbe_dev, timings);
vpbe_dev         1065 drivers/media/platform/davinci/vpbe_display.c 		v4l2_err(&vpbe_dev->v4l2_dev,
vpbe_dev         1084 drivers/media/platform/davinci/vpbe_display.c 	struct vpbe_device *vpbe_dev = layer->disp_dev->vpbe_dev;
vpbe_dev         1087 drivers/media/platform/davinci/vpbe_display.c 	v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, "VIDIOC_S_DV_TIMINGS\n");
vpbe_dev         1093 drivers/media/platform/davinci/vpbe_display.c 	if (!vpbe_dev->ops.s_dv_timings)
vpbe_dev         1096 drivers/media/platform/davinci/vpbe_display.c 	ret = vpbe_dev->ops.s_dv_timings(vpbe_dev, timings);
vpbe_dev         1098 drivers/media/platform/davinci/vpbe_display.c 		v4l2_err(&vpbe_dev->v4l2_dev,
vpbe_dev         1117 drivers/media/platform/davinci/vpbe_display.c 	struct vpbe_device *vpbe_dev = layer->disp_dev->vpbe_dev;
vpbe_dev         1119 drivers/media/platform/davinci/vpbe_display.c 	v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, "VIDIOC_G_DV_TIMINGS\n");
vpbe_dev         1123 drivers/media/platform/davinci/vpbe_display.c 	if (vpbe_dev->current_timings.timings_type &
vpbe_dev         1125 drivers/media/platform/davinci/vpbe_display.c 		*dv_timings = vpbe_dev->current_timings.dv_timings;
vpbe_dev         1142 drivers/media/platform/davinci/vpbe_display.c 	struct vpbe_device *vpbe_dev = disp_dev->vpbe_dev;
vpbe_dev         1149 drivers/media/platform/davinci/vpbe_display.c 		v4l2_err(&vpbe_dev->v4l2_dev, "v4l2_fh_open failed\n");
vpbe_dev         1166 drivers/media/platform/davinci/vpbe_display.c 			v4l2_err(&vpbe_dev->v4l2_dev,
vpbe_dev         1174 drivers/media/platform/davinci/vpbe_display.c 	v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev,
vpbe_dev         1189 drivers/media/platform/davinci/vpbe_display.c 	struct vpbe_device *vpbe_dev = disp_dev->vpbe_dev;
vpbe_dev         1192 drivers/media/platform/davinci/vpbe_display.c 	v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, "vpbe_display_release\n");
vpbe_dev         1273 drivers/media/platform/davinci/vpbe_display.c 		vpbe_disp->vpbe_dev = platform_get_drvdata(pdev);
vpbe_dev         1303 drivers/media/platform/davinci/vpbe_display.c 	vbd->v4l2_dev   = &disp_dev->vpbe_dev->v4l2_dev;
vpbe_dev         1308 drivers/media/platform/davinci/vpbe_display.c 	if (disp_dev->vpbe_dev->current_timings.timings_type &
vpbe_dev         1333 drivers/media/platform/davinci/vpbe_display.c 	v4l2_info(&disp_dev->vpbe_dev->v4l2_dev,
vpbe_dev         1335 drivers/media/platform/davinci/vpbe_display.c 	v4l2_info(&disp_dev->vpbe_dev->v4l2_dev,
vpbe_dev         1390 drivers/media/platform/davinci/vpbe_display.c 	v4l2_dev = &disp_dev->vpbe_dev->v4l2_dev;
vpbe_dev         1392 drivers/media/platform/davinci/vpbe_display.c 	if (disp_dev->vpbe_dev->ops.initialize) {
vpbe_dev         1393 drivers/media/platform/davinci/vpbe_display.c 		err = disp_dev->vpbe_dev->ops.initialize(&pdev->dev,
vpbe_dev         1394 drivers/media/platform/davinci/vpbe_display.c 							 disp_dev->vpbe_dev);
vpbe_dev         1437 drivers/media/platform/davinci/vpbe_display.c 		q->dev = disp_dev->vpbe_dev->pdev;
vpbe_dev         1476 drivers/media/platform/davinci/vpbe_display.c 	struct vpbe_device *vpbe_dev = disp_dev->vpbe_dev;
vpbe_dev         1479 drivers/media/platform/davinci/vpbe_display.c 	v4l2_dbg(1, debug, &vpbe_dev->v4l2_dev, "vpbe_display_remove\n");
vpbe_dev         1482 drivers/media/platform/davinci/vpbe_display.c 	if (vpbe_dev->ops.deinitialize)
vpbe_dev         1483 drivers/media/platform/davinci/vpbe_display.c 		vpbe_dev->ops.deinitialize(&pdev->dev, vpbe_dev);
vpbe_dev           96 include/media/davinci/vpbe.h 	int (*enum_outputs)(struct vpbe_device *vpbe_dev,
vpbe_dev          100 include/media/davinci/vpbe.h 	int (*set_output)(struct vpbe_device *vpbe_dev,
vpbe_dev          104 include/media/davinci/vpbe.h 	unsigned int (*get_output)(struct vpbe_device *vpbe_dev);
vpbe_dev          107 include/media/davinci/vpbe.h 	int (*s_dv_timings)(struct vpbe_device *vpbe_dev,
vpbe_dev          111 include/media/davinci/vpbe.h 	int (*g_dv_timings)(struct vpbe_device *vpbe_dev,
vpbe_dev          115 include/media/davinci/vpbe.h 	int (*enum_dv_timings)(struct vpbe_device *vpbe_dev,
vpbe_dev          119 include/media/davinci/vpbe.h 	int (*s_std)(struct vpbe_device *vpbe_dev, v4l2_std_id std_id);
vpbe_dev          122 include/media/davinci/vpbe.h 	int (*g_std)(struct vpbe_device *vpbe_dev, v4l2_std_id *std_id);
vpbe_dev          125 include/media/davinci/vpbe.h 	int (*initialize)(struct device *dev, struct vpbe_device *vpbe_dev);
vpbe_dev          128 include/media/davinci/vpbe.h 	void (*deinitialize)(struct device *dev, struct vpbe_device *vpbe_dev);
vpbe_dev          131 include/media/davinci/vpbe.h 	int (*get_mode_info)(struct vpbe_device *vpbe_dev,
vpbe_dev          138 include/media/davinci/vpbe.h 	int (*set_mode)(struct vpbe_device *vpbe_dev,
vpbe_dev          141 include/media/davinci/vpbe.h 	int (*suspend)(struct vpbe_device *vpbe_dev);
vpbe_dev          142 include/media/davinci/vpbe.h 	int (*resume)(struct vpbe_device *vpbe_dev);
vpbe_dev          111 include/media/davinci/vpbe_display.h 	struct vpbe_device *vpbe_dev;