Home
last modified time | relevance | path

Searched refs:_dev (Results 1 – 25 of 50) sorted by relevance

12

/drivers/gpu/drm/gma500/
Dpower.c188 int gma_power_suspend(struct device *_dev) in gma_power_suspend() argument
190 struct pci_dev *pdev = container_of(_dev, struct pci_dev, dev); in gma_power_suspend()
215 int gma_power_resume(struct device *_dev) in gma_power_resume() argument
217 struct pci_dev *pdev = container_of(_dev, struct pci_dev, dev); in gma_power_resume()
319 int gma_power_thaw(struct device *_dev) in gma_power_thaw() argument
321 return gma_power_resume(_dev); in gma_power_thaw()
324 int gma_power_freeze(struct device *_dev) in gma_power_freeze() argument
326 return gma_power_suspend(_dev); in gma_power_freeze()
329 int gma_power_restore(struct device *_dev) in gma_power_restore() argument
331 return gma_power_resume(_dev); in gma_power_restore()
Dpower.h46 int gma_power_restore(struct device *_dev);
/drivers/net/
Difb.c65 struct net_device *_dev = (struct net_device *)dev; in ri_tasklet() local
66 struct ifb_private *dp = netdev_priv(_dev); in ri_tasklet()
70 txq = netdev_get_tx_queue(_dev, 0); in ri_tasklet()
93 skb->dev = dev_get_by_index_rcu(dev_net(_dev), skb->skb_iif); in ri_tasklet()
97 _dev->stats.tx_dropped++; in ri_tasklet()
103 skb->skb_iif = _dev->ifindex; in ri_tasklet()
117 if (netif_queue_stopped(_dev)) in ri_tasklet()
118 netif_wake_queue(_dev); in ri_tasklet()
/drivers/xen/xenbus/
Dxenbus_probe.h59 extern int xenbus_match(struct device *_dev, struct device_driver *_drv);
60 extern int xenbus_dev_probe(struct device *_dev);
61 extern int xenbus_dev_remove(struct device *_dev);
73 extern void xenbus_dev_shutdown(struct device *_dev);
Dxenbus_probe.c93 int xenbus_match(struct device *_dev, struct device_driver *_drv) in xenbus_match() argument
100 return match_device(drv->ids, to_xenbus_device(_dev)) != NULL; in xenbus_match()
212 int xenbus_dev_probe(struct device *_dev) in xenbus_dev_probe() argument
214 struct xenbus_device *dev = to_xenbus_device(_dev); in xenbus_dev_probe()
215 struct xenbus_driver *drv = to_xenbus_driver(_dev->driver); in xenbus_dev_probe()
258 int xenbus_dev_remove(struct device *_dev) in xenbus_dev_remove() argument
260 struct xenbus_device *dev = to_xenbus_device(_dev); in xenbus_dev_remove()
261 struct xenbus_driver *drv = to_xenbus_driver(_dev->driver); in xenbus_dev_remove()
277 void xenbus_dev_shutdown(struct device *_dev) in xenbus_dev_shutdown() argument
279 struct xenbus_device *dev = to_xenbus_device(_dev); in xenbus_dev_shutdown()
Dxenbus_probe_frontend.c78 static int xenbus_uevent_frontend(struct device *_dev, in xenbus_uevent_frontend() argument
81 struct xenbus_device *dev = to_xenbus_device(_dev); in xenbus_uevent_frontend()
/drivers/parport/
Dparport_ax88796.c274 struct device *_dev = &pdev->dev; in parport_ax88796_probe() local
285 dev_err(_dev, "no memory for private data\n"); in parport_ax88796_probe()
291 dev_err(_dev, "no MEM specified\n"); in parport_ax88796_probe()
301 dev_err(_dev, "cannot reserve memory\n"); in parport_ax88796_probe()
308 dev_err(_dev, "cannot ioremap region\n"); in parport_ax88796_probe()
322 dev_err(_dev, "failed to register parallel port\n"); in parport_ax88796_probe()
329 dd->dev = _dev; in parport_ax88796_probe()
351 dev_info(_dev, "attached parallel port driver\n"); in parport_ax88796_probe()
/drivers/base/
Dplatform.c505 static int platform_drv_probe(struct device *_dev) in platform_drv_probe() argument
507 struct platform_driver *drv = to_platform_driver(_dev->driver); in platform_drv_probe()
508 struct platform_device *dev = to_platform_device(_dev); in platform_drv_probe()
511 ret = of_clk_set_defaults(_dev->of_node, false); in platform_drv_probe()
515 ret = dev_pm_domain_attach(_dev, true); in platform_drv_probe()
519 dev_pm_domain_detach(_dev, true); in platform_drv_probe()
523 dev_warn(_dev, "probe deferral not supported\n"); in platform_drv_probe()
530 static int platform_drv_probe_fail(struct device *_dev) in platform_drv_probe_fail() argument
535 static int platform_drv_remove(struct device *_dev) in platform_drv_remove() argument
537 struct platform_driver *drv = to_platform_driver(_dev->driver); in platform_drv_remove()
[all …]
/drivers/i2c/busses/
Di2c-omap.c1287 struct omap_i2c_dev *_dev = platform_get_drvdata(pdev); in omap_i2c_runtime_suspend() local
1289 _dev->iestate = omap_i2c_read_reg(_dev, OMAP_I2C_IE_REG); in omap_i2c_runtime_suspend()
1291 if (_dev->scheme == OMAP_I2C_SCHEME_0) in omap_i2c_runtime_suspend()
1292 omap_i2c_write_reg(_dev, OMAP_I2C_IE_REG, 0); in omap_i2c_runtime_suspend()
1294 omap_i2c_write_reg(_dev, OMAP_I2C_IP_V2_IRQENABLE_CLR, in omap_i2c_runtime_suspend()
1297 if (_dev->rev < OMAP_I2C_OMAP1_REV_2) { in omap_i2c_runtime_suspend()
1298 omap_i2c_read_reg(_dev, OMAP_I2C_IV_REG); /* Read clears */ in omap_i2c_runtime_suspend()
1300 omap_i2c_write_reg(_dev, OMAP_I2C_STAT_REG, _dev->iestate); in omap_i2c_runtime_suspend()
1303 omap_i2c_read_reg(_dev, OMAP_I2C_STAT_REG); in omap_i2c_runtime_suspend()
1312 struct omap_i2c_dev *_dev = platform_get_drvdata(pdev); in omap_i2c_runtime_resume() local
[all …]
Di2c-cadence.c734 static int __maybe_unused cdns_i2c_suspend(struct device *_dev) in cdns_i2c_suspend() argument
736 struct platform_device *pdev = container_of(_dev, in cdns_i2c_suspend()
754 static int __maybe_unused cdns_i2c_resume(struct device *_dev) in cdns_i2c_resume() argument
756 struct platform_device *pdev = container_of(_dev, in cdns_i2c_resume()
763 dev_err(_dev, "Cannot enable clock.\n"); in cdns_i2c_resume()
/drivers/block/
Dps3disk.c403 static int ps3disk_probe(struct ps3_system_bus_device *_dev) in ps3disk_probe() argument
405 struct ps3_storage_device *dev = to_ps3_storage_device(&_dev->core); in ps3disk_probe()
437 ps3_system_bus_set_drvdata(_dev, priv); in ps3disk_probe()
513 ps3_system_bus_set_drvdata(_dev, NULL); in ps3disk_probe()
521 static int ps3disk_remove(struct ps3_system_bus_device *_dev) in ps3disk_remove() argument
523 struct ps3_storage_device *dev = to_ps3_storage_device(&_dev->core); in ps3disk_remove()
538 ps3_system_bus_set_drvdata(_dev, NULL); in ps3disk_remove()
/drivers/ps3/
Dvuart.h61 ps3_system_bus_dev_to_vuart_drv(struct ps3_system_bus_device *_dev) in ps3_system_bus_dev_to_vuart_drv() argument
64 ps3_system_bus_dev_to_system_bus_drv(_dev); in ps3_system_bus_dev_to_vuart_drv()
/drivers/usb/core/
Dhub.h109 #define to_usb_port(_dev) \ argument
110 container_of(_dev, struct usb_port, dev)
Dendpoint.c23 #define to_ep_device(_dev) \ argument
24 container_of(_dev, struct ep_device, dev)
/drivers/scsi/
Dps3rom.c362 static int ps3rom_probe(struct ps3_system_bus_device *_dev) in ps3rom_probe() argument
364 struct ps3_storage_device *dev = to_ps3_storage_device(&_dev->core); in ps3rom_probe()
422 static int ps3rom_remove(struct ps3_system_bus_device *_dev) in ps3rom_remove() argument
424 struct ps3_storage_device *dev = to_ps3_storage_device(&_dev->core); in ps3rom_remove()
/drivers/char/
Dps3flash.c342 static int ps3flash_probe(struct ps3_system_bus_device *_dev) in ps3flash_probe() argument
344 struct ps3_storage_device *dev = to_ps3_storage_device(&_dev->core); in ps3flash_probe()
418 static int ps3flash_remove(struct ps3_system_bus_device *_dev) in ps3flash_remove() argument
420 struct ps3_storage_device *dev = to_ps3_storage_device(&_dev->core); in ps3flash_remove()
/drivers/nfc/
Dnfcsim.c22 #define DEV_ERR(_dev, fmt, args...) nfc_err(&_dev->nfc_dev->dev, \ argument
25 #define DEV_DBG(_dev, fmt, args...) dev_dbg(&_dev->nfc_dev->dev, \ argument
/drivers/misc/vmw_vmci/
Dvmci_guest.c399 static irqreturn_t vmci_interrupt(int irq, void *_dev) in vmci_interrupt() argument
401 struct vmci_guest_device *dev = _dev; in vmci_interrupt()
443 static irqreturn_t vmci_interrupt_bm(int irq, void *_dev) in vmci_interrupt_bm() argument
445 struct vmci_guest_device *dev = _dev; in vmci_interrupt_bm()
/drivers/net/irda/
Dpxaficp_ir.c781 static int pxa_irda_suspend(struct platform_device *_dev, pm_message_t state) in pxa_irda_suspend() argument
783 struct net_device *dev = platform_get_drvdata(_dev); in pxa_irda_suspend()
795 static int pxa_irda_resume(struct platform_device *_dev) in pxa_irda_resume() argument
797 struct net_device *dev = platform_get_drvdata(_dev); in pxa_irda_resume()
942 static int pxa_irda_remove(struct platform_device *_dev) in pxa_irda_remove() argument
944 struct net_device *dev = platform_get_drvdata(_dev); in pxa_irda_remove()
/drivers/net/ethernet/intel/i40evf/
Di40evf_ethtool.c60 #define I40EVF_QUEUE_STATS_LEN(_dev) \ argument
62 netdev_priv(_dev))->vsi_res->num_queue_pairs \
64 #define I40EVF_STATS_LEN(_dev) \ argument
65 (I40EVF_GLOBAL_STATS_LEN + I40EVF_QUEUE_STATS_LEN(_dev))
/drivers/pcmcia/
Dsocket_sysfs.c34 #define to_socket(_dev) container_of(_dev, struct pcmcia_socket, dev) argument
/drivers/scsi/isci/
Dremote_device.c323 static void rnc_destruct_done(void *_dev) in rnc_destruct_done() argument
325 struct isci_remote_device *idev = _dev; in rnc_destruct_done()
559 static void atapi_remote_device_resume_done(void *_dev) in atapi_remote_device_resume_done() argument
561 struct isci_remote_device *idev = _dev; in atapi_remote_device_resume_done()
970 static void remote_device_resume_done(void *_dev) in remote_device_resume_done() argument
972 struct isci_remote_device *idev = _dev; in remote_device_resume_done()
981 static void sci_stp_remote_device_ready_idle_substate_resume_complete_handler(void *_dev) in sci_stp_remote_device_ready_idle_substate_resume_complete_handler() argument
983 struct isci_remote_device *idev = _dev; in sci_stp_remote_device_ready_idle_substate_resume_complete_handler()
/drivers/net/can/c_can/
Dc_can_pci.c268 #define C_CAN_ID(_vend, _dev, _driverdata) { \ argument
269 PCI_DEVICE(_vend, _dev), \
/drivers/usb/gadget/udc/
Dpxa27x_udc.c2333 static irqreturn_t pxa_udc_irq(int irq, void *_dev) in pxa_udc_irq() argument
2335 struct pxa_udc *udc = _dev; in pxa_udc_irq()
2501 static int pxa_udc_remove(struct platform_device *_dev) in pxa_udc_remove() argument
2503 struct pxa_udc *udc = platform_get_drvdata(_dev); in pxa_udc_remove()
2524 static void pxa_udc_shutdown(struct platform_device *_dev) in pxa_udc_shutdown() argument
2526 struct pxa_udc *udc = platform_get_drvdata(_dev); in pxa_udc_shutdown()
2547 static int pxa_udc_suspend(struct platform_device *_dev, pm_message_t state) in pxa_udc_suspend() argument
2550 struct pxa_udc *udc = platform_get_drvdata(_dev); in pxa_udc_suspend()
2580 static int pxa_udc_resume(struct platform_device *_dev) in pxa_udc_resume() argument
2583 struct pxa_udc *udc = platform_get_drvdata(_dev); in pxa_udc_resume()
Dpxa25x_udc.c1344 lubbock_vbus_irq(int irq, void *_dev) in lubbock_vbus_irq() argument
1346 struct pxa25x_udc *dev = _dev; in lubbock_vbus_irq()
1385 static void udc_watchdog(unsigned long _dev) in udc_watchdog() argument
1387 struct pxa25x_udc *dev = (void *)_dev; in udc_watchdog()
1679 pxa25x_udc_irq(int irq, void *_dev) in pxa25x_udc_irq() argument
1681 struct pxa25x_udc *dev = _dev; in pxa25x_udc_irq()
2190 static void pxa25x_udc_shutdown(struct platform_device *_dev) in pxa25x_udc_shutdown() argument

12