vsca              116 drivers/media/platform/vimc/vimc-scaler.c 	struct vimc_sca_device *vsca = v4l2_get_subdevdata(sd);
vsca              121 drivers/media/platform/vimc/vimc-scaler.c 			 vsca->sink_fmt;
vsca              125 drivers/media/platform/vimc/vimc-scaler.c 		format->format.width = vsca->sink_fmt.width * sca_mult;
vsca              126 drivers/media/platform/vimc/vimc-scaler.c 		format->format.height = vsca->sink_fmt.height * sca_mult;
vsca              156 drivers/media/platform/vimc/vimc-scaler.c 	struct vimc_sca_device *vsca = v4l2_get_subdevdata(sd);
vsca              161 drivers/media/platform/vimc/vimc-scaler.c 		if (vsca->src_frame)
vsca              164 drivers/media/platform/vimc/vimc-scaler.c 		sink_fmt = &vsca->sink_fmt;
vsca              181 drivers/media/platform/vimc/vimc-scaler.c 		dev_dbg(vsca->dev, "%s: sink format update: "
vsca              183 drivers/media/platform/vimc/vimc-scaler.c 			"new:%dx%d (0x%x, %d, %d, %d, %d)\n", vsca->sd.name,
vsca              209 drivers/media/platform/vimc/vimc-scaler.c 	struct vimc_sca_device *vsca = v4l2_get_subdevdata(sd);
vsca              215 drivers/media/platform/vimc/vimc-scaler.c 		if (vsca->src_frame)
vsca              219 drivers/media/platform/vimc/vimc-scaler.c 		vpix = vimc_pix_map_by_code(vsca->sink_fmt.code);
vsca              220 drivers/media/platform/vimc/vimc-scaler.c 		vsca->bpp = vpix->bpp;
vsca              223 drivers/media/platform/vimc/vimc-scaler.c 		vsca->src_line_size = vsca->sink_fmt.width *
vsca              224 drivers/media/platform/vimc/vimc-scaler.c 				      sca_mult * vsca->bpp;
vsca              227 drivers/media/platform/vimc/vimc-scaler.c 		frame_size = vsca->src_line_size * vsca->sink_fmt.height *
vsca              233 drivers/media/platform/vimc/vimc-scaler.c 		vsca->src_frame = vmalloc(frame_size);
vsca              234 drivers/media/platform/vimc/vimc-scaler.c 		if (!vsca->src_frame)
vsca              238 drivers/media/platform/vimc/vimc-scaler.c 		if (!vsca->src_frame)
vsca              241 drivers/media/platform/vimc/vimc-scaler.c 		vfree(vsca->src_frame);
vsca              242 drivers/media/platform/vimc/vimc-scaler.c 		vsca->src_frame = NULL;
vsca              268 drivers/media/platform/vimc/vimc-scaler.c static void vimc_sca_scale_pix(const struct vimc_sca_device *const vsca,
vsca              277 drivers/media/platform/vimc/vimc-scaler.c 				 vsca->sink_fmt.width,
vsca              278 drivers/media/platform/vimc/vimc-scaler.c 				 vsca->bpp);
vsca              281 drivers/media/platform/vimc/vimc-scaler.c 	dev_dbg(vsca->dev,
vsca              283 drivers/media/platform/vimc/vimc-scaler.c 		vsca->sd.name, lin, col, index);
vsca              289 drivers/media/platform/vimc/vimc-scaler.c 				 vsca->sink_fmt.width * sca_mult, vsca->bpp);
vsca              291 drivers/media/platform/vimc/vimc-scaler.c 	dev_dbg(vsca->dev, "sca: %s: scale_pix src pos %dx%d, index %d\n",
vsca              292 drivers/media/platform/vimc/vimc-scaler.c 		vsca->sd.name, lin * sca_mult, col * sca_mult, index);
vsca              299 drivers/media/platform/vimc/vimc-scaler.c 		for (j = 0; j < sca_mult * vsca->bpp; j += vsca->bpp) {
vsca              300 drivers/media/platform/vimc/vimc-scaler.c 			dev_dbg(vsca->dev,
vsca              302 drivers/media/platform/vimc/vimc-scaler.c 				vsca->sd.name, index + j);
vsca              305 drivers/media/platform/vimc/vimc-scaler.c 			vimc_sca_fill_pix(&vsca->src_frame[index + j],
vsca              306 drivers/media/platform/vimc/vimc-scaler.c 					  pixel, vsca->bpp);
vsca              310 drivers/media/platform/vimc/vimc-scaler.c 		index += vsca->src_line_size;
vsca              314 drivers/media/platform/vimc/vimc-scaler.c static void vimc_sca_fill_src_frame(const struct vimc_sca_device *const vsca,
vsca              321 drivers/media/platform/vimc/vimc-scaler.c 	for (i = 0; i < vsca->sink_fmt.height; i++)
vsca              322 drivers/media/platform/vimc/vimc-scaler.c 		for (j = 0; j < vsca->sink_fmt.width; j++)
vsca              323 drivers/media/platform/vimc/vimc-scaler.c 			vimc_sca_scale_pix(vsca, i, j, sink_frame);
vsca              329 drivers/media/platform/vimc/vimc-scaler.c 	struct vimc_sca_device *vsca = container_of(ved, struct vimc_sca_device,
vsca              333 drivers/media/platform/vimc/vimc-scaler.c 	if (!vsca->src_frame)
vsca              336 drivers/media/platform/vimc/vimc-scaler.c 	vimc_sca_fill_src_frame(vsca, sink_frame);
vsca              338 drivers/media/platform/vimc/vimc-scaler.c 	return vsca->src_frame;
vsca              343 drivers/media/platform/vimc/vimc-scaler.c 	struct vimc_sca_device *vsca =
vsca              346 drivers/media/platform/vimc/vimc-scaler.c 	vimc_pads_cleanup(vsca->ved.pads);
vsca              347 drivers/media/platform/vimc/vimc-scaler.c 	kfree(vsca);
vsca              358 drivers/media/platform/vimc/vimc-scaler.c 	struct vimc_sca_device *vsca = container_of(ved, struct vimc_sca_device,
vsca              361 drivers/media/platform/vimc/vimc-scaler.c 	vimc_ent_sd_unregister(ved, &vsca->sd);
vsca              370 drivers/media/platform/vimc/vimc-scaler.c 	struct vimc_sca_device *vsca;
vsca              374 drivers/media/platform/vimc/vimc-scaler.c 	vsca = kzalloc(sizeof(*vsca), GFP_KERNEL);
vsca              375 drivers/media/platform/vimc/vimc-scaler.c 	if (!vsca)
vsca              379 drivers/media/platform/vimc/vimc-scaler.c 	ret = vimc_ent_sd_register(&vsca->ved, &vsca->sd, v4l2_dev,
vsca              386 drivers/media/platform/vimc/vimc-scaler.c 		kfree(vsca);
vsca              390 drivers/media/platform/vimc/vimc-scaler.c 	vsca->ved.process_frame = vimc_sca_process_frame;
vsca              391 drivers/media/platform/vimc/vimc-scaler.c 	dev_set_drvdata(comp, &vsca->ved);
vsca              392 drivers/media/platform/vimc/vimc-scaler.c 	vsca->dev = comp;
vsca              395 drivers/media/platform/vimc/vimc-scaler.c 	vsca->sink_fmt = sink_fmt_default;