Lines Matching refs:pdev

132 	struct platform_device *pdev =  (struct platform_device *) data;  in bfin_kpad_timer()  local
133 struct bf54x_kpad *bf54x_kpad = platform_get_drvdata(pdev); in bfin_kpad_timer()
153 struct platform_device *pdev = dev_id; in bfin_kpad_isr() local
154 struct bf54x_kpad *bf54x_kpad = platform_get_drvdata(pdev); in bfin_kpad_isr()
179 static int bfin_kpad_probe(struct platform_device *pdev) in bfin_kpad_probe() argument
182 struct bfin_kpad_platform_data *pdata = dev_get_platdata(&pdev->dev); in bfin_kpad_probe()
187 dev_err(&pdev->dev, "no rows, cols or keymap from pdata\n"); in bfin_kpad_probe()
193 dev_err(&pdev->dev, "invalid keymapsize\n"); in bfin_kpad_probe()
201 platform_set_drvdata(pdev, bf54x_kpad); in bfin_kpad_probe()
213 dev_warn(&pdev->dev, in bfin_kpad_probe()
233 dev_err(&pdev->dev, "requesting peripherals failed\n"); in bfin_kpad_probe()
240 dev_err(&pdev->dev, "requesting peripherals failed\n"); in bfin_kpad_probe()
245 bf54x_kpad->irq = platform_get_irq(pdev, 0); in bfin_kpad_probe()
252 0, DRV_NAME, pdev); in bfin_kpad_probe()
254 dev_err(&pdev->dev, "unable to claim irq %d\n", in bfin_kpad_probe()
267 input->name = pdev->name; in bfin_kpad_probe()
269 input->dev.parent = &pdev->dev; in bfin_kpad_probe()
297 dev_err(&pdev->dev, "unable to register input device\n"); in bfin_kpad_probe()
303 setup_timer(&bf54x_kpad->timer, bfin_kpad_timer, (unsigned long) pdev); in bfin_kpad_probe()
313 device_init_wakeup(&pdev->dev, 1); in bfin_kpad_probe()
320 free_irq(bf54x_kpad->irq, pdev); in bfin_kpad_probe()
333 static int bfin_kpad_remove(struct platform_device *pdev) in bfin_kpad_remove() argument
335 struct bfin_kpad_platform_data *pdata = dev_get_platdata(&pdev->dev); in bfin_kpad_remove()
336 struct bf54x_kpad *bf54x_kpad = platform_get_drvdata(pdev); in bfin_kpad_remove()
339 free_irq(bf54x_kpad->irq, pdev); in bfin_kpad_remove()
353 static int bfin_kpad_suspend(struct platform_device *pdev, pm_message_t state) in bfin_kpad_suspend() argument
355 struct bf54x_kpad *bf54x_kpad = platform_get_drvdata(pdev); in bfin_kpad_suspend()
361 if (device_may_wakeup(&pdev->dev)) in bfin_kpad_suspend()
367 static int bfin_kpad_resume(struct platform_device *pdev) in bfin_kpad_resume() argument
369 struct bf54x_kpad *bf54x_kpad = platform_get_drvdata(pdev); in bfin_kpad_resume()
375 if (device_may_wakeup(&pdev->dev)) in bfin_kpad_resume()