Lines Matching refs:pdev
491 static int ramoops_parse_dt_size(struct platform_device *pdev, in ramoops_parse_dt_size() argument
497 ret = of_property_read_u32(pdev->dev.of_node, propname, &val32); in ramoops_parse_dt_size()
499 dev_err(&pdev->dev, "failed to parse property %s: %d\n", in ramoops_parse_dt_size()
505 dev_err(&pdev->dev, "%s %u > INT_MAX\n", propname, val32); in ramoops_parse_dt_size()
513 static int ramoops_parse_dt(struct platform_device *pdev, in ramoops_parse_dt() argument
516 struct device_node *of_node = pdev->dev.of_node; in ramoops_parse_dt()
521 dev_dbg(&pdev->dev, "using Device Tree\n"); in ramoops_parse_dt()
523 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in ramoops_parse_dt()
525 dev_err(&pdev->dev, in ramoops_parse_dt()
536 ret = ramoops_parse_dt_size(pdev, name, &value); \ in ramoops_parse_dt()
559 static int ramoops_probe(struct platform_device *pdev) in ramoops_probe() argument
561 struct device *dev = &pdev->dev; in ramoops_probe()
569 pdata = devm_kzalloc(&pdev->dev, sizeof(*pdata), GFP_KERNEL); in ramoops_probe()
575 err = ramoops_parse_dt(pdev, pdata); in ramoops_probe()
699 static int ramoops_remove(struct platform_device *pdev) in ramoops_remove() argument