Lines Matching defs:dev
328 * @dev: driver device
344 struct device *dev;
840 dev_dbg(hqvdp->dev, "%s Posted command:0x%x\n",
858 hqvdp->hqvdp_cmd = dma_alloc_wc(hqvdp->dev, size,
917 if (request_firmware(&firmware, HQVDP_FMW_NAME, hqvdp->dev)) {
1232 dev_dbg(hqvdp->dev, "%s Posted command:0x%x\n",
1277 hqvdp_debugfs_init(hqvdp, drm_plane->dev->primary);
1293 struct device *dev, int desc)
1295 struct sti_hqvdp *hqvdp = dev_get_drvdata(dev);
1320 static int sti_hqvdp_bind(struct device *dev, struct device *master, void *data)
1322 struct sti_hqvdp *hqvdp = dev_get_drvdata(dev);
1331 plane = sti_hqvdp_create(drm_dev, hqvdp->dev, STI_HQVDP_0);
1338 static void sti_hqvdp_unbind(struct device *dev,
1351 struct device *dev = &pdev->dev;
1358 hqvdp = devm_kzalloc(dev, sizeof(*hqvdp), GFP_KERNEL);
1364 hqvdp->dev = dev;
1372 hqvdp->regs = devm_ioremap(dev, res->start, resource_size(res));
1379 hqvdp->clk = devm_clk_get(dev, "hqvdp");
1380 hqvdp->clk_pix_main = devm_clk_get(dev, "pix_main");
1387 hqvdp->reset = devm_reset_control_get(dev, "hqvdp");
1391 vtg_np = of_parse_phandle(pdev->dev.of_node, "st,vtg", 0);
1398 return component_add(&pdev->dev, &sti_hqvdp_ops);
1403 component_del(&pdev->dev, &sti_hqvdp_ops);