Lines Matching refs:pnp_dev
992 static int ene_probe(struct pnp_dev *pnp_dev, const struct pnp_device_id *id) in ene_probe() argument
1011 if (!pnp_port_valid(pnp_dev, 0) || in ene_probe()
1012 pnp_port_len(pnp_dev, 0) < ENE_IO_SIZE) in ene_probe()
1015 if (!pnp_irq_valid(pnp_dev, 0)) in ene_probe()
1020 dev->hw_io = pnp_port_start(pnp_dev, 0); in ene_probe()
1021 dev->irq = pnp_irq(pnp_dev, 0); in ene_probe()
1024 pnp_set_drvdata(pnp_dev, dev); in ene_probe()
1025 dev->pnp_dev = pnp_dev; in ene_probe()
1071 device_set_wakeup_capable(&pnp_dev->dev, true); in ene_probe()
1072 device_set_wakeup_enable(&pnp_dev->dev, true); in ene_probe()
1104 static void ene_remove(struct pnp_dev *pnp_dev) in ene_remove() argument
1106 struct ene_device *dev = pnp_get_drvdata(pnp_dev); in ene_remove()
1128 static int ene_suspend(struct pnp_dev *pnp_dev, pm_message_t state) in ene_suspend() argument
1130 struct ene_device *dev = pnp_get_drvdata(pnp_dev); in ene_suspend()
1131 bool wake = device_may_wakeup(&dev->pnp_dev->dev); in ene_suspend()
1140 static int ene_resume(struct pnp_dev *pnp_dev) in ene_resume() argument
1142 struct ene_device *dev = pnp_get_drvdata(pnp_dev); in ene_resume()
1153 static void ene_shutdown(struct pnp_dev *pnp_dev) in ene_shutdown() argument
1155 struct ene_device *dev = pnp_get_drvdata(pnp_dev); in ene_shutdown()