Lines Matching refs:pdev

100 	struct platform_device *pdev;  member
183 dev_err(&ds1wm_data->pdev->dev, "reset failed, timed out\n"); in ds1wm_reset()
188 dev_dbg(&ds1wm_data->pdev->dev, "reset: no devices found\n"); in ds1wm_reset()
213 dev_err(&ds1wm_data->pdev->dev, "write failed, timed out\n"); in ds1wm_write()
236 dev_err(&ds1wm_data->pdev->dev, "read failed, timed out\n"); in ds1wm_read()
258 struct device *dev = &ds1wm_data->pdev->dev; in ds1wm_up()
262 ds1wm_data->cell->enable(ds1wm_data->pdev); in ds1wm_up()
289 ds1wm_data->cell->disable(ds1wm_data->pdev); in ds1wm_down()
329 dev_dbg(&ds1wm_data->pdev->dev, "search begin\n"); in ds1wm_search()
333 dev_dbg(&ds1wm_data->pdev->dev, in ds1wm_search()
341 dev_dbg(&ds1wm_data->pdev->dev, in ds1wm_search()
346 dev_dbg(&ds1wm_data->pdev->dev, in ds1wm_search()
349 dev_dbg(&ds1wm_data->pdev->dev, in ds1wm_search()
352 dev_dbg(&ds1wm_data->pdev->dev, in ds1wm_search()
373 dev_err(&ds1wm_data->pdev->dev, in ds1wm_search()
394 dev_err(&ds1wm_data->pdev->dev, in ds1wm_search()
398 dev_dbg(&ds1wm_data->pdev->dev, in ds1wm_search()
401 dev_dbg(&ds1wm_data->pdev->dev, in ds1wm_search()
404 dev_dbg(&ds1wm_data->pdev->dev, in ds1wm_search()
409 dev_err(&ds1wm_data->pdev->dev, in ds1wm_search()
415 dev_dbg(&ds1wm_data->pdev->dev, in ds1wm_search()
419 dev_dbg(&ds1wm_data->pdev->dev, in ds1wm_search()
428 dev_dbg(&ds1wm_data->pdev->dev, in ds1wm_search()
439 dev_dbg(&ds1wm_data->pdev->dev, in ds1wm_search()
453 static int ds1wm_probe(struct platform_device *pdev) in ds1wm_probe() argument
460 if (!pdev) in ds1wm_probe()
463 ds1wm_data = devm_kzalloc(&pdev->dev, sizeof(*ds1wm_data), GFP_KERNEL); in ds1wm_probe()
467 platform_set_drvdata(pdev, ds1wm_data); in ds1wm_probe()
469 res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in ds1wm_probe()
472 ds1wm_data->map = devm_ioremap(&pdev->dev, res->start, in ds1wm_probe()
480 ds1wm_data->pdev = pdev; in ds1wm_probe()
481 ds1wm_data->cell = mfd_get_cell(pdev); in ds1wm_probe()
484 plat = dev_get_platdata(&pdev->dev); in ds1wm_probe()
488 res = platform_get_resource(pdev, IORESOURCE_IRQ, 0); in ds1wm_probe()
500 ret = devm_request_irq(&pdev->dev, ds1wm_data->irq, ds1wm_isr, in ds1wm_probe()
522 static int ds1wm_suspend(struct platform_device *pdev, pm_message_t state) in ds1wm_suspend() argument
524 struct ds1wm_data *ds1wm_data = platform_get_drvdata(pdev); in ds1wm_suspend()
531 static int ds1wm_resume(struct platform_device *pdev) in ds1wm_resume() argument
533 struct ds1wm_data *ds1wm_data = platform_get_drvdata(pdev); in ds1wm_resume()
544 static int ds1wm_remove(struct platform_device *pdev) in ds1wm_remove() argument
546 struct ds1wm_data *ds1wm_data = platform_get_drvdata(pdev); in ds1wm_remove()