Lines Matching refs:dev
351 static int ramoops_init_przs(struct device *dev, struct ramoops_context *cxt, in ramoops_init_przs() argument
361 dev_err(dev, "no room for dumps\n"); in ramoops_init_przs()
372 dev_err(dev, "failed to initialize a prz array for dumps\n"); in ramoops_init_przs()
383 dev_err(dev, "failed to request mem region (0x%zx@0x%llx): %d\n", in ramoops_init_przs()
396 static int ramoops_init_prz(struct device *dev, struct ramoops_context *cxt, in ramoops_init_prz() argument
404 dev_err(dev, "no room for mem region (0x%zx@0x%llx) in (0x%lx@0x%llx)\n", in ramoops_init_prz()
414 dev_err(dev, "failed to request mem region (0x%zx@0x%llx): %d\n", in ramoops_init_prz()
434 struct device *dev = &pdev->dev; in ramoops_probe() local
435 struct ramoops_platform_data *pdata = pdev->dev.platform_data; in ramoops_probe()
478 err = ramoops_init_przs(dev, cxt, &paddr, dump_mem_sz); in ramoops_probe()
482 err = ramoops_init_prz(dev, cxt, &cxt->cprz, &paddr, in ramoops_probe()
487 err = ramoops_init_prz(dev, cxt, &cxt->fprz, &paddr, cxt->ftrace_size, in ramoops_probe()
492 err = ramoops_init_prz(dev, cxt, &cxt->mprz, &paddr, cxt->pmsg_size, 0); in ramoops_probe()