fmd               468 drivers/crypto/bcm/spu2.c static void spu2_dump_fmd(struct SPU2_FMD *fmd)
fmd               470 drivers/crypto/bcm/spu2.c 	spu2_dump_fmd_ctrl0(le64_to_cpu(fmd->ctrl0));
fmd               471 drivers/crypto/bcm/spu2.c 	spu2_dump_fmd_ctrl1(le64_to_cpu(fmd->ctrl1));
fmd               472 drivers/crypto/bcm/spu2.c 	spu2_dump_fmd_ctrl2(le64_to_cpu(fmd->ctrl2));
fmd               473 drivers/crypto/bcm/spu2.c 	spu2_dump_fmd_ctrl3(le64_to_cpu(fmd->ctrl3));
fmd               510 drivers/crypto/bcm/spu2.c 	struct SPU2_FMD *fmd = (struct SPU2_FMD *)buf;
fmd               522 drivers/crypto/bcm/spu2.c 	spu2_dump_fmd(fmd);
fmd               523 drivers/crypto/bcm/spu2.c 	omd = (u8 *)(fmd + 1);
fmd               525 drivers/crypto/bcm/spu2.c 	ctrl1 = le64_to_cpu(fmd->ctrl1);
fmd               553 drivers/crypto/bcm/spu2.c static int spu2_fmd_init(struct SPU2_FMD *fmd,
fmd               588 drivers/crypto/bcm/spu2.c 	fmd->ctrl0 = cpu_to_le64(ctrl0);
fmd               589 drivers/crypto/bcm/spu2.c 	fmd->ctrl1 = cpu_to_le64(ctrl1);
fmd               590 drivers/crypto/bcm/spu2.c 	fmd->ctrl2 = cpu_to_le64(ctrl2);
fmd               591 drivers/crypto/bcm/spu2.c 	fmd->ctrl3 = cpu_to_le64(ctrl3);
fmd               608 drivers/crypto/bcm/spu2.c static void spu2_fmd_ctrl0_write(struct SPU2_FMD *fmd,
fmd               636 drivers/crypto/bcm/spu2.c 	fmd->ctrl0 = cpu_to_le64(ctrl0);
fmd               659 drivers/crypto/bcm/spu2.c static void spu2_fmd_ctrl1_write(struct SPU2_FMD *fmd, bool is_inbound,
fmd               716 drivers/crypto/bcm/spu2.c 	fmd->ctrl1 = cpu_to_le64(ctrl1);
fmd               730 drivers/crypto/bcm/spu2.c static void spu2_fmd_ctrl2_write(struct SPU2_FMD *fmd, u64 cipher_offset,
fmd               750 drivers/crypto/bcm/spu2.c 	fmd->ctrl2 = cpu_to_le64(ctrl2);
fmd               758 drivers/crypto/bcm/spu2.c static void spu2_fmd_ctrl3_write(struct SPU2_FMD *fmd, u64 payload_len)
fmd               764 drivers/crypto/bcm/spu2.c 	fmd->ctrl3 = cpu_to_le64(ctrl3);
fmd               804 drivers/crypto/bcm/spu2.c 	struct SPU2_FMD *fmd = (struct SPU2_FMD *)spu_hdr;
fmd               808 drivers/crypto/bcm/spu2.c 	ctrl3 = le64_to_cpu(fmd->ctrl3);
fmd               946 drivers/crypto/bcm/spu2.c 	struct SPU2_FMD *fmd;
fmd              1065 drivers/crypto/bcm/spu2.c 	fmd = (struct SPU2_FMD *)spu_hdr;
fmd              1067 drivers/crypto/bcm/spu2.c 	spu2_fmd_ctrl0_write(fmd, req_opts->is_inbound, req_opts->auth_first,
fmd              1071 drivers/crypto/bcm/spu2.c 	spu2_fmd_ctrl1_write(fmd, req_opts->is_inbound, assoc_size,
fmd              1079 drivers/crypto/bcm/spu2.c 	spu2_fmd_ctrl2_write(fmd, cipher_offset, hash_parms->key_len, 0,
fmd              1082 drivers/crypto/bcm/spu2.c 	spu2_fmd_ctrl3_write(fmd, payload_len);
fmd              1084 drivers/crypto/bcm/spu2.c 	ptr = (u8 *)(fmd + 1);
fmd              1125 drivers/crypto/bcm/spu2.c 	struct SPU2_FMD *fmd;
fmd              1149 drivers/crypto/bcm/spu2.c 	fmd = (struct SPU2_FMD *)spu_hdr;
fmd              1150 drivers/crypto/bcm/spu2.c 	err = spu2_fmd_init(fmd, spu2_type, spu2_mode, cipher_parms->key_len,
fmd              1156 drivers/crypto/bcm/spu2.c 	omd = (u8 *)(fmd + 1);
fmd              1190 drivers/crypto/bcm/spu2.c 	struct SPU2_FMD *fmd;
fmd              1208 drivers/crypto/bcm/spu2.c 	fmd = (struct SPU2_FMD *)spu_hdr;
fmd              1209 drivers/crypto/bcm/spu2.c 	omd = (u8 *)(fmd + 1);
fmd              1215 drivers/crypto/bcm/spu2.c 	ctrl0 = le64_to_cpu(fmd->ctrl0);
fmd              1220 drivers/crypto/bcm/spu2.c 	fmd->ctrl0 = cpu_to_le64(ctrl0);
fmd              1228 drivers/crypto/bcm/spu2.c 	ctrl3 = le64_to_cpu(fmd->ctrl3);
fmd              1231 drivers/crypto/bcm/spu2.c 	fmd->ctrl3 = cpu_to_le64(ctrl3);
fmd               314 drivers/gpu/drm/sti/sti_hqvdp.c 	struct sti_hqvdp_fmd fmd;
fmd              1445 drivers/media/platform/exynos4-is/fimc-capture.c 	struct fimc_md *fmd;
fmd              1453 drivers/media/platform/exynos4-is/fimc-capture.c 	fmd = entity_to_fimc_mdev(&sd->entity);
fmd              1455 drivers/media/platform/exynos4-is/fimc-capture.c 	spin_lock_irqsave(&fmd->slock, flags);
fmd              1473 drivers/media/platform/exynos4-is/fimc-capture.c 	spin_unlock_irqrestore(&fmd->slock, flags);
fmd                39 drivers/media/platform/exynos4-is/media-dev.c static void __setup_sensor_notification(struct fimc_md *fmd,
fmd                48 drivers/media/platform/exynos4-is/media-dev.c 	if (!src_inf || WARN_ON(fmd == NULL))
fmd                52 drivers/media/platform/exynos4-is/media-dev.c 	spin_lock_irqsave(&fmd->slock, flags);
fmd                54 drivers/media/platform/exynos4-is/media-dev.c 	spin_unlock_irqrestore(&fmd->slock, flags);
fmd                67 drivers/media/platform/exynos4-is/media-dev.c 	struct fimc_md *fmd = entity_to_fimc_mdev(me);
fmd               120 drivers/media/platform/exynos4-is/media-dev.c 		__setup_sensor_notification(fmd, sensor, p->subdevs[IDX_FIMC]);
fmd               194 drivers/media/platform/exynos4-is/media-dev.c 				  struct fimc_md *fmd)
fmd               200 drivers/media/platform/exynos4-is/media-dev.c 	if (!IS_ERR(fmd->wbclk[CLK_IDX_WB_B]) && p->subdevs[IDX_IS_ISP]) {
fmd               201 drivers/media/platform/exynos4-is/media-dev.c 		ret = clk_prepare_enable(fmd->wbclk[CLK_IDX_WB_B]);
fmd               210 drivers/media/platform/exynos4-is/media-dev.c 	if (!IS_ERR(fmd->wbclk[CLK_IDX_WB_B]) && p->subdevs[IDX_IS_ISP])
fmd               211 drivers/media/platform/exynos4-is/media-dev.c 		clk_disable_unprepare(fmd->wbclk[CLK_IDX_WB_B]);
fmd               228 drivers/media/platform/exynos4-is/media-dev.c 	struct fimc_md *fmd = entity_to_fimc_mdev(me);
fmd               248 drivers/media/platform/exynos4-is/media-dev.c 	return __fimc_pipeline_enable(ep, fmd);
fmd               261 drivers/media/platform/exynos4-is/media-dev.c 	struct fimc_md *fmd;
fmd               271 drivers/media/platform/exynos4-is/media-dev.c 	fmd = entity_to_fimc_mdev(&sd->entity);
fmd               274 drivers/media/platform/exynos4-is/media-dev.c 	if (!IS_ERR(fmd->wbclk[CLK_IDX_WB_B]) && p->subdevs[IDX_IS_ISP])
fmd               275 drivers/media/platform/exynos4-is/media-dev.c 		clk_disable_unprepare(fmd->wbclk[CLK_IDX_WB_B]);
fmd               292 drivers/media/platform/exynos4-is/media-dev.c 	struct fimc_md *fmd = entity_to_fimc_mdev(&p->subdevs[IDX_CSIS]->entity);
fmd               297 drivers/media/platform/exynos4-is/media-dev.c 		if (!fmd->user_subdev_api) {
fmd               324 drivers/media/platform/exynos4-is/media-dev.c 		ret = __fimc_pipeline_enable(ep, fmd);
fmd               357 drivers/media/platform/exynos4-is/media-dev.c 						struct fimc_md *fmd)
fmd               365 drivers/media/platform/exynos4-is/media-dev.c 	list_add_tail(&p->list, &fmd->pipelines);
fmd               371 drivers/media/platform/exynos4-is/media-dev.c static void fimc_md_pipelines_free(struct fimc_md *fmd)
fmd               373 drivers/media/platform/exynos4-is/media-dev.c 	while (!list_empty(&fmd->pipelines)) {
fmd               376 drivers/media/platform/exynos4-is/media-dev.c 		p = list_entry(fmd->pipelines.next, typeof(*p), list);
fmd               383 drivers/media/platform/exynos4-is/media-dev.c static int fimc_md_parse_port_node(struct fimc_md *fmd,
fmd               387 drivers/media/platform/exynos4-is/media-dev.c 	struct fimc_source_info *pd = &fmd->sensor[index].pdata;
fmd               413 drivers/media/platform/exynos4-is/media-dev.c 		v4l2_info(&fmd->v4l2_dev, "Remote device at %pOF not found\n",
fmd               431 drivers/media/platform/exynos4-is/media-dev.c 		v4l2_err(&fmd->v4l2_dev, "Wrong port id (%u) at node %pOF\n",
fmd               450 drivers/media/platform/exynos4-is/media-dev.c 	if (WARN_ON(index >= ARRAY_SIZE(fmd->sensor))) {
fmd               455 drivers/media/platform/exynos4-is/media-dev.c 	fmd->sensor[index].asd.match_type = V4L2_ASYNC_MATCH_FWNODE;
fmd               456 drivers/media/platform/exynos4-is/media-dev.c 	fmd->sensor[index].asd.match.fwnode = of_fwnode_handle(rem);
fmd               458 drivers/media/platform/exynos4-is/media-dev.c 	ret = v4l2_async_notifier_add_subdev(&fmd->subdev_notifier,
fmd               459 drivers/media/platform/exynos4-is/media-dev.c 					     &fmd->sensor[index].asd);
fmd               465 drivers/media/platform/exynos4-is/media-dev.c 	fmd->num_sensors++;
fmd               471 drivers/media/platform/exynos4-is/media-dev.c static int fimc_md_register_sensor_entities(struct fimc_md *fmd)
fmd               473 drivers/media/platform/exynos4-is/media-dev.c 	struct device_node *parent = fmd->pdev->dev.of_node;
fmd               483 drivers/media/platform/exynos4-is/media-dev.c 	if (!fmd->pmf)
fmd               486 drivers/media/platform/exynos4-is/media-dev.c 	ret = pm_runtime_get_sync(fmd->pmf);
fmd               490 drivers/media/platform/exynos4-is/media-dev.c 	fmd->num_sensors = 0;
fmd               503 drivers/media/platform/exynos4-is/media-dev.c 		ret = fimc_md_parse_port_node(fmd, port, index);
fmd               518 drivers/media/platform/exynos4-is/media-dev.c 		ret = fimc_md_parse_port_node(fmd, node, index);
fmd               528 drivers/media/platform/exynos4-is/media-dev.c 	pm_runtime_put(fmd->pmf);
fmd               533 drivers/media/platform/exynos4-is/media-dev.c 	v4l2_async_notifier_cleanup(&fmd->subdev_notifier);
fmd               534 drivers/media/platform/exynos4-is/media-dev.c 	pm_runtime_put(fmd->pmf);
fmd               553 drivers/media/platform/exynos4-is/media-dev.c static int register_fimc_lite_entity(struct fimc_md *fmd,
fmd               561 drivers/media/platform/exynos4-is/media-dev.c 		    fmd->fimc_lite[fimc_lite->index]))
fmd               567 drivers/media/platform/exynos4-is/media-dev.c 	ep = fimc_md_pipeline_create(fmd);
fmd               573 drivers/media/platform/exynos4-is/media-dev.c 	ret = v4l2_device_register_subdev(&fmd->v4l2_dev, sd);
fmd               575 drivers/media/platform/exynos4-is/media-dev.c 		fmd->fimc_lite[fimc_lite->index] = fimc_lite;
fmd               577 drivers/media/platform/exynos4-is/media-dev.c 		v4l2_err(&fmd->v4l2_dev, "Failed to register FIMC.LITE%d\n",
fmd               582 drivers/media/platform/exynos4-is/media-dev.c static int register_fimc_entity(struct fimc_md *fmd, struct fimc_dev *fimc)
fmd               588 drivers/media/platform/exynos4-is/media-dev.c 	if (WARN_ON(fimc->id >= FIMC_MAX_DEVS || fmd->fimc[fimc->id]))
fmd               594 drivers/media/platform/exynos4-is/media-dev.c 	ep = fimc_md_pipeline_create(fmd);
fmd               600 drivers/media/platform/exynos4-is/media-dev.c 	ret = v4l2_device_register_subdev(&fmd->v4l2_dev, sd);
fmd               602 drivers/media/platform/exynos4-is/media-dev.c 		if (!fmd->pmf && fimc->pdev)
fmd               603 drivers/media/platform/exynos4-is/media-dev.c 			fmd->pmf = &fimc->pdev->dev;
fmd               604 drivers/media/platform/exynos4-is/media-dev.c 		fmd->fimc[fimc->id] = fimc;
fmd               605 drivers/media/platform/exynos4-is/media-dev.c 		fimc->vid_cap.user_subdev_api = fmd->user_subdev_api;
fmd               607 drivers/media/platform/exynos4-is/media-dev.c 		v4l2_err(&fmd->v4l2_dev, "Failed to register FIMC.%d (%d)\n",
fmd               613 drivers/media/platform/exynos4-is/media-dev.c static int register_csis_entity(struct fimc_md *fmd,
fmd               625 drivers/media/platform/exynos4-is/media-dev.c 	if (WARN_ON(fmd->csis[id].sd))
fmd               629 drivers/media/platform/exynos4-is/media-dev.c 	ret = v4l2_device_register_subdev(&fmd->v4l2_dev, sd);
fmd               631 drivers/media/platform/exynos4-is/media-dev.c 		fmd->csis[id].sd = sd;
fmd               633 drivers/media/platform/exynos4-is/media-dev.c 		v4l2_err(&fmd->v4l2_dev,
fmd               638 drivers/media/platform/exynos4-is/media-dev.c static int register_fimc_is_entity(struct fimc_md *fmd, struct fimc_is *is)
fmd               645 drivers/media/platform/exynos4-is/media-dev.c 	ep = fimc_md_pipeline_create(fmd);
fmd               651 drivers/media/platform/exynos4-is/media-dev.c 	ret = v4l2_device_register_subdev(&fmd->v4l2_dev, sd);
fmd               653 drivers/media/platform/exynos4-is/media-dev.c 		v4l2_err(&fmd->v4l2_dev,
fmd               658 drivers/media/platform/exynos4-is/media-dev.c 	fmd->fimc_is = is;
fmd               662 drivers/media/platform/exynos4-is/media-dev.c static int fimc_md_register_platform_entity(struct fimc_md *fmd,
fmd               681 drivers/media/platform/exynos4-is/media-dev.c 			ret = register_fimc_entity(fmd, drvdata);
fmd               684 drivers/media/platform/exynos4-is/media-dev.c 			ret = register_fimc_lite_entity(fmd, drvdata);
fmd               687 drivers/media/platform/exynos4-is/media-dev.c 			ret = register_csis_entity(fmd, pdev, drvdata);
fmd               690 drivers/media/platform/exynos4-is/media-dev.c 			ret = register_fimc_is_entity(fmd, drvdata);
fmd               701 drivers/media/platform/exynos4-is/media-dev.c 		dev_info(&fmd->pdev->dev, "deferring %s device registration\n",
fmd               704 drivers/media/platform/exynos4-is/media-dev.c 		dev_err(&fmd->pdev->dev, "%s device registration failed (%d)\n",
fmd               710 drivers/media/platform/exynos4-is/media-dev.c static int fimc_md_register_platform_entities(struct fimc_md *fmd,
fmd               736 drivers/media/platform/exynos4-is/media-dev.c 			ret = fimc_md_register_platform_entity(fmd, pdev,
fmd               748 drivers/media/platform/exynos4-is/media-dev.c static void fimc_md_unregister_entities(struct fimc_md *fmd)
fmd               753 drivers/media/platform/exynos4-is/media-dev.c 		struct fimc_dev *dev = fmd->fimc[i];
fmd               758 drivers/media/platform/exynos4-is/media-dev.c 		fmd->fimc[i] = NULL;
fmd               761 drivers/media/platform/exynos4-is/media-dev.c 		struct fimc_lite *dev = fmd->fimc_lite[i];
fmd               766 drivers/media/platform/exynos4-is/media-dev.c 		fmd->fimc_lite[i] = NULL;
fmd               769 drivers/media/platform/exynos4-is/media-dev.c 		if (fmd->csis[i].sd == NULL)
fmd               771 drivers/media/platform/exynos4-is/media-dev.c 		v4l2_device_unregister_subdev(fmd->csis[i].sd);
fmd               772 drivers/media/platform/exynos4-is/media-dev.c 		fmd->csis[i].sd = NULL;
fmd               775 drivers/media/platform/exynos4-is/media-dev.c 	if (fmd->fimc_is)
fmd               776 drivers/media/platform/exynos4-is/media-dev.c 		v4l2_device_unregister_subdev(&fmd->fimc_is->isp.subdev);
fmd               778 drivers/media/platform/exynos4-is/media-dev.c 	v4l2_info(&fmd->v4l2_dev, "Unregistered all entities\n");
fmd               789 drivers/media/platform/exynos4-is/media-dev.c static int __fimc_md_create_fimc_sink_links(struct fimc_md *fmd,
fmd               807 drivers/media/platform/exynos4-is/media-dev.c 		if (!fmd->fimc[i])
fmd               813 drivers/media/platform/exynos4-is/media-dev.c 		if (!fmd->fimc[i]->variant->has_cam_if)
fmd               818 drivers/media/platform/exynos4-is/media-dev.c 		sink = &fmd->fimc[i]->vid_cap.subdev.entity;
fmd               830 drivers/media/platform/exynos4-is/media-dev.c 		v4l2_info(&fmd->v4l2_dev, "created link [%s] %c> [%s]\n",
fmd               835 drivers/media/platform/exynos4-is/media-dev.c 		if (!fmd->fimc_lite[i])
fmd               838 drivers/media/platform/exynos4-is/media-dev.c 		sink = &fmd->fimc_lite[i]->subdev.entity;
fmd               850 drivers/media/platform/exynos4-is/media-dev.c 		v4l2_info(&fmd->v4l2_dev, "created link [%s] -> [%s]\n",
fmd               857 drivers/media/platform/exynos4-is/media-dev.c static int __fimc_md_create_flite_source_links(struct fimc_md *fmd)
fmd               863 drivers/media/platform/exynos4-is/media-dev.c 		struct fimc_lite *fimc = fmd->fimc_lite[i];
fmd               876 drivers/media/platform/exynos4-is/media-dev.c 		sink = &fmd->fimc_is->isp.subdev.entity;
fmd               887 drivers/media/platform/exynos4-is/media-dev.c static int __fimc_md_create_fimc_is_links(struct fimc_md *fmd)
fmd               889 drivers/media/platform/exynos4-is/media-dev.c 	struct fimc_isp *isp = &fmd->fimc_is->isp;
fmd               896 drivers/media/platform/exynos4-is/media-dev.c 		if (fmd->fimc[i] == NULL)
fmd               900 drivers/media/platform/exynos4-is/media-dev.c 		sink = &fmd->fimc[i]->vid_cap.subdev.entity;
fmd               931 drivers/media/platform/exynos4-is/media-dev.c static int fimc_md_create_links(struct fimc_md *fmd)
fmd               940 drivers/media/platform/exynos4-is/media-dev.c 	for (i = 0; i < fmd->num_sensors; i++) {
fmd               941 drivers/media/platform/exynos4-is/media-dev.c 		if (fmd->sensor[i].subdev == NULL)
fmd               944 drivers/media/platform/exynos4-is/media-dev.c 		sensor = fmd->sensor[i].subdev;
fmd               957 drivers/media/platform/exynos4-is/media-dev.c 			csis = fmd->csis[pdata->mux_id].sd;
fmd               970 drivers/media/platform/exynos4-is/media-dev.c 			v4l2_info(&fmd->v4l2_dev, "created link [%s] => [%s]\n",
fmd               983 drivers/media/platform/exynos4-is/media-dev.c 			v4l2_err(&fmd->v4l2_dev, "Wrong bus_type: %x\n",
fmd               991 drivers/media/platform/exynos4-is/media-dev.c 		ret = __fimc_md_create_fimc_sink_links(fmd, source, sensor,
fmd               996 drivers/media/platform/exynos4-is/media-dev.c 		if (fmd->csis[i].sd == NULL)
fmd               999 drivers/media/platform/exynos4-is/media-dev.c 		source = &fmd->csis[i].sd->entity;
fmd              1004 drivers/media/platform/exynos4-is/media-dev.c 		ret = __fimc_md_create_fimc_sink_links(fmd, source, sensor,
fmd              1011 drivers/media/platform/exynos4-is/media-dev.c 		if (!fmd->fimc[i])
fmd              1014 drivers/media/platform/exynos4-is/media-dev.c 		source = &fmd->fimc[i]->vid_cap.subdev.entity;
fmd              1015 drivers/media/platform/exynos4-is/media-dev.c 		sink = &fmd->fimc[i]->vid_cap.ve.vdev.entity;
fmd              1023 drivers/media/platform/exynos4-is/media-dev.c 	ret = __fimc_md_create_flite_source_links(fmd);
fmd              1027 drivers/media/platform/exynos4-is/media-dev.c 	if (fmd->use_isp)
fmd              1028 drivers/media/platform/exynos4-is/media-dev.c 		ret = __fimc_md_create_fimc_is_links(fmd);
fmd              1036 drivers/media/platform/exynos4-is/media-dev.c static void fimc_md_put_clocks(struct fimc_md *fmd)
fmd              1041 drivers/media/platform/exynos4-is/media-dev.c 		if (IS_ERR(fmd->camclk[i].clock))
fmd              1043 drivers/media/platform/exynos4-is/media-dev.c 		clk_put(fmd->camclk[i].clock);
fmd              1044 drivers/media/platform/exynos4-is/media-dev.c 		fmd->camclk[i].clock = ERR_PTR(-EINVAL);
fmd              1049 drivers/media/platform/exynos4-is/media-dev.c 		if (IS_ERR(fmd->wbclk[i]))
fmd              1051 drivers/media/platform/exynos4-is/media-dev.c 		clk_put(fmd->wbclk[i]);
fmd              1052 drivers/media/platform/exynos4-is/media-dev.c 		fmd->wbclk[i] = ERR_PTR(-EINVAL);
fmd              1056 drivers/media/platform/exynos4-is/media-dev.c static int fimc_md_get_clocks(struct fimc_md *fmd)
fmd              1058 drivers/media/platform/exynos4-is/media-dev.c 	struct device *dev = &fmd->pdev->dev;
fmd              1064 drivers/media/platform/exynos4-is/media-dev.c 		fmd->camclk[i].clock = ERR_PTR(-EINVAL);
fmd              1075 drivers/media/platform/exynos4-is/media-dev.c 		fmd->camclk[i].clock = clock;
fmd              1078 drivers/media/platform/exynos4-is/media-dev.c 		fimc_md_put_clocks(fmd);
fmd              1080 drivers/media/platform/exynos4-is/media-dev.c 	if (!fmd->use_isp)
fmd              1086 drivers/media/platform/exynos4-is/media-dev.c 	fmd->wbclk[CLK_IDX_WB_A] = ERR_PTR(-EINVAL);
fmd              1092 drivers/media/platform/exynos4-is/media-dev.c 			v4l2_err(&fmd->v4l2_dev, "Failed to get clock: %s\n",
fmd              1097 drivers/media/platform/exynos4-is/media-dev.c 		fmd->wbclk[i] = clock;
fmd              1100 drivers/media/platform/exynos4-is/media-dev.c 		fimc_md_put_clocks(fmd);
fmd              1217 drivers/media/platform/exynos4-is/media-dev.c 	struct fimc_md *fmd = dev_get_drvdata(dev);
fmd              1219 drivers/media/platform/exynos4-is/media-dev.c 	if (fmd->user_subdev_api)
fmd              1229 drivers/media/platform/exynos4-is/media-dev.c 	struct fimc_md *fmd = dev_get_drvdata(dev);
fmd              1240 drivers/media/platform/exynos4-is/media-dev.c 	fmd->user_subdev_api = subdev_api;
fmd              1242 drivers/media/platform/exynos4-is/media-dev.c 		if (fmd->fimc[i])
fmd              1243 drivers/media/platform/exynos4-is/media-dev.c 			fmd->fimc[i]->vid_cap.user_subdev_api = subdev_api;
fmd              1257 drivers/media/platform/exynos4-is/media-dev.c static int fimc_md_get_pinctrl(struct fimc_md *fmd)
fmd              1259 drivers/media/platform/exynos4-is/media-dev.c 	struct device *dev = &fmd->pdev->dev;
fmd              1260 drivers/media/platform/exynos4-is/media-dev.c 	struct fimc_pinctrl *pctl = &fmd->pinctl;
fmd              1281 drivers/media/platform/exynos4-is/media-dev.c 	if (camclk->fmd->pmf == NULL)
fmd              1284 drivers/media/platform/exynos4-is/media-dev.c 	ret = pm_runtime_get_sync(camclk->fmd->pmf);
fmd              1292 drivers/media/platform/exynos4-is/media-dev.c 	if (camclk->fmd->pmf == NULL)
fmd              1295 drivers/media/platform/exynos4-is/media-dev.c 	pm_runtime_put_sync(camclk->fmd->pmf);
fmd              1303 drivers/media/platform/exynos4-is/media-dev.c static void fimc_md_unregister_clk_provider(struct fimc_md *fmd)
fmd              1305 drivers/media/platform/exynos4-is/media-dev.c 	struct cam_clk_provider *cp = &fmd->clk_provider;
fmd              1315 drivers/media/platform/exynos4-is/media-dev.c static int fimc_md_register_clk_provider(struct fimc_md *fmd)
fmd              1317 drivers/media/platform/exynos4-is/media-dev.c 	struct cam_clk_provider *cp = &fmd->clk_provider;
fmd              1318 drivers/media/platform/exynos4-is/media-dev.c 	struct device *dev = &fmd->pdev->dev;
fmd              1331 drivers/media/platform/exynos4-is/media-dev.c 		p_name = __clk_get_name(fmd->camclk[i].clock);
fmd              1339 drivers/media/platform/exynos4-is/media-dev.c 		camclk->fmd = fmd;
fmd              1364 drivers/media/platform/exynos4-is/media-dev.c 	fimc_md_unregister_clk_provider(fmd);
fmd              1372 drivers/media/platform/exynos4-is/media-dev.c 	struct fimc_md *fmd = notifier_to_fimc_md(notifier);
fmd              1377 drivers/media/platform/exynos4-is/media-dev.c 	for (i = 0; i < ARRAY_SIZE(fmd->sensor); i++)
fmd              1378 drivers/media/platform/exynos4-is/media-dev.c 		if (fmd->sensor[i].asd.match.fwnode ==
fmd              1380 drivers/media/platform/exynos4-is/media-dev.c 			si = &fmd->sensor[i];
fmd              1394 drivers/media/platform/exynos4-is/media-dev.c 	v4l2_info(&fmd->v4l2_dev, "Registered sensor subdevice: %s (%d)\n",
fmd              1395 drivers/media/platform/exynos4-is/media-dev.c 		  subdev->name, fmd->num_sensors);
fmd              1397 drivers/media/platform/exynos4-is/media-dev.c 	fmd->num_sensors++;
fmd              1404 drivers/media/platform/exynos4-is/media-dev.c 	struct fimc_md *fmd = notifier_to_fimc_md(notifier);
fmd              1407 drivers/media/platform/exynos4-is/media-dev.c 	mutex_lock(&fmd->media_dev.graph_mutex);
fmd              1409 drivers/media/platform/exynos4-is/media-dev.c 	ret = fimc_md_create_links(fmd);
fmd              1413 drivers/media/platform/exynos4-is/media-dev.c 	ret = v4l2_device_register_subdev_nodes(&fmd->v4l2_dev);
fmd              1415 drivers/media/platform/exynos4-is/media-dev.c 	mutex_unlock(&fmd->media_dev.graph_mutex);
fmd              1419 drivers/media/platform/exynos4-is/media-dev.c 	return media_device_register(&fmd->media_dev);
fmd              1431 drivers/media/platform/exynos4-is/media-dev.c 	struct fimc_md *fmd;
fmd              1434 drivers/media/platform/exynos4-is/media-dev.c 	fmd = devm_kzalloc(dev, sizeof(*fmd), GFP_KERNEL);
fmd              1435 drivers/media/platform/exynos4-is/media-dev.c 	if (!fmd)
fmd              1438 drivers/media/platform/exynos4-is/media-dev.c 	spin_lock_init(&fmd->slock);
fmd              1439 drivers/media/platform/exynos4-is/media-dev.c 	INIT_LIST_HEAD(&fmd->pipelines);
fmd              1440 drivers/media/platform/exynos4-is/media-dev.c 	fmd->pdev = pdev;
fmd              1442 drivers/media/platform/exynos4-is/media-dev.c 	strscpy(fmd->media_dev.model, "SAMSUNG S5P FIMC",
fmd              1443 drivers/media/platform/exynos4-is/media-dev.c 		sizeof(fmd->media_dev.model));
fmd              1444 drivers/media/platform/exynos4-is/media-dev.c 	fmd->media_dev.ops = &fimc_md_ops;
fmd              1445 drivers/media/platform/exynos4-is/media-dev.c 	fmd->media_dev.dev = dev;
fmd              1447 drivers/media/platform/exynos4-is/media-dev.c 	v4l2_dev = &fmd->v4l2_dev;
fmd              1448 drivers/media/platform/exynos4-is/media-dev.c 	v4l2_dev->mdev = &fmd->media_dev;
fmd              1452 drivers/media/platform/exynos4-is/media-dev.c 	fmd->use_isp = fimc_md_is_isp_available(dev->of_node);
fmd              1453 drivers/media/platform/exynos4-is/media-dev.c 	fmd->user_subdev_api = true;
fmd              1455 drivers/media/platform/exynos4-is/media-dev.c 	media_device_init(&fmd->media_dev);
fmd              1457 drivers/media/platform/exynos4-is/media-dev.c 	ret = v4l2_device_register(dev, &fmd->v4l2_dev);
fmd              1463 drivers/media/platform/exynos4-is/media-dev.c 	ret = fimc_md_get_clocks(fmd);
fmd              1467 drivers/media/platform/exynos4-is/media-dev.c 	ret = fimc_md_get_pinctrl(fmd);
fmd              1474 drivers/media/platform/exynos4-is/media-dev.c 	platform_set_drvdata(pdev, fmd);
fmd              1476 drivers/media/platform/exynos4-is/media-dev.c 	v4l2_async_notifier_init(&fmd->subdev_notifier);
fmd              1478 drivers/media/platform/exynos4-is/media-dev.c 	ret = fimc_md_register_platform_entities(fmd, dev->of_node);
fmd              1482 drivers/media/platform/exynos4-is/media-dev.c 	ret = fimc_md_register_sensor_entities(fmd);
fmd              1494 drivers/media/platform/exynos4-is/media-dev.c 	ret = fimc_md_register_clk_provider(fmd);
fmd              1500 drivers/media/platform/exynos4-is/media-dev.c 	if (fmd->num_sensors > 0) {
fmd              1501 drivers/media/platform/exynos4-is/media-dev.c 		fmd->subdev_notifier.ops = &subdev_notifier_ops;
fmd              1502 drivers/media/platform/exynos4-is/media-dev.c 		fmd->num_sensors = 0;
fmd              1504 drivers/media/platform/exynos4-is/media-dev.c 		ret = v4l2_async_notifier_register(&fmd->v4l2_dev,
fmd              1505 drivers/media/platform/exynos4-is/media-dev.c 						&fmd->subdev_notifier);
fmd              1513 drivers/media/platform/exynos4-is/media-dev.c 	fimc_md_unregister_clk_provider(fmd);
fmd              1517 drivers/media/platform/exynos4-is/media-dev.c 	v4l2_async_notifier_cleanup(&fmd->subdev_notifier);
fmd              1519 drivers/media/platform/exynos4-is/media-dev.c 	fimc_md_unregister_entities(fmd);
fmd              1521 drivers/media/platform/exynos4-is/media-dev.c 	fimc_md_put_clocks(fmd);
fmd              1523 drivers/media/platform/exynos4-is/media-dev.c 	v4l2_device_unregister(&fmd->v4l2_dev);
fmd              1525 drivers/media/platform/exynos4-is/media-dev.c 	media_device_cleanup(&fmd->media_dev);
fmd              1531 drivers/media/platform/exynos4-is/media-dev.c 	struct fimc_md *fmd = platform_get_drvdata(pdev);
fmd              1533 drivers/media/platform/exynos4-is/media-dev.c 	if (!fmd)
fmd              1536 drivers/media/platform/exynos4-is/media-dev.c 	fimc_md_unregister_clk_provider(fmd);
fmd              1537 drivers/media/platform/exynos4-is/media-dev.c 	v4l2_async_notifier_unregister(&fmd->subdev_notifier);
fmd              1538 drivers/media/platform/exynos4-is/media-dev.c 	v4l2_async_notifier_cleanup(&fmd->subdev_notifier);
fmd              1540 drivers/media/platform/exynos4-is/media-dev.c 	v4l2_device_unregister(&fmd->v4l2_dev);
fmd              1542 drivers/media/platform/exynos4-is/media-dev.c 	fimc_md_unregister_entities(fmd);
fmd              1543 drivers/media/platform/exynos4-is/media-dev.c 	fimc_md_pipelines_free(fmd);
fmd              1544 drivers/media/platform/exynos4-is/media-dev.c 	media_device_unregister(&fmd->media_dev);
fmd              1545 drivers/media/platform/exynos4-is/media-dev.c 	media_device_cleanup(&fmd->media_dev);
fmd              1546 drivers/media/platform/exynos4-is/media-dev.c 	fimc_md_put_clocks(fmd);
fmd                95 drivers/media/platform/exynos4-is/media-dev.h 	struct fimc_md *fmd;