Lines Matching defs:host
17 #include <linux/mmc/host.h>
33 struct dw_mci *host;
36 host = devm_kzalloc(&pdev->dev, sizeof(struct dw_mci), GFP_KERNEL);
37 if (!host)
40 host->irq = platform_get_irq(pdev, 0);
41 if (host->irq < 0)
42 return host->irq;
44 host->drv_data = drv_data;
45 host->dev = &pdev->dev;
46 host->irq_flags = 0;
47 host->pdata = pdev->dev.platform_data;
49 host->regs = devm_platform_get_and_ioremap_resource(pdev, 0, ®s);
50 if (IS_ERR(host->regs))
51 return PTR_ERR(host->regs);
54 host->phy_regs = regs->start;
56 platform_set_drvdata(pdev, host);
57 return dw_mci_probe(host);
70 static int dw_mci_socfpga_priv_init(struct dw_mci *host)
72 struct device_node *np = host->dev->of_node;
83 dev_warn(host->dev, "clk-phase-sd-hs was specified, but failed to find altr,sys-mgr regmap!\n");
126 struct dw_mci *host = platform_get_drvdata(pdev);
128 dw_mci_remove(host);