Lines Matching refs:mem
18 struct resource *mem; member
32 priv->mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); in mcb_lpc_probe()
33 if (!priv->mem) { in mcb_lpc_probe()
38 res = devm_request_mem_region(&pdev->dev, priv->mem->start, in mcb_lpc_probe()
39 resource_size(priv->mem), in mcb_lpc_probe()
46 priv->base = devm_ioremap(&pdev->dev, priv->mem->start, in mcb_lpc_probe()
47 resource_size(priv->mem)); in mcb_lpc_probe()
59 ret = chameleon_parse_cells(priv->bus, priv->mem->start, priv->base); in mcb_lpc_probe()
69 devm_release_mem_region(&pdev->dev, priv->mem->start, resource_size(priv->mem)); in mcb_lpc_probe()
72 res = devm_request_mem_region(&pdev->dev, priv->mem->start, in mcb_lpc_probe()
81 priv->base = devm_ioremap(&pdev->dev, priv->mem->start, table_size); in mcb_lpc_probe()