drv 821 arch/arm/common/locomo.c struct locomo_driver *drv = LOCOMO_DRV(_drv); drv 823 arch/arm/common/locomo.c return dev->devid == drv->devid; drv 829 arch/arm/common/locomo.c struct locomo_driver *drv = LOCOMO_DRV(dev->driver); drv 832 arch/arm/common/locomo.c if (drv->probe) drv 833 arch/arm/common/locomo.c ret = drv->probe(ldev); drv 840 arch/arm/common/locomo.c struct locomo_driver *drv = LOCOMO_DRV(dev->driver); drv 843 arch/arm/common/locomo.c if (drv->remove) drv 844 arch/arm/common/locomo.c ret = drv->remove(ldev); drv 857 arch/arm/common/locomo.c driver->drv.bus = &locomo_bus_type; drv 858 arch/arm/common/locomo.c return driver_register(&driver->drv); drv 864 arch/arm/common/locomo.c driver_unregister(&driver->drv); drv 1348 arch/arm/common/sa1111.c struct sa1111_driver *drv = SA1111_DRV(_drv); drv 1350 arch/arm/common/sa1111.c return !!(dev->devid & drv->devid); drv 1356 arch/arm/common/sa1111.c struct sa1111_driver *drv = SA1111_DRV(dev->driver); drv 1359 arch/arm/common/sa1111.c if (drv->probe) drv 1360 arch/arm/common/sa1111.c ret = drv->probe(sadev); drv 1367 arch/arm/common/sa1111.c struct sa1111_driver *drv = SA1111_DRV(dev->driver); drv 1370 arch/arm/common/sa1111.c if (drv->remove) drv 1371 arch/arm/common/sa1111.c ret = drv->remove(sadev); drv 1385 arch/arm/common/sa1111.c driver->drv.bus = &sa1111_bus_type; drv 1386 arch/arm/common/sa1111.c return driver_register(&driver->drv); drv 1392 arch/arm/common/sa1111.c driver_unregister(&driver->drv); drv 9 arch/arm/include/asm/cpuidle.h struct cpuidle_driver *drv, int index); drv 12 arch/arm/include/asm/cpuidle.h struct cpuidle_driver *drv, int index) { return -ENODEV; } drv 208 arch/arm/include/asm/ecard.h struct device_driver drv; drv 211 arch/arm/include/asm/ecard.h #define ECARD_DRV(_d) container_of((_d), struct ecard_driver, drv) drv 188 arch/arm/include/asm/hardware/locomo.h struct device_driver drv; drv 194 arch/arm/include/asm/hardware/locomo.h #define LOCOMO_DRV(_d) container_of((_d), struct locomo_driver, drv) drv 403 arch/arm/include/asm/hardware/sa1111.h struct device_driver drv; drv 409 arch/arm/include/asm/hardware/sa1111.h #define SA1111_DRV(_d) container_of((_d), struct sa1111_driver, drv) drv 30 arch/arm/kernel/cpuidle.c struct cpuidle_driver *drv, int index) drv 48 arch/arm/mach-davinci/cpuidle.c struct cpuidle_driver *drv, int index) drv 12 arch/arm/mach-imx/cpuidle-imx5.c struct cpuidle_driver *drv, int index) drv 20 arch/arm/mach-imx/cpuidle-imx6q.c struct cpuidle_driver *drv, int index) drv 14 arch/arm/mach-imx/cpuidle-imx6sl.c struct cpuidle_driver *drv, int index) drv 34 arch/arm/mach-imx/cpuidle-imx6sx.c struct cpuidle_driver *drv, int index) drv 16 arch/arm/mach-imx/cpuidle-imx7ulp.c struct cpuidle_driver *drv, int index) drv 451 arch/arm/mach-integrator/impd1.c .drv = { drv 15 arch/arm/mach-integrator/lm.c #define to_lm_driver(d) container_of(d, struct lm_driver, drv) drv 17 arch/arm/mach-integrator/lm.c static int lm_match(struct device *dev, struct device_driver *drv) drv 56 arch/arm/mach-integrator/lm.c int lm_driver_register(struct lm_driver *drv) drv 58 arch/arm/mach-integrator/lm.c drv->drv.bus = &lm_bustype; drv 59 arch/arm/mach-integrator/lm.c return driver_register(&drv->drv); drv 62 arch/arm/mach-integrator/lm.c void lm_driver_unregister(struct lm_driver *drv) drv 64 arch/arm/mach-integrator/lm.c driver_unregister(&drv->drv); drv 11 arch/arm/mach-integrator/lm.h struct device_driver drv; drv 18 arch/arm/mach-integrator/lm.h int lm_driver_register(struct lm_driver *drv); drv 19 arch/arm/mach-integrator/lm.h void lm_driver_unregister(struct lm_driver *drv); drv 18 arch/arm/mach-mmp/mfp-pxa168.h #define MFP_CFG_DRV(pin, af, drv) \ drv 19 arch/arm/mach-mmp/mfp-pxa168.h (MFP_LPM_INPUT | MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_DRIVE_##drv) drv 32 arch/arm/mach-mmp/mfp.h #define MFP_CFG_DRV(pin, af, drv) \ drv 33 arch/arm/mach-mmp/mfp.h (MFP_LPM_FLOAT | MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_DRIVE_##drv) drv 108 arch/arm/mach-omap2/cpuidle34xx.c struct cpuidle_driver *drv, drv 165 arch/arm/mach-omap2/cpuidle34xx.c struct cpuidle_driver *drv, int index) drv 215 arch/arm/mach-omap2/cpuidle34xx.c struct cpuidle_driver *drv, drv 227 arch/arm/mach-omap2/cpuidle34xx.c new_state_idx = drv->safe_state_index; drv 229 arch/arm/mach-omap2/cpuidle34xx.c new_state_idx = next_valid_state(dev, drv, index); drv 249 arch/arm/mach-omap2/cpuidle34xx.c ret = omap3_enter_idle(dev, drv, new_state_idx); drv 86 arch/arm/mach-omap2/cpuidle44xx.c struct cpuidle_driver *drv, drv 94 arch/arm/mach-omap2/cpuidle44xx.c struct cpuidle_driver *drv, drv 120 arch/arm/mach-omap2/cpuidle44xx.c struct cpuidle_driver *drv, drv 1042 arch/arm/mach-rpc/ecard.c struct ecard_driver *drv = ECARD_DRV(dev->driver); drv 1046 arch/arm/mach-rpc/ecard.c id = ecard_match_device(drv->id_table, ec); drv 1049 arch/arm/mach-rpc/ecard.c ret = drv->probe(ec, id); drv 1058 arch/arm/mach-rpc/ecard.c struct ecard_driver *drv = ECARD_DRV(dev->driver); drv 1060 arch/arm/mach-rpc/ecard.c drv->remove(ec); drv 1083 arch/arm/mach-rpc/ecard.c struct ecard_driver *drv = ECARD_DRV(dev->driver); drv 1087 arch/arm/mach-rpc/ecard.c if (drv->shutdown) drv 1088 arch/arm/mach-rpc/ecard.c drv->shutdown(ec); drv 1102 arch/arm/mach-rpc/ecard.c int ecard_register_driver(struct ecard_driver *drv) drv 1104 arch/arm/mach-rpc/ecard.c drv->drv.bus = &ecard_bus_type; drv 1106 arch/arm/mach-rpc/ecard.c return driver_register(&drv->drv); drv 1109 arch/arm/mach-rpc/ecard.c void ecard_remove_driver(struct ecard_driver *drv) drv 1111 arch/arm/mach-rpc/ecard.c driver_unregister(&drv->drv); drv 1117 arch/arm/mach-rpc/ecard.c struct ecard_driver *drv = ECARD_DRV(_drv); drv 1120 arch/arm/mach-rpc/ecard.c if (drv->id_table) { drv 1121 arch/arm/mach-rpc/ecard.c ret = ecard_match_device(drv->id_table, ec) != NULL; drv 1123 arch/arm/mach-rpc/ecard.c ret = ec->cid.id == drv->id; drv 23 arch/arm/mach-s3c64xx/cpuidle.c struct cpuidle_driver *drv, drv 205 arch/arm/mach-sa1100/collie.c .drv = { drv 32 arch/arm/mach-tegra/cpuidle-tegra114.c struct cpuidle_driver *drv, drv 55 arch/arm/mach-tegra/cpuidle-tegra114.c struct cpuidle_driver *drv, drv 58 arch/arm/mach-tegra/cpuidle-tegra114.c tegra114_idle_power_down(dev, drv, index); drv 37 arch/arm/mach-tegra/cpuidle-tegra20.c struct cpuidle_driver *drv, drv 122 arch/arm/mach-tegra/cpuidle-tegra20.c struct cpuidle_driver *drv, drv 141 arch/arm/mach-tegra/cpuidle-tegra20.c struct cpuidle_driver *drv, drv 152 arch/arm/mach-tegra/cpuidle-tegra20.c struct cpuidle_driver *drv, drv 160 arch/arm/mach-tegra/cpuidle-tegra20.c struct cpuidle_driver *drv, drv 182 arch/arm/mach-tegra/cpuidle-tegra20.c entered_lp2 = tegra20_cpu_cluster_power_down(dev, drv, index); drv 184 arch/arm/mach-tegra/cpuidle-tegra20.c entered_lp2 = tegra20_idle_enter_lp2_cpu_1(dev, drv, index); drv 30 arch/arm/mach-tegra/cpuidle-tegra30.c struct cpuidle_driver *drv, drv 60 arch/arm/mach-tegra/cpuidle-tegra30.c struct cpuidle_driver *drv, drv 78 arch/arm/mach-tegra/cpuidle-tegra30.c struct cpuidle_driver *drv, drv 89 arch/arm/mach-tegra/cpuidle-tegra30.c struct cpuidle_driver *drv, drv 97 arch/arm/mach-tegra/cpuidle-tegra30.c struct cpuidle_driver *drv, drv 110 arch/arm/mach-tegra/cpuidle-tegra30.c entered_lp2 = tegra30_cpu_cluster_power_down(dev, drv, drv 115 arch/arm/mach-tegra/cpuidle-tegra30.c entered_lp2 = tegra30_cpu_core_power_down(dev, drv, index); drv 411 arch/arm/plat-pxa/include/plat/mfp.h #define MFP_CFG_DRV(pin, af, drv) \ drv 413 arch/arm/plat-pxa/include/plat/mfp.h (MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_##drv)) drv 419 arch/arm/plat-pxa/include/plat/mfp.h #define MFP_CFG_X(pin, af, drv, lpm) \ drv 421 arch/arm/plat-pxa/include/plat/mfp.h (MFP_PIN(MFP_PIN_##pin) | MFP_##af | MFP_##drv | MFP_LPM_##lpm)) drv 171 arch/arm/plat-pxa/mfp.c int pin, af, drv, lpm, edge, pull; drv 178 arch/arm/plat-pxa/mfp.c drv = MFP_DS(c); drv 187 arch/arm/plat-pxa/mfp.c tmp = MFPR_AF_SEL(af) | MFPR_DRIVE(drv); drv 43 arch/mips/include/asm/cdmm.h struct device_driver drv; drv 33 arch/mips/include/asm/gio_device.h #define to_gio_driver(drv) container_of(drv, struct gio_driver, driver) drv 19 arch/mips/include/asm/idle.h struct cpuidle_driver *drv, int index); drv 264 arch/mips/kernel/idle.c struct cpuidle_driver *drv, int index) drv 114 arch/mips/sgi-ip22/ip22-gio.c static int gio_bus_match(struct device *dev, struct device_driver *drv) drv 117 arch/mips/sgi-ip22/ip22-gio.c struct gio_driver *gio_drv = to_gio_driver(drv); drv 125 arch/mips/sgi-ip22/ip22-gio.c struct gio_driver *drv; drv 129 arch/mips/sgi-ip22/ip22-gio.c drv = to_gio_driver(dev->driver); drv 132 arch/mips/sgi-ip22/ip22-gio.c if (!drv->probe) drv 137 arch/mips/sgi-ip22/ip22-gio.c match = gio_match_device(drv->id_table, gio_dev); drv 139 arch/mips/sgi-ip22/ip22-gio.c error = drv->probe(gio_dev, match); drv 149 arch/mips/sgi-ip22/ip22-gio.c struct gio_driver *drv = to_gio_driver(dev->driver); drv 151 arch/mips/sgi-ip22/ip22-gio.c if (dev->driver && drv->remove) drv 152 arch/mips/sgi-ip22/ip22-gio.c drv->remove(gio_dev); drv 159 arch/mips/sgi-ip22/ip22-gio.c struct gio_driver *drv = to_gio_driver(dev->driver); drv 161 arch/mips/sgi-ip22/ip22-gio.c if (dev->driver && drv->shutdown) drv 162 arch/mips/sgi-ip22/ip22-gio.c drv->shutdown(gio_dev); drv 211 arch/mips/sgi-ip22/ip22-gio.c int gio_register_driver(struct gio_driver *drv) drv 214 arch/mips/sgi-ip22/ip22-gio.c if (!drv->driver.name) drv 215 arch/mips/sgi-ip22/ip22-gio.c drv->driver.name = drv->name; drv 216 arch/mips/sgi-ip22/ip22-gio.c if (!drv->driver.owner) drv 217 arch/mips/sgi-ip22/ip22-gio.c drv->driver.owner = drv->owner; drv 218 arch/mips/sgi-ip22/ip22-gio.c drv->driver.bus = &gio_bus_type; drv 221 arch/mips/sgi-ip22/ip22-gio.c return driver_register(&drv->driver); drv 225 arch/mips/sgi-ip22/ip22-gio.c void gio_unregister_driver(struct gio_driver *drv) drv 227 arch/mips/sgi-ip22/ip22-gio.c driver_unregister(&drv->driver); drv 39 arch/parisc/include/asm/parisc-device.h struct device_driver drv; drv 44 arch/parisc/include/asm/parisc-device.h #define to_parisc_driver(d) container_of(d, struct parisc_driver, drv) drv 154 arch/parisc/kernel/drivers.c if (driver->drv.name) { drv 165 arch/parisc/kernel/drivers.c driver->drv.bus = &parisc_bus_type; drv 168 arch/parisc/kernel/drivers.c WARN_ON(driver->drv.probe != NULL); drv 169 arch/parisc/kernel/drivers.c WARN_ON(driver->drv.remove != NULL); drv 171 arch/parisc/kernel/drivers.c driver->drv.name = driver->name; drv 173 arch/parisc/kernel/drivers.c return driver_register(&driver->drv); drv 222 arch/parisc/kernel/drivers.c driver_unregister(&driver->drv); drv 551 arch/parisc/kernel/drivers.c static int parisc_generic_match(struct device *dev, struct device_driver *drv) drv 553 arch/parisc/kernel/drivers.c return match_device(to_parisc_driver(drv), to_parisc_device(dev)); drv 51 arch/powerpc/include/asm/ibmebus.h int ibmebus_register_driver(struct platform_driver *drv); drv 52 arch/powerpc/include/asm/ibmebus.h void ibmebus_unregister_driver(struct platform_driver *drv); drv 139 arch/powerpc/include/asm/macio.h #define to_macio_driver(drv) container_of(drv,struct macio_driver, driver) drv 388 arch/powerpc/include/asm/ps3.h int ps3_system_bus_driver_register(struct ps3_system_bus_driver *drv); drv 389 arch/powerpc/include/asm/ps3.h void ps3_system_bus_driver_unregister(struct ps3_system_bus_driver *drv); drv 125 arch/powerpc/include/asm/vio.h extern int __vio_register_driver(struct vio_driver *drv, struct module *owner, drv 132 arch/powerpc/include/asm/vio.h extern void vio_unregister_driver(struct vio_driver *drv); drv 158 arch/powerpc/include/asm/vio.h static inline struct vio_driver *to_vio_driver(struct device_driver *drv) drv 160 arch/powerpc/include/asm/vio.h return container_of(drv, struct vio_driver, driver); drv 338 arch/powerpc/platforms/ps3/system-bus.c struct ps3_system_bus_driver *drv = ps3_drv_to_system_bus_drv(_drv); drv 342 arch/powerpc/platforms/ps3/system-bus.c result = dev->match_id == drv->match_id; drv 344 arch/powerpc/platforms/ps3/system-bus.c result = dev->match_sub_id == drv->match_sub_id && drv 345 arch/powerpc/platforms/ps3/system-bus.c dev->match_id == drv->match_id; drv 351 arch/powerpc/platforms/ps3/system-bus.c drv->match_id, drv->match_sub_id, drv->core.name); drv 356 arch/powerpc/platforms/ps3/system-bus.c drv->match_id, drv->match_sub_id, drv->core.name); drv 365 arch/powerpc/platforms/ps3/system-bus.c struct ps3_system_bus_driver *drv; drv 370 arch/powerpc/platforms/ps3/system-bus.c drv = ps3_system_bus_dev_to_system_bus_drv(dev); drv 371 arch/powerpc/platforms/ps3/system-bus.c BUG_ON(!drv); drv 373 arch/powerpc/platforms/ps3/system-bus.c if (drv->probe) drv 374 arch/powerpc/platforms/ps3/system-bus.c result = drv->probe(dev); drv 387 arch/powerpc/platforms/ps3/system-bus.c struct ps3_system_bus_driver *drv; drv 392 arch/powerpc/platforms/ps3/system-bus.c drv = ps3_system_bus_dev_to_system_bus_drv(dev); drv 393 arch/powerpc/platforms/ps3/system-bus.c BUG_ON(!drv); drv 395 arch/powerpc/platforms/ps3/system-bus.c if (drv->remove) drv 396 arch/powerpc/platforms/ps3/system-bus.c result = drv->remove(dev); drv 399 arch/powerpc/platforms/ps3/system-bus.c __func__, __LINE__, drv->core.name); drv 408 arch/powerpc/platforms/ps3/system-bus.c struct ps3_system_bus_driver *drv; drv 421 arch/powerpc/platforms/ps3/system-bus.c drv = ps3_system_bus_dev_to_system_bus_drv(dev); drv 423 arch/powerpc/platforms/ps3/system-bus.c BUG_ON(!drv); drv 426 arch/powerpc/platforms/ps3/system-bus.c dev_name(&dev->core), drv->core.name); drv 428 arch/powerpc/platforms/ps3/system-bus.c if (drv->shutdown) drv 429 arch/powerpc/platforms/ps3/system-bus.c drv->shutdown(dev); drv 430 arch/powerpc/platforms/ps3/system-bus.c else if (drv->remove) { drv 432 arch/powerpc/platforms/ps3/system-bus.c __func__, __LINE__, drv->core.name); drv 433 arch/powerpc/platforms/ps3/system-bus.c drv->remove(dev); drv 436 arch/powerpc/platforms/ps3/system-bus.c __func__, __LINE__, drv->core.name); drv 775 arch/powerpc/platforms/ps3/system-bus.c int ps3_system_bus_driver_register(struct ps3_system_bus_driver *drv) drv 779 arch/powerpc/platforms/ps3/system-bus.c pr_debug(" -> %s:%d: %s\n", __func__, __LINE__, drv->core.name); drv 784 arch/powerpc/platforms/ps3/system-bus.c drv->core.bus = &ps3_system_bus_type; drv 786 arch/powerpc/platforms/ps3/system-bus.c result = driver_register(&drv->core); drv 787 arch/powerpc/platforms/ps3/system-bus.c pr_debug(" <- %s:%d: %s\n", __func__, __LINE__, drv->core.name); drv 793 arch/powerpc/platforms/ps3/system-bus.c void ps3_system_bus_driver_unregister(struct ps3_system_bus_driver *drv) drv 795 arch/powerpc/platforms/ps3/system-bus.c pr_debug(" -> %s:%d: %s\n", __func__, __LINE__, drv->core.name); drv 796 arch/powerpc/platforms/ps3/system-bus.c driver_unregister(&drv->core); drv 797 arch/powerpc/platforms/ps3/system-bus.c pr_debug(" <- %s:%d: %s\n", __func__, __LINE__, drv->core.name); drv 211 arch/powerpc/platforms/pseries/ibmebus.c int ibmebus_register_driver(struct platform_driver *drv) drv 214 arch/powerpc/platforms/pseries/ibmebus.c ibmebus_create_devices(drv->driver.of_match_table); drv 216 arch/powerpc/platforms/pseries/ibmebus.c drv->driver.bus = &ibmebus_bus_type; drv 217 arch/powerpc/platforms/pseries/ibmebus.c return driver_register(&drv->driver); drv 221 arch/powerpc/platforms/pseries/ibmebus.c void ibmebus_unregister_driver(struct platform_driver *drv) drv 223 arch/powerpc/platforms/pseries/ibmebus.c driver_unregister(&drv->driver); drv 335 arch/powerpc/platforms/pseries/ibmebus.c static int ibmebus_bus_bus_match(struct device *dev, struct device_driver *drv) drv 337 arch/powerpc/platforms/pseries/ibmebus.c const struct of_device_id *matches = drv->of_match_table; drv 348 arch/powerpc/platforms/pseries/ibmebus.c struct platform_driver *drv; drv 351 arch/powerpc/platforms/pseries/ibmebus.c drv = to_platform_driver(dev->driver); drv 354 arch/powerpc/platforms/pseries/ibmebus.c if (!drv->probe) drv 360 arch/powerpc/platforms/pseries/ibmebus.c error = drv->probe(of_dev); drv 370 arch/powerpc/platforms/pseries/ibmebus.c struct platform_driver *drv = to_platform_driver(dev->driver); drv 372 arch/powerpc/platforms/pseries/ibmebus.c if (dev->driver && drv->remove) drv 373 arch/powerpc/platforms/pseries/ibmebus.c drv->remove(of_dev); drv 380 arch/powerpc/platforms/pseries/ibmebus.c struct platform_driver *drv = to_platform_driver(dev->driver); drv 382 arch/powerpc/platforms/pseries/ibmebus.c if (dev->driver && drv->shutdown) drv 383 arch/powerpc/platforms/pseries/ibmebus.c drv->shutdown(of_dev); drv 1581 arch/powerpc/platforms/pseries/vio.c static int vio_bus_match(struct device *dev, struct device_driver *drv) drv 1584 arch/powerpc/platforms/pseries/vio.c struct vio_driver *vio_drv = to_vio_driver(drv); drv 91 arch/s390/include/asm/ccwdev.h struct ccw_driver *drv; drv 106 arch/s390/include/asm/eadm.h struct device_driver drv; drv 25 arch/sh/kernel/cpu/shmobile/cpuidle.c struct cpuidle_driver *drv, drv 477 arch/sparc/include/asm/vio.h int __vio_register_driver(struct vio_driver *drv, struct module *owner, drv 484 arch/sparc/include/asm/vio.h void vio_unregister_driver(struct vio_driver *drv); drv 486 arch/sparc/include/asm/vio.h static inline struct vio_driver *to_vio_driver(struct device_driver *drv) drv 488 arch/sparc/include/asm/vio.h return container_of(drv, struct vio_driver, driver); drv 57 arch/sparc/kernel/vio.c static int vio_bus_match(struct device *dev, struct device_driver *drv) drv 60 arch/sparc/kernel/vio.c struct vio_driver *vio_drv = to_vio_driver(drv); drv 72 arch/sparc/kernel/vio.c struct vio_driver *drv = to_vio_driver(dev->driver); drv 75 arch/sparc/kernel/vio.c if (!drv->probe) drv 78 arch/sparc/kernel/vio.c id = vio_match_device(drv->id_table, vdev); drv 83 arch/sparc/kernel/vio.c if (!drv->no_irq) { drv 93 arch/sparc/kernel/vio.c return drv->probe(vdev, id); drv 99 arch/sparc/kernel/vio.c struct vio_driver *drv = to_vio_driver(dev->driver); drv 101 arch/sparc/kernel/vio.c if (drv->remove) { drv 108 arch/sparc/kernel/vio.c return drv->remove(vdev); drv 2529 arch/x86/kernel/apic/apic.c struct apic **drv; drv 2531 arch/x86/kernel/apic/apic.c for (drv = __apicdrivers; drv < __apicdrivers_end; drv++) { drv 2533 arch/x86/kernel/apic/apic.c WARN_ON((*drv)->eoi_write == eoi_write); drv 2534 arch/x86/kernel/apic/apic.c (*drv)->native_eoi_write = (*drv)->eoi_write; drv 2535 arch/x86/kernel/apic/apic.c (*drv)->eoi_write = eoi_write; drv 121 arch/x86/kernel/apic/probe_32.c struct apic **drv; drv 126 arch/x86/kernel/apic/probe_32.c for (drv = __apicdrivers; drv < __apicdrivers_end; drv++) { drv 127 arch/x86/kernel/apic/probe_32.c if (!strcmp((*drv)->name, arg)) { drv 128 arch/x86/kernel/apic/probe_32.c apic = *drv; drv 180 arch/x86/kernel/apic/probe_32.c struct apic **drv; drv 182 arch/x86/kernel/apic/probe_32.c for (drv = __apicdrivers; drv < __apicdrivers_end; drv++) { drv 183 arch/x86/kernel/apic/probe_32.c if ((*drv)->probe()) { drv 184 arch/x86/kernel/apic/probe_32.c apic = *drv; drv 189 arch/x86/kernel/apic/probe_32.c if (drv == __apicdrivers_end) drv 198 arch/x86/kernel/apic/probe_32.c struct apic **drv; drv 200 arch/x86/kernel/apic/probe_32.c for (drv = __apicdrivers; drv < __apicdrivers_end; drv++) { drv 201 arch/x86/kernel/apic/probe_32.c if (!(*drv)->acpi_madt_oem_check) drv 203 arch/x86/kernel/apic/probe_32.c if (!(*drv)->acpi_madt_oem_check(oem_id, oem_table_id)) drv 207 arch/x86/kernel/apic/probe_32.c apic = *drv; drv 20 arch/x86/kernel/apic/probe_64.c struct apic **drv; drv 24 arch/x86/kernel/apic/probe_64.c for (drv = __apicdrivers; drv < __apicdrivers_end; drv++) { drv 25 arch/x86/kernel/apic/probe_64.c if ((*drv)->probe && (*drv)->probe()) { drv 26 arch/x86/kernel/apic/probe_64.c if (apic != *drv) { drv 27 arch/x86/kernel/apic/probe_64.c apic = *drv; drv 41 arch/x86/kernel/apic/probe_64.c struct apic **drv; drv 43 arch/x86/kernel/apic/probe_64.c for (drv = __apicdrivers; drv < __apicdrivers_end; drv++) { drv 44 arch/x86/kernel/apic/probe_64.c if ((*drv)->acpi_madt_oem_check(oem_id, oem_table_id)) { drv 45 arch/x86/kernel/apic/probe_64.c if (apic != *drv) { drv 46 arch/x86/kernel/apic/probe_64.c apic = *drv; drv 364 arch/x86/kernel/apm_32.c struct cpuidle_driver *drv, int index); drv 901 arch/x86/kernel/apm_32.c struct cpuidle_driver *drv, int index) drv 83 arch/x86/kernel/probe_roms.c struct pci_driver *drv = pdev->driver; drv 89 arch/x86/kernel/probe_roms.c for (id = drv ? drv->id_table : NULL; id && id->vendor; id++) drv 224 arch/x86/platform/olpc/olpc-xo15-sci.c .drv.pm = &xo15_sci_pm, drv 88 drivers/acpi/ac.c .drv.pm = &acpi_ac_pm, drv 1515 drivers/acpi/battery.c .drv.pm = &acpi_battery_pm, drv 823 drivers/acpi/bus.c const struct device_driver *drv) drv 825 drivers/acpi/bus.c if (!drv->acpi_match_table) drv 827 drivers/acpi/bus.c drv->of_match_table, drv 831 drivers/acpi/bus.c drv->acpi_match_table, drv->of_match_table, drv 854 drivers/acpi/bus.c driver->drv.name = driver->name; drv 855 drivers/acpi/bus.c driver->drv.bus = &acpi_bus_type; drv 856 drivers/acpi/bus.c driver->drv.owner = driver->owner; drv 858 drivers/acpi/bus.c ret = driver_register(&driver->drv); drv 873 drivers/acpi/bus.c driver_unregister(&driver->drv); drv 882 drivers/acpi/bus.c static int acpi_bus_match(struct device *dev, struct device_driver *drv) drv 885 drivers/acpi/bus.c struct acpi_driver *acpi_drv = to_acpi_driver(drv); drv 128 drivers/acpi/button.c .drv.pm = &acpi_button_pm, drv 2050 drivers/acpi/ec.c .drv.pm = &acpi_ec_pm, drv 755 drivers/acpi/processor_idle.c struct cpuidle_driver *drv, int index) drv 772 drivers/acpi/processor_idle.c } else if (drv->safe_state_index >= 0) { drv 773 drivers/acpi/processor_idle.c index = drv->safe_state_index; drv 795 drivers/acpi/processor_idle.c struct cpuidle_driver *drv, int index) drv 848 drivers/acpi/processor_idle.c struct cpuidle_driver *drv = &acpi_idle_driver; drv 854 drivers/acpi/processor_idle.c cpuidle_poll_state_init(drv); drv 866 drivers/acpi/processor_idle.c state = &drv->states[count]; drv 876 drivers/acpi/processor_idle.c drv->safe_state_index = count; drv 893 drivers/acpi/processor_idle.c drv->state_count = count; drv 1242 drivers/acpi/processor_idle.c struct cpuidle_driver *drv, int index) drv 1264 drivers/acpi/processor_idle.c struct cpuidle_driver *drv = &acpi_idle_driver; drv 1272 drivers/acpi/processor_idle.c state = &drv->states[i]; drv 1280 drivers/acpi/processor_idle.c drv->safe_state_index = i; drv 1283 drivers/acpi/processor_idle.c drv->state_count = i; drv 1297 drivers/acpi/processor_idle.c struct cpuidle_driver *drv = &acpi_idle_driver; drv 1302 drivers/acpi/processor_idle.c drv->safe_state_index = -1; drv 1304 drivers/acpi/processor_idle.c drv->states[i].name[0] = '\0'; drv 1305 drivers/acpi/processor_idle.c drv->states[i].desc[0] = '\0'; drv 715 drivers/acpi/sbs.c .drv.pm = &acpi_sbs_pm, drv 106 drivers/acpi/thermal.c .drv.pm = &acpi_thermal_pm, drv 25 drivers/amba/bus.c #define to_amba_driver(d) container_of(d, struct amba_driver, drv) drv 59 drivers/amba/bus.c static int amba_match(struct device *dev, struct device_driver *drv) drv 62 drivers/amba/bus.c struct amba_driver *pcdrv = to_amba_driver(drv); drv 66 drivers/amba/bus.c return !strcmp(pcdev->driver_override, drv->name); drv 301 drivers/amba/bus.c struct amba_driver *drv = to_amba_driver(dev->driver); drv 305 drivers/amba/bus.c ret = drv->remove(pcdev); drv 321 drivers/amba/bus.c struct amba_driver *drv = to_amba_driver(dev->driver); drv 322 drivers/amba/bus.c drv->shutdown(to_amba_device(dev)); drv 333 drivers/amba/bus.c int amba_driver_register(struct amba_driver *drv) drv 335 drivers/amba/bus.c drv->drv.bus = &amba_bustype; drv 337 drivers/amba/bus.c #define SETFN(fn) if (drv->fn) drv->drv.fn = amba_##fn drv 342 drivers/amba/bus.c return driver_register(&drv->drv); drv 353 drivers/amba/bus.c void amba_driver_unregister(struct amba_driver *drv) drv 355 drivers/amba/bus.c driver_unregister(&drv->drv); drv 608 drivers/ata/pata_icside.c .drv = { drv 117 drivers/base/base.h extern int bus_add_driver(struct device_driver *drv); drv 118 drivers/base/base.h extern void bus_remove_driver(struct device_driver *drv); drv 120 drivers/base/base.h struct device_driver *drv, drv 123 drivers/base/base.h extern void driver_detach(struct device_driver *drv); drv 124 drivers/base/base.h extern int driver_probe_device(struct device_driver *drv, struct device *dev); drv 126 drivers/base/base.h static inline int driver_match_device(struct device_driver *drv, drv 129 drivers/base/base.h return drv->bus->match ? drv->bus->match(dev, drv) : 1; drv 131 drivers/base/base.h extern bool driver_allows_async_probing(struct device_driver *drv); drv 133 drivers/base/base.h extern int driver_add_groups(struct device_driver *drv, drv 135 drivers/base/base.h extern void driver_remove_groups(struct device_driver *drv, drv 137 drivers/base/base.h int device_driver_attach(struct device_driver *drv, struct device *dev); drv 151 drivers/base/base.h extern void module_add_driver(struct module *mod, struct device_driver *drv); drv 152 drivers/base/base.h extern void module_remove_driver(struct device_driver *drv); drv 155 drivers/base/base.h struct device_driver *drv) { } drv 156 drivers/base/base.h static inline void module_remove_driver(struct device_driver *drv) { } drv 181 drivers/base/bus.c static ssize_t unbind_store(struct device_driver *drv, const char *buf, drv 184 drivers/base/bus.c struct bus_type *bus = bus_get(drv->bus); drv 189 drivers/base/bus.c if (dev && dev->driver == drv) { drv 204 drivers/base/bus.c static ssize_t bind_store(struct device_driver *drv, const char *buf, drv 207 drivers/base/bus.c struct bus_type *bus = bus_get(drv->bus); drv 212 drivers/base/bus.c if (dev && dev->driver == NULL && driver_match_device(drv, dev)) { drv 213 drivers/base/bus.c err = device_driver_attach(drv, dev); drv 421 drivers/base/bus.c struct device_driver *drv; drv 429 drivers/base/bus.c while ((drv = next_driver(&i)) && !error) drv 430 drivers/base/bus.c error = fn(drv, data); drv 536 drivers/base/bus.c static int __must_check add_bind_files(struct device_driver *drv) drv 540 drivers/base/bus.c ret = driver_create_file(drv, &driver_attr_unbind); drv 542 drivers/base/bus.c ret = driver_create_file(drv, &driver_attr_bind); drv 544 drivers/base/bus.c driver_remove_file(drv, &driver_attr_unbind); drv 549 drivers/base/bus.c static void remove_bind_files(struct device_driver *drv) drv 551 drivers/base/bus.c driver_remove_file(drv, &driver_attr_bind); drv 552 drivers/base/bus.c driver_remove_file(drv, &driver_attr_unbind); drv 579 drivers/base/bus.c static ssize_t uevent_store(struct device_driver *drv, const char *buf, drv 584 drivers/base/bus.c rc = kobject_synth_uevent(&drv->p->kobj, buf, count); drv 593 drivers/base/bus.c int bus_add_driver(struct device_driver *drv) drv 599 drivers/base/bus.c bus = bus_get(drv->bus); drv 603 drivers/base/bus.c pr_debug("bus: '%s': add driver %s\n", bus->name, drv->name); drv 611 drivers/base/bus.c priv->driver = drv; drv 612 drivers/base/bus.c drv->p = priv; drv 615 drivers/base/bus.c "%s", drv->name); drv 620 drivers/base/bus.c if (drv->bus->p->drivers_autoprobe) { drv 621 drivers/base/bus.c error = driver_attach(drv); drv 625 drivers/base/bus.c module_add_driver(drv->owner, drv); drv 627 drivers/base/bus.c error = driver_create_file(drv, &driver_attr_uevent); drv 630 drivers/base/bus.c __func__, drv->name); drv 632 drivers/base/bus.c error = driver_add_groups(drv, bus->drv_groups); drv 636 drivers/base/bus.c __func__, drv->name); drv 639 drivers/base/bus.c if (!drv->suppress_bind_attrs) { drv 640 drivers/base/bus.c error = add_bind_files(drv); drv 644 drivers/base/bus.c __func__, drv->name); drv 653 drivers/base/bus.c drv->p = NULL; drv 667 drivers/base/bus.c void bus_remove_driver(struct device_driver *drv) drv 669 drivers/base/bus.c if (!drv->bus) drv 672 drivers/base/bus.c if (!drv->suppress_bind_attrs) drv 673 drivers/base/bus.c remove_bind_files(drv); drv 674 drivers/base/bus.c driver_remove_groups(drv, drv->bus->drv_groups); drv 675 drivers/base/bus.c driver_remove_file(drv, &driver_attr_uevent); drv 676 drivers/base/bus.c klist_remove(&drv->p->knode_bus); drv 677 drivers/base/bus.c pr_debug("bus: '%s': remove driver %s\n", drv->bus->name, drv->name); drv 678 drivers/base/bus.c driver_detach(drv); drv 679 drivers/base/bus.c module_remove_driver(drv); drv 680 drivers/base/bus.c kobject_put(&drv->p->kobj); drv 681 drivers/base/bus.c bus_put(drv->bus); drv 945 drivers/base/core.c struct device_driver *drv; drv 951 drivers/base/core.c drv = READ_ONCE(dev->driver); drv 952 drivers/base/core.c return drv ? drv->name : drv 28 drivers/base/cpu.c static int cpu_subsys_match(struct device *dev, struct device_driver *drv) drv 31 drivers/base/cpu.c if (acpi_driver_match_device(dev, drv)) drv 442 drivers/base/dd.c struct device_driver *drv = dev->driver; drv 444 drivers/base/dd.c if (drv) { drv 445 drivers/base/dd.c if (drv->coredump) drv 447 drivers/base/dd.c sysfs_remove_link(&drv->p->kobj, kobject_name(&dev->kobj)); drv 492 drivers/base/dd.c static int really_probe(struct device *dev, struct device_driver *drv) drv 497 drivers/base/dd.c !drv->suppress_bind_attrs; drv 505 drivers/base/dd.c dev_dbg(dev, "Driver %s force probe deferral\n", drv->name); drv 518 drivers/base/dd.c drv->bus->name, __func__, drv->name, dev_name(dev)); drv 525 drivers/base/dd.c dev->driver = drv; drv 554 drivers/base/dd.c } else if (drv->probe) { drv 555 drivers/base/dd.c ret = drv->probe(dev); drv 560 drivers/base/dd.c if (device_add_groups(dev, drv->dev_groups)) { drv 568 drivers/base/dd.c device_remove_groups(dev, drv->dev_groups); drv 572 drivers/base/dd.c else if (drv->remove) drv 573 drivers/base/dd.c drv->remove(dev); drv 594 drivers/base/dd.c drv->bus->name, __func__, dev_name(dev), drv->name); drv 600 drivers/base/dd.c else if (drv->remove) drv 601 drivers/base/dd.c drv->remove(dev); drv 621 drivers/base/dd.c dev_dbg(dev, "Driver %s requests probe deferral\n", drv->name); drv 627 drivers/base/dd.c drv->name, dev_name(dev), ret); drv 633 drivers/base/dd.c drv->name, dev_name(dev), ret); drv 649 drivers/base/dd.c static int really_probe_debug(struct device *dev, struct device_driver *drv) drv 655 drivers/base/dd.c ret = really_probe(dev, drv); drv 706 drivers/base/dd.c int driver_probe_device(struct device_driver *drv, struct device *dev) drv 714 drivers/base/dd.c drv->bus->name, __func__, dev_name(dev), drv->name); drv 722 drivers/base/dd.c ret = really_probe_debug(dev, drv); drv 724 drivers/base/dd.c ret = really_probe(dev, drv); drv 751 drivers/base/dd.c bool driver_allows_async_probing(struct device_driver *drv) drv 753 drivers/base/dd.c switch (drv->probe_type) { drv 761 drivers/base/dd.c if (cmdline_requested_async_probing(drv->name)) drv 764 drivers/base/dd.c if (module_requested_async_probing(drv->owner)) drv 804 drivers/base/dd.c static int __device_attach_driver(struct device_driver *drv, void *_data) drv 811 drivers/base/dd.c ret = driver_match_device(drv, dev); drv 823 drivers/base/dd.c async_allowed = driver_allows_async_probing(drv); drv 831 drivers/base/dd.c return driver_probe_device(drv, dev); drv 987 drivers/base/dd.c int device_driver_attach(struct device_driver *drv, struct device *dev) drv 998 drivers/base/dd.c ret = driver_probe_device(drv, dev); drv 1008 drivers/base/dd.c struct device_driver *drv; drv 1013 drivers/base/dd.c drv = dev->p->async_driver; drv 1020 drivers/base/dd.c ret = driver_probe_device(drv, dev); drv 1024 drivers/base/dd.c dev_dbg(dev, "driver %s async attach completed: %d\n", drv->name, ret); drv 1031 drivers/base/dd.c struct device_driver *drv = data; drv 1044 drivers/base/dd.c ret = driver_match_device(drv, dev); drv 1056 drivers/base/dd.c if (driver_allows_async_probing(drv)) { drv 1064 drivers/base/dd.c dev_dbg(dev, "probing driver %s asynchronously\n", drv->name); drv 1068 drivers/base/dd.c dev->p->async_driver = drv; drv 1075 drivers/base/dd.c device_driver_attach(drv, dev); drv 1089 drivers/base/dd.c int driver_attach(struct device_driver *drv) drv 1091 drivers/base/dd.c return bus_for_each_dev(drv->bus, NULL, drv, __driver_attach); drv 1101 drivers/base/dd.c struct device_driver *drv; drv 1103 drivers/base/dd.c drv = dev->driver; drv 1104 drivers/base/dd.c if (drv) { drv 1116 drivers/base/dd.c if (dev->driver != drv) drv 1132 drivers/base/dd.c device_remove_groups(dev, drv->dev_groups); drv 1136 drivers/base/dd.c else if (drv->remove) drv 1137 drivers/base/dd.c drv->remove(dev); drv 1162 drivers/base/dd.c struct device_driver *drv, drv 1167 drivers/base/dd.c if (!drv || drv == dev->driver) drv 1211 drivers/base/dd.c void driver_detach(struct device_driver *drv) drv 1216 drivers/base/dd.c if (driver_allows_async_probing(drv)) drv 1220 drivers/base/dd.c spin_lock(&drv->p->klist_devices.k_lock); drv 1221 drivers/base/dd.c if (list_empty(&drv->p->klist_devices.k_list)) { drv 1222 drivers/base/dd.c spin_unlock(&drv->p->klist_devices.k_lock); drv 1225 drivers/base/dd.c dev_prv = list_entry(drv->p->klist_devices.k_list.prev, drv 1230 drivers/base/dd.c spin_unlock(&drv->p->klist_devices.k_lock); drv 1231 drivers/base/dd.c device_release_driver_internal(dev, drv, dev->parent); drv 41 drivers/base/driver.c int driver_for_each_device(struct device_driver *drv, struct device *start, drv 48 drivers/base/driver.c if (!drv) drv 51 drivers/base/driver.c klist_iter_init_node(&drv->p->klist_devices, &i, drv 75 drivers/base/driver.c struct device *driver_find_device(struct device_driver *drv, drv 82 drivers/base/driver.c if (!drv || !drv->p) drv 85 drivers/base/driver.c klist_iter_init_node(&drv->p->klist_devices, &i, drv 100 drivers/base/driver.c int driver_create_file(struct device_driver *drv, drv 105 drivers/base/driver.c if (drv) drv 106 drivers/base/driver.c error = sysfs_create_file(&drv->p->kobj, &attr->attr); drv 118 drivers/base/driver.c void driver_remove_file(struct device_driver *drv, drv 121 drivers/base/driver.c if (drv) drv 122 drivers/base/driver.c sysfs_remove_file(&drv->p->kobj, &attr->attr); drv 126 drivers/base/driver.c int driver_add_groups(struct device_driver *drv, drv 129 drivers/base/driver.c return sysfs_create_groups(&drv->p->kobj, groups); drv 132 drivers/base/driver.c void driver_remove_groups(struct device_driver *drv, drv 135 drivers/base/driver.c sysfs_remove_groups(&drv->p->kobj, groups); drv 146 drivers/base/driver.c int driver_register(struct device_driver *drv) drv 151 drivers/base/driver.c if (!drv->bus->p) { drv 153 drivers/base/driver.c drv->name, drv->bus->name); drv 157 drivers/base/driver.c if ((drv->bus->probe && drv->probe) || drv 158 drivers/base/driver.c (drv->bus->remove && drv->remove) || drv 159 drivers/base/driver.c (drv->bus->shutdown && drv->shutdown)) drv 161 drivers/base/driver.c "bus_type methods\n", drv->name); drv 163 drivers/base/driver.c other = driver_find(drv->name, drv->bus); drv 166 drivers/base/driver.c "aborting...\n", drv->name); drv 170 drivers/base/driver.c ret = bus_add_driver(drv); drv 173 drivers/base/driver.c ret = driver_add_groups(drv, drv->groups); drv 175 drivers/base/driver.c bus_remove_driver(drv); drv 178 drivers/base/driver.c kobject_uevent(&drv->p->kobj, KOBJ_ADD); drv 190 drivers/base/driver.c void driver_unregister(struct device_driver *drv) drv 192 drivers/base/driver.c if (!drv || !drv->p) { drv 196 drivers/base/driver.c driver_remove_groups(drv, drv->groups); drv 197 drivers/base/driver.c bus_remove_driver(drv); drv 12 drivers/base/module.c static char *make_driver_name(struct device_driver *drv) drv 16 drivers/base/module.c driver_name = kasprintf(GFP_KERNEL, "%s:%s", drv->bus->name, drv->name); drv 33 drivers/base/module.c void module_add_driver(struct module *mod, struct device_driver *drv) drv 39 drivers/base/module.c if (!drv) drv 44 drivers/base/module.c else if (drv->mod_name) { drv 48 drivers/base/module.c mkobj = kset_find_obj(module_kset, drv->mod_name); drv 52 drivers/base/module.c drv->p->mkobj = mk; drv 62 drivers/base/module.c no_warn = sysfs_create_link(&drv->p->kobj, &mk->kobj, "module"); drv 63 drivers/base/module.c driver_name = make_driver_name(drv); drv 66 drivers/base/module.c no_warn = sysfs_create_link(mk->drivers_dir, &drv->p->kobj, drv 72 drivers/base/module.c void module_remove_driver(struct device_driver *drv) drv 77 drivers/base/module.c if (!drv) drv 80 drivers/base/module.c sysfs_remove_link(&drv->p->kobj, "module"); drv 82 drivers/base/module.c if (drv->owner) drv 83 drivers/base/module.c mk = &drv->owner->mkobj; drv 84 drivers/base/module.c else if (drv->p->mkobj) drv 85 drivers/base/module.c mk = drv->p->mkobj; drv 87 drivers/base/module.c driver_name = make_driver_name(drv); drv 673 drivers/base/platform.c struct platform_driver *drv = to_platform_driver(_dev->driver); drv 685 drivers/base/platform.c if (drv->probe) { drv 686 drivers/base/platform.c ret = drv->probe(dev); drv 692 drivers/base/platform.c if (drv->prevent_deferred_probe && ret == -EPROBE_DEFER) { drv 707 drivers/base/platform.c struct platform_driver *drv = to_platform_driver(_dev->driver); drv 711 drivers/base/platform.c if (drv->remove) drv 712 drivers/base/platform.c ret = drv->remove(dev); drv 720 drivers/base/platform.c struct platform_driver *drv = to_platform_driver(_dev->driver); drv 723 drivers/base/platform.c if (drv->shutdown) drv 724 drivers/base/platform.c drv->shutdown(dev); drv 732 drivers/base/platform.c int __platform_driver_register(struct platform_driver *drv, drv 735 drivers/base/platform.c drv->driver.owner = owner; drv 736 drivers/base/platform.c drv->driver.bus = &platform_bus_type; drv 737 drivers/base/platform.c drv->driver.probe = platform_drv_probe; drv 738 drivers/base/platform.c drv->driver.remove = platform_drv_remove; drv 739 drivers/base/platform.c drv->driver.shutdown = platform_drv_shutdown; drv 741 drivers/base/platform.c return driver_register(&drv->driver); drv 749 drivers/base/platform.c void platform_driver_unregister(struct platform_driver *drv) drv 751 drivers/base/platform.c driver_unregister(&drv->driver); drv 775 drivers/base/platform.c int __init_or_module __platform_driver_probe(struct platform_driver *drv, drv 780 drivers/base/platform.c if (drv->driver.probe_type == PROBE_PREFER_ASYNCHRONOUS) { drv 782 drivers/base/platform.c drv->driver.name, __func__); drv 791 drivers/base/platform.c drv->driver.probe_type = PROBE_FORCE_SYNCHRONOUS; drv 797 drivers/base/platform.c drv->prevent_deferred_probe = true; drv 800 drivers/base/platform.c drv->driver.suppress_bind_attrs = true; drv 803 drivers/base/platform.c drv->probe = probe; drv 804 drivers/base/platform.c retval = code = __platform_driver_register(drv, module); drv 812 drivers/base/platform.c spin_lock(&drv->driver.bus->p->klist_drivers.k_lock); drv 813 drivers/base/platform.c drv->probe = NULL; drv 814 drivers/base/platform.c if (code == 0 && list_empty(&drv->driver.p->klist_devices.k_list)) drv 816 drivers/base/platform.c drv->driver.probe = platform_drv_probe_fail; drv 817 drivers/base/platform.c spin_unlock(&drv->driver.bus->p->klist_drivers.k_lock); drv 820 drivers/base/platform.c platform_driver_unregister(drv); drv 1070 drivers/base/platform.c static int platform_match(struct device *dev, struct device_driver *drv) drv 1073 drivers/base/platform.c struct platform_driver *pdrv = to_platform_driver(drv); drv 1077 drivers/base/platform.c return !strcmp(pdev->driver_override, drv->name); drv 1080 drivers/base/platform.c if (of_driver_match_device(dev, drv)) drv 1084 drivers/base/platform.c if (acpi_driver_match_device(dev, drv)) drv 1092 drivers/base/platform.c return (strcmp(pdev->name, drv->name) == 0); drv 1127 drivers/base/platform.c struct device_driver *drv = dev->driver; drv 1130 drivers/base/platform.c if (!drv) drv 1133 drivers/base/platform.c if (drv->pm) { drv 1134 drivers/base/platform.c if (drv->pm->suspend) drv 1135 drivers/base/platform.c ret = drv->pm->suspend(dev); drv 1145 drivers/base/platform.c struct device_driver *drv = dev->driver; drv 1148 drivers/base/platform.c if (!drv) drv 1151 drivers/base/platform.c if (drv->pm) { drv 1152 drivers/base/platform.c if (drv->pm->resume) drv 1153 drivers/base/platform.c ret = drv->pm->resume(dev); drv 1167 drivers/base/platform.c struct device_driver *drv = dev->driver; drv 1170 drivers/base/platform.c if (!drv) drv 1173 drivers/base/platform.c if (drv->pm) { drv 1174 drivers/base/platform.c if (drv->pm->freeze) drv 1175 drivers/base/platform.c ret = drv->pm->freeze(dev); drv 1185 drivers/base/platform.c struct device_driver *drv = dev->driver; drv 1188 drivers/base/platform.c if (!drv) drv 1191 drivers/base/platform.c if (drv->pm) { drv 1192 drivers/base/platform.c if (drv->pm->thaw) drv 1193 drivers/base/platform.c ret = drv->pm->thaw(dev); drv 1203 drivers/base/platform.c struct device_driver *drv = dev->driver; drv 1206 drivers/base/platform.c if (!drv) drv 1209 drivers/base/platform.c if (drv->pm) { drv 1210 drivers/base/platform.c if (drv->pm->poweroff) drv 1211 drivers/base/platform.c ret = drv->pm->poweroff(dev); drv 1221 drivers/base/platform.c struct device_driver *drv = dev->driver; drv 1224 drivers/base/platform.c if (!drv) drv 1227 drivers/base/platform.c if (drv->pm) { drv 1228 drivers/base/platform.c if (drv->pm->restore) drv 1229 drivers/base/platform.c ret = drv->pm->restore(dev); drv 1270 drivers/base/platform.c static inline int __platform_match(struct device *dev, const void *drv) drv 1272 drivers/base/platform.c return platform_match(dev, (struct device_driver *)drv); drv 1282 drivers/base/platform.c const struct device_driver *drv) drv 1284 drivers/base/platform.c return bus_find_device(&platform_bus_type, start, drv, drv 60 drivers/base/power/generic_ops.c struct device_driver *drv = dev->driver; drv 63 drivers/base/power/generic_ops.c if (drv && drv->pm && drv->pm->prepare) drv 64 drivers/base/power/generic_ops.c ret = drv->pm->prepare(dev); drv 293 drivers/base/power/generic_ops.c struct device_driver *drv = dev->driver; drv 295 drivers/base/power/generic_ops.c if (drv && drv->pm && drv->pm->complete) drv 296 drivers/base/power/generic_ops.c drv->pm->complete(dev); drv 28 drivers/bcma/main.c static int bcma_bus_match(struct device *dev, struct device_driver *drv); drv 535 drivers/bcma/main.c struct device_driver *drv = core->dev.driver; drv 536 drivers/bcma/main.c if (drv) { drv 537 drivers/bcma/main.c struct bcma_driver *adrv = container_of(drv, struct bcma_driver, drv); drv 556 drivers/bcma/main.c struct device_driver *drv = core->dev.driver; drv 557 drivers/bcma/main.c if (drv) { drv 558 drivers/bcma/main.c struct bcma_driver *adrv = container_of(drv, struct bcma_driver, drv); drv 568 drivers/bcma/main.c int __bcma_driver_register(struct bcma_driver *drv, struct module *owner) drv 570 drivers/bcma/main.c drv->drv.name = drv->name; drv 571 drivers/bcma/main.c drv->drv.bus = &bcma_bus_type; drv 572 drivers/bcma/main.c drv->drv.owner = owner; drv 574 drivers/bcma/main.c return driver_register(&drv->drv); drv 578 drivers/bcma/main.c void bcma_driver_unregister(struct bcma_driver *drv) drv 580 drivers/bcma/main.c driver_unregister(&drv->drv); drv 584 drivers/bcma/main.c static int bcma_bus_match(struct device *dev, struct device_driver *drv) drv 587 drivers/bcma/main.c struct bcma_driver *adrv = container_of(drv, struct bcma_driver, drv); drv 605 drivers/bcma/main.c drv); drv 621 drivers/bcma/main.c drv); drv 2164 drivers/block/mtip32xx/mtip32xx.c static ssize_t show_device_status(struct device_driver *drv, char *buf) drv 441 drivers/block/paride/paride.c struct device_driver *drv = par_dev->dev.driver; drv 442 drivers/block/paride/paride.c int len = strlen(drv->name); drv 444 drivers/block/paride/paride.c if (strncmp(par_dev->name, drv->name, len)) drv 474 drivers/block/paride/paride.c struct parport_driver *drv = _drv; drv 476 drivers/block/paride/paride.c parport_unregister_driver(drv); drv 477 drivers/block/paride/paride.c kfree(drv); drv 1793 drivers/bluetooth/btmrvl_sdio.c .drv = { drv 1085 drivers/bluetooth/btmtksdio.c .drv = { drv 79 drivers/bus/fsl-mc/fsl-mc-bus.c static int fsl_mc_bus_match(struct device *dev, struct device_driver *drv) drv 83 drivers/bus/fsl-mc/fsl-mc-bus.c struct fsl_mc_driver *mc_drv = to_fsl_mc_driver(drv); drv 38 drivers/bus/mips_cdmm.c #define to_mips_cdmm_driver(d) container_of(d, struct mips_cdmm_driver, drv) drv 60 drivers/bus/mips_cdmm.c static int mips_cdmm_match(struct device *dev, struct device_driver *drv) drv 63 drivers/bus/mips_cdmm.c struct mips_cdmm_driver *cdrv = to_mips_cdmm_driver(drv); drv 221 drivers/bus/mips_cdmm.c int mips_cdmm_driver_register(struct mips_cdmm_driver *drv) drv 223 drivers/bus/mips_cdmm.c drv->drv.bus = &mips_cdmm_bustype; drv 225 drivers/bus/mips_cdmm.c if (drv->probe) drv 226 drivers/bus/mips_cdmm.c drv->drv.probe = mips_cdmm_probe; drv 227 drivers/bus/mips_cdmm.c if (drv->remove) drv 228 drivers/bus/mips_cdmm.c drv->drv.remove = mips_cdmm_remove; drv 229 drivers/bus/mips_cdmm.c if (drv->shutdown) drv 230 drivers/bus/mips_cdmm.c drv->drv.shutdown = mips_cdmm_shutdown; drv 232 drivers/bus/mips_cdmm.c return driver_register(&drv->drv); drv 242 drivers/bus/mips_cdmm.c void mips_cdmm_driver_unregister(struct mips_cdmm_driver *drv) drv 244 drivers/bus/mips_cdmm.c driver_unregister(&drv->drv); drv 86 drivers/bus/moxtet.c static int moxtet_match(struct device *dev, struct device_driver *drv) drv 89 drivers/bus/moxtet.c struct moxtet_driver *tdrv = to_moxtet_driver(drv); drv 92 drivers/bus/moxtet.c if (of_driver_match_device(dev, drv)) drv 134 drivers/bus/sunxi-rsb.c static int sunxi_rsb_device_match(struct device *dev, struct device_driver *drv) drv 136 drivers/bus/sunxi-rsb.c return of_driver_match_device(dev, drv); drv 141 drivers/bus/sunxi-rsb.c const struct sunxi_rsb_driver *drv = to_sunxi_rsb_driver(dev->driver); drv 145 drivers/bus/sunxi-rsb.c if (!drv->probe) drv 166 drivers/bus/sunxi-rsb.c return drv->probe(rdev); drv 171 drivers/bus/sunxi-rsb.c const struct sunxi_rsb_driver *drv = to_sunxi_rsb_driver(dev->driver); drv 173 drivers/bus/sunxi-rsb.c return drv->remove(to_sunxi_rsb_device(dev)); drv 90 drivers/char/hw_random/nomadik-rng.c .drv = { drv 2852 drivers/char/ipmi/ipmi_msghandler.c static struct bmc_device *ipmi_find_bmc_guid(struct device_driver *drv, drv 2858 drivers/char/ipmi/ipmi_msghandler.c dev = driver_find_device(drv, NULL, guid, __find_bmc_guid); drv 2892 drivers/char/ipmi/ipmi_msghandler.c struct device_driver *drv, drv 2902 drivers/char/ipmi/ipmi_msghandler.c dev = driver_find_device(drv, NULL, &id, __find_bmc_prod_dev_id); drv 833 drivers/char/ppdev.c struct device_driver *drv = par_dev->dev.driver; drv 834 drivers/char/ppdev.c int len = strlen(drv->name); drv 836 drivers/char/ppdev.c if (strncmp(par_dev->name, drv->name, len)) drv 686 drivers/char/tpm/tpm_crb.c .drv = { drv 325 drivers/clk/hisilicon/clk-hi3620.c u32 sam, drv, div, val; drv 331 drivers/clk/hisilicon/clk-hi3620.c drv = 1; drv 336 drivers/clk/hisilicon/clk-hi3620.c drv = 6; drv 341 drivers/clk/hisilicon/clk-hi3620.c drv = 6; drv 346 drivers/clk/hisilicon/clk-hi3620.c drv = 4; drv 351 drivers/clk/hisilicon/clk-hi3620.c drv = 4; drv 369 drivers/clk/hisilicon/clk-hi3620.c val = mmc_clk_delay(val, drv, mclk->drv_off, mclk->drv_bits); drv 1155 drivers/cpufreq/powernow-k8.c const char drv[] = "acpi-cpufreq"; drv 1162 drivers/cpufreq/powernow-k8.c if (strncmp(cur_drv, drv, min_t(size_t, strlen(cur_drv), strlen(drv)))) drv 1169 drivers/cpufreq/powernow-k8.c request_module(drv); drv 52 drivers/cpufreq/qcom-cpufreq-nvmem.c struct qcom_cpufreq_drv *drv); drv 96 drivers/cpufreq/qcom-cpufreq-nvmem.c struct qcom_cpufreq_drv *drv) drv 114 drivers/cpufreq/qcom-cpufreq-nvmem.c drv->versions = 1 << (unsigned int)(*speedbin); drv 117 drivers/cpufreq/qcom-cpufreq-nvmem.c drv->versions = 1 << ((unsigned int)(*speedbin) + 4); drv 140 drivers/cpufreq/qcom-cpufreq-nvmem.c struct qcom_cpufreq_drv *drv; drv 162 drivers/cpufreq/qcom-cpufreq-nvmem.c drv = kzalloc(sizeof(*drv), GFP_KERNEL); drv 163 drivers/cpufreq/qcom-cpufreq-nvmem.c if (!drv) drv 167 drivers/cpufreq/qcom-cpufreq-nvmem.c drv->data = match->data; drv 168 drivers/cpufreq/qcom-cpufreq-nvmem.c if (!drv->data) { drv 173 drivers/cpufreq/qcom-cpufreq-nvmem.c if (drv->data->get_version) { drv 184 drivers/cpufreq/qcom-cpufreq-nvmem.c ret = drv->data->get_version(cpu_dev, speedbin_nvmem, drv); drv 193 drivers/cpufreq/qcom-cpufreq-nvmem.c drv->opp_tables = kcalloc(num_possible_cpus(), sizeof(*drv->opp_tables), drv 195 drivers/cpufreq/qcom-cpufreq-nvmem.c if (!drv->opp_tables) { drv 200 drivers/cpufreq/qcom-cpufreq-nvmem.c drv->genpd_opp_tables = kcalloc(num_possible_cpus(), drv 201 drivers/cpufreq/qcom-cpufreq-nvmem.c sizeof(*drv->genpd_opp_tables), drv 203 drivers/cpufreq/qcom-cpufreq-nvmem.c if (!drv->genpd_opp_tables) { drv 215 drivers/cpufreq/qcom-cpufreq-nvmem.c if (drv->data->get_version) { drv 216 drivers/cpufreq/qcom-cpufreq-nvmem.c drv->opp_tables[cpu] = drv 218 drivers/cpufreq/qcom-cpufreq-nvmem.c &drv->versions, 1); drv 219 drivers/cpufreq/qcom-cpufreq-nvmem.c if (IS_ERR(drv->opp_tables[cpu])) { drv 220 drivers/cpufreq/qcom-cpufreq-nvmem.c ret = PTR_ERR(drv->opp_tables[cpu]); drv 227 drivers/cpufreq/qcom-cpufreq-nvmem.c if (drv->data->genpd_names) { drv 228 drivers/cpufreq/qcom-cpufreq-nvmem.c drv->genpd_opp_tables[cpu] = drv 230 drivers/cpufreq/qcom-cpufreq-nvmem.c drv->data->genpd_names, drv 232 drivers/cpufreq/qcom-cpufreq-nvmem.c if (IS_ERR(drv->genpd_opp_tables[cpu])) { drv 233 drivers/cpufreq/qcom-cpufreq-nvmem.c ret = PTR_ERR(drv->genpd_opp_tables[cpu]); drv 246 drivers/cpufreq/qcom-cpufreq-nvmem.c platform_set_drvdata(pdev, drv); drv 255 drivers/cpufreq/qcom-cpufreq-nvmem.c if (IS_ERR_OR_NULL(drv->genpd_opp_tables[cpu])) drv 257 drivers/cpufreq/qcom-cpufreq-nvmem.c dev_pm_opp_detach_genpd(drv->genpd_opp_tables[cpu]); drv 259 drivers/cpufreq/qcom-cpufreq-nvmem.c kfree(drv->genpd_opp_tables); drv 262 drivers/cpufreq/qcom-cpufreq-nvmem.c if (IS_ERR_OR_NULL(drv->opp_tables[cpu])) drv 264 drivers/cpufreq/qcom-cpufreq-nvmem.c dev_pm_opp_put_supported_hw(drv->opp_tables[cpu]); drv 266 drivers/cpufreq/qcom-cpufreq-nvmem.c kfree(drv->opp_tables); drv 268 drivers/cpufreq/qcom-cpufreq-nvmem.c kfree(drv); drv 275 drivers/cpufreq/qcom-cpufreq-nvmem.c struct qcom_cpufreq_drv *drv = platform_get_drvdata(pdev); drv 281 drivers/cpufreq/qcom-cpufreq-nvmem.c if (drv->opp_tables[cpu]) drv 282 drivers/cpufreq/qcom-cpufreq-nvmem.c dev_pm_opp_put_supported_hw(drv->opp_tables[cpu]); drv 283 drivers/cpufreq/qcom-cpufreq-nvmem.c if (drv->genpd_opp_tables[cpu]) drv 284 drivers/cpufreq/qcom-cpufreq-nvmem.c dev_pm_opp_detach_genpd(drv->genpd_opp_tables[cpu]); drv 287 drivers/cpufreq/qcom-cpufreq-nvmem.c kfree(drv->opp_tables); drv 288 drivers/cpufreq/qcom-cpufreq-nvmem.c kfree(drv->genpd_opp_tables); drv 289 drivers/cpufreq/qcom-cpufreq-nvmem.c kfree(drv); drv 174 drivers/cpuidle/coupled.c bool cpuidle_state_is_coupled(struct cpuidle_driver *drv, int state) drv 176 drivers/cpuidle/coupled.c return drv->states[state].flags & CPUIDLE_FLAG_COUPLED; drv 186 drivers/cpuidle/coupled.c int cpuidle_coupled_state_verify(struct cpuidle_driver *drv) drv 190 drivers/cpuidle/coupled.c for (i = drv->state_count - 1; i >= 0; i--) { drv 191 drivers/cpuidle/coupled.c if (cpuidle_state_is_coupled(drv, i) && drv 192 drivers/cpuidle/coupled.c (drv->safe_state_index == i || drv 193 drivers/cpuidle/coupled.c drv->safe_state_index < 0 || drv 194 drivers/cpuidle/coupled.c drv->safe_state_index >= drv->state_count)) drv 470 drivers/cpuidle/coupled.c struct cpuidle_driver *drv, int next_state) drv 485 drivers/cpuidle/coupled.c entered_state = cpuidle_enter_state(dev, drv, drv 486 drivers/cpuidle/coupled.c drv->safe_state_index); drv 533 drivers/cpuidle/coupled.c entered_state = cpuidle_enter_state(dev, drv, drv 534 drivers/cpuidle/coupled.c drv->safe_state_index); drv 594 drivers/cpuidle/coupled.c entered_state = cpuidle_enter_state(dev, drv, next_state); drv 34 drivers/cpuidle/cpuidle-arm.c struct cpuidle_driver *drv, int idx) drv 80 drivers/cpuidle/cpuidle-arm.c struct cpuidle_driver *drv; drv 82 drivers/cpuidle/cpuidle-arm.c drv = kmemdup(&arm_idle_driver, sizeof(*drv), GFP_KERNEL); drv 83 drivers/cpuidle/cpuidle-arm.c if (!drv) drv 86 drivers/cpuidle/cpuidle-arm.c drv->cpumask = (struct cpumask *)cpumask_of(cpu); drv 95 drivers/cpuidle/cpuidle-arm.c ret = dt_init_idle_driver(drv, arm_idle_state_match, 1); drv 123 drivers/cpuidle/cpuidle-arm.c ret = cpuidle_register(drv, NULL); drv 130 drivers/cpuidle/cpuidle-arm.c kfree(drv); drv 144 drivers/cpuidle/cpuidle-arm.c struct cpuidle_driver *drv; drv 158 drivers/cpuidle/cpuidle-arm.c drv = cpuidle_get_cpu_driver(dev); drv 159 drivers/cpuidle/cpuidle-arm.c cpuidle_unregister(drv); drv 160 drivers/cpuidle/cpuidle-arm.c kfree(drv); drv 30 drivers/cpuidle/cpuidle-at91.c struct cpuidle_driver *drv, drv 27 drivers/cpuidle/cpuidle-big_little.c struct cpuidle_driver *drv, int idx); drv 124 drivers/cpuidle/cpuidle-big_little.c struct cpuidle_driver *drv, int idx) drv 138 drivers/cpuidle/cpuidle-big_little.c static int __init bl_idle_driver_init(struct cpuidle_driver *drv, int part_id) drv 151 drivers/cpuidle/cpuidle-big_little.c drv->cpumask = cpumask; drv 35 drivers/cpuidle/cpuidle-calxeda.c struct cpuidle_driver *drv, drv 19 drivers/cpuidle/cpuidle-clps711x.c struct cpuidle_driver *drv, int index) drv 24 drivers/cpuidle/cpuidle-cps.c struct cpuidle_driver *drv, int index) drv 28 drivers/cpuidle/cpuidle-exynos.c struct cpuidle_driver *drv, drv 59 drivers/cpuidle/cpuidle-exynos.c struct cpuidle_driver *drv, drv 66 drivers/cpuidle/cpuidle-exynos.c new_index = drv->safe_state_index; drv 69 drivers/cpuidle/cpuidle-exynos.c return arm_cpuidle_simple_enter(dev, drv, new_index); drv 25 drivers/cpuidle/cpuidle-haltpoll.c struct cpuidle_driver *drv, int index) drv 96 drivers/cpuidle/cpuidle-haltpoll.c struct cpuidle_driver *drv = &haltpoll_driver; drv 102 drivers/cpuidle/cpuidle-haltpoll.c cpuidle_poll_state_init(drv); drv 108 drivers/cpuidle/cpuidle-haltpoll.c ret = cpuidle_register_driver(drv); drv 114 drivers/cpuidle/cpuidle-haltpoll.c cpuidle_unregister_driver(drv); drv 32 drivers/cpuidle/cpuidle-kirkwood.c struct cpuidle_driver *drv, drv 29 drivers/cpuidle/cpuidle-mvebu-v7.c struct cpuidle_driver *drv, drv 36 drivers/cpuidle/cpuidle-mvebu-v7.c if (drv->states[index].flags & MVEBU_V7_FLAG_DEEP_IDLE) drv 50 drivers/cpuidle/cpuidle-powernv.c struct cpuidle_driver *drv, drv 58 drivers/cpuidle/cpuidle-powernv.c for (i = index + 1; i < drv->state_count; i++) { drv 59 drivers/cpuidle/cpuidle-powernv.c struct cpuidle_state *s = &drv->states[i]; drv 72 drivers/cpuidle/cpuidle-powernv.c struct cpuidle_driver *drv, drv 81 drivers/cpuidle/cpuidle-powernv.c snooze_exit_time = get_tb() + get_snooze_timeout(dev, drv, index); drv 107 drivers/cpuidle/cpuidle-powernv.c struct cpuidle_driver *drv, drv 118 drivers/cpuidle/cpuidle-powernv.c struct cpuidle_driver *drv, drv 144 drivers/cpuidle/cpuidle-powernv.c struct cpuidle_driver *drv, drv 194 drivers/cpuidle/cpuidle-powernv.c struct cpuidle_driver *drv = &powernv_idle_driver; drv 196 drivers/cpuidle/cpuidle-powernv.c drv->state_count = 0; drv 203 drivers/cpuidle/cpuidle-powernv.c drv->states[drv->state_count] = /* structure copy */ drv 206 drivers/cpuidle/cpuidle-powernv.c drv->state_count += 1; drv 225 drivers/cpuidle/cpuidle-powernv.c drv->cpumask = (struct cpumask *)cpu_present_mask; drv 28 drivers/cpuidle/cpuidle-psci.c struct cpuidle_driver *drv, int idx) drv 141 drivers/cpuidle/cpuidle-psci.c struct cpuidle_driver *drv; drv 162 drivers/cpuidle/cpuidle-psci.c drv = kmemdup(&psci_idle_driver, sizeof(*drv), GFP_KERNEL); drv 163 drivers/cpuidle/cpuidle-psci.c if (!drv) drv 166 drivers/cpuidle/cpuidle-psci.c drv->cpumask = (struct cpumask *)cpumask_of(cpu); drv 179 drivers/cpuidle/cpuidle-psci.c ret = dt_init_idle_driver(drv, psci_idle_state_match, 1); drv 194 drivers/cpuidle/cpuidle-psci.c ret = cpuidle_register(drv, NULL); drv 201 drivers/cpuidle/cpuidle-psci.c kfree(drv); drv 215 drivers/cpuidle/cpuidle-psci.c struct cpuidle_driver *drv; drv 229 drivers/cpuidle/cpuidle-psci.c drv = cpuidle_get_cpu_driver(dev); drv 230 drivers/cpuidle/cpuidle-psci.c cpuidle_unregister(drv); drv 231 drivers/cpuidle/cpuidle-psci.c kfree(drv); drv 58 drivers/cpuidle/cpuidle-pseries.c struct cpuidle_driver *drv, drv 113 drivers/cpuidle/cpuidle-pseries.c struct cpuidle_driver *drv, drv 133 drivers/cpuidle/cpuidle-pseries.c struct cpuidle_driver *drv, drv 221 drivers/cpuidle/cpuidle-pseries.c struct cpuidle_driver *drv = &pseries_idle_driver; drv 223 drivers/cpuidle/cpuidle-pseries.c drv->state_count = 0; drv 230 drivers/cpuidle/cpuidle-pseries.c drv->states[drv->state_count] = /* structure copy */ drv 233 drivers/cpuidle/cpuidle-pseries.c drv->state_count += 1; drv 24 drivers/cpuidle/cpuidle-ux500.c struct cpuidle_driver *drv, int index) drv 26 drivers/cpuidle/cpuidle-zynq.c struct cpuidle_driver *drv, int index) drv 48 drivers/cpuidle/cpuidle.c bool cpuidle_not_available(struct cpuidle_driver *drv, drv 51 drivers/cpuidle/cpuidle.c return off || !initialized || !drv || !dev || !dev->enabled; drv 62 drivers/cpuidle/cpuidle.c struct cpuidle_driver *drv = cpuidle_get_cpu_driver(dev); drv 65 drivers/cpuidle/cpuidle.c if (!drv) drv 69 drivers/cpuidle/cpuidle.c for (i = drv->state_count - 1; i >= 0; i--) drv 70 drivers/cpuidle/cpuidle.c if (drv->states[i].enter_dead) drv 71 drivers/cpuidle/cpuidle.c return drv->states[i].enter_dead(dev, i); drv 76 drivers/cpuidle/cpuidle.c static int find_deepest_state(struct cpuidle_driver *drv, drv 85 drivers/cpuidle/cpuidle.c for (i = 1; i < drv->state_count; i++) { drv 86 drivers/cpuidle/cpuidle.c struct cpuidle_state *s = &drv->states[i]; drv 124 drivers/cpuidle/cpuidle.c int cpuidle_find_deepest_state(struct cpuidle_driver *drv, drv 127 drivers/cpuidle/cpuidle.c return find_deepest_state(drv, dev, UINT_MAX, 0, false); drv 131 drivers/cpuidle/cpuidle.c static void enter_s2idle_proper(struct cpuidle_driver *drv, drv 150 drivers/cpuidle/cpuidle.c drv->states[index].enter_s2idle(dev, drv, index); drv 174 drivers/cpuidle/cpuidle.c int cpuidle_enter_s2idle(struct cpuidle_driver *drv, struct cpuidle_device *dev) drv 183 drivers/cpuidle/cpuidle.c index = find_deepest_state(drv, dev, UINT_MAX, 0, true); drv 185 drivers/cpuidle/cpuidle.c enter_s2idle_proper(drv, dev, index); drv 197 drivers/cpuidle/cpuidle.c int cpuidle_enter_state(struct cpuidle_device *dev, struct cpuidle_driver *drv, drv 202 drivers/cpuidle/cpuidle.c struct cpuidle_state *target_state = &drv->states[index]; drv 212 drivers/cpuidle/cpuidle.c index = find_deepest_state(drv, dev, target_state->exit_latency, drv 218 drivers/cpuidle/cpuidle.c target_state = &drv->states[index]; drv 229 drivers/cpuidle/cpuidle.c entered_state = target_state->enter(dev, drv, index); drv 246 drivers/cpuidle/cpuidle.c if (!cpuidle_state_is_coupled(drv, index)) drv 250 drivers/cpuidle/cpuidle.c s64 diff, delay = drv->states[entered_state].exit_latency; drv 266 drivers/cpuidle/cpuidle.c if (diff < drv->states[entered_state].target_residency) { drv 268 drivers/cpuidle/cpuidle.c if (drv->states[i].disabled || drv 277 drivers/cpuidle/cpuidle.c for (i = entered_state + 1; i < drv->state_count; i++) { drv 278 drivers/cpuidle/cpuidle.c if (drv->states[i].disabled || drv 286 drivers/cpuidle/cpuidle.c if (diff - delay >= drv->states[i].target_residency) drv 312 drivers/cpuidle/cpuidle.c int cpuidle_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, drv 315 drivers/cpuidle/cpuidle.c return cpuidle_curr_governor->select(drv, dev, stop_tick); drv 328 drivers/cpuidle/cpuidle.c int cpuidle_enter(struct cpuidle_driver *drv, struct cpuidle_device *dev, drv 341 drivers/cpuidle/cpuidle.c if (cpuidle_state_is_coupled(drv, index)) drv 342 drivers/cpuidle/cpuidle.c ret = cpuidle_enter_state_coupled(dev, drv, index); drv 344 drivers/cpuidle/cpuidle.c ret = cpuidle_enter_state(dev, drv, index); drv 372 drivers/cpuidle/cpuidle.c u64 cpuidle_poll_time(struct cpuidle_driver *drv, drv 382 drivers/cpuidle/cpuidle.c for (i = 1; i < drv->state_count; i++) { drv 383 drivers/cpuidle/cpuidle.c if (drv->states[i].disabled || dev->states_usage[i].disable) drv 386 drivers/cpuidle/cpuidle.c limit_ns = (u64)drv->states[i].target_residency * NSEC_PER_USEC; drv 472 drivers/cpuidle/cpuidle.c struct cpuidle_driver *drv; drv 483 drivers/cpuidle/cpuidle.c drv = cpuidle_get_cpu_driver(dev); drv 485 drivers/cpuidle/cpuidle.c if (!drv) drv 496 drivers/cpuidle/cpuidle.c ret = cpuidle_curr_governor->enable(drv, dev); drv 525 drivers/cpuidle/cpuidle.c struct cpuidle_driver *drv = cpuidle_get_cpu_driver(dev); drv 530 drivers/cpuidle/cpuidle.c if (!drv || !cpuidle_curr_governor) drv 536 drivers/cpuidle/cpuidle.c cpuidle_curr_governor->disable(drv, dev); drv 546 drivers/cpuidle/cpuidle.c struct cpuidle_driver *drv = cpuidle_get_cpu_driver(dev); drv 550 drivers/cpuidle/cpuidle.c module_put(drv->owner); drv 572 drivers/cpuidle/cpuidle.c struct cpuidle_driver *drv = cpuidle_get_cpu_driver(dev); drv 574 drivers/cpuidle/cpuidle.c if (!try_module_get(drv->owner)) drv 666 drivers/cpuidle/cpuidle.c void cpuidle_unregister(struct cpuidle_driver *drv) drv 671 drivers/cpuidle/cpuidle.c for_each_cpu(cpu, drv->cpumask) { drv 676 drivers/cpuidle/cpuidle.c cpuidle_unregister_driver(drv); drv 691 drivers/cpuidle/cpuidle.c int cpuidle_register(struct cpuidle_driver *drv, drv 697 drivers/cpuidle/cpuidle.c ret = cpuidle_register_driver(drv); drv 703 drivers/cpuidle/cpuidle.c for_each_cpu(cpu, drv->cpumask) { drv 722 drivers/cpuidle/cpuidle.c cpuidle_unregister(drv); drv 19 drivers/cpuidle/cpuidle.h struct cpuidle_driver *drv, int next_state); drv 41 drivers/cpuidle/cpuidle.h bool cpuidle_state_is_coupled(struct cpuidle_driver *drv, int state); drv 42 drivers/cpuidle/cpuidle.h int cpuidle_coupled_state_verify(struct cpuidle_driver *drv); drv 44 drivers/cpuidle/cpuidle.h struct cpuidle_driver *drv, int next_state); drv 49 drivers/cpuidle/cpuidle.h bool cpuidle_state_is_coupled(struct cpuidle_driver *drv, int state) drv 54 drivers/cpuidle/cpuidle.h static inline int cpuidle_coupled_state_verify(struct cpuidle_driver *drv) drv 60 drivers/cpuidle/cpuidle.h struct cpuidle_driver *drv, int next_state) drv 48 drivers/cpuidle/driver.c static inline void __cpuidle_unset_driver(struct cpuidle_driver *drv) drv 52 drivers/cpuidle/driver.c for_each_cpu(cpu, drv->cpumask) { drv 54 drivers/cpuidle/driver.c if (drv != __cpuidle_get_cpu_driver(cpu)) drv 68 drivers/cpuidle/driver.c static inline int __cpuidle_set_driver(struct cpuidle_driver *drv) drv 72 drivers/cpuidle/driver.c for_each_cpu(cpu, drv->cpumask) { drv 76 drivers/cpuidle/driver.c if (old_drv && old_drv != drv) drv 80 drivers/cpuidle/driver.c for_each_cpu(cpu, drv->cpumask) drv 81 drivers/cpuidle/driver.c per_cpu(cpuidle_drivers, cpu) = drv; drv 108 drivers/cpuidle/driver.c static inline int __cpuidle_set_driver(struct cpuidle_driver *drv) drv 113 drivers/cpuidle/driver.c cpuidle_curr_driver = drv; drv 125 drivers/cpuidle/driver.c static inline void __cpuidle_unset_driver(struct cpuidle_driver *drv) drv 127 drivers/cpuidle/driver.c if (drv == cpuidle_curr_driver) drv 154 drivers/cpuidle/driver.c static void __cpuidle_driver_init(struct cpuidle_driver *drv) drv 158 drivers/cpuidle/driver.c drv->refcnt = 0; drv 165 drivers/cpuidle/driver.c if (!drv->cpumask) drv 166 drivers/cpuidle/driver.c drv->cpumask = (struct cpumask *)cpu_possible_mask; drv 173 drivers/cpuidle/driver.c for (i = drv->state_count - 1; i >= 0 ; i--) { drv 174 drivers/cpuidle/driver.c if (drv->states[i].flags & CPUIDLE_FLAG_TIMER_STOP) { drv 175 drivers/cpuidle/driver.c drv->bctimer = 1; drv 194 drivers/cpuidle/driver.c static int __cpuidle_register_driver(struct cpuidle_driver *drv) drv 198 drivers/cpuidle/driver.c if (!drv || !drv->state_count) drv 201 drivers/cpuidle/driver.c ret = cpuidle_coupled_state_verify(drv); drv 208 drivers/cpuidle/driver.c __cpuidle_driver_init(drv); drv 210 drivers/cpuidle/driver.c ret = __cpuidle_set_driver(drv); drv 214 drivers/cpuidle/driver.c if (drv->bctimer) drv 215 drivers/cpuidle/driver.c on_each_cpu_mask(drv->cpumask, cpuidle_setup_broadcast_timer, drv 230 drivers/cpuidle/driver.c static void __cpuidle_unregister_driver(struct cpuidle_driver *drv) drv 232 drivers/cpuidle/driver.c if (WARN_ON(drv->refcnt > 0)) drv 235 drivers/cpuidle/driver.c if (drv->bctimer) { drv 236 drivers/cpuidle/driver.c drv->bctimer = 0; drv 237 drivers/cpuidle/driver.c on_each_cpu_mask(drv->cpumask, cpuidle_setup_broadcast_timer, drv 241 drivers/cpuidle/driver.c __cpuidle_unset_driver(drv); drv 254 drivers/cpuidle/driver.c int cpuidle_register_driver(struct cpuidle_driver *drv) drv 260 drivers/cpuidle/driver.c ret = __cpuidle_register_driver(drv); drv 263 drivers/cpuidle/driver.c if (!ret && !strlen(param_governor) && drv->governor && drv 264 drivers/cpuidle/driver.c (cpuidle_get_driver() == drv)) { drv 266 drivers/cpuidle/driver.c gov = cpuidle_find_governor(drv->governor); drv 287 drivers/cpuidle/driver.c void cpuidle_unregister_driver(struct cpuidle_driver *drv) drv 289 drivers/cpuidle/driver.c bool enabled = (cpuidle_get_driver() == drv); drv 292 drivers/cpuidle/driver.c __cpuidle_unregister_driver(drv); drv 314 drivers/cpuidle/driver.c struct cpuidle_driver *drv; drv 318 drivers/cpuidle/driver.c drv = __cpuidle_get_cpu_driver(cpu); drv 321 drivers/cpuidle/driver.c return drv; drv 351 drivers/cpuidle/driver.c struct cpuidle_driver *drv; drv 355 drivers/cpuidle/driver.c drv = cpuidle_get_driver(); drv 356 drivers/cpuidle/driver.c if (drv) drv 357 drivers/cpuidle/driver.c drv->refcnt++; drv 360 drivers/cpuidle/driver.c return drv; drv 371 drivers/cpuidle/driver.c struct cpuidle_driver *drv; drv 375 drivers/cpuidle/driver.c drv = cpuidle_get_driver(); drv 376 drivers/cpuidle/driver.c if (drv && !WARN_ON(drv->refcnt <= 0)) drv 377 drivers/cpuidle/driver.c drv->refcnt--; drv 150 drivers/cpuidle/dt_idle_states.c int dt_init_idle_driver(struct cpuidle_driver *drv, drv 169 drivers/cpuidle/dt_idle_states.c cpumask = drv->cpumask ? : cpu_possible_mask; drv 200 drivers/cpuidle/dt_idle_states.c idle_state = &drv->states[state_idx++]; drv 220 drivers/cpuidle/dt_idle_states.c drv->state_count = state_idx; drv 5 drivers/cpuidle/dt_idle_states.h int dt_init_idle_driver(struct cpuidle_driver *drv, drv 48 drivers/cpuidle/governors/haltpoll.c static int haltpoll_select(struct cpuidle_driver *drv, drv 54 drivers/cpuidle/governors/haltpoll.c if (!drv->state_count || latency_req == 0) { drv 126 drivers/cpuidle/governors/haltpoll.c static int haltpoll_enable_device(struct cpuidle_driver *drv, drv 66 drivers/cpuidle/governors/ladder.c static int ladder_select_state(struct cpuidle_driver *drv, drv 72 drivers/cpuidle/governors/ladder.c int first_idx = drv->states[0].flags & CPUIDLE_FLAG_POLLING ? 1 : 0; drv 83 drivers/cpuidle/governors/ladder.c last_residency = dev->last_residency - drv->states[last_idx].exit_latency; drv 86 drivers/cpuidle/governors/ladder.c if (last_idx < drv->state_count - 1 && drv 87 drivers/cpuidle/governors/ladder.c !drv->states[last_idx + 1].disabled && drv 90 drivers/cpuidle/governors/ladder.c drv->states[last_idx + 1].exit_latency <= latency_req) { drv 101 drivers/cpuidle/governors/ladder.c (drv->states[last_idx].disabled || drv 103 drivers/cpuidle/governors/ladder.c drv->states[last_idx].exit_latency > latency_req)) { drv 107 drivers/cpuidle/governors/ladder.c if (drv->states[i].exit_latency <= latency_req) drv 133 drivers/cpuidle/governors/ladder.c static int ladder_enable_device(struct cpuidle_driver *drv, drv 137 drivers/cpuidle/governors/ladder.c int first_idx = drv->states[0].flags & CPUIDLE_FLAG_POLLING ? 1 : 0; drv 144 drivers/cpuidle/governors/ladder.c for (i = first_idx; i < drv->state_count; i++) { drv 145 drivers/cpuidle/governors/ladder.c state = &drv->states[i]; drv 154 drivers/cpuidle/governors/ladder.c if (i < drv->state_count - 1) drv 171 drivers/cpuidle/governors/menu.c static void menu_update(struct cpuidle_driver *drv, struct cpuidle_device *dev); drv 275 drivers/cpuidle/governors/menu.c static int menu_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, drv 288 drivers/cpuidle/governors/menu.c menu_update(drv, dev); drv 298 drivers/cpuidle/governors/menu.c if (unlikely(drv->state_count <= 1 || latency_req == 0) || drv 299 drivers/cpuidle/governors/menu.c ((data->next_timer_us < drv->states[1].target_residency || drv 300 drivers/cpuidle/governors/menu.c latency_req < drv->states[1].exit_latency) && drv 301 drivers/cpuidle/governors/menu.c !drv->states[0].disabled && !dev->states_usage[0].disable)) { drv 307 drivers/cpuidle/governors/menu.c *stop_tick = !(drv->states[0].flags & CPUIDLE_FLAG_POLLING); drv 350 drivers/cpuidle/governors/menu.c for (i = 0; i < drv->state_count; i++) { drv 351 drivers/cpuidle/governors/menu.c struct cpuidle_state *s = &drv->states[i]; drv 365 drivers/cpuidle/governors/menu.c if ((drv->states[idx].flags & CPUIDLE_FLAG_POLLING) && drv 382 drivers/cpuidle/governors/menu.c predicted_us = drv->states[idx].target_residency; drv 392 drivers/cpuidle/governors/menu.c if (drv->states[idx].target_residency < TICK_USEC && drv 411 drivers/cpuidle/governors/menu.c if (((drv->states[idx].flags & CPUIDLE_FLAG_POLLING) || drv 417 drivers/cpuidle/governors/menu.c if (idx > 0 && drv->states[idx].target_residency > delta_next_us) { drv 425 drivers/cpuidle/governors/menu.c if (drv->states[i].disabled || drv 430 drivers/cpuidle/governors/menu.c if (drv->states[i].target_residency <= delta_next_us) drv 461 drivers/cpuidle/governors/menu.c static void menu_update(struct cpuidle_driver *drv, struct cpuidle_device *dev) drv 465 drivers/cpuidle/governors/menu.c struct cpuidle_state *target = &drv->states[last_idx]; drv 495 drivers/cpuidle/governors/menu.c } else if ((drv->states[last_idx].flags & CPUIDLE_FLAG_POLLING) && drv 555 drivers/cpuidle/governors/menu.c static int menu_enable_device(struct cpuidle_driver *drv, drv 117 drivers/cpuidle/governors/teo.c static void teo_update(struct cpuidle_driver *drv, struct cpuidle_device *dev) drv 134 drivers/cpuidle/governors/teo.c lat = drv->states[dev->last_state_idx].exit_latency; drv 153 drivers/cpuidle/governors/teo.c for (i = 0; i < drv->state_count; i++) { drv 158 drivers/cpuidle/governors/teo.c if (drv->states[i].target_residency <= sleep_length_us) { drv 160 drivers/cpuidle/governors/teo.c if (drv->states[i].target_residency <= measured_us) drv 208 drivers/cpuidle/governors/teo.c static int teo_find_shallower_state(struct cpuidle_driver *drv, drv 215 drivers/cpuidle/governors/teo.c if (drv->states[i].disabled || dev->states_usage[i].disable) drv 219 drivers/cpuidle/governors/teo.c if (drv->states[i].target_residency <= duration_us) drv 231 drivers/cpuidle/governors/teo.c static int teo_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, drv 241 drivers/cpuidle/governors/teo.c teo_update(drv, dev); drv 255 drivers/cpuidle/governors/teo.c constraint_idx = drv->state_count; drv 258 drivers/cpuidle/governors/teo.c for (i = 0; i < drv->state_count; i++) { drv 259 drivers/cpuidle/governors/teo.c struct cpuidle_state *s = &drv->states[i]; drv 306 drivers/cpuidle/governors/teo.c drv->states[idx].target_residency < TICK_USEC)) { drv 333 drivers/cpuidle/governors/teo.c drv->states[i].target_residency < TICK_USEC)) { drv 359 drivers/cpuidle/governors/teo.c duration_us = drv->states[idx].target_residency; drv 403 drivers/cpuidle/governors/teo.c if (drv->states[idx].target_residency > avg_us) drv 404 drivers/cpuidle/governors/teo.c idx = teo_find_shallower_state(drv, dev, drv 414 drivers/cpuidle/governors/teo.c if (((drv->states[idx].flags & CPUIDLE_FLAG_POLLING) || drv 426 drivers/cpuidle/governors/teo.c if (idx > 0 && drv->states[idx].target_residency > delta_tick_us) drv 427 drivers/cpuidle/governors/teo.c idx = teo_find_shallower_state(drv, dev, idx, delta_tick_us); drv 462 drivers/cpuidle/governors/teo.c static int teo_enable_device(struct cpuidle_driver *drv, drv 14 drivers/cpuidle/poll_state.c struct cpuidle_driver *drv, int index) drv 25 drivers/cpuidle/poll_state.c limit = cpuidle_poll_time(drv, dev); drv 44 drivers/cpuidle/poll_state.c void cpuidle_poll_state_init(struct cpuidle_driver *drv) drv 46 drivers/cpuidle/poll_state.c struct cpuidle_state *state = &drv->states[0]; drv 55 drivers/cpuidle/sysfs.c struct cpuidle_driver *drv; drv 58 drivers/cpuidle/sysfs.c drv = cpuidle_get_driver(); drv 59 drivers/cpuidle/sysfs.c if (drv) drv 60 drivers/cpuidle/sysfs.c ret = sprintf(buf, "%s\n", drv->name); drv 466 drivers/cpuidle/sysfs.c struct cpuidle_driver *drv = cpuidle_get_cpu_driver(device); drv 469 drivers/cpuidle/sysfs.c for (i = 0; i < drv->state_count; i++) { drv 475 drivers/cpuidle/sysfs.c kobj->state = &drv->states[i]; drv 505 drivers/cpuidle/sysfs.c struct cpuidle_driver *drv = cpuidle_get_cpu_driver(device); drv 508 drivers/cpuidle/sysfs.c for (i = 0; i < drv->state_count; i++) drv 521 drivers/cpuidle/sysfs.c struct cpuidle_driver *drv; drv 532 drivers/cpuidle/sysfs.c static ssize_t show_driver_name(struct cpuidle_driver *drv, char *buf) drv 537 drivers/cpuidle/sysfs.c ret = sprintf(buf, "%s\n", drv ? drv->name : "none"); drv 557 drivers/cpuidle/sysfs.c ret = dattr->show(driver_kobj->drv, buf); drv 570 drivers/cpuidle/sysfs.c ret = dattr->store(driver_kobj->drv, buf, size); drv 601 drivers/cpuidle/sysfs.c struct cpuidle_driver *drv = cpuidle_get_cpu_driver(dev); drv 608 drivers/cpuidle/sysfs.c kdrv->drv = drv; drv 166 drivers/crypto/nx/nx.h #define NX_DEBUGFS_INIT(drv) nx_debugfs_init(drv) drv 167 drivers/crypto/nx/nx.h #define NX_DEBUGFS_FINI(drv) nx_debugfs_fini(drv) drv 172 drivers/crypto/nx/nx.h #define NX_DEBUGFS_INIT(drv) (0) drv 173 drivers/crypto/nx/nx.h #define NX_DEBUGFS_FINI(drv) (0) drv 33 drivers/crypto/nx/nx_debugfs.c void nx_debugfs_init(struct nx_crypto_driver *drv) drv 38 drivers/crypto/nx/nx_debugfs.c drv->dfs_root = root; drv 41 drivers/crypto/nx/nx_debugfs.c root, (u32 *)&drv->stats.aes_ops); drv 43 drivers/crypto/nx/nx_debugfs.c root, (u32 *)&drv->stats.sha256_ops); drv 45 drivers/crypto/nx/nx_debugfs.c root, (u32 *)&drv->stats.sha512_ops); drv 47 drivers/crypto/nx/nx_debugfs.c root, (u64 *)&drv->stats.aes_bytes); drv 49 drivers/crypto/nx/nx_debugfs.c root, (u64 *)&drv->stats.sha256_bytes); drv 51 drivers/crypto/nx/nx_debugfs.c root, (u64 *)&drv->stats.sha512_bytes); drv 53 drivers/crypto/nx/nx_debugfs.c root, (u32 *)&drv->stats.errors); drv 55 drivers/crypto/nx/nx_debugfs.c root, (u32 *)&drv->stats.last_error); drv 57 drivers/crypto/nx/nx_debugfs.c root, (u32 *)&drv->stats.last_error_pid); drv 61 drivers/crypto/nx/nx_debugfs.c nx_debugfs_fini(struct nx_crypto_driver *drv) drv 63 drivers/crypto/nx/nx_debugfs.c debugfs_remove_recursive(drv->dfs_root); drv 31 drivers/dax/bus.c static struct dax_device_driver *to_dax_drv(struct device_driver *drv) drv 33 drivers/dax/bus.c return container_of(drv, struct dax_device_driver, drv); drv 65 drivers/dax/bus.c static ssize_t do_id_store(struct device_driver *drv, const char *buf, drv 68 drivers/dax/bus.c struct dax_device_driver *dax_drv = to_dax_drv(drv); drv 104 drivers/dax/bus.c rc = driver_attach(drv); drv 110 drivers/dax/bus.c static ssize_t new_id_store(struct device_driver *drv, const char *buf, drv 113 drivers/dax/bus.c return do_id_store(drv, buf, count, ID_ADD); drv 117 drivers/dax/bus.c static ssize_t remove_id_store(struct device_driver *drv, const char *buf, drv 120 drivers/dax/bus.c return do_id_store(drv, buf, count, ID_REMOVE); drv 131 drivers/dax/bus.c static int dax_bus_match(struct device *dev, struct device_driver *drv); drv 140 drivers/dax/bus.c static int dax_bus_match(struct device *dev, struct device_driver *drv) drv 142 drivers/dax/bus.c struct dax_device_driver *dax_drv = to_dax_drv(drv); drv 462 drivers/dax/bus.c struct device_driver *drv = &dax_drv->drv; drv 466 drivers/dax/bus.c drv->owner = module; drv 467 drivers/dax/bus.c drv->name = mod_name; drv 468 drivers/dax/bus.c drv->mod_name = mod_name; drv 469 drivers/dax/bus.c drv->bus = &dax_bus_type; drv 482 drivers/dax/bus.c return driver_register(drv); drv 488 drivers/dax/bus.c struct device_driver *drv = &dax_drv->drv; drv 498 drivers/dax/bus.c driver_unregister(drv); drv 34 drivers/dax/bus.h struct device_driver drv; drv 465 drivers/dax/device.c .drv = { drv 132 drivers/dax/kmem.c .drv = { drv 53 drivers/dax/pmem/compat.c .drv = { drv 67 drivers/dax/pmem/compat.c driver_unregister(&dax_pmem_compat_driver.drv); drv 17 drivers/dax/pmem/pmem.c .drv = { drv 31 drivers/dax/pmem/pmem.c driver_unregister(&dax_pmem_driver.drv); drv 50 drivers/dio/dio-driver.c struct dio_driver *drv = to_dio_driver(dev->driver); drv 53 drivers/dio/dio-driver.c if (!d->driver && drv->probe) { drv 56 drivers/dio/dio-driver.c id = dio_match_device(drv->id_table, d); drv 58 drivers/dio/dio-driver.c error = drv->probe(d, id); drv 60 drivers/dio/dio-driver.c d->driver = drv; drv 76 drivers/dio/dio-driver.c int dio_register_driver(struct dio_driver *drv) drv 79 drivers/dio/dio-driver.c drv->driver.name = drv->name; drv 80 drivers/dio/dio-driver.c drv->driver.bus = &dio_bus_type; drv 83 drivers/dio/dio-driver.c return driver_register(&drv->driver); drv 97 drivers/dio/dio-driver.c void dio_unregister_driver(struct dio_driver *drv) drv 99 drivers/dio/dio-driver.c driver_unregister(&drv->driver); drv 113 drivers/dio/dio-driver.c static int dio_bus_match(struct device *dev, struct device_driver *drv) drv 116 drivers/dio/dio-driver.c struct dio_driver *dio_drv = to_dio_driver(drv); drv 2253 drivers/dma/amba-pl08x.c if (chan->device->dev->driver != &pl08x_amba_driver.drv) drv 3069 drivers/dma/amba-pl08x.c .drv.name = DRIVER_NAME, drv 3260 drivers/dma/pl330.c .drv = { drv 169 drivers/edac/qcom_edac.c qcom_llcc_clear_error_status(int err_type, struct llcc_drv_data *drv) drv 176 drivers/edac/qcom_edac.c ret = regmap_write(drv->bcast_regmap, DRP_INTERRUPT_CLEAR, drv 181 drivers/edac/qcom_edac.c ret = regmap_write(drv->bcast_regmap, DRP_ECC_ERROR_CNTR_CLEAR, drv 188 drivers/edac/qcom_edac.c ret = regmap_write(drv->bcast_regmap, TRP_INTERRUPT_0_CLEAR, drv 193 drivers/edac/qcom_edac.c ret = regmap_write(drv->bcast_regmap, TRP_ECC_ERROR_CNTR_CLEAR, drv 208 drivers/edac/qcom_edac.c dump_syn_reg_values(struct llcc_drv_data *drv, u32 bank, int err_type) drv 216 drivers/edac/qcom_edac.c ret = regmap_read(drv->regmap, drv->offsets[bank] + synd_reg, drv 225 drivers/edac/qcom_edac.c ret = regmap_read(drv->regmap, drv 226 drivers/edac/qcom_edac.c drv->offsets[bank] + reg_data.count_status_reg, drv 236 drivers/edac/qcom_edac.c ret = regmap_read(drv->regmap, drv 237 drivers/edac/qcom_edac.c drv->offsets[bank] + reg_data.ways_status_reg, drv 249 drivers/edac/qcom_edac.c return qcom_llcc_clear_error_status(err_type, drv); drv 255 drivers/edac/qcom_edac.c struct llcc_drv_data *drv = edev_ctl->pvt_info; drv 258 drivers/edac/qcom_edac.c ret = dump_syn_reg_values(drv, bank, err_type); drv 292 drivers/edac/qcom_edac.c struct llcc_drv_data *drv = edac_dev_ctl->pvt_info; drv 298 drivers/edac/qcom_edac.c for (i = 0; i < drv->num_banks; i++) { drv 299 drivers/edac/qcom_edac.c ret = regmap_read(drv->regmap, drv 300 drivers/edac/qcom_edac.c drv->offsets[i] + DRP_INTERRUPT_STATUS, drv 315 drivers/edac/qcom_edac.c ret = regmap_read(drv->regmap, drv 316 drivers/edac/qcom_edac.c drv->offsets[i] + TRP_INTERRUPT_0_STATUS, drv 108 drivers/eisa/eisa-bus.c static int eisa_bus_match(struct device *dev, struct device_driver *drv) drv 111 drivers/eisa/eisa-bus.c struct eisa_driver *edrv = to_eisa_driver(drv); drv 159 drivers/firewire/core-device.c struct device_driver *drv) drv 162 drivers/firewire/core-device.c container_of(drv, struct fw_driver, driver)->id_table; drv 176 drivers/firewire/core-device.c static int fw_unit_match(struct device *dev, struct device_driver *drv) drv 179 drivers/firewire/core-device.c return is_fw_unit(dev) && unit_match(dev, drv) != NULL; drv 37 drivers/firmware/arm_scmi/bus.c static int scmi_dev_match(struct device *dev, struct device_driver *drv) drv 39 drivers/firmware/arm_scmi/bus.c struct scmi_driver *scmi_drv = to_scmi_driver(drv); drv 25 drivers/firmware/google/coreboot_table.c #define CB_DRV(d) container_of(d, struct coreboot_driver, drv) drv 27 drivers/firmware/google/coreboot_table.c static int coreboot_bus_match(struct device *dev, struct device_driver *drv) drv 30 drivers/firmware/google/coreboot_table.c struct coreboot_driver *driver = CB_DRV(drv); drv 75 drivers/firmware/google/coreboot_table.c driver->drv.bus = &coreboot_bus_type; drv 77 drivers/firmware/google/coreboot_table.c return driver_register(&driver->drv); drv 83 drivers/firmware/google/coreboot_table.c driver_unregister(&driver->drv); drv 76 drivers/firmware/google/coreboot_table.h struct device_driver drv; drv 87 drivers/firmware/google/framebuffer-coreboot.c .drv = { drv 104 drivers/firmware/google/memconsole-coreboot.c .drv = { drv 314 drivers/firmware/google/vpd.c .drv = { drv 232 drivers/firmware/psci/psci_checker.c struct cpuidle_driver *drv, int index) drv 234 drivers/firmware/psci/psci_checker.c struct cpuidle_state *state = &drv->states[index]; drv 260 drivers/firmware/psci/psci_checker.c ret = state->enter(dev, drv, index); drv 277 drivers/firmware/psci/psci_checker.c struct cpuidle_driver *drv; drv 290 drivers/firmware/psci/psci_checker.c drv = cpuidle_get_cpu_driver(dev); drv 293 drivers/firmware/psci/psci_checker.c cpu, drv->state_count - 1); drv 302 drivers/firmware/psci/psci_checker.c for (index = 1; index < drv->state_count; ++index) { drv 304 drivers/firmware/psci/psci_checker.c struct cpuidle_state *state = &drv->states[index]; drv 319 drivers/firmware/psci/psci_checker.c ret = suspend_cpu(dev, drv, index); drv 397 drivers/firmware/psci/psci_checker.c struct cpuidle_driver *drv = cpuidle_get_cpu_driver(dev); drv 399 drivers/firmware/psci/psci_checker.c if (!dev || !drv) { drv 545 drivers/fpga/altera-cvp.c static ssize_t chkcfg_store(struct device_driver *drv, const char *buf, drv 272 drivers/fpga/dfl.c struct dfl_feature_driver *drv) drv 276 drivers/fpga/dfl.c if (drv->ops->init) { drv 277 drivers/fpga/dfl.c ret = drv->ops->init(pdev, feature); drv 282 drivers/fpga/dfl.c feature->ops = drv->ops; drv 316 drivers/fpga/dfl.c struct dfl_feature_driver *drv = feature_drvs; drv 320 drivers/fpga/dfl.c while (drv->ops) { drv 322 drivers/fpga/dfl.c if (dfl_feature_drv_match(feature, drv)) { drv 324 drivers/fpga/dfl.c feature, drv); drv 329 drivers/fpga/dfl.c drv++; drv 1323 drivers/fsi/fsi-core.c static int fsi_bus_match(struct device *dev, struct device_driver *drv) drv 1326 drivers/fsi/fsi-core.c struct fsi_driver *fsi_drv = to_fsi_drv(drv); drv 1350 drivers/fsi/fsi-core.c return driver_register(&fsi_drv->drv); drv 1356 drivers/fsi/fsi-core.c driver_unregister(&fsi_drv->drv); drv 330 drivers/fsi/fsi-master-hub.c .drv = { drv 1041 drivers/fsi/fsi-sbefifo.c .drv = { drv 640 drivers/fsi/fsi-scom.c .drv = { drv 415 drivers/gpio/gpio-pl061.c .drv = { drv 935 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c struct amdgpu_fence_driver *drv = &ring->fence_drv; drv 941 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c last_seq &= drv->num_fences_mask; drv 942 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c sync_seq &= drv->num_fences_mask; drv 948 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c last_seq &= drv->num_fences_mask; drv 949 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c ptr = &drv->fences[last_seq]; drv 996 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c struct amdgpu_fence_driver *drv = &ring->fence_drv; drv 1002 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c preempt_seq = le32_to_cpu(*(drv->cpu_addr + 2)); drv 1003 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c if (preempt_seq <= atomic_read(&drv->last_seq)) drv 1006 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c preempt_seq &= drv->num_fences_mask; drv 1007 drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c ptr = &drv->fences[preempt_seq]; drv 100 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c struct amdgpu_fence_driver *drv = &ring->fence_drv; drv 102 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c if (drv->cpu_addr) drv 103 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c *drv->cpu_addr = cpu_to_le32(seq); drv 116 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c struct amdgpu_fence_driver *drv = &ring->fence_drv; drv 119 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c if (drv->cpu_addr) drv 120 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c seq = le32_to_cpu(*drv->cpu_addr); drv 122 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c seq = atomic_read(&drv->last_seq); drv 236 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c struct amdgpu_fence_driver *drv = &ring->fence_drv; drv 244 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c } while (atomic_cmpxchg(&drv->last_seq, last_seq, seq) != last_seq); drv 253 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c last_seq &= drv->num_fences_mask; drv 254 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c seq &= drv->num_fences_mask; drv 260 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c last_seq &= drv->num_fences_mask; drv 261 drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c ptr = &drv->fences[last_seq]; drv 48 drivers/gpu/drm/drm_mipi_dsi.c static int mipi_dsi_device_match(struct device *dev, struct device_driver *drv) drv 53 drivers/gpu/drm/drm_mipi_dsi.c if (of_driver_match_device(dev, drv)) drv 57 drivers/gpu/drm/drm_mipi_dsi.c if (!strcmp(dsi->name, drv->name)) drv 1095 drivers/gpu/drm/drm_mipi_dsi.c struct mipi_dsi_driver *drv = to_mipi_dsi_driver(dev->driver); drv 1098 drivers/gpu/drm/drm_mipi_dsi.c return drv->probe(dsi); drv 1103 drivers/gpu/drm/drm_mipi_dsi.c struct mipi_dsi_driver *drv = to_mipi_dsi_driver(dev->driver); drv 1106 drivers/gpu/drm/drm_mipi_dsi.c return drv->remove(dsi); drv 1111 drivers/gpu/drm/drm_mipi_dsi.c struct mipi_dsi_driver *drv = to_mipi_dsi_driver(dev->driver); drv 1114 drivers/gpu/drm/drm_mipi_dsi.c drv->shutdown(dsi); drv 1124 drivers/gpu/drm/drm_mipi_dsi.c int mipi_dsi_driver_register_full(struct mipi_dsi_driver *drv, drv 1127 drivers/gpu/drm/drm_mipi_dsi.c drv->driver.bus = &mipi_dsi_bus_type; drv 1128 drivers/gpu/drm/drm_mipi_dsi.c drv->driver.owner = owner; drv 1130 drivers/gpu/drm/drm_mipi_dsi.c if (drv->probe) drv 1131 drivers/gpu/drm/drm_mipi_dsi.c drv->driver.probe = mipi_dsi_drv_probe; drv 1132 drivers/gpu/drm/drm_mipi_dsi.c if (drv->remove) drv 1133 drivers/gpu/drm/drm_mipi_dsi.c drv->driver.remove = mipi_dsi_drv_remove; drv 1134 drivers/gpu/drm/drm_mipi_dsi.c if (drv->shutdown) drv 1135 drivers/gpu/drm/drm_mipi_dsi.c drv->driver.shutdown = mipi_dsi_drv_shutdown; drv 1137 drivers/gpu/drm/drm_mipi_dsi.c return driver_register(&drv->driver); drv 1147 drivers/gpu/drm/drm_mipi_dsi.c void mipi_dsi_driver_unregister(struct mipi_dsi_driver *drv) drv 1149 drivers/gpu/drm/drm_mipi_dsi.c driver_unregister(&drv->driver); drv 180 drivers/gpu/drm/exynos/exynos_drm_drv.c #define DRV_PTR(drv, cond) (IS_ENABLED(cond) ? &drv : NULL) drv 1224 drivers/gpu/drm/exynos/exynos_mixer.c const struct mixer_drv_data *drv; drv 1234 drivers/gpu/drm/exynos/exynos_mixer.c drv = of_device_get_match_data(dev); drv 1238 drivers/gpu/drm/exynos/exynos_mixer.c ctx->mxr_ver = drv->version; drv 1240 drivers/gpu/drm/exynos/exynos_mixer.c if (drv->is_vp_enabled) drv 1242 drivers/gpu/drm/exynos/exynos_mixer.c if (drv->has_sclk) drv 3097 drivers/gpu/drm/i915/i915_irq.c const struct cpuidle_driver *drv; drv 3100 drivers/gpu/drm/i915/i915_irq.c drv = cpuidle_get_driver(); drv 3101 drivers/gpu/drm/i915/i915_irq.c if (!drv) drv 3104 drivers/gpu/drm/i915/i915_irq.c for (i = 0; i < drv->state_count; i++) { drv 3105 drivers/gpu/drm/i915/i915_irq.c const struct cpuidle_state *state = &drv->states[i]; drv 475 drivers/gpu/drm/mcde/mcde_drv.c struct device_driver *drv = &mcde_component_drivers[i]->driver; drv 478 drivers/gpu/drm/mcde/mcde_drv.c while ((d = platform_find_device_by_driver(p, drv))) { drv 383 drivers/gpu/drm/msm/msm_drv.c static int msm_drm_init(struct device *dev, struct drm_driver *drv) drv 393 drivers/gpu/drm/msm/msm_drv.c ddev = drm_dev_alloc(drv, dev); drv 20 drivers/gpu/drm/nouveau/include/nvif/driver.h int nvif_driver_init(const char *drv, const char *cfg, const char *dbg, drv 40 drivers/gpu/drm/nouveau/nvif/driver.c nvif_driver_init(const char *drv, const char *cfg, const char *dbg, drv 46 drivers/gpu/drm/nouveau/nvif/driver.c if (!drv || !strcmp(client->driver->name, drv)) { drv 366 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c const struct nvkm_i2c_drv *drv = nvkm_i2c_drv; drv 382 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c while (drv->pad_new) { drv 383 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c if (drv->bios == dcbE.extdev) drv 385 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c drv++; drv 388 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c if (!drv->pad_new) { drv 398 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c ret = drv->pad_new(bus, id, drv->addr, &pad); drv 449 drivers/gpu/drm/pl111/pl111_drv.c .drv = { drv 281 drivers/gpu/drm/qxl/qxl_drv.h int qxl_device_init(struct qxl_device *qdev, struct drm_driver *drv, drv 110 drivers/gpu/drm/qxl/qxl_kms.c struct drm_driver *drv, drv 115 drivers/gpu/drm/qxl/qxl_kms.c r = drm_dev_init(&qdev->ddev, drv, &pdev->dev); drv 70 drivers/gpu/drm/radeon/radeon_fence.c struct radeon_fence_driver *drv = &rdev->fence_drv[ring]; drv 71 drivers/gpu/drm/radeon/radeon_fence.c if (likely(rdev->wb.enabled || !drv->scratch_reg)) { drv 72 drivers/gpu/drm/radeon/radeon_fence.c if (drv->cpu_addr) { drv 73 drivers/gpu/drm/radeon/radeon_fence.c *drv->cpu_addr = cpu_to_le32(seq); drv 76 drivers/gpu/drm/radeon/radeon_fence.c WREG32(drv->scratch_reg, seq); drv 91 drivers/gpu/drm/radeon/radeon_fence.c struct radeon_fence_driver *drv = &rdev->fence_drv[ring]; drv 94 drivers/gpu/drm/radeon/radeon_fence.c if (likely(rdev->wb.enabled || !drv->scratch_reg)) { drv 95 drivers/gpu/drm/radeon/radeon_fence.c if (drv->cpu_addr) { drv 96 drivers/gpu/drm/radeon/radeon_fence.c seq = le32_to_cpu(*drv->cpu_addr); drv 98 drivers/gpu/drm/radeon/radeon_fence.c seq = lower_32_bits(atomic64_read(&drv->last_seq)); drv 101 drivers/gpu/drm/radeon/radeon_fence.c seq = RREG32(drv->scratch_reg); drv 276 drivers/gpu/drm/rockchip/rockchip_drm_drv.c struct device_driver *drv; drv 292 drivers/gpu/drm/rockchip/rockchip_drm_drv.c drv = pdev->dev.driver; drv 293 drivers/gpu/drm/rockchip/rockchip_drm_drv.c if (!drv) { drv 299 drivers/gpu/drm/rockchip/rockchip_drm_drv.c if (rockchip_sub_drivers[i] == to_platform_driver(drv)) { drv 328 drivers/gpu/drm/rockchip/rockchip_drm_drv.c struct platform_driver *drv = rockchip_sub_drivers[i]; drv 332 drivers/gpu/drm/rockchip/rockchip_drm_drv.c d = platform_find_device_by_driver(p, &drv->driver); drv 466 drivers/gpu/drm/rockchip/rockchip_drm_drv.c #define ADD_ROCKCHIP_SUB_DRIVER(drv, cond) { \ drv 469 drivers/gpu/drm/rockchip/rockchip_drm_drv.c rockchip_sub_drivers[num_rockchip_sub_drivers++] = &drv; \ drv 733 drivers/gpu/drm/sun4i/sun4i_backend.c static struct sun4i_frontend *sun4i_backend_find_frontend(struct sun4i_drv *drv, drv 750 drivers/gpu/drm/sun4i/sun4i_backend.c list_for_each_entry(frontend, &drv->frontend_list, list) { drv 784 drivers/gpu/drm/sun4i/sun4i_backend.c struct sun4i_drv *drv = drm->dev_private; drv 824 drivers/gpu/drm/sun4i/sun4i_backend.c backend->frontend = sun4i_backend_find_frontend(drv, dev->of_node); drv 885 drivers/gpu/drm/sun4i/sun4i_backend.c list_add_tail(&backend->engine.list, &drv->engine_list); drv 62 drivers/gpu/drm/sun4i/sun4i_drv.c struct sun4i_drv *drv; drv 69 drivers/gpu/drm/sun4i/sun4i_drv.c drv = devm_kzalloc(dev, sizeof(*drv), GFP_KERNEL); drv 70 drivers/gpu/drm/sun4i/sun4i_drv.c if (!drv) { drv 76 drivers/gpu/drm/sun4i/sun4i_drv.c drm->dev_private = drv; drv 77 drivers/gpu/drm/sun4i/sun4i_drv.c INIT_LIST_HEAD(&drv->frontend_list); drv 78 drivers/gpu/drm/sun4i/sun4i_drv.c INIT_LIST_HEAD(&drv->engine_list); drv 79 drivers/gpu/drm/sun4i/sun4i_drv.c INIT_LIST_HEAD(&drv->tcon_list); drv 561 drivers/gpu/drm/sun4i/sun4i_frontend.c struct sun4i_drv *drv = drm->dev_private; drv 613 drivers/gpu/drm/sun4i/sun4i_frontend.c list_add_tail(&frontend->list, &drv->frontend_list); drv 286 drivers/gpu/drm/sun4i/sun4i_hdmi.h struct sun4i_drv *drv; drv 493 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c struct sun4i_drv *drv = drm->dev_private; drv 504 drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c hdmi->drv = drv; drv 16 drivers/gpu/drm/sun4i/sun4i_layer.h struct sun4i_drv *drv; drv 224 drivers/gpu/drm/sun4i/sun4i_tcon.c struct sun4i_drv *drv = drm->dev_private; drv 227 drivers/gpu/drm/sun4i/sun4i_tcon.c list_for_each_entry(tcon, &drv->tcon_list, list) drv 858 drivers/gpu/drm/sun4i/sun4i_tcon.c sun4i_tcon_find_engine_traverse(struct sun4i_drv *drv, drv 892 drivers/gpu/drm/sun4i/sun4i_tcon.c list_for_each_entry(engine, &drv->engine_list, list) drv 910 drivers/gpu/drm/sun4i/sun4i_tcon.c engine = sun4i_tcon_find_engine_traverse(drv, remote, reg); drv 961 drivers/gpu/drm/sun4i/sun4i_tcon.c static struct sunxi_engine *sun4i_tcon_get_engine_by_id(struct sun4i_drv *drv, drv 966 drivers/gpu/drm/sun4i/sun4i_tcon.c list_for_each_entry(engine, &drv->engine_list, list) drv 988 drivers/gpu/drm/sun4i/sun4i_tcon.c static int sun4i_tcon_get_index(struct sun4i_drv *drv) drv 998 drivers/gpu/drm/sun4i/sun4i_tcon.c list_for_each(pos, &drv->tcon_list) drv 1037 drivers/gpu/drm/sun4i/sun4i_tcon.c static struct sunxi_engine *sun4i_tcon_find_engine(struct sun4i_drv *drv, drv 1067 drivers/gpu/drm/sun4i/sun4i_tcon.c id = sun4i_tcon_get_index(drv); drv 1072 drivers/gpu/drm/sun4i/sun4i_tcon.c engine = sun4i_tcon_get_engine_by_id(drv, id); drv 1080 drivers/gpu/drm/sun4i/sun4i_tcon.c return sun4i_tcon_find_engine_traverse(drv, node, 0); drv 1087 drivers/gpu/drm/sun4i/sun4i_tcon.c struct sun4i_drv *drv = drm->dev_private; drv 1095 drivers/gpu/drm/sun4i/sun4i_tcon.c engine = sun4i_tcon_find_engine(drv, dev->of_node); drv 1261 drivers/gpu/drm/sun4i/sun4i_tcon.c list_add_tail(&tcon->list, &drv->tcon_list); drv 177 drivers/gpu/drm/sun4i/sun4i_tv.c struct sun4i_drv *drv; drv 547 drivers/gpu/drm/sun4i/sun4i_tv.c struct sun4i_drv *drv = drm->dev_private; drv 556 drivers/gpu/drm/sun4i/sun4i_tv.c tv->drv = drv; drv 1024 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c struct sun4i_drv *drv = drm->dev_private; drv 1031 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.c dsi->drv = drv; drv 30 drivers/gpu/drm/sun4i/sun6i_mipi_dsi.h struct sun4i_drv *drv; drv 427 drivers/gpu/drm/sun4i/sun8i_mixer.c struct sun4i_drv *drv = drm->dev_private; drv 518 drivers/gpu/drm/sun4i/sun8i_mixer.c list_add_tail(&mixer->engine.list, &drv->engine_list); drv 240 drivers/gpu/drm/vc4/vc4_drv.c struct device_driver *drv = &drivers[i]->driver; drv 243 drivers/gpu/drm/vc4/vc4_drv.c while ((d = platform_find_device_by_driver(p, drv))) { drv 103 drivers/gpu/drm/virtio/virtgpu_drv.h struct virtio_gpu_fence_driver *drv; drv 44 drivers/gpu/drm/virtio/virtgpu_fence.c if (atomic64_read(&fence->drv->last_seq) >= fence->f.seqno) drv 58 drivers/gpu/drm/virtio/virtgpu_fence.c snprintf(str, size, "%llu", (u64)atomic64_read(&fence->drv->last_seq)); drv 71 drivers/gpu/drm/virtio/virtgpu_fence.c struct virtio_gpu_fence_driver *drv = &vgdev->fence_drv; drv 77 drivers/gpu/drm/virtio/virtgpu_fence.c fence->drv = drv; drv 83 drivers/gpu/drm/virtio/virtgpu_fence.c dma_fence_init(&fence->f, &virtio_fence_ops, &drv->lock, drv->context, 0); drv 92 drivers/gpu/drm/virtio/virtgpu_fence.c struct virtio_gpu_fence_driver *drv = &vgdev->fence_drv; drv 95 drivers/gpu/drm/virtio/virtgpu_fence.c spin_lock_irqsave(&drv->lock, irq_flags); drv 96 drivers/gpu/drm/virtio/virtgpu_fence.c fence->f.seqno = ++drv->sync_seq; drv 98 drivers/gpu/drm/virtio/virtgpu_fence.c list_add_tail(&fence->node, &drv->fences); drv 99 drivers/gpu/drm/virtio/virtgpu_fence.c spin_unlock_irqrestore(&drv->lock, irq_flags); drv 110 drivers/gpu/drm/virtio/virtgpu_fence.c struct virtio_gpu_fence_driver *drv = &vgdev->fence_drv; drv 114 drivers/gpu/drm/virtio/virtgpu_fence.c spin_lock_irqsave(&drv->lock, irq_flags); drv 116 drivers/gpu/drm/virtio/virtgpu_fence.c list_for_each_entry_safe(fence, tmp, &drv->fences, node) { drv 123 drivers/gpu/drm/virtio/virtgpu_fence.c spin_unlock_irqrestore(&drv->lock, irq_flags); drv 148 drivers/gpu/drm/virtio/virtgpu_object.c struct virtio_gpu_fence_driver *drv = &vgdev->fence_drv; drv 165 drivers/gpu/drm/virtio/virtgpu_object.c spin_lock_irqsave(&drv->lock, irq_flags); drv 171 drivers/gpu/drm/virtio/virtgpu_object.c spin_unlock_irqrestore(&drv->lock, irq_flags); drv 303 drivers/gpu/host1x/bus.c static int host1x_device_match(struct device *dev, struct device_driver *drv) drv 305 drivers/gpu/host1x/bus.c return strcmp(dev_name(dev), drv->name) == 0; drv 561 drivers/greybus/connection.c const struct gb_hd_driver *drv = hd->driver; drv 568 drivers/greybus/connection.c if (!drv->cport_shutdown) drv 571 drivers/greybus/connection.c ret = drv->cport_shutdown(hd, connection->hd_cport_id, phase, drv 63 drivers/greybus/core.c static int greybus_match_device(struct device *dev, struct device_driver *drv) drv 65 drivers/greybus/core.c struct greybus_driver *driver = to_greybus_driver(drv); drv 2119 drivers/hid/hid-core.c static ssize_t new_id_store(struct device_driver *drv, const char *buf, drv 2122 drivers/hid/hid-core.c struct hid_driver *hdrv = to_hid_driver(drv); drv 2189 drivers/hid/hid-core.c static int hid_bus_match(struct device *dev, struct device_driver *drv) drv 2191 drivers/hid/hid-core.c struct hid_driver *hdrv = to_hid_driver(drv); drv 2505 drivers/hid/hid-core.c static int __hid_bus_driver_added(struct device_driver *drv, void *data) drv 2507 drivers/hid/hid-core.c struct hid_driver *hdrv = to_hid_driver(drv); drv 2517 drivers/hid/hid-core.c static int __bus_removed_driver(struct device_driver *drv, void *data) drv 26 drivers/hid/hid-generic.c static int __check_hid_generic(struct device_driver *drv, void *data) drv 28 drivers/hid/hid-generic.c struct hid_driver *hdrv = to_hid_driver(drv); drv 1631 drivers/hid/hid-input.c struct hid_driver *drv = hid->driver; drv 1652 drivers/hid/hid-input.c if (drv->feature_mapping) drv 1653 drivers/hid/hid-input.c drv->feature_mapping(hid, rep->field[i], usage); drv 1858 drivers/hid/hid-input.c struct hid_driver *drv = hid->driver; drv 1925 drivers/hid/hid-input.c if (drv->input_configured && drv 1926 drivers/hid/hid-input.c drv->input_configured(hid, hidinput)) drv 238 drivers/hid/intel-ish-hid/ishtp/bus.c static int ishtp_cl_bus_match(struct device *dev, struct device_driver *drv) drv 241 drivers/hid/intel-ish-hid/ishtp/bus.c struct ishtp_cl_driver *driver = to_ishtp_cl_driver(drv); drv 414 drivers/hsi/hsi_core.c int hsi_register_client_driver(struct hsi_client_driver *drv) drv 416 drivers/hsi/hsi_core.c drv->driver.bus = &hsi_bus_type; drv 418 drivers/hsi/hsi_core.c return driver_register(&drv->driver); drv 718 drivers/hv/vmbus_drv.c hv_vmbus_dynid_match(struct hv_driver *drv, const guid_t *guid) drv 723 drivers/hv/vmbus_drv.c spin_lock(&drv->dynids.lock); drv 724 drivers/hv/vmbus_drv.c list_for_each_entry(dynid, &drv->dynids.list, node) { drv 730 drivers/hv/vmbus_drv.c spin_unlock(&drv->dynids.lock); drv 741 drivers/hv/vmbus_drv.c static const struct hv_vmbus_device_id *hv_vmbus_get_id(struct hv_driver *drv, drv 748 drivers/hv/vmbus_drv.c if (dev->driver_override && strcmp(dev->driver_override, drv->name)) drv 752 drivers/hv/vmbus_drv.c id = hv_vmbus_dynid_match(drv, guid); drv 754 drivers/hv/vmbus_drv.c id = hv_vmbus_dev_match(drv->id_table, guid); drv 764 drivers/hv/vmbus_drv.c static int vmbus_add_dynid(struct hv_driver *drv, guid_t *guid) drv 774 drivers/hv/vmbus_drv.c spin_lock(&drv->dynids.lock); drv 775 drivers/hv/vmbus_drv.c list_add_tail(&dynid->node, &drv->dynids.list); drv 776 drivers/hv/vmbus_drv.c spin_unlock(&drv->dynids.lock); drv 778 drivers/hv/vmbus_drv.c return driver_attach(&drv->driver); drv 781 drivers/hv/vmbus_drv.c static void vmbus_free_dynids(struct hv_driver *drv) drv 785 drivers/hv/vmbus_drv.c spin_lock(&drv->dynids.lock); drv 786 drivers/hv/vmbus_drv.c list_for_each_entry_safe(dynid, n, &drv->dynids.list, node) { drv 790 drivers/hv/vmbus_drv.c spin_unlock(&drv->dynids.lock); drv 801 drivers/hv/vmbus_drv.c struct hv_driver *drv = drv_to_hv_drv(driver); drv 809 drivers/hv/vmbus_drv.c if (hv_vmbus_dynid_match(drv, &guid)) drv 812 drivers/hv/vmbus_drv.c retval = vmbus_add_dynid(drv, &guid); drv 827 drivers/hv/vmbus_drv.c struct hv_driver *drv = drv_to_hv_drv(driver); drv 837 drivers/hv/vmbus_drv.c spin_lock(&drv->dynids.lock); drv 838 drivers/hv/vmbus_drv.c list_for_each_entry_safe(dynid, n, &drv->dynids.list, node) { drv 848 drivers/hv/vmbus_drv.c spin_unlock(&drv->dynids.lock); drv 867 drivers/hv/vmbus_drv.c struct hv_driver *drv = drv_to_hv_drv(driver); drv 872 drivers/hv/vmbus_drv.c return drv->hvsock; drv 874 drivers/hv/vmbus_drv.c if (hv_vmbus_get_id(drv, hv_dev)) drv 886 drivers/hv/vmbus_drv.c struct hv_driver *drv = drv 891 drivers/hv/vmbus_drv.c dev_id = hv_vmbus_get_id(drv, dev); drv 892 drivers/hv/vmbus_drv.c if (drv->probe) { drv 893 drivers/hv/vmbus_drv.c ret = drv->probe(dev, dev_id); drv 911 drivers/hv/vmbus_drv.c struct hv_driver *drv; drv 915 drivers/hv/vmbus_drv.c drv = drv_to_hv_drv(child_device->driver); drv 916 drivers/hv/vmbus_drv.c if (drv->remove) drv 917 drivers/hv/vmbus_drv.c drv->remove(dev); drv 929 drivers/hv/vmbus_drv.c struct hv_driver *drv; drv 937 drivers/hv/vmbus_drv.c drv = drv_to_hv_drv(child_device->driver); drv 939 drivers/hv/vmbus_drv.c if (drv->shutdown) drv 940 drivers/hv/vmbus_drv.c drv->shutdown(dev); drv 949 drivers/hv/vmbus_drv.c struct hv_driver *drv; drv 956 drivers/hv/vmbus_drv.c drv = drv_to_hv_drv(child_device->driver); drv 957 drivers/hv/vmbus_drv.c if (!drv->suspend) drv 960 drivers/hv/vmbus_drv.c return drv->suspend(dev); drv 968 drivers/hv/vmbus_drv.c struct hv_driver *drv; drv 975 drivers/hv/vmbus_drv.c drv = drv_to_hv_drv(child_device->driver); drv 976 drivers/hv/vmbus_drv.c if (!drv->resume) drv 979 drivers/hv/vmbus_drv.c return drv->resume(dev); drv 2337 drivers/hv/vmbus_drv.c .drv.pm = &vmbus_bus_pm, drv 954 drivers/hwmon/acpi_power_meter.c .drv.pm = &acpi_power_meter_pm, drv 579 drivers/hwtracing/coresight/coresight-catu.c .drv = { drv 669 drivers/hwtracing/coresight/coresight-cpu-debug.c .drv = { drv 839 drivers/hwtracing/coresight/coresight-etb10.c .drv = { drv 941 drivers/hwtracing/coresight/coresight-etm3x.c .drv = { drv 1218 drivers/hwtracing/coresight/coresight-etm4x.c .drv = { drv 365 drivers/hwtracing/coresight/coresight-funnel.c .drv = { drv 363 drivers/hwtracing/coresight/coresight-replicator.c .drv = { drv 986 drivers/hwtracing/coresight/coresight-stm.c .drv = { drv 553 drivers/hwtracing/coresight/coresight-tmc.c .drv = { drv 220 drivers/hwtracing/coresight/coresight-tpiu.c .drv = { drv 764 drivers/i2c/busses/i2c-fsi.c .drv = { drv 1102 drivers/i2c/busses/i2c-nomadik.c .drv = { drv 199 drivers/i2c/busses/i2c-taos-evm.c static int taos_connect(struct serio *serio, struct serio_driver *drv) drv 214 drivers/i2c/busses/i2c-taos-evm.c err = serio_open(serio, drv); drv 93 drivers/i2c/i2c-core-base.c static int i2c_device_match(struct device *dev, struct device_driver *drv) drv 100 drivers/i2c/i2c-core-base.c if (i2c_of_match_device(drv->of_match_table, client)) drv 104 drivers/i2c/i2c-core-base.c if (acpi_driver_match_device(dev, drv)) drv 107 drivers/i2c/i2c-core-base.c driver = to_i2c_driver(drv); drv 266 drivers/i3c/device.c int i3c_driver_register_with_owner(struct i3c_driver *drv, struct module *owner) drv 268 drivers/i3c/device.c drv->driver.owner = owner; drv 269 drivers/i3c/device.c drv->driver.bus = &i3c_bus_type; drv 271 drivers/i3c/device.c return driver_register(&drv->driver); drv 282 drivers/i3c/device.c void i3c_driver_unregister(struct i3c_driver *drv) drv 284 drivers/i3c/device.c driver_unregister(&drv->driver); drv 279 drivers/i3c/master.c static int i3c_device_match(struct device *dev, struct device_driver *drv) drv 288 drivers/i3c/master.c i3cdrv = drv_to_i3cdrv(drv); drv 672 drivers/ide/icside.c .drv = { drv 345 drivers/ide/ide-io.c struct ide_driver *drv; drv 378 drivers/ide/ide-io.c drv = *(struct ide_driver **)rq->rq_disk->private_data; drv 380 drivers/ide/ide-io.c return drv->do_request(drive, rq, blk_rq_pos(rq)); drv 90 drivers/ide/ide-pm.c struct ide_driver *drv = to_ide_driver(dev->driver); drv 92 drivers/ide/ide-pm.c if (drv->resume) drv 93 drivers/ide/ide-pm.c drv->resume(drive); drv 597 drivers/ide/ide-proc.c static int proc_print_driver(struct device_driver *drv, void *data) drv 599 drivers/ide/ide-proc.c struct ide_driver *ide_drv = to_ide_driver(drv); drv 602 drivers/ide/ide-proc.c seq_printf(s, "%s version %s\n", drv->name, ide_drv->version); drv 111 drivers/ide/ide.c static int ide_bus_match(struct device *dev, struct device_driver *drv) drv 129 drivers/ide/ide.c struct ide_driver *drv = to_ide_driver(dev->driver); drv 131 drivers/ide/ide.c return drv->probe ? drv->probe(drive) : -ENODEV; drv 137 drivers/ide/ide.c struct ide_driver *drv = to_ide_driver(dev->driver); drv 139 drivers/ide/ide.c if (drv->remove) drv 140 drivers/ide/ide.c drv->remove(drive); drv 148 drivers/ide/ide.c struct ide_driver *drv = to_ide_driver(dev->driver); drv 150 drivers/ide/ide.c if (dev->driver && drv->shutdown) drv 151 drivers/ide/ide.c drv->shutdown(drive); drv 87 drivers/ide/rapide.c .drv = { drv 87 drivers/idle/intel_idle.c struct cpuidle_driver *drv, int index); drv 89 drivers/idle/intel_idle.c struct cpuidle_driver *drv, int index); drv 898 drivers/idle/intel_idle.c struct cpuidle_driver *drv, int index) drv 901 drivers/idle/intel_idle.c struct cpuidle_state *state = &drv->states[index]; drv 939 drivers/idle/intel_idle.c struct cpuidle_driver *drv, int index) drv 942 drivers/idle/intel_idle.c unsigned long eax = flg2MWAIT(drv->states[index].flags); drv 1327 drivers/idle/intel_idle.c struct cpuidle_driver *drv = &intel_idle_driver; drv 1331 drivers/idle/intel_idle.c cpuidle_poll_state_init(drv); drv 1332 drivers/idle/intel_idle.c drv->state_count = 1; drv 1370 drivers/idle/intel_idle.c drv->states[drv->state_count] = /* structure copy */ drv 1373 drivers/idle/intel_idle.c drv->state_count += 1; drv 1447 drivers/idle/intel_idle.c struct cpuidle_driver *drv = cpuidle_get_driver(); drv 1449 drivers/idle/intel_idle.c drv ? drv->name : "none"); drv 45 drivers/input/gameport/gameport.c static void gameport_attach_driver(struct gameport_driver *drv); drv 214 drivers/input/gameport/gameport.c static int gameport_bind_driver(struct gameport *gameport, struct gameport_driver *drv) drv 218 drivers/input/gameport/gameport.c gameport->dev.driver = &drv->driver; drv 219 drivers/input/gameport/gameport.c if (drv->connect(gameport, drv)) { drv 229 drivers/input/gameport/gameport.c drv->description, error); drv 230 drivers/input/gameport/gameport.c drv->disconnect(gameport); drv 469 drivers/input/gameport/gameport.c struct device_driver *drv; drv 483 drivers/input/gameport/gameport.c } else if ((drv = driver_find(buf, &gameport_bus)) != NULL) { drv 485 drivers/input/gameport/gameport.c error = gameport_bind_driver(gameport, to_gameport_driver(drv)); drv 609 drivers/input/gameport/gameport.c if (!gameport->drv || !gameport->drv->reconnect || gameport->drv->reconnect(gameport)) { drv 678 drivers/input/gameport/gameport.c static ssize_t description_show(struct device_driver *drv, char *buf) drv 680 drivers/input/gameport/gameport.c struct gameport_driver *driver = to_gameport_driver(drv); drv 694 drivers/input/gameport/gameport.c struct gameport_driver *drv = to_gameport_driver(dev->driver); drv 696 drivers/input/gameport/gameport.c drv->connect(gameport, drv); drv 697 drivers/input/gameport/gameport.c return gameport->drv ? 0 : -ENODEV; drv 703 drivers/input/gameport/gameport.c struct gameport_driver *drv = to_gameport_driver(dev->driver); drv 705 drivers/input/gameport/gameport.c drv->disconnect(gameport); drv 709 drivers/input/gameport/gameport.c static void gameport_attach_driver(struct gameport_driver *drv) drv 713 drivers/input/gameport/gameport.c error = driver_attach(&drv->driver); drv 716 drivers/input/gameport/gameport.c drv->driver.name, error); drv 719 drivers/input/gameport/gameport.c int __gameport_register_driver(struct gameport_driver *drv, struct module *owner, drv 724 drivers/input/gameport/gameport.c drv->driver.bus = &gameport_bus; drv 725 drivers/input/gameport/gameport.c drv->driver.owner = owner; drv 726 drivers/input/gameport/gameport.c drv->driver.mod_name = mod_name; drv 732 drivers/input/gameport/gameport.c drv->ignore = true; drv 734 drivers/input/gameport/gameport.c error = driver_register(&drv->driver); drv 737 drivers/input/gameport/gameport.c drv->driver.name, error); drv 744 drivers/input/gameport/gameport.c drv->ignore = false; drv 745 drivers/input/gameport/gameport.c error = gameport_queue_event(drv, NULL, GAMEPORT_ATTACH_DRIVER); drv 747 drivers/input/gameport/gameport.c driver_unregister(&drv->driver); drv 755 drivers/input/gameport/gameport.c void gameport_unregister_driver(struct gameport_driver *drv) drv 761 drivers/input/gameport/gameport.c drv->ignore = true; /* so gameport_find_driver ignores it */ drv 762 drivers/input/gameport/gameport.c gameport_remove_pending_events(drv); drv 766 drivers/input/gameport/gameport.c if (gameport->drv == drv) { drv 774 drivers/input/gameport/gameport.c driver_unregister(&drv->driver); drv 780 drivers/input/gameport/gameport.c static int gameport_bus_match(struct device *dev, struct device_driver *drv) drv 782 drivers/input/gameport/gameport.c struct gameport_driver *gameport_drv = to_gameport_driver(drv); drv 796 drivers/input/gameport/gameport.c static void gameport_set_drv(struct gameport *gameport, struct gameport_driver *drv) drv 799 drivers/input/gameport/gameport.c gameport->drv = drv; drv 803 drivers/input/gameport/gameport.c int gameport_open(struct gameport *gameport, struct gameport_driver *drv, int mode) drv 814 drivers/input/gameport/gameport.c gameport_set_drv(gameport, drv); drv 246 drivers/input/joystick/a3d.c static int a3d_connect(struct gameport *gameport, struct gameport_driver *drv) drv 267 drivers/input/joystick/a3d.c err = gameport_open(gameport, drv, GAMEPORT_MODE_RAW); drv 456 drivers/input/joystick/adi.c static int adi_connect(struct gameport *gameport, struct gameport_driver *drv) drv 470 drivers/input/joystick/adi.c err = gameport_open(gameport, drv, GAMEPORT_MODE_RAW); drv 598 drivers/input/joystick/analog.c static int analog_init_port(struct gameport *gameport, struct gameport_driver *drv, struct analog_port *port) drv 606 drivers/input/joystick/analog.c if (!gameport_open(gameport, drv, GAMEPORT_MODE_RAW)) { drv 644 drivers/input/joystick/analog.c if (!gameport_open(gameport, drv, GAMEPORT_MODE_COOKED)) { drv 658 drivers/input/joystick/analog.c return gameport_open(gameport, drv, GAMEPORT_MODE_RAW); drv 661 drivers/input/joystick/analog.c static int analog_connect(struct gameport *gameport, struct gameport_driver *drv) drv 670 drivers/input/joystick/analog.c err = analog_init_port(gameport, drv, port); drv 139 drivers/input/joystick/cobra.c static int cobra_connect(struct gameport *gameport, struct gameport_driver *drv) drv 155 drivers/input/joystick/cobra.c err = gameport_open(gameport, drv, GAMEPORT_MODE_RAW); drv 127 drivers/input/joystick/fsia6b.c static int fsia6b_serio_connect(struct serio *serio, struct serio_driver *drv) drv 181 drivers/input/joystick/fsia6b.c err = serio_open(serio, drv); drv 221 drivers/input/joystick/gf2k.c static int gf2k_connect(struct gameport *gameport, struct gameport_driver *drv) drv 240 drivers/input/joystick/gf2k.c err = gameport_open(gameport, drv, GAMEPORT_MODE_RAW); drv 282 drivers/input/joystick/grip.c static int grip_connect(struct gameport *gameport, struct gameport_driver *drv) drv 297 drivers/input/joystick/grip.c err = gameport_open(gameport, drv, GAMEPORT_MODE_RAW); drv 630 drivers/input/joystick/grip_mp.c static int grip_connect(struct gameport *gameport, struct gameport_driver *drv) drv 642 drivers/input/joystick/grip_mp.c err = gameport_open(gameport, drv, GAMEPORT_MODE_RAW); drv 161 drivers/input/joystick/guillemot.c static int guillemot_connect(struct gameport *gameport, struct gameport_driver *drv) drv 181 drivers/input/joystick/guillemot.c err = gameport_open(gameport, drv, GAMEPORT_MODE_RAW); drv 189 drivers/input/joystick/iforce/iforce-serio.c static int iforce_serio_connect(struct serio *serio, struct serio_driver *drv) drv 203 drivers/input/joystick/iforce/iforce-serio.c err = serio_open(serio, drv); drv 190 drivers/input/joystick/interact.c static int interact_connect(struct gameport *gameport, struct gameport_driver *drv) drv 210 drivers/input/joystick/interact.c err = gameport_open(gameport, drv, GAMEPORT_MODE_RAW); drv 33 drivers/input/joystick/joydump.c static int joydump_connect(struct gameport *gameport, struct gameport_driver *drv) drv 46 drivers/input/joystick/joydump.c if (gameport_open(gameport, drv, GAMEPORT_MODE_RAW)) { drv 50 drivers/input/joystick/joydump.c if (gameport_open(gameport, drv, GAMEPORT_MODE_COOKED)) { drv 131 drivers/input/joystick/magellan.c static int magellan_connect(struct serio *serio, struct serio_driver *drv) drv 164 drivers/input/joystick/magellan.c err = serio_open(serio, drv); drv 175 drivers/input/joystick/maplecontrol.c .drv = { drv 570 drivers/input/joystick/sidewinder.c static int sw_connect(struct gameport *gameport, struct gameport_driver *drv) drv 595 drivers/input/joystick/sidewinder.c err = gameport_open(gameport, drv, GAMEPORT_MODE_RAW); drv 188 drivers/input/joystick/spaceball.c static int spaceball_connect(struct serio *serio, struct serio_driver *drv) drv 242 drivers/input/joystick/spaceball.c err = serio_open(serio, drv); drv 146 drivers/input/joystick/spaceorb.c static int spaceorb_connect(struct serio *serio, struct serio_driver *drv) drv 179 drivers/input/joystick/spaceorb.c err = serio_open(serio, drv); drv 118 drivers/input/joystick/stinger.c static int stinger_connect(struct serio *serio, struct serio_driver *drv) drv 150 drivers/input/joystick/stinger.c err = serio_open(serio, drv); drv 347 drivers/input/joystick/tmdc.c static int tmdc_connect(struct gameport *gameport, struct gameport_driver *drv) drv 361 drivers/input/joystick/tmdc.c err = gameport_open(gameport, drv, GAMEPORT_MODE_RAW); drv 169 drivers/input/joystick/twidjoy.c static int twidjoy_connect(struct serio *serio, struct serio_driver *drv) drv 203 drivers/input/joystick/twidjoy.c err = serio_open(serio, drv); drv 124 drivers/input/joystick/warrior.c static int warrior_connect(struct serio *serio, struct serio_driver *drv) drv 159 drivers/input/joystick/warrior.c err = serio_open(serio, drv); drv 131 drivers/input/joystick/zhenhua.c static int zhenhua_connect(struct serio *serio, struct serio_driver *drv) drv 161 drivers/input/joystick/zhenhua.c err = serio_open(serio, drv); drv 1131 drivers/input/keyboard/atkbd.c static int atkbd_connect(struct serio *serio, struct serio_driver *drv) drv 1168 drivers/input/keyboard/atkbd.c err = serio_open(serio, drv); drv 1220 drivers/input/keyboard/atkbd.c struct serio_driver *drv = serio->drv; drv 1223 drivers/input/keyboard/atkbd.c if (!atkbd || !drv) { drv 443 drivers/input/keyboard/hil_kbd.c static int hil_dev_connect(struct serio *serio, struct serio_driver *drv) drv 460 drivers/input/keyboard/hil_kbd.c error = serio_open(serio, drv); drv 607 drivers/input/keyboard/lkkbd.c static int lkkbd_connect(struct serio *serio, struct serio_driver *drv) drv 664 drivers/input/keyboard/lkkbd.c err = serio_open(serio, drv); drv 326 drivers/input/keyboard/locomokbd.c .drv = { drv 227 drivers/input/keyboard/maple_keyb.c .drv = { drv 67 drivers/input/keyboard/newtonkbd.c static int nkbd_connect(struct serio *serio, struct serio_driver *drv) drv 102 drivers/input/keyboard/newtonkbd.c err = serio_open(serio, drv); drv 71 drivers/input/keyboard/stowaway.c static int skbd_connect(struct serio *serio, struct serio_driver *drv) drv 106 drivers/input/keyboard/stowaway.c err = serio_open(serio, drv); drv 237 drivers/input/keyboard/sunkbd.c static int sunkbd_connect(struct serio *serio, struct serio_driver *drv) drv 257 drivers/input/keyboard/sunkbd.c err = serio_open(serio, drv); drv 69 drivers/input/keyboard/xtkbd.c static int xtkbd_connect(struct serio *serio, struct serio_driver *drv) drv 105 drivers/input/keyboard/xtkbd.c err = serio_open(serio, drv); drv 132 drivers/input/mouse/maplemouse.c .drv = { drv 1582 drivers/input/mouse/psmouse-base.c static int psmouse_connect(struct serio *serio, struct serio_driver *drv) drv 1613 drivers/input/mouse/psmouse-base.c error = serio_open(serio, drv); drv 1930 drivers/input/mouse/psmouse-base.c if (serio->drv != &psmouse_drv) { drv 230 drivers/input/mouse/sermouse.c static int sermouse_connect(struct serio *serio, struct serio_driver *drv) drv 267 drivers/input/mouse/sermouse.c err = serio_open(serio, drv); drv 456 drivers/input/mouse/vsxxxaa.c static int vsxxxaa_connect(struct serio *serio, struct serio_driver *drv) drv 492 drivers/input/mouse/vsxxxaa.c err = serio_open(serio, drv); drv 146 drivers/input/rmi4/rmi_bus.c static int rmi_function_match(struct device *dev, struct device_driver *drv) drv 148 drivers/input/rmi4/rmi_bus.c struct rmi_function_handler *handler = to_rmi_function_handler(drv); drv 335 drivers/input/rmi4/rmi_bus.c static int rmi_bus_match(struct device *dev, struct device_driver *drv) drv 340 drivers/input/rmi4/rmi_bus.c if (physical != rmi_is_physical_driver(drv)) drv 343 drivers/input/rmi4/rmi_bus.c return physical || rmi_function_match(dev, drv); drv 1257 drivers/input/rmi4/rmi_driver.c bool rmi_is_physical_driver(struct device_driver *drv) drv 1259 drivers/input/rmi4/rmi_driver.c return drv == &rmi_physical_driver.driver; drv 65 drivers/input/rmi4/rmi_f03.c if (serio->drv) { drv 66 drivers/input/rmi4/rmi_f03.c serio->drv->interrupt(serio, PSMOUSE_OOB_EXTRA_BTNS, drv 68 drivers/input/rmi4/rmi_f03.c serio->drv->interrupt(serio, f03->overwrite_buttons, drv 1241 drivers/input/rmi4/rmi_f11.c struct rmi_driver *drv = fn->rmi_dev->driver; drv 1246 drivers/input/rmi4/rmi_f11.c drv->clear_irq_bits(fn->rmi_dev, f11->abs_mask); drv 1248 drivers/input/rmi4/rmi_f11.c drv->set_irq_bits(fn->rmi_dev, f11->abs_mask); drv 1251 drivers/input/rmi4/rmi_f11.c drv->clear_irq_bits(fn->rmi_dev, f11->rel_mask); drv 1253 drivers/input/rmi4/rmi_f11.c drv->set_irq_bits(fn->rmi_dev, f11->rel_mask); drv 296 drivers/input/rmi4/rmi_f12.c struct rmi_driver *drv = fn->rmi_dev->driver; drv 304 drivers/input/rmi4/rmi_f12.c drv->clear_irq_bits(fn->rmi_dev, f12->abs_mask); drv 306 drivers/input/rmi4/rmi_f12.c drv->set_irq_bits(fn->rmi_dev, f12->abs_mask); drv 308 drivers/input/rmi4/rmi_f12.c drv->clear_irq_bits(fn->rmi_dev, f12->rel_mask); drv 166 drivers/input/rmi4/rmi_f30.c struct rmi_driver *drv = fn->rmi_dev->driver; drv 182 drivers/input/rmi4/rmi_f30.c drv->clear_irq_bits(fn->rmi_dev, fn->irq_mask); drv 194 drivers/input/rmi4/rmi_f30.c drv->set_irq_bits(fn->rmi_dev, fn->irq_mask); drv 602 drivers/input/rmi4/rmi_f54.c struct rmi_driver *drv = fn->rmi_dev->driver; drv 604 drivers/input/rmi4/rmi_f54.c drv->clear_irq_bits(fn->rmi_dev, fn->irq_mask); drv 197 drivers/input/serio/ambakmi.c .drv = { drv 168 drivers/input/serio/hil_mlc.c struct serio_driver *drv; drv 173 drivers/input/serio/hil_mlc.c drv = (serio != NULL) ? serio->drv : NULL; drv 180 drivers/input/serio/hil_mlc.c if (drv && drv->interrupt) { drv 181 drivers/input/serio/hil_mlc.c drv->interrupt(serio, 0, 0); drv 182 drivers/input/serio/hil_mlc.c drv->interrupt(serio, HIL_ERR_INT >> 16, 0); drv 183 drivers/input/serio/hil_mlc.c drv->interrupt(serio, HIL_PKT_CMD >> 8, 0); drv 184 drivers/input/serio/hil_mlc.c drv->interrupt(serio, HIL_CMD_POL + cnt, 0); drv 189 drivers/input/serio/hil_mlc.c drv = (serio != NULL) ? serio->drv : NULL; drv 196 drivers/input/serio/hil_mlc.c if (drv && drv->interrupt) { drv 197 drivers/input/serio/hil_mlc.c drv->interrupt(serio, (p >> 24), 0); drv 198 drivers/input/serio/hil_mlc.c drv->interrupt(serio, (p >> 16) & 0xff, 0); drv 199 drivers/input/serio/hil_mlc.c drv->interrupt(serio, (p >> 8) & ~HIL_PKT_ADDR_MASK, 0); drv 200 drivers/input/serio/hil_mlc.c drv->interrupt(serio, p & 0xff, 0); drv 796 drivers/input/serio/hil_mlc.c struct serio_driver *drv; drv 835 drivers/input/serio/hil_mlc.c drv = serio->drv; drv 836 drivers/input/serio/hil_mlc.c BUG_ON(drv == NULL); drv 843 drivers/input/serio/hil_mlc.c drv->interrupt(serio, 0, 0); drv 844 drivers/input/serio/hil_mlc.c drv->interrupt(serio, HIL_ERR_INT >> 16, 0); drv 845 drivers/input/serio/hil_mlc.c drv->interrupt(serio, 0, 0); drv 846 drivers/input/serio/hil_mlc.c drv->interrupt(serio, *idx, 0); drv 849 drivers/input/serio/hil_mlc.c drv->interrupt(serio, 0, 0); drv 850 drivers/input/serio/hil_mlc.c drv->interrupt(serio, HIL_ERR_INT >> 16, 0); drv 851 drivers/input/serio/hil_mlc.c drv->interrupt(serio, HIL_PKT_CMD >> 8, 0); drv 852 drivers/input/serio/hil_mlc.c drv->interrupt(serio, *idx, 0); drv 889 drivers/input/serio/hil_mlc.c serio->drv = NULL; drv 163 drivers/input/serio/ps2mult.c static int ps2mult_connect(struct serio *serio, struct serio_driver *drv) drv 189 drivers/input/serio/ps2mult.c error = serio_open(serio, drv); drv 364 drivers/input/serio/sa1111ps2.c .drv = { drv 40 drivers/input/serio/serio.c static void serio_attach_driver(struct serio_driver *drv); drv 42 drivers/input/serio/serio.c static int serio_connect_driver(struct serio *serio, struct serio_driver *drv) drv 47 drivers/input/serio/serio.c retval = drv->connect(serio, drv); drv 58 drivers/input/serio/serio.c if (serio->drv && serio->drv->reconnect) drv 59 drivers/input/serio/serio.c retval = serio->drv->reconnect(serio); drv 68 drivers/input/serio/serio.c if (serio->drv) drv 69 drivers/input/serio/serio.c serio->drv->disconnect(serio); drv 90 drivers/input/serio/serio.c static int serio_bind_driver(struct serio *serio, struct serio_driver *drv) drv 94 drivers/input/serio/serio.c if (serio_match_port(drv->id_table, serio)) { drv 96 drivers/input/serio/serio.c serio->dev.driver = &drv->driver; drv 97 drivers/input/serio/serio.c if (serio_connect_driver(serio, drv)) { drv 107 drivers/input/serio/serio.c drv->description, error); drv 385 drivers/input/serio/serio.c struct device_driver *drv; drv 400 drivers/input/serio/serio.c } else if ((drv = driver_find(buf, &serio_bus)) != NULL) { drv 402 drivers/input/serio/serio.c error = serio_bind_driver(serio, to_serio_driver(drv)); drv 735 drivers/input/serio/serio.c static ssize_t description_show(struct device_driver *drv, char *buf) drv 737 drivers/input/serio/serio.c struct serio_driver *driver = to_serio_driver(drv); drv 742 drivers/input/serio/serio.c static ssize_t bind_mode_show(struct device_driver *drv, char *buf) drv 744 drivers/input/serio/serio.c struct serio_driver *serio_drv = to_serio_driver(drv); drv 748 drivers/input/serio/serio.c static ssize_t bind_mode_store(struct device_driver *drv, const char *buf, size_t count) drv 750 drivers/input/serio/serio.c struct serio_driver *serio_drv = to_serio_driver(drv); drv 776 drivers/input/serio/serio.c struct serio_driver *drv = to_serio_driver(dev->driver); drv 778 drivers/input/serio/serio.c return serio_connect_driver(serio, drv); drv 792 drivers/input/serio/serio.c if (serio->drv && serio->drv->cleanup) drv 793 drivers/input/serio/serio.c serio->drv->cleanup(serio); drv 804 drivers/input/serio/serio.c static void serio_attach_driver(struct serio_driver *drv) drv 808 drivers/input/serio/serio.c error = driver_attach(&drv->driver); drv 811 drivers/input/serio/serio.c drv->driver.name, error); drv 814 drivers/input/serio/serio.c int __serio_register_driver(struct serio_driver *drv, struct module *owner, const char *mod_name) drv 816 drivers/input/serio/serio.c bool manual_bind = drv->manual_bind; drv 819 drivers/input/serio/serio.c drv->driver.bus = &serio_bus; drv 820 drivers/input/serio/serio.c drv->driver.owner = owner; drv 821 drivers/input/serio/serio.c drv->driver.mod_name = mod_name; drv 827 drivers/input/serio/serio.c drv->manual_bind = true; drv 829 drivers/input/serio/serio.c error = driver_register(&drv->driver); drv 832 drivers/input/serio/serio.c drv->driver.name, error); drv 841 drivers/input/serio/serio.c drv->manual_bind = false; drv 842 drivers/input/serio/serio.c error = serio_queue_event(drv, NULL, SERIO_ATTACH_DRIVER); drv 844 drivers/input/serio/serio.c driver_unregister(&drv->driver); drv 853 drivers/input/serio/serio.c void serio_unregister_driver(struct serio_driver *drv) drv 859 drivers/input/serio/serio.c drv->manual_bind = true; /* so serio_find_driver ignores it */ drv 860 drivers/input/serio/serio.c serio_remove_pending_events(drv); drv 864 drivers/input/serio/serio.c if (serio->drv == drv) { drv 872 drivers/input/serio/serio.c driver_unregister(&drv->driver); drv 877 drivers/input/serio/serio.c static void serio_set_drv(struct serio *serio, struct serio_driver *drv) drv 880 drivers/input/serio/serio.c serio->drv = drv; drv 884 drivers/input/serio/serio.c static int serio_bus_match(struct device *dev, struct device_driver *drv) drv 887 drivers/input/serio/serio.c struct serio_driver *serio_drv = to_serio_driver(drv); drv 943 drivers/input/serio/serio.c if (serio->drv && serio->drv->fast_reconnect) { drv 944 drivers/input/serio/serio.c error = serio->drv->fast_reconnect(serio); drv 971 drivers/input/serio/serio.c int serio_open(struct serio *serio, struct serio_driver *drv) drv 973 drivers/input/serio/serio.c serio_set_drv(serio, drv); drv 1001 drivers/input/serio/serio.c if (likely(serio->drv)) { drv 1002 drivers/input/serio/serio.c ret = serio->drv->interrupt(serio, data, dfl); drv 290 drivers/input/serio/serio_raw.c static int serio_raw_connect(struct serio *serio, struct serio_driver *drv) drv 313 drivers/input/serio/serio_raw.c err = serio_open(serio, drv); drv 359 drivers/input/serio/serio_raw.c struct serio_driver *drv = serio->drv; drv 361 drivers/input/serio/serio_raw.c if (!drv || !serio_raw) { drv 518 drivers/input/tablet/wacom_serial4.c static int wacom_connect(struct serio *serio, struct serio_driver *drv) drv 554 drivers/input/tablet/wacom_serial4.c err = serio_open(serio, drv); drv 107 drivers/input/touchscreen/dynapro.c static int dynapro_connect(struct serio *serio, struct serio_driver *drv) drv 141 drivers/input/touchscreen/dynapro.c err = serio_open(serio, drv); drv 96 drivers/input/touchscreen/egalax_ts_serial.c static int egalax_connect(struct serio *serio, struct serio_driver *drv) drv 130 drivers/input/touchscreen/egalax_ts_serial.c error = serio_open(serio, drv); drv 304 drivers/input/touchscreen/elo.c static int elo_connect(struct serio *serio, struct serio_driver *drv) drv 337 drivers/input/touchscreen/elo.c err = serio_open(serio, drv); drv 96 drivers/input/touchscreen/fujitsu_ts.c static int fujitsu_connect(struct serio *serio, struct serio_driver *drv) drv 127 drivers/input/touchscreen/fujitsu_ts.c err = serio_open(serio, drv); drv 97 drivers/input/touchscreen/gunze.c static int gunze_connect(struct serio *serio, struct serio_driver *drv) drv 128 drivers/input/touchscreen/gunze.c err = serio_open(serio, drv); drv 106 drivers/input/touchscreen/hampshire.c static int hampshire_connect(struct serio *serio, struct serio_driver *drv) drv 140 drivers/input/touchscreen/hampshire.c err = serio_open(serio, drv); drv 111 drivers/input/touchscreen/inexio.c static int inexio_connect(struct serio *serio, struct serio_driver *drv) drv 142 drivers/input/touchscreen/inexio.c err = serio_open(serio, drv); drv 125 drivers/input/touchscreen/mtouch.c static int mtouch_connect(struct serio *serio, struct serio_driver *drv) drv 156 drivers/input/touchscreen/mtouch.c err = serio_open(serio, drv); drv 195 drivers/input/touchscreen/penmount.c static int pm_connect(struct serio *serio, struct serio_driver *drv) drv 271 drivers/input/touchscreen/penmount.c err = serio_open(serio, drv); drv 136 drivers/input/touchscreen/touchit213.c static int touchit213_connect(struct serio *serio, struct serio_driver *drv) drv 170 drivers/input/touchscreen/touchit213.c err = serio_open(serio, drv); drv 99 drivers/input/touchscreen/touchright.c static int tr_connect(struct serio *serio, struct serio_driver *drv) drv 130 drivers/input/touchscreen/touchright.c err = serio_open(serio, drv); drv 106 drivers/input/touchscreen/touchwin.c static int tw_connect(struct serio *serio, struct serio_driver *drv) drv 137 drivers/input/touchscreen/touchwin.c err = serio_open(serio, drv); drv 80 drivers/input/touchscreen/tsc40.c static int tsc_connect(struct serio *serio, struct serio_driver *drv) drv 112 drivers/input/touchscreen/tsc40.c error = serio_open(serio, drv); drv 593 drivers/input/touchscreen/wacom_w8001.c static int w8001_connect(struct serio *serio, struct serio_driver *drv) drv 617 drivers/input/touchscreen/wacom_w8001.c err = serio_open(serio, drv); drv 16 drivers/ipack/ipack.c #define to_ipack_driver(drv) container_of(drv, struct ipack_driver, driver) drv 52 drivers/ipack/ipack.c static int ipack_bus_match(struct device *dev, struct device_driver *drv) drv 55 drivers/ipack/ipack.c struct ipack_driver *idrv = to_ipack_driver(drv); drv 65 drivers/ipack/ipack.c struct ipack_driver *drv = to_ipack_driver(device->driver); drv 67 drivers/ipack/ipack.c if (!drv->ops->probe) drv 70 drivers/ipack/ipack.c return drv->ops->probe(dev); drv 76 drivers/ipack/ipack.c struct ipack_driver *drv = to_ipack_driver(device->driver); drv 78 drivers/ipack/ipack.c if (!drv->ops->remove) drv 81 drivers/ipack/ipack.c drv->ops->remove(dev); drv 1257 drivers/isdn/capi/capi.c struct tty_driver *drv; drv 1270 drivers/isdn/capi/capi.c drv = alloc_tty_driver(capi_ttyminors); drv 1271 drivers/isdn/capi/capi.c if (!drv) { drv 1275 drivers/isdn/capi/capi.c drv->driver_name = "capi_nc"; drv 1276 drivers/isdn/capi/capi.c drv->name = "capi!"; drv 1277 drivers/isdn/capi/capi.c drv->major = 0; drv 1278 drivers/isdn/capi/capi.c drv->minor_start = 0; drv 1279 drivers/isdn/capi/capi.c drv->type = TTY_DRIVER_TYPE_SERIAL; drv 1280 drivers/isdn/capi/capi.c drv->subtype = SERIAL_TYPE_NORMAL; drv 1281 drivers/isdn/capi/capi.c drv->init_termios = tty_std_termios; drv 1282 drivers/isdn/capi/capi.c drv->init_termios.c_iflag = ICRNL; drv 1283 drivers/isdn/capi/capi.c drv->init_termios.c_oflag = OPOST | ONLCR; drv 1284 drivers/isdn/capi/capi.c drv->init_termios.c_cflag = B9600 | CS8 | CREAD | HUPCL | CLOCAL; drv 1285 drivers/isdn/capi/capi.c drv->init_termios.c_lflag = 0; drv 1286 drivers/isdn/capi/capi.c drv->flags = drv 1289 drivers/isdn/capi/capi.c tty_set_operations(drv, &capinc_ops); drv 1291 drivers/isdn/capi/capi.c err = tty_register_driver(drv); drv 1293 drivers/isdn/capi/capi.c put_tty_driver(drv); drv 1298 drivers/isdn/capi/capi.c capinc_tty_driver = drv; drv 215 drivers/isdn/capi/kcapi_proc.c struct capi_driver *drv = list_entry(v, struct capi_driver, list); drv 217 drivers/isdn/capi/kcapi_proc.c seq_printf(seq, "%-32s %s\n", drv->name, drv->revision); drv 68 drivers/leds/leds-locomo.c .drv = { drv 37 drivers/macintosh/macio_asic.c static int macio_bus_match(struct device *dev, struct device_driver *drv) drv 39 drivers/macintosh/macio_asic.c const struct of_device_id * matches = drv->of_match_table; drv 70 drivers/macintosh/macio_asic.c struct macio_driver *drv; drv 74 drivers/macintosh/macio_asic.c drv = to_macio_driver(dev->driver); drv 77 drivers/macintosh/macio_asic.c if (!drv->probe) drv 82 drivers/macintosh/macio_asic.c match = of_match_device(drv->driver.of_match_table, dev); drv 84 drivers/macintosh/macio_asic.c error = drv->probe(macio_dev, match); drv 94 drivers/macintosh/macio_asic.c struct macio_driver * drv = to_macio_driver(dev->driver); drv 96 drivers/macintosh/macio_asic.c if (dev->driver && drv->remove) drv 97 drivers/macintosh/macio_asic.c drv->remove(macio_dev); drv 106 drivers/macintosh/macio_asic.c struct macio_driver * drv = to_macio_driver(dev->driver); drv 108 drivers/macintosh/macio_asic.c if (dev->driver && drv->shutdown) drv 109 drivers/macintosh/macio_asic.c drv->shutdown(macio_dev); drv 115 drivers/macintosh/macio_asic.c struct macio_driver * drv = to_macio_driver(dev->driver); drv 117 drivers/macintosh/macio_asic.c if (dev->driver && drv->suspend) drv 118 drivers/macintosh/macio_asic.c return drv->suspend(macio_dev, state); drv 125 drivers/macintosh/macio_asic.c struct macio_driver * drv = to_macio_driver(dev->driver); drv 127 drivers/macintosh/macio_asic.c if (dev->driver && drv->resume) drv 128 drivers/macintosh/macio_asic.c return drv->resume(macio_dev); drv 523 drivers/macintosh/macio_asic.c int macio_register_driver(struct macio_driver *drv) drv 526 drivers/macintosh/macio_asic.c drv->driver.bus = &macio_bus_type; drv 529 drivers/macintosh/macio_asic.c return driver_register(&drv->driver); drv 536 drivers/macintosh/macio_asic.c void macio_unregister_driver(struct macio_driver *drv) drv 538 drivers/macintosh/macio_asic.c driver_unregister(&drv->driver); drv 449 drivers/macintosh/mediabay.c struct macio_driver *drv; drv 459 drivers/macintosh/mediabay.c drv = to_macio_driver(dev->driver); drv 460 drivers/macintosh/mediabay.c if (dev->driver && drv->mediabay_event) drv 461 drivers/macintosh/mediabay.c drv->mediabay_event(mdev, state); drv 164 drivers/mailbox/arm_mhu.c .drv = { drv 176 drivers/mailbox/pl320-ipc.c .drv = { drv 31 drivers/mcb/mcb-core.c static int mcb_match(struct device *dev, struct device_driver *drv) drv 33 drivers/mcb/mcb-core.c struct mcb_driver *mdrv = to_mcb_driver(drv); drv 182 drivers/mcb/mcb-core.c int __mcb_register_driver(struct mcb_driver *drv, struct module *owner, drv 185 drivers/mcb/mcb-core.c if (!drv->probe || !drv->remove) drv 188 drivers/mcb/mcb-core.c drv->driver.owner = owner; drv 189 drivers/mcb/mcb-core.c drv->driver.bus = &mcb_bus_type; drv 190 drivers/mcb/mcb-core.c drv->driver.mod_name = mod_name; drv 192 drivers/mcb/mcb-core.c return driver_register(&drv->driver); drv 202 drivers/mcb/mcb-core.c void mcb_unregister_driver(struct mcb_driver *drv) drv 204 drivers/mcb/mcb-core.c driver_unregister(&drv->driver); drv 31 drivers/media/pci/bt8xx/bttv-gpio.c static int bttv_sub_bus_match(struct device *dev, struct device_driver *drv) drv 33 drivers/media/pci/bt8xx/bttv-gpio.c struct bttv_sub_driver *sub = to_bttv_sub_drv(drv); drv 113 drivers/media/pci/bt8xx/bttv-gpio.c sub->drv.bus = &bttv_sub_bus_type; drv 115 drivers/media/pci/bt8xx/bttv-gpio.c return driver_register(&sub->drv); drv 121 drivers/media/pci/bt8xx/bttv-gpio.c driver_unregister(&sub->drv); drv 340 drivers/media/pci/bt8xx/bttv.h struct device_driver drv; drv 345 drivers/media/pci/bt8xx/bttv.h #define to_bttv_sub_drv(x) container_of((x), struct bttv_sub_driver, drv) drv 347 drivers/media/pci/bt8xx/bttv.h int bttv_sub_register(struct bttv_sub_driver *drv, char *wanted); drv 348 drivers/media/pci/bt8xx/bttv.h int bttv_sub_unregister(struct bttv_sub_driver *drv); drv 936 drivers/media/pci/bt8xx/dvb-bt8xx.c .drv = { drv 267 drivers/media/pci/cx18/cx18-alsa-main.c struct device_driver *drv; drv 272 drivers/media/pci/cx18/cx18-alsa-main.c drv = driver_find("cx18", &pci_bus_type); drv 273 drivers/media/pci/cx18/cx18-alsa-main.c ret = driver_for_each_device(drv, NULL, NULL, cx18_alsa_exit_callback); drv 787 drivers/media/pci/cx25821/cx25821-alsa.c struct device_driver *drv = driver_find("cx25821", &pci_bus_type); drv 790 drivers/media/pci/cx25821/cx25821-alsa.c ret = driver_for_each_device(drv, NULL, NULL, cx25821_alsa_exit_callback); drv 813 drivers/media/pci/cx25821/cx25821-alsa.c struct device_driver *drv = driver_find("cx25821", &pci_bus_type); drv 815 drivers/media/pci/cx25821/cx25821-alsa.c return driver_for_each_device(drv, NULL, NULL, cx25821_alsa_init_callback); drv 705 drivers/media/pci/cx88/cx88-blackbird.c struct cx8802_driver *drv; drv 711 drivers/media/pci/cx88/cx88-blackbird.c drv = cx8802_get_driver(dev, CX88_MPEG_BLACKBIRD); drv 712 drivers/media/pci/cx88/cx88-blackbird.c if (!drv) { drv 718 drivers/media/pci/cx88/cx88-blackbird.c err = drv->request_acquire(drv); drv 726 drivers/media/pci/cx88/cx88-blackbird.c drv->request_release(drv); drv 755 drivers/media/pci/cx88/cx88-blackbird.c struct cx8802_driver *drv = NULL; drv 762 drivers/media/pci/cx88/cx88-blackbird.c drv = cx8802_get_driver(dev, CX88_MPEG_BLACKBIRD); drv 763 drivers/media/pci/cx88/cx88-blackbird.c WARN_ON(!drv); drv 764 drivers/media/pci/cx88/cx88-blackbird.c if (drv) drv 765 drivers/media/pci/cx88/cx88-blackbird.c drv->request_release(drv); drv 1076 drivers/media/pci/cx88/cx88-blackbird.c static int cx8802_blackbird_advise_acquire(struct cx8802_driver *drv) drv 1078 drivers/media/pci/cx88/cx88-blackbird.c struct cx88_core *core = drv->core; drv 1108 drivers/media/pci/cx88/cx88-blackbird.c static int cx8802_blackbird_advise_release(struct cx8802_driver *drv) drv 1110 drivers/media/pci/cx88/cx88-blackbird.c struct cx88_core *core = drv->core; drv 1153 drivers/media/pci/cx88/cx88-blackbird.c static int cx8802_blackbird_probe(struct cx8802_driver *drv) drv 1155 drivers/media/pci/cx88/cx88-blackbird.c struct cx88_core *core = drv->core; drv 1219 drivers/media/pci/cx88/cx88-blackbird.c static int cx8802_blackbird_remove(struct cx8802_driver *drv) drv 1221 drivers/media/pci/cx88/cx88-blackbird.c struct cx88_core *core = drv->core; drv 1225 drivers/media/pci/cx88/cx88-blackbird.c blackbird_unregister_video(drv->core->dvbdev); drv 165 drivers/media/pci/cx88/cx88-dvb.c struct cx8802_driver *drv = NULL; drv 176 drivers/media/pci/cx88/cx88-dvb.c drv = cx8802_get_driver(dev, CX88_MPEG_DVB); drv 177 drivers/media/pci/cx88/cx88-dvb.c if (drv) { drv 180 drivers/media/pci/cx88/cx88-dvb.c ret = drv->request_acquire(drv); drv 182 drivers/media/pci/cx88/cx88-dvb.c ret = drv->request_release(drv); drv 1646 drivers/media/pci/cx88/cx88-dvb.c static int cx8802_dvb_advise_acquire(struct cx8802_driver *drv) drv 1648 drivers/media/pci/cx88/cx88-dvb.c struct cx88_core *core = drv->core; drv 1711 drivers/media/pci/cx88/cx88-dvb.c static int cx8802_dvb_advise_release(struct cx8802_driver *drv) drv 1713 drivers/media/pci/cx88/cx88-dvb.c struct cx88_core *core = drv->core; drv 1731 drivers/media/pci/cx88/cx88-dvb.c static int cx8802_dvb_probe(struct cx8802_driver *drv) drv 1733 drivers/media/pci/cx88/cx88-dvb.c struct cx88_core *core = drv->core; drv 1734 drivers/media/pci/cx88/cx88-dvb.c struct cx8802_dev *dev = drv->core->dvbdev; drv 1805 drivers/media/pci/cx88/cx88-dvb.c static int cx8802_dvb_remove(struct cx8802_driver *drv) drv 1807 drivers/media/pci/cx88/cx88-dvb.c struct cx88_core *core = drv->core; drv 1808 drivers/media/pci/cx88/cx88-dvb.c struct cx8802_dev *dev = drv->core->dvbdev; drv 512 drivers/media/pci/cx88/cx88-mpeg.c static int cx8802_request_acquire(struct cx8802_driver *drv) drv 514 drivers/media/pci/cx88/cx88-mpeg.c struct cx88_core *core = drv->core; drv 519 drivers/media/pci/cx88/cx88-mpeg.c core->active_type_id != drv->type_id) drv 522 drivers/media/pci/cx88/cx88-mpeg.c if (drv->type_id == CX88_MPEG_DVB) { drv 537 drivers/media/pci/cx88/cx88-mpeg.c if (drv->advise_acquire) { drv 540 drivers/media/pci/cx88/cx88-mpeg.c core->active_type_id = drv->type_id; drv 541 drivers/media/pci/cx88/cx88-mpeg.c drv->advise_acquire(drv); drv 551 drivers/media/pci/cx88/cx88-mpeg.c static int cx8802_request_release(struct cx8802_driver *drv) drv 553 drivers/media/pci/cx88/cx88-mpeg.c struct cx88_core *core = drv->core; drv 555 drivers/media/pci/cx88/cx88-mpeg.c if (drv->advise_release && --core->active_ref == 0) { drv 556 drivers/media/pci/cx88/cx88-mpeg.c if (drv->type_id == CX88_MPEG_DVB) { drv 564 drivers/media/pci/cx88/cx88-mpeg.c drv->advise_release(drv); drv 572 drivers/media/pci/cx88/cx88-mpeg.c static int cx8802_check_driver(struct cx8802_driver *drv) drv 574 drivers/media/pci/cx88/cx88-mpeg.c if (!drv) drv 577 drivers/media/pci/cx88/cx88-mpeg.c if ((drv->type_id != CX88_MPEG_DVB) && drv 578 drivers/media/pci/cx88/cx88-mpeg.c (drv->type_id != CX88_MPEG_BLACKBIRD)) drv 581 drivers/media/pci/cx88/cx88-mpeg.c if ((drv->hw_access != CX8802_DRVCTL_SHARED) && drv 582 drivers/media/pci/cx88/cx88-mpeg.c (drv->hw_access != CX8802_DRVCTL_EXCLUSIVE)) drv 585 drivers/media/pci/cx88/cx88-mpeg.c if ((!drv->probe) || drv 586 drivers/media/pci/cx88/cx88-mpeg.c (!drv->remove) || drv 587 drivers/media/pci/cx88/cx88-mpeg.c (!drv->advise_acquire) || drv 588 drivers/media/pci/cx88/cx88-mpeg.c (!drv->advise_release)) drv 594 drivers/media/pci/cx88/cx88-mpeg.c int cx8802_register_driver(struct cx8802_driver *drv) drv 601 drivers/media/pci/cx88/cx88-mpeg.c drv->type_id == CX88_MPEG_DVB ? "dvb" : "blackbird", drv 602 drivers/media/pci/cx88/cx88-mpeg.c drv->hw_access == CX8802_DRVCTL_SHARED ? drv 605 drivers/media/pci/cx88/cx88-mpeg.c err = cx8802_check_driver(drv); drv 620 drivers/media/pci/cx88/cx88-mpeg.c driver = kzalloc(sizeof(*drv), GFP_KERNEL); drv 627 drivers/media/pci/cx88/cx88-mpeg.c drv->core = dev->core; drv 628 drivers/media/pci/cx88/cx88-mpeg.c drv->suspend = cx8802_suspend_common; drv 629 drivers/media/pci/cx88/cx88-mpeg.c drv->resume = cx8802_resume_common; drv 630 drivers/media/pci/cx88/cx88-mpeg.c drv->request_acquire = cx8802_request_acquire; drv 631 drivers/media/pci/cx88/cx88-mpeg.c drv->request_release = cx8802_request_release; drv 632 drivers/media/pci/cx88/cx88-mpeg.c memcpy(driver, drv, sizeof(*driver)); drv 634 drivers/media/pci/cx88/cx88-mpeg.c mutex_lock(&drv->core->lock); drv 635 drivers/media/pci/cx88/cx88-mpeg.c err = drv->probe(driver); drv 642 drivers/media/pci/cx88/cx88-mpeg.c mutex_unlock(&drv->core->lock); drv 652 drivers/media/pci/cx88/cx88-mpeg.c int cx8802_unregister_driver(struct cx8802_driver *drv) drv 659 drivers/media/pci/cx88/cx88-mpeg.c drv->type_id == CX88_MPEG_DVB ? "dvb" : "blackbird", drv 660 drivers/media/pci/cx88/cx88-mpeg.c drv->hw_access == CX8802_DRVCTL_SHARED ? drv 675 drivers/media/pci/cx88/cx88-mpeg.c if (d->type_id != drv->type_id) drv 759 drivers/media/pci/cx88/cx88-mpeg.c struct cx8802_driver *drv, *tmp; drv 764 drivers/media/pci/cx88/cx88-mpeg.c list_for_each_entry_safe(drv, tmp, &dev->drvlist, drvlist) { drv 765 drivers/media/pci/cx88/cx88-mpeg.c err = drv->remove(drv); drv 767 drivers/media/pci/cx88/cx88-mpeg.c list_del(&drv->drvlist); drv 771 drivers/media/pci/cx88/cx88-mpeg.c kfree(drv); drv 523 drivers/media/pci/cx88/cx88.h int (*probe)(struct cx8802_driver *drv); drv 524 drivers/media/pci/cx88/cx88.h int (*remove)(struct cx8802_driver *drv); drv 527 drivers/media/pci/cx88/cx88.h int (*advise_acquire)(struct cx8802_driver *drv); drv 528 drivers/media/pci/cx88/cx88.h int (*advise_release)(struct cx8802_driver *drv); drv 531 drivers/media/pci/cx88/cx88.h int (*request_acquire)(struct cx8802_driver *drv); drv 532 drivers/media/pci/cx88/cx88.h int (*request_release)(struct cx8802_driver *drv); drv 689 drivers/media/pci/cx88/cx88.h int cx8802_register_driver(struct cx8802_driver *drv); drv 690 drivers/media/pci/cx88/cx88.h int cx8802_unregister_driver(struct cx8802_driver *drv); drv 267 drivers/media/pci/ivtv/ivtv-alsa-main.c struct device_driver *drv; drv 272 drivers/media/pci/ivtv/ivtv-alsa-main.c drv = driver_find("ivtv", &pci_bus_type); drv 273 drivers/media/pci/ivtv/ivtv-alsa-main.c ret = driver_for_each_device(drv, NULL, NULL, ivtv_alsa_exit_callback); drv 1271 drivers/media/pci/ivtv/ivtvfb.c struct device_driver *drv; drv 1282 drivers/media/pci/ivtv/ivtvfb.c drv = driver_find("ivtv", &pci_bus_type); drv 1283 drivers/media/pci/ivtv/ivtvfb.c err = driver_for_each_device(drv, NULL, ®istered, ivtvfb_callback_init); drv 1294 drivers/media/pci/ivtv/ivtvfb.c struct device_driver *drv; drv 1299 drivers/media/pci/ivtv/ivtvfb.c drv = driver_find("ivtv", &pci_bus_type); drv 1300 drivers/media/pci/ivtv/ivtvfb.c err = driver_for_each_device(drv, NULL, NULL, ivtvfb_callback_cleanup); drv 23 drivers/media/platform/sti/delta/delta-ipc.c #define to_rpmsg_driver(__drv) container_of(__drv, struct rpmsg_driver, drv) drv 575 drivers/media/platform/sti/delta/delta-ipc.c .drv = {.name = KBUILD_MODNAME}, drv 47 drivers/media/platform/vimc/vimc-core.c const char *drv; drv 74 drivers/media/platform/vimc/vimc-core.c .drv = "vimc-sensor", drv 78 drivers/media/platform/vimc/vimc-core.c .drv = "vimc-sensor", drv 82 drivers/media/platform/vimc/vimc-core.c .drv = "vimc-debayer", drv 86 drivers/media/platform/vimc/vimc-core.c .drv = "vimc-debayer", drv 90 drivers/media/platform/vimc/vimc-core.c .drv = "vimc-capture", drv 94 drivers/media/platform/vimc/vimc-core.c .drv = "vimc-capture", drv 99 drivers/media/platform/vimc/vimc-core.c .drv = "vimc-sensor", drv 103 drivers/media/platform/vimc/vimc-core.c .drv = "vimc-scaler", drv 107 drivers/media/platform/vimc/vimc-core.c .drv = "vimc-capture", drv 248 drivers/media/platform/vimc/vimc-core.c vimc->pipe_cfg->ents[i].drv); drv 254 drivers/media/platform/vimc/vimc-core.c vimc->pipe_cfg->ents[i].drv, drv 37 drivers/media/radio/radio-isa.c strscpy(v->driver, isa->drv->driver.driver.name, sizeof(v->driver)); drv 38 drivers/media/radio/radio-isa.c strscpy(v->card, isa->drv->card, sizeof(v->card)); drv 47 drivers/media/radio/radio-isa.c const struct radio_isa_ops *ops = isa->drv->ops; drv 57 drivers/media/radio/radio-isa.c if (isa->drv->has_stereo) drv 77 drivers/media/radio/radio-isa.c const struct radio_isa_ops *ops = isa->drv->ops; drv 98 drivers/media/radio/radio-isa.c res = isa->drv->ops->s_frequency(isa, freq); drv 123 drivers/media/radio/radio-isa.c return isa->drv->ops->s_mute_volume(isa, ctrl->val, drv 163 drivers/media/radio/radio-isa.c struct radio_isa_driver *drv = pdev->platform_data; drv 165 drivers/media/radio/radio-isa.c return drv->probe || drv->io_params[dev] >= 0; drv 169 drivers/media/radio/radio-isa.c static bool radio_isa_valid_io(const struct radio_isa_driver *drv, int io) drv 173 drivers/media/radio/radio-isa.c for (i = 0; i < drv->num_of_io_ports; i++) drv 174 drivers/media/radio/radio-isa.c if (drv->io_ports[i] == io) drv 179 drivers/media/radio/radio-isa.c static struct radio_isa_card *radio_isa_alloc(struct radio_isa_driver *drv, drv 183 drivers/media/radio/radio-isa.c struct radio_isa_card *isa = drv->ops->alloc(); drv 188 drivers/media/radio/radio-isa.c isa->drv = drv; drv 199 drivers/media/radio/radio-isa.c const struct radio_isa_driver *drv = isa->drv; drv 200 drivers/media/radio/radio-isa.c const struct radio_isa_ops *ops = drv->ops; drv 219 drivers/media/radio/radio-isa.c if (drv->max_volume) drv 221 drivers/media/radio/radio-isa.c V4L2_CID_AUDIO_VOLUME, 0, drv->max_volume, 1, drv 222 drivers/media/radio/radio-isa.c drv->max_volume); drv 229 drivers/media/radio/radio-isa.c if (drv->max_volume) drv 243 drivers/media/radio/radio-isa.c isa->stereo = drv->has_stereo; drv 265 drivers/media/radio/radio-isa.c drv->card, isa->io); drv 279 drivers/media/radio/radio-isa.c const struct radio_isa_ops *ops = isa->drv->ops; drv 286 drivers/media/radio/radio-isa.c v4l2_info(&isa->v4l2_dev, "Removed radio card %s\n", isa->drv->card); drv 293 drivers/media/radio/radio-isa.c struct radio_isa_driver *drv = pdev->platform_data; drv 294 drivers/media/radio/radio-isa.c const struct radio_isa_ops *ops = drv->ops; drv 298 drivers/media/radio/radio-isa.c isa = radio_isa_alloc(drv, pdev); drv 301 drivers/media/radio/radio-isa.c isa->io = drv->io_params[dev]; drv 304 drivers/media/radio/radio-isa.c if (drv->probe && ops->probe) { drv 307 drivers/media/radio/radio-isa.c for (i = 0; i < drv->num_of_io_ports; ++i) { drv 308 drivers/media/radio/radio-isa.c int io = drv->io_ports[i]; drv 310 drivers/media/radio/radio-isa.c if (request_region(io, drv->region_size, v4l2_dev->name)) { drv 313 drivers/media/radio/radio-isa.c release_region(io, drv->region_size); drv 322 drivers/media/radio/radio-isa.c if (!radio_isa_valid_io(drv, isa->io)) { drv 328 drivers/media/radio/radio-isa.c drv->io_ports[0]); drv 329 drivers/media/radio/radio-isa.c for (i = 1; i < drv->num_of_io_ports; i++) drv 330 drivers/media/radio/radio-isa.c printk(KERN_CONT "/0x%03x", drv->io_ports[i]); drv 336 drivers/media/radio/radio-isa.c return radio_isa_common_probe(isa, pdev, drv->radio_nr_params[dev], drv 337 drivers/media/radio/radio-isa.c drv->region_size); drv 345 drivers/media/radio/radio-isa.c return radio_isa_common_remove(isa, isa->drv->region_size); drv 353 drivers/media/radio/radio-isa.c struct radio_isa_driver *drv = container_of(pnp_drv, drv 360 drivers/media/radio/radio-isa.c isa = radio_isa_alloc(drv, &dev->dev); drv 366 drivers/media/radio/radio-isa.c return radio_isa_common_probe(isa, &dev->dev, drv->radio_nr_params[0], drv 24 drivers/media/radio/radio-isa.h const struct radio_isa_driver *drv; drv 648 drivers/media/usb/pulse8-cec/pulse8-cec.c static int pulse8_connect(struct serio *serio, struct serio_driver *drv) drv 675 drivers/media/usb/pulse8-cec/pulse8-cec.c err = serio_open(serio, drv); drv 306 drivers/media/usb/rainshadow-cec/rainshadow-cec.c static int rain_connect(struct serio *serio, struct serio_driver *drv) drv 332 drivers/media/usb/rainshadow-cec/rainshadow-cec.c err = serio_open(serio, drv); drv 310 drivers/memory/pl172.c .drv = { drv 449 drivers/memory/pl353-smc.c .drv = { drv 41 drivers/memstick/core/memstick.c static int memstick_bus_match(struct device *dev, struct device_driver *drv) drv 45 drivers/memstick/core/memstick.c struct memstick_driver *ms_drv = container_of(drv, drv 81 drivers/memstick/core/memstick.c struct memstick_driver *drv = container_of(dev->driver, drv 86 drivers/memstick/core/memstick.c if (dev->driver && drv->probe) { drv 87 drivers/memstick/core/memstick.c rc = drv->probe(card); drv 98 drivers/memstick/core/memstick.c struct memstick_driver *drv = container_of(dev->driver, drv 102 drivers/memstick/core/memstick.c if (dev->driver && drv->remove) { drv 103 drivers/memstick/core/memstick.c drv->remove(card); drv 117 drivers/memstick/core/memstick.c struct memstick_driver *drv = container_of(dev->driver, drv 121 drivers/memstick/core/memstick.c if (dev->driver && drv->suspend) drv 122 drivers/memstick/core/memstick.c return drv->suspend(card, state); drv 130 drivers/memstick/core/memstick.c struct memstick_driver *drv = container_of(dev->driver, drv 134 drivers/memstick/core/memstick.c if (dev->driver && drv->resume) drv 135 drivers/memstick/core/memstick.c return drv->resume(card); drv 604 drivers/memstick/core/memstick.c int memstick_register_driver(struct memstick_driver *drv) drv 606 drivers/memstick/core/memstick.c drv->driver.bus = &memstick_bus_type; drv 608 drivers/memstick/core/memstick.c return driver_register(&drv->driver); drv 612 drivers/memstick/core/memstick.c void memstick_unregister_driver(struct memstick_driver *drv) drv 614 drivers/memstick/core/memstick.c driver_unregister(&drv->driver); drv 21 drivers/mfd/mcp-core.c #define to_mcp_driver(d) container_of(d, struct mcp_driver, drv) drv 23 drivers/mfd/mcp-core.c static int mcp_bus_match(struct device *dev, struct device_driver *drv) drv 31 drivers/mfd/mcp-core.c struct mcp_driver *drv = to_mcp_driver(dev->driver); drv 33 drivers/mfd/mcp-core.c return drv->probe(mcp); drv 39 drivers/mfd/mcp-core.c struct mcp_driver *drv = to_mcp_driver(dev->driver); drv 41 drivers/mfd/mcp-core.c drv->remove(mcp); drv 210 drivers/mfd/mcp-core.c mcpdrv->drv.bus = &mcp_bus_type; drv 211 drivers/mfd/mcp-core.c return driver_register(&mcpdrv->drv); drv 217 drivers/mfd/mcp-core.c driver_unregister(&mcpdrv->drv); drv 390 drivers/mfd/ucb1x00-core.c static int ucb1x00_add_dev(struct ucb1x00 *ucb, struct ucb1x00_driver *drv) drv 400 drivers/mfd/ucb1x00-core.c dev->drv = drv; drv 402 drivers/mfd/ucb1x00-core.c ret = drv->add(dev); drv 409 drivers/mfd/ucb1x00-core.c list_add_tail(&dev->drv_node, &drv->devs); drv 416 drivers/mfd/ucb1x00-core.c dev->drv->remove(dev); drv 495 drivers/mfd/ucb1x00-core.c struct ucb1x00_driver *drv; drv 589 drivers/mfd/ucb1x00-core.c list_for_each_entry(drv, &ucb1x00_drivers, node) { drv 590 drivers/mfd/ucb1x00-core.c ucb1x00_add_dev(ucb, drv); drv 636 drivers/mfd/ucb1x00-core.c int ucb1x00_register_driver(struct ucb1x00_driver *drv) drv 640 drivers/mfd/ucb1x00-core.c INIT_LIST_HEAD(&drv->devs); drv 642 drivers/mfd/ucb1x00-core.c list_add_tail(&drv->node, &ucb1x00_drivers); drv 644 drivers/mfd/ucb1x00-core.c ucb1x00_add_dev(ucb, drv); drv 650 drivers/mfd/ucb1x00-core.c void ucb1x00_unregister_driver(struct ucb1x00_driver *drv) drv 655 drivers/mfd/ucb1x00-core.c list_del(&drv->node); drv 656 drivers/mfd/ucb1x00-core.c list_for_each_safe(l, n, &drv->devs) { drv 672 drivers/mfd/ucb1x00-core.c if (udev->drv->suspend) drv 673 drivers/mfd/ucb1x00-core.c udev->drv->suspend(udev); drv 725 drivers/mfd/ucb1x00-core.c if (udev->drv->resume) drv 726 drivers/mfd/ucb1x00-core.c udev->drv->resume(udev); drv 736 drivers/mfd/ucb1x00-core.c .drv = { drv 1527 drivers/misc/fastrpc.c .drv = { drv 660 drivers/misc/mei/bus.c static int mei_cl_device_match(struct device *dev, struct device_driver *drv) drv 663 drivers/misc/mei/bus.c struct mei_cl_driver *cldrv = to_mei_cl_driver(drv); drv 20 drivers/misc/mic/bus/cosm_bus.c struct cosm_driver *drv = drv_to_cosm(dev->dev.driver); drv 22 drivers/misc/mic/bus/cosm_bus.c return drv->probe(dev); drv 28 drivers/misc/mic/bus/cosm_bus.c struct cosm_driver *drv = drv_to_cosm(dev->dev.driver); drv 30 drivers/misc/mic/bus/cosm_bus.c drv->remove(dev); drv 112 drivers/misc/mic/bus/cosm_bus.h int cosm_register_driver(struct cosm_driver *drv); drv 113 drivers/misc/mic/bus/cosm_bus.h void cosm_unregister_driver(struct cosm_driver *drv); drv 121 drivers/misc/mic/bus/cosm_bus.h static inline struct cosm_driver *drv_to_cosm(struct device_driver *drv) drv 123 drivers/misc/mic/bus/cosm_bus.h return container_of(drv, struct cosm_driver, driver); drv 88 drivers/misc/mic/bus/mic_bus.c struct mbus_driver *drv = drv_to_mbus(dev->dev.driver); drv 90 drivers/misc/mic/bus/mic_bus.c err = drv->probe(dev); drv 92 drivers/misc/mic/bus/mic_bus.c if (drv->scan) drv 93 drivers/misc/mic/bus/mic_bus.c drv->scan(dev); drv 100 drivers/misc/mic/bus/mic_bus.c struct mbus_driver *drv = drv_to_mbus(dev->dev.driver); drv 102 drivers/misc/mic/bus/mic_bus.c drv->remove(dev); drv 89 drivers/misc/mic/bus/scif_bus.c struct scif_driver *drv = drv_to_scif(dev->dev.driver); drv 91 drivers/misc/mic/bus/scif_bus.c return drv->probe(dev); drv 97 drivers/misc/mic/bus/scif_bus.c struct scif_driver *drv = drv_to_scif(dev->dev.driver); drv 99 drivers/misc/mic/bus/scif_bus.c drv->remove(dev); drv 121 drivers/misc/mic/bus/scif_bus.h static inline struct scif_driver *drv_to_scif(struct device_driver *drv) drv 123 drivers/misc/mic/bus/scif_bus.h return container_of(drv, struct scif_driver, driver); drv 89 drivers/misc/mic/bus/vop_bus.c struct vop_driver *drv = drv_to_vop(dev->dev.driver); drv 91 drivers/misc/mic/bus/vop_bus.c return drv->probe(dev); drv 97 drivers/misc/mic/bus/vop_bus.c struct vop_driver *drv = drv_to_vop(dev->dev.driver); drv 99 drivers/misc/mic/bus/vop_bus.c drv->remove(dev); drv 107 drivers/misc/mic/bus/vop_bus.h int vop_register_driver(struct vop_driver *drv); drv 108 drivers/misc/mic/bus/vop_bus.h void vop_unregister_driver(struct vop_driver *drv); drv 125 drivers/misc/mic/bus/vop_bus.h static inline struct vop_driver *drv_to_vop(struct device_driver *drv) drv 127 drivers/misc/mic/bus/vop_bus.h return container_of(drv, struct vop_driver, driver); drv 41 drivers/misc/tifm_core.c static int tifm_bus_match(struct device *dev, struct device_driver *drv) drv 44 drivers/misc/tifm_core.c struct tifm_driver *fm_drv = container_of(drv, struct tifm_driver, drv 71 drivers/misc/tifm_core.c struct tifm_driver *drv = container_of(dev->driver, struct tifm_driver, drv 76 drivers/misc/tifm_core.c if (dev->driver && drv->probe) { drv 77 drivers/misc/tifm_core.c rc = drv->probe(sock); drv 93 drivers/misc/tifm_core.c struct tifm_driver *drv = container_of(dev->driver, struct tifm_driver, drv 96 drivers/misc/tifm_core.c if (dev->driver && drv->remove) { drv 99 drivers/misc/tifm_core.c drv->remove(sock); drv 112 drivers/misc/tifm_core.c struct tifm_driver *drv = container_of(dev->driver, struct tifm_driver, drv 115 drivers/misc/tifm_core.c if (dev->driver && drv->suspend) drv 116 drivers/misc/tifm_core.c return drv->suspend(sock, state); drv 123 drivers/misc/tifm_core.c struct tifm_driver *drv = container_of(dev->driver, struct tifm_driver, drv 126 drivers/misc/tifm_core.c if (dev->driver && drv->resume) drv 127 drivers/misc/tifm_core.c return drv->resume(sock); drv 314 drivers/misc/tifm_core.c int tifm_register_driver(struct tifm_driver *drv) drv 316 drivers/misc/tifm_core.c drv->driver.bus = &tifm_bus_type; drv 318 drivers/misc/tifm_core.c return driver_register(&drv->driver); drv 322 drivers/misc/tifm_core.c void tifm_unregister_driver(struct tifm_driver *drv) drv 324 drivers/misc/tifm_core.c driver_unregister(&drv->driver); drv 3003 drivers/mmc/core/block.c .drv = { drv 28 drivers/mmc/core/bus.c #define to_mmc_driver(d) container_of(d, struct mmc_driver, drv) drv 61 drivers/mmc/core/bus.c static int mmc_bus_match(struct device *dev, struct device_driver *drv) drv 111 drivers/mmc/core/bus.c struct mmc_driver *drv = to_mmc_driver(dev->driver); drv 114 drivers/mmc/core/bus.c return drv->probe(card); drv 119 drivers/mmc/core/bus.c struct mmc_driver *drv = to_mmc_driver(dev->driver); drv 122 drivers/mmc/core/bus.c drv->remove(card); drv 129 drivers/mmc/core/bus.c struct mmc_driver *drv = to_mmc_driver(dev->driver); drv 134 drivers/mmc/core/bus.c if (dev->driver && drv->shutdown) drv 135 drivers/mmc/core/bus.c drv->shutdown(card); drv 227 drivers/mmc/core/bus.c int mmc_register_driver(struct mmc_driver *drv) drv 229 drivers/mmc/core/bus.c drv->drv.bus = &mmc_bus_type; drv 230 drivers/mmc/core/bus.c return driver_register(&drv->drv); drv 239 drivers/mmc/core/bus.c void mmc_unregister_driver(struct mmc_driver *drv) drv 241 drivers/mmc/core/bus.c drv->drv.bus = &mmc_bus_type; drv 242 drivers/mmc/core/bus.c driver_unregister(&drv->drv); drv 33 drivers/mmc/core/bus.h struct device_driver drv; drv 39 drivers/mmc/core/bus.h int mmc_register_driver(struct mmc_driver *drv); drv 40 drivers/mmc/core/bus.h void mmc_unregister_driver(struct mmc_driver *drv); drv 3247 drivers/mmc/core/mmc_test.c .drv = { drv 28 drivers/mmc/core/sdio_bus.c #define to_sdio_driver(d) container_of(d, struct sdio_driver, drv) drv 94 drivers/mmc/core/sdio_bus.c static int sdio_bus_match(struct device *dev, struct device_driver *drv) drv 97 drivers/mmc/core/sdio_bus.c struct sdio_driver *sdrv = to_sdio_driver(drv); drv 128 drivers/mmc/core/sdio_bus.c struct sdio_driver *drv = to_sdio_driver(dev->driver); drv 133 drivers/mmc/core/sdio_bus.c id = sdio_match_device(func, drv); drv 166 drivers/mmc/core/sdio_bus.c ret = drv->probe(func, id); drv 182 drivers/mmc/core/sdio_bus.c struct sdio_driver *drv = to_sdio_driver(dev->driver); drv 189 drivers/mmc/core/sdio_bus.c drv->remove(func); drv 194 drivers/mmc/core/sdio_bus.c drv->name); drv 246 drivers/mmc/core/sdio_bus.c int sdio_register_driver(struct sdio_driver *drv) drv 248 drivers/mmc/core/sdio_bus.c drv->drv.name = drv->name; drv 249 drivers/mmc/core/sdio_bus.c drv->drv.bus = &sdio_bus_type; drv 250 drivers/mmc/core/sdio_bus.c return driver_register(&drv->drv); drv 258 drivers/mmc/core/sdio_bus.c void sdio_unregister_driver(struct sdio_driver *drv) drv 260 drivers/mmc/core/sdio_bus.c drv->drv.bus = &sdio_bus_type; drv 261 drivers/mmc/core/sdio_bus.c driver_unregister(&drv->drv); drv 2242 drivers/mmc/host/mmci.c .drv = { drv 18 drivers/mtd/chips/chipreg.c void register_mtd_chip_driver(struct mtd_chip_driver *drv) drv 21 drivers/mtd/chips/chipreg.c list_add(&drv->list, &chip_drvs_list); drv 25 drivers/mtd/chips/chipreg.c void unregister_mtd_chip_driver(struct mtd_chip_driver *drv) drv 28 drivers/mtd/chips/chipreg.c list_del(&drv->list); drv 60 drivers/mtd/chips/chipreg.c struct mtd_chip_driver *drv; drv 63 drivers/mtd/chips/chipreg.c drv = get_mtd_chip_driver(name); drv 65 drivers/mtd/chips/chipreg.c if (!drv && !request_module("%s", name)) drv 66 drivers/mtd/chips/chipreg.c drv = get_mtd_chip_driver(name); drv 68 drivers/mtd/chips/chipreg.c if (!drv) drv 71 drivers/mtd/chips/chipreg.c ret = drv->probe(map); drv 78 drivers/mtd/chips/chipreg.c module_put(drv->module); drv 800 drivers/mtd/maps/vmu-flash.c .drv = { drv 601 drivers/net/caif/caif_virtio.c static void cfv_tx_release_tasklet(unsigned long drv) drv 603 drivers/net/caif/caif_virtio.c struct cfv_info *cfv = (struct cfv_info *)drv; drv 380 drivers/net/ethernet/8390/ax88796.c phy_dev->drv->name, phydev_name(phy_dev), phy_dev->irq); drv 833 drivers/net/ethernet/8390/etherh.c .drv = { drv 45 drivers/net/ethernet/altera/altera_msgdma.c netif_warn(priv, drv, priv->dev, drv 67 drivers/net/ethernet/altera/altera_msgdma.c netif_warn(priv, drv, priv->dev, drv 595 drivers/net/ethernet/amazon/ena/ena_ethtool.c netif_err(adapter, drv, netdev, drv 621 drivers/net/ethernet/amazon/ena/ena_ethtool.c netif_err(adapter, drv, netdev, drv 699 drivers/net/ethernet/amazon/ena/ena_ethtool.c netif_err(adapter, drv, netdev, drv 724 drivers/net/ethernet/amazon/ena/ena_ethtool.c netif_err(adapter, drv, netdev, drv 732 drivers/net/ethernet/amazon/ena/ena_ethtool.c netif_err(adapter, drv, netdev, drv 749 drivers/net/ethernet/amazon/ena/ena_ethtool.c netif_err(adapter, drv, netdev, "Unsupported hfunc %d\n", drv 759 drivers/net/ethernet/amazon/ena/ena_ethtool.c netif_err(adapter, drv, netdev, "Cannot fill key\n"); drv 865 drivers/net/ethernet/amazon/ena/ena_ethtool.c netif_err(adapter, drv, netdev, "Can't get stats num\n"); drv 873 drivers/net/ethernet/amazon/ena/ena_ethtool.c netif_err(adapter, drv, netdev, drv 882 drivers/net/ethernet/amazon/ena/ena_ethtool.c netif_err(adapter, drv, netdev, drv 902 drivers/net/ethernet/amazon/ena/ena_ethtool.c netif_err(adapter, drv, netdev, "%s: %llu\n", drv 115 drivers/net/ethernet/amazon/ena/ena_netdev.c netif_dbg(adapter, drv, dev, "set MTU to %d\n", new_mtu); drv 119 drivers/net/ethernet/amazon/ena/ena_netdev.c netif_err(adapter, drv, dev, "Failed to set MTU to %d\n", drv 2460 drivers/net/ethernet/amazon/ena/ena_netdev.c netif_err(adapter, drv, adapter->netdev, drv 2477 drivers/net/ethernet/amazon/ena/ena_netdev.c netif_warn(adapter, drv, adapter->netdev, drv 2480 drivers/net/ethernet/amazon/ena/ena_netdev.c netif_err(adapter, drv, adapter->netdev, drv 2570 drivers/net/ethernet/amazon/ena/ena_netdev.c netif_err(adapter, drv, netdev, drv 2576 drivers/net/ethernet/amazon/ena/ena_netdev.c netif_err(adapter, drv, netdev, drv 3015 drivers/net/ethernet/amazon/ena/ena_netdev.c netif_err(adapter, drv, adapter->netdev, drv 3041 drivers/net/ethernet/amazon/ena/ena_netdev.c netif_err(adapter, drv, adapter->netdev, drv 3054 drivers/net/ethernet/amazon/ena/ena_netdev.c netif_err(adapter, drv, adapter->netdev, drv 3133 drivers/net/ethernet/amazon/ena/ena_netdev.c netif_err(adapter, drv, adapter->netdev, drv 3872 drivers/net/ethernet/amazon/ena/ena_netdev.c netif_err(adapter, drv, adapter->netdev, drv 3884 drivers/net/ethernet/amazon/ena/ena_netdev.c netif_err(adapter, drv, adapter->netdev, drv 371 drivers/net/ethernet/amd/au1000_eth.c netif_dbg(aup, drv, dev, "hard stop\n"); drv 910 drivers/net/ethernet/amd/au1000_eth.c netif_dbg(aup, drv, dev, "open: dev=%p\n", dev); drv 931 drivers/net/ethernet/amd/au1000_eth.c netif_dbg(aup, drv, dev, "open: Initialization done.\n"); drv 941 drivers/net/ethernet/amd/au1000_eth.c netif_dbg(aup, drv, dev, "close: dev=%p\n", dev); drv 1031 drivers/net/ethernet/amd/au1000_eth.c netif_dbg(aup, drv, dev, "%s: flags=%x\n", __func__, dev->flags); drv 580 drivers/net/ethernet/amd/pcnet32.c netif_err(lp, drv, dev, "%s netdev_alloc_skb failed\n", drv 591 drivers/net/ethernet/amd/pcnet32.c netif_err(lp, drv, dev, "%s dma mapping failed\n", drv 932 drivers/net/ethernet/amd/pcnet32.c netif_info(lp, drv, dev, "Ring Param Settings: RX: %d, TX: %d\n", drv 1212 drivers/net/ethernet/amd/pcnet32.c netif_err(lp, drv, dev, "Impossible packet size %d!\n", drv 1379 drivers/net/ethernet/amd/pcnet32.c netif_err(lp, drv, dev, "out-of-sync dirty pointer, %d vs. %d, full=%d\n", drv 2025 drivers/net/ethernet/amd/pcnet32.c netif_err(lp, drv, dev, "Consistent memory allocation failed\n"); drv 2034 drivers/net/ethernet/amd/pcnet32.c netif_err(lp, drv, dev, "Consistent memory allocation failed\n"); drv 2380 drivers/net/ethernet/amd/pcnet32.c netif_err(lp, drv, dev, "%s netdev_alloc_skb failed\n", drv 2395 drivers/net/ethernet/amd/pcnet32.c netif_err(lp, drv, dev, drv 2441 drivers/net/ethernet/amd/pcnet32.c netif_err(lp, drv, dev, "%s timed out waiting for stop\n", drv 2601 drivers/net/ethernet/amd/pcnet32.c netif_err(lp, drv, dev, "Bus master arbitration failure, status %4.4x\n", drv 154 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c netif_dbg(pdata, drv, netdev, drv 158 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c netif_dbg(pdata, drv, netdev, "PRIO%u: TC=%hhu\n", i, drv 173 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c netif_err(pdata, drv, netdev, drv 182 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c netif_err(pdata, drv, netdev, drv 189 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c netif_err(pdata, drv, netdev, drv 232 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c netif_dbg(pdata, drv, netdev, drv 238 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c netif_err(pdata, drv, netdev, drv 267 drivers/net/ethernet/amd/xgbe/xgbe-dcb.c netif_dbg(pdata, drv, netdev, "DCBX=%#hhx\n", dcbx); drv 239 drivers/net/ethernet/amd/xgbe/xgbe-desc.c netif_dbg(pdata, drv, pdata->netdev, drv 254 drivers/net/ethernet/amd/xgbe/xgbe-desc.c netif_dbg(pdata, drv, pdata->netdev, "%s - Tx ring:\n", drv 265 drivers/net/ethernet/amd/xgbe/xgbe-desc.c netif_dbg(pdata, drv, pdata->netdev, "%s - Rx ring:\n", drv 488 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_dbg(pdata, drv, pdata->netdev, "VXLAN tunnel id set to %hx\n", drv 507 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_dbg(pdata, drv, pdata->netdev, "VXLAN acceleration enabled\n"); drv 524 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_dbg(pdata, drv, pdata->netdev, "VXLAN acceleration disabled\n"); drv 576 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_dbg(pdata, drv, pdata->netdev, drv 943 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_dbg(pdata, drv, pdata->netdev, "%s promiscuous mode\n", drv 966 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_dbg(pdata, drv, pdata->netdev, "%s allmulti mode\n", drv 992 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_dbg(pdata, drv, pdata->netdev, drv 2552 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_info(pdata, drv, pdata->netdev, drv 2586 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_info(pdata, drv, pdata->netdev, drv 2589 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_info(pdata, drv, pdata->netdev, drv 2593 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_info(pdata, drv, pdata->netdev, drv 2616 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_dbg(pdata, drv, pdata->netdev, drv 2624 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_dbg(pdata, drv, pdata->netdev, drv 2642 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_dbg(pdata, drv, pdata->netdev, drv 2649 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_dbg(pdata, drv, pdata->netdev, drv 2697 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_dbg(pdata, drv, pdata->netdev, "TC%u using TXq%u-%u\n", drv 2741 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_dbg(pdata, drv, pdata->netdev, "TC%u PRIO mask=%#x\n", drv 2754 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_dbg(pdata, drv, pdata->netdev, drv 2763 drivers/net/ethernet/amd/xgbe/xgbe-dev.c netif_dbg(pdata, drv, pdata->netdev, drv 244 drivers/net/ethernet/amd/xgbe/xgbe-drv.c netif_dbg(pdata, drv, pdata->netdev, drv 247 drivers/net/ethernet/amd/xgbe/xgbe-drv.c netif_dbg(pdata, drv, pdata->netdev, drv 279 drivers/net/ethernet/amd/xgbe/xgbe-drv.c netif_info(pdata, drv, pdata->netdev, drv 2396 drivers/net/ethernet/amd/xgbe/xgbe-drv.c netif_dbg(pdata, drv, netdev, drv 2407 drivers/net/ethernet/amd/xgbe/xgbe-drv.c netif_dbg(pdata, drv, netdev, drv 2439 drivers/net/ethernet/amd/xgbe/xgbe-drv.c netif_dbg(pdata, drv, netdev, drv 414 drivers/net/ethernet/amd/xgbe/xgbe-main.c netif_dbg(pdata, drv, pdata->netdev, "%u Tx software queues\n", drv 416 drivers/net/ethernet/amd/xgbe/xgbe-main.c netif_dbg(pdata, drv, pdata->netdev, "%u Rx software queues\n", drv 449 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netif_dbg(pdata, drv, pdata->netdev, drv 893 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netif_dbg(pdata, drv, pdata->netdev, drv 971 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netif_dbg(pdata, drv, pdata->netdev, drv 1026 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netif_dbg(pdata, drv, pdata->netdev, "external PHY id is %#010x\n", drv 1197 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netif_dbg(pdata, drv, pdata->netdev, "SFP detected:\n"); drv 1201 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netif_dbg(pdata, drv, pdata->netdev, " vendor: %s\n", drv 1207 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netif_dbg(pdata, drv, pdata->netdev, " part number: %s\n", drv 1213 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netif_dbg(pdata, drv, pdata->netdev, " revision level: %s\n", drv 1219 drivers/net/ethernet/amd/xgbe/xgbe-phy-v2.c netif_dbg(pdata, drv, pdata->netdev, " serial number: %s\n", drv 999 drivers/net/ethernet/arc/emac_main.c phydev->drv->name, phydev->phy_id); drv 198 drivers/net/ethernet/broadcom/bgmac-bcma.c (phydev->drv->phy_id & phydev->drv->phy_id_mask) == PHY_ID_BCM54210E) drv 5917 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c const struct bnx2x_func_sp_drv_ops *drv) drv 5919 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c return drv->init_hw_func(bp); drv 5934 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c const struct bnx2x_func_sp_drv_ops *drv) drv 5936 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c int rc = drv->init_hw_port(bp); drv 5940 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c return bnx2x_func_init_func(bp, drv); drv 5954 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c const struct bnx2x_func_sp_drv_ops *drv) drv 5956 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c int rc = drv->init_hw_cmn_chip(bp); drv 5960 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c return bnx2x_func_init_port(bp, drv); drv 5974 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c const struct bnx2x_func_sp_drv_ops *drv) drv 5976 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c int rc = drv->init_hw_cmn(bp); drv 5980 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c return bnx2x_func_init_port(bp, drv); drv 5988 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c const struct bnx2x_func_sp_drv_ops *drv = o->drv; drv 5995 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rc = drv->gunzip_init(bp); drv 6000 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rc = drv->init_fw(bp); drv 6009 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rc = bnx2x_func_init_cmn_chip(bp, drv); drv 6015 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rc = bnx2x_func_init_cmn(bp, drv); drv 6021 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rc = bnx2x_func_init_port(bp, drv); drv 6027 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c rc = bnx2x_func_init_func(bp, drv); drv 6038 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c drv->gunzip_end(bp); drv 6059 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c const struct bnx2x_func_sp_drv_ops *drv) drv 6061 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c drv->reset_hw_func(bp); drv 6080 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c const struct bnx2x_func_sp_drv_ops *drv) drv 6082 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c drv->reset_hw_port(bp); drv 6083 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_func_reset_func(bp, drv); drv 6097 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c const struct bnx2x_func_sp_drv_ops *drv) drv 6099 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_func_reset_port(bp, drv); drv 6100 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c drv->reset_hw_cmn(bp); drv 6108 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c const struct bnx2x_func_sp_drv_ops *drv = o->drv; drv 6115 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_func_reset_cmn(bp, drv); drv 6118 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_func_reset_port(bp, drv); drv 6121 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c bnx2x_func_reset_func(bp, drv); drv 6485 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.c obj->drv = drv_iface; drv 1356 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h struct bnx2x_func_sp_drv_ops *drv; drv 1422 drivers/net/ethernet/broadcom/tg3.c switch (phydev->drv->phy_id & phydev->drv->phy_id_mask) { drv 1571 drivers/net/ethernet/broadcom/tg3.c if (!phydev || !phydev->drv) { drv 1578 drivers/net/ethernet/broadcom/tg3.c switch (phydev->drv->phy_id & phydev->drv->phy_id_mask) { drv 4095 drivers/net/ethernet/broadcom/tg3.c phyid = phydev->drv->phy_id & phydev->drv->phy_id_mask; drv 1843 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c netif_info(lio, drv, lio->netdev, "Unknown Chip !!\n"); drv 1890 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c netif_info(lio, drv, lio->netdev, "Unknown Stringset !!\n"); drv 1938 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c netif_info(lio, drv, lio->netdev, "Unknown Stringset !!\n"); drv 1955 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c netif_info(lio, drv, lio->netdev, "Unknown Chip !!\n"); drv 2151 drivers/net/ethernet/cavium/liquidio/lio_ethtool.c netif_info(lio, drv, lio->netdev, "Unknown Chip !!\n"); drv 2885 drivers/net/ethernet/cavium/liquidio/lio_main.c netif_info(lio, drv, lio->netdev, drv 2891 drivers/net/ethernet/cavium/liquidio/lio_main.c netif_info(lio, drv, lio->netdev, "Invalid vfidx %d\n", vfidx); drv 2919 drivers/net/ethernet/cavium/liquidio/lio_main.c netif_info(lio, drv, lio->netdev, drv 2926 drivers/net/ethernet/cavium/liquidio/lio_main.c netif_info(lio, drv, lio->netdev, "VF %u spoofchk is %s\n", vfidx, drv 3062 drivers/net/ethernet/cavium/liquidio/lio_main.c netif_info(lio, drv, lio->netdev, "Invalid vfidx %d\n", vfidx); drv 3074 drivers/net/ethernet/cavium/liquidio/lio_main.c netif_info(lio, drv, lio->netdev, "More than one trusted VF is not allowed\n"); drv 3092 drivers/net/ethernet/cavium/liquidio/lio_main.c netif_info(lio, drv, lio->netdev, "VF %u is %strusted\n", vfidx, drv 3095 drivers/net/ethernet/cavium/liquidio/lio_main.c netif_info(lio, drv, lio->netdev, "Failed to set VF trusted\n"); drv 233 drivers/net/ethernet/cirrus/mac89x0.c netif_dbg(lp, drv, dev, "%s", version); drv 127 drivers/net/ethernet/emulex/benet/be_roce.c int be_roce_register_driver(struct ocrdma_driver *drv) drv 136 drivers/net/ethernet/emulex/benet/be_roce.c ocrdma_drv = drv; drv 145 drivers/net/ethernet/emulex/benet/be_roce.c void be_roce_unregister_driver(struct ocrdma_driver *drv) drv 66 drivers/net/ethernet/emulex/benet/be_roce.h int be_roce_register_driver(struct ocrdma_driver *drv); drv 67 drivers/net/ethernet/emulex/benet/be_roce.h void be_roce_unregister_driver(struct ocrdma_driver *drv); drv 423 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c netif_err(priv, drv, net_dev, "eth_mac_addr() = %d\n", err); drv 432 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c netif_err(priv, drv, net_dev, "mac_dev->change_addr() = %d\n", drv 455 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c netif_err(priv, drv, net_dev, drv 465 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c netif_err(priv, drv, net_dev, drv 472 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c netif_err(priv, drv, net_dev, "mac_dev->set_multi() = %d\n", drv 2509 drivers/net/ethernet/freescale/dpaa/dpaa_eth.c ((phy_dev->drv->phy_id & GENMASK(31, 10)) != PHY_VEND_AQUANTIA)) { drv 912 drivers/net/ethernet/freescale/enetc/enetc_pf.c netif_info(priv, drv, si->ndev, "%s v%s remove\n", drv 228 drivers/net/ethernet/freescale/enetc/enetc_vf.c netif_info(priv, drv, si->ndev, "%s v%s remove\n", drv 2969 drivers/net/ethernet/freescale/fec_main.c if (ndev->phydev && ndev->phydev->drv) drv 286 drivers/net/ethernet/google/gve/gve_adminq.c netif_err(priv, drv, priv->dev, "Tx desc count %d too low\n", drv 296 drivers/net/ethernet/google/gve/gve_adminq.c netif_err(priv, drv, priv->dev, "Rx desc count %d too low\n", drv 305 drivers/net/ethernet/google/gve/gve_adminq.c netif_err(priv, drv, priv->dev, "MTU %d below minimum MTU\n", drv 314 drivers/net/ethernet/google/gve/gve_adminq.c netif_info(priv, drv, priv->dev, "MAC addr: %pM\n", mac); drv 318 drivers/net/ethernet/google/gve/gve_adminq.c netif_err(priv, drv, priv->dev, "rx_pages_per_qpl cannot be smaller than rx_desc_cnt, setting rx_desc_cnt down to %d.\n", drv 338 drivers/net/ethernet/google/gve/gve_main.c netif_err(priv, drv, priv->dev, drv 360 drivers/net/ethernet/google/gve/gve_main.c netif_err(priv, drv, priv->dev, drv 377 drivers/net/ethernet/google/gve/gve_main.c netif_err(priv, drv, priv->dev, "failed to create tx queue %d\n", drv 384 drivers/net/ethernet/google/gve/gve_main.c netif_dbg(priv, drv, priv->dev, "created tx queue %d\n", i); drv 389 drivers/net/ethernet/google/gve/gve_main.c netif_err(priv, drv, priv->dev, "failed to create rx queue %d\n", drv 402 drivers/net/ethernet/google/gve/gve_main.c netif_dbg(priv, drv, priv->dev, "created rx queue %d\n", i); drv 466 drivers/net/ethernet/google/gve/gve_main.c netif_err(priv, drv, priv->dev, drv 474 drivers/net/ethernet/google/gve/gve_main.c netif_dbg(priv, drv, priv->dev, "destroyed tx queue %d\n", i); drv 479 drivers/net/ethernet/google/gve/gve_main.c netif_err(priv, drv, priv->dev, drv 487 drivers/net/ethernet/google/gve/gve_main.c netif_dbg(priv, drv, priv->dev, "destroyed rx queue %d\n", i); drv 539 drivers/net/ethernet/google/gve/gve_main.c netif_err(priv, drv, priv->dev, drv 786 drivers/net/ethernet/google/gve/gve_main.c netif_err(priv, drv, priv->dev, drv 927 drivers/net/ethernet/google/gve/gve_main.c netif_err(priv, drv, priv->dev, "Could not set mtu"); drv 967 drivers/net/ethernet/google/gve/gve_main.c netif_info(priv, drv, priv->dev, "TX queues %d, RX queues %d\n", drv 969 drivers/net/ethernet/google/gve/gve_main.c netif_info(priv, drv, priv->dev, "Max TX queues %d, Max RX queues %d\n", drv 45 drivers/net/ethernet/google/gve/gve_rx.c netif_dbg(priv, drv, priv->dev, "freed rx ring %d\n", idx); drv 106 drivers/net/ethernet/google/gve/gve_rx.c netif_dbg(priv, drv, priv->dev, "allocating rx ring\n"); drv 142 drivers/net/ethernet/google/gve/gve_rx.c netif_dbg(priv, drv, priv->dev, "rx[%d]->data.data_bus=%lx\n", idx, drv 188 drivers/net/ethernet/google/gve/gve_rx.c netif_err(priv, drv, priv->dev, drv 34 drivers/net/ethernet/google/gve/gve_tx.c netif_err(priv, drv, priv->dev, "Failed to vmap fifo, qpl_id = %d\n", drv 172 drivers/net/ethernet/google/gve/gve_tx.c netif_dbg(priv, drv, priv->dev, "freed tx queue %d\n", idx); drv 223 drivers/net/ethernet/google/gve/gve_tx.c netif_dbg(priv, drv, priv->dev, "tx[%d]->bus=%lx\n", idx, drv 249 drivers/net/ethernet/google/gve/gve_tx.c netif_err(priv, drv, priv->dev, drv 63 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 67 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c dsaf_set_dev_bit(drv, GMAC_PORT_EN_REG, GMAC_PORT_TX_EN_B, 1); drv 71 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c dsaf_set_dev_bit(drv, GMAC_PCS_RX_EN_REG, 0, 0); drv 72 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c dsaf_set_dev_bit(drv, GMAC_PORT_EN_REG, GMAC_PORT_RX_EN_B, 1); drv 78 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 82 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c dsaf_set_dev_bit(drv, GMAC_PORT_EN_REG, GMAC_PORT_TX_EN_B, 0); drv 86 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c dsaf_set_dev_bit(drv, GMAC_PCS_RX_EN_REG, 0, 1); drv 87 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c dsaf_set_dev_bit(drv, GMAC_PORT_EN_REG, GMAC_PORT_RX_EN_B, 0); drv 98 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 101 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c porten = dsaf_read_dev(drv, GMAC_PORT_EN_REG); drv 108 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 110 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c = (struct dsaf_device *)dev_get_drvdata(drv->dev); drv 112 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c u32 mac_id = drv->mac_id; drv 119 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 121 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c dsaf_set_dev_field(drv, GMAC_FC_TX_TIMER_REG, GMAC_FC_TX_TIMER_M, drv 127 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 129 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c *newval = dsaf_get_dev_field(drv, GMAC_FC_TX_TIMER_REG, drv 135 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 137 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c dsaf_set_dev_bit(drv, GMAC_PAUSE_EN_REG, drv 143 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 145 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c dsaf_set_dev_field(drv, GMAC_MAX_FRM_SIZE_REG, GMAC_MAX_FRM_SIZE_M, drv 148 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c dsaf_set_dev_field(drv, GAMC_RX_MAX_FRAME, GMAC_MAX_FRM_SIZE_M, drv 155 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 157 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c tx_ctrl = dsaf_read_dev(drv, GMAC_TRANSMIT_CONTROL_REG); drv 160 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c dsaf_write_dev(drv, GMAC_TRANSMIT_CONTROL_REG, tx_ctrl); drv 165 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 167 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c dsaf_set_dev_bit(drv, GMAC_TRANSMIT_CONTROL_REG, drv 174 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 176 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c tx_loop_pkt_pri = dsaf_read_dev(drv, GMAC_TX_LOOP_PKT_PRI_REG); drv 179 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c dsaf_write_dev(drv, GMAC_TX_LOOP_PKT_PRI_REG, tx_loop_pkt_pri); drv 184 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 186 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c dsaf_set_dev_bit(drv, GMAC_DUPLEX_TYPE_REG, drv 193 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 196 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c drv, GMAC_DUPLEX_TYPE_REG, GMAC_DUPLEX_TYPE_B); drv 201 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 204 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c drv, GMAC_PORT_MODE_REG, GMAC_PORT_MODE_M, GMAC_PORT_MODE_S); drv 212 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 215 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c drv, GMAC_PORT_MODE_REG, GMAC_PORT_MODE_M, GMAC_PORT_MODE_S); drv 217 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c tx_ctrl = dsaf_read_dev(drv, GMAC_TRANSMIT_CONTROL_REG); drv 218 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c recv_ctrl = dsaf_read_dev(drv, GMAC_RECV_CONTROL_REG); drv 221 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c dsaf_get_dev_field(drv, GMAC_MAX_FRM_SIZE_REG, drv 224 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c dsaf_get_dev_field(drv, GMAC_SHORT_RUNTS_THR_REG, drv 242 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 244 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c pause_en = dsaf_read_dev(drv, GMAC_PAUSE_EN_REG); drv 247 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c dsaf_write_dev(drv, GMAC_PAUSE_EN_REG, pause_en); drv 254 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 256 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c pause_en = dsaf_read_dev(drv, GMAC_PAUSE_EN_REG); drv 265 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 266 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c struct hns_mac_cb *mac_cb = drv->mac_cb; drv 275 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 277 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c dsaf_set_dev_bit(drv, GMAC_DUPLEX_TYPE_REG, drv 283 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c drv, GMAC_PORT_MODE_REG, drv 288 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c drv, GMAC_PORT_MODE_REG, drv 293 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c drv, GMAC_PORT_MODE_REG, drv 297 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c dev_err(drv->dev, drv 299 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c speed, drv->mac_id); drv 308 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c struct mac_driver *drv = mac_drv; drv 310 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c dsaf_set_dev_bit(drv, GMAC_REC_FILT_CONTROL_REG, drv 312 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c dsaf_set_dev_bit(drv, GMAC_STATION_ADDR_HIGH_2_REG, drv 318 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c struct mac_driver *drv = mac_drv; drv 320 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c if (drv->mac_cb->mac_type == HNAE_PORT_DEBUG) drv 326 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 332 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c val = dsaf_read_dev(drv, GMAC_FIFO_STATE_REG); drv 340 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c dev_err(drv->dev, drv 341 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c "hns ge %d fifo was not idle.\n", drv->mac_id); drv 351 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 353 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c = (struct dsaf_device *)dev_get_drvdata(drv->dev); drv 355 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c port = drv->mac_id; drv 363 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c if (drv->mac_cb->mac_type == HNAE_PORT_DEBUG) drv 368 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c dsaf_set_dev_bit(drv, GMAC_MODE_CHANGE_EN_REG, drv 374 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c dsaf_set_dev_field(drv, GMAC_TX_WATER_LINE_REG, GMAC_TX_WATER_LINE_MASK, drv 381 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 383 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c hw_stats = &drv->mac_cb->hw_stats; drv 387 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c += dsaf_read_dev(drv, GMAC_RX_OCTETS_TOTAL_OK_REG); drv 389 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c += dsaf_read_dev(drv, GMAC_RX_OCTETS_BAD_REG); drv 390 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c hw_stats->rx_uc_pkts += dsaf_read_dev(drv, GMAC_RX_UC_PKTS_REG); drv 391 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c hw_stats->rx_mc_pkts += dsaf_read_dev(drv, GMAC_RX_MC_PKTS_REG); drv 392 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c hw_stats->rx_bc_pkts += dsaf_read_dev(drv, GMAC_RX_BC_PKTS_REG); drv 394 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c += dsaf_read_dev(drv, GMAC_RX_PKTS_64OCTETS_REG); drv 396 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c += dsaf_read_dev(drv, GMAC_RX_PKTS_65TO127OCTETS_REG); drv 398 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c += dsaf_read_dev(drv, GMAC_RX_PKTS_128TO255OCTETS_REG); drv 400 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c += dsaf_read_dev(drv, GMAC_RX_PKTS_255TO511OCTETS_REG); drv 402 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c += dsaf_read_dev(drv, GMAC_RX_PKTS_512TO1023OCTETS_REG); drv 404 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c += dsaf_read_dev(drv, GMAC_RX_PKTS_1024TO1518OCTETS_REG); drv 406 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c += dsaf_read_dev(drv, GMAC_RX_PKTS_1519TOMAXOCTETS_REG); drv 407 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c hw_stats->rx_fcs_err += dsaf_read_dev(drv, GMAC_RX_FCS_ERRORS_REG); drv 408 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c hw_stats->rx_vlan_pkts += dsaf_read_dev(drv, GMAC_RX_TAGGED_REG); drv 409 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c hw_stats->rx_data_err += dsaf_read_dev(drv, GMAC_RX_DATA_ERR_REG); drv 411 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c += dsaf_read_dev(drv, GMAC_RX_ALIGN_ERRORS_REG); drv 413 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c += dsaf_read_dev(drv, GMAC_RX_LONG_ERRORS_REG); drv 415 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c += dsaf_read_dev(drv, GMAC_RX_JABBER_ERRORS_REG); drv 417 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c += dsaf_read_dev(drv, GMAC_RX_PAUSE_MACCTRL_FRAM_REG); drv 419 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c += dsaf_read_dev(drv, GMAC_RX_UNKNOWN_MACCTRL_FRAM_REG); drv 421 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c += dsaf_read_dev(drv, GMAC_RX_VERY_LONG_ERR_CNT_REG); drv 423 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c += dsaf_read_dev(drv, GMAC_RX_RUNT_ERR_CNT_REG); drv 425 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c += dsaf_read_dev(drv, GMAC_RX_SHORT_ERR_CNT_REG); drv 427 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c += dsaf_read_dev(drv, GMAC_RX_FILT_PKT_CNT_REG); drv 429 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c += dsaf_read_dev(drv, GMAC_RX_OCTETS_TOTAL_FILT_REG); drv 431 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c += dsaf_read_dev(drv, GMAC_RX_OVERRUN_CNT_REG); drv 433 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c += dsaf_read_dev(drv, GMAC_RX_LENGTHFIELD_ERR_CNT_REG); drv 435 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c += dsaf_read_dev(drv, GMAC_RX_FAIL_COMMA_CNT_REG); drv 439 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c += dsaf_read_dev(drv, GMAC_OCTETS_TRANSMITTED_OK_REG); drv 441 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c += dsaf_read_dev(drv, GMAC_OCTETS_TRANSMITTED_BAD_REG); drv 442 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c hw_stats->tx_uc_pkts += dsaf_read_dev(drv, GMAC_TX_UC_PKTS_REG); drv 443 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c hw_stats->tx_mc_pkts += dsaf_read_dev(drv, GMAC_TX_MC_PKTS_REG); drv 444 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c hw_stats->tx_bc_pkts += dsaf_read_dev(drv, GMAC_TX_BC_PKTS_REG); drv 446 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c += dsaf_read_dev(drv, GMAC_TX_PKTS_64OCTETS_REG); drv 448 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c += dsaf_read_dev(drv, GMAC_TX_PKTS_65TO127OCTETS_REG); drv 450 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c += dsaf_read_dev(drv, GMAC_TX_PKTS_128TO255OCTETS_REG); drv 452 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c += dsaf_read_dev(drv, GMAC_TX_PKTS_255TO511OCTETS_REG); drv 454 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c += dsaf_read_dev(drv, GMAC_TX_PKTS_512TO1023OCTETS_REG); drv 456 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c += dsaf_read_dev(drv, GMAC_TX_PKTS_1024TO1518OCTETS_REG); drv 458 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c += dsaf_read_dev(drv, GMAC_TX_PKTS_1519TOMAXOCTETS_REG); drv 460 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c += dsaf_read_dev(drv, GMAC_TX_EXCESSIVE_LENGTH_DROP_REG); drv 462 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c += dsaf_read_dev(drv, GMAC_TX_UNDERRUN_REG); drv 463 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c hw_stats->tx_vlan += dsaf_read_dev(drv, GMAC_TX_TAGGED_REG); drv 464 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c hw_stats->tx_crc_err += dsaf_read_dev(drv, GMAC_TX_CRC_ERROR_REG); drv 466 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c += dsaf_read_dev(drv, GMAC_TX_PAUSE_FRAMES_REG); drv 471 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 478 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c u32 val = dsaf_read_dev(drv, GMAC_STATION_ADDR_HIGH_2_REG); drv 481 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c dsaf_write_dev(drv, GMAC_STATION_ADDR_LOW_2_REG, low_val); drv 482 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c dsaf_write_dev(drv, GMAC_STATION_ADDR_HIGH_2_REG, drv 489 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 493 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c dsaf_set_dev_bit(drv, GMAC_LOOP_REG, GMAC_LP_REG_CF2MI_LP_EN_B, drv 497 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c dev_err(drv->dev, "loop_mode error\n"); drv 551 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 553 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c *enable = dsaf_get_dev_bit(drv, GMAC_TRANSMIT_CONTROL_REG, drv 559 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 561 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c *link_stat = dsaf_get_dev_bit(drv, GMAC_AN_NEG_STATE_REG, drv 569 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 572 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[0] = dsaf_read_dev(drv, GMAC_DUPLEX_TYPE_REG); drv 573 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[1] = dsaf_read_dev(drv, GMAC_FD_FC_TYPE_REG); drv 574 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[2] = dsaf_read_dev(drv, GMAC_FC_TX_TIMER_REG); drv 575 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[3] = dsaf_read_dev(drv, GMAC_FD_FC_ADDR_LOW_REG); drv 576 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[4] = dsaf_read_dev(drv, GMAC_FD_FC_ADDR_HIGH_REG); drv 577 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[5] = dsaf_read_dev(drv, GMAC_IPG_TX_TIMER_REG); drv 578 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[6] = dsaf_read_dev(drv, GMAC_PAUSE_THR_REG); drv 579 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[7] = dsaf_read_dev(drv, GMAC_MAX_FRM_SIZE_REG); drv 580 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[8] = dsaf_read_dev(drv, GMAC_PORT_MODE_REG); drv 581 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[9] = dsaf_read_dev(drv, GMAC_PORT_EN_REG); drv 582 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[10] = dsaf_read_dev(drv, GMAC_PAUSE_EN_REG); drv 583 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[11] = dsaf_read_dev(drv, GMAC_SHORT_RUNTS_THR_REG); drv 584 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[12] = dsaf_read_dev(drv, GMAC_AN_NEG_STATE_REG); drv 585 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[13] = dsaf_read_dev(drv, GMAC_TX_LOCAL_PAGE_REG); drv 586 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[14] = dsaf_read_dev(drv, GMAC_TRANSMIT_CONTROL_REG); drv 587 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[15] = dsaf_read_dev(drv, GMAC_REC_FILT_CONTROL_REG); drv 588 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[16] = dsaf_read_dev(drv, GMAC_PTP_CONFIG_REG); drv 591 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[17] = dsaf_read_dev(drv, GMAC_RX_OCTETS_TOTAL_OK_REG); drv 592 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[18] = dsaf_read_dev(drv, GMAC_RX_OCTETS_BAD_REG); drv 593 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[19] = dsaf_read_dev(drv, GMAC_RX_UC_PKTS_REG); drv 594 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[20] = dsaf_read_dev(drv, GMAC_RX_MC_PKTS_REG); drv 595 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[21] = dsaf_read_dev(drv, GMAC_RX_BC_PKTS_REG); drv 596 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[22] = dsaf_read_dev(drv, GMAC_RX_PKTS_64OCTETS_REG); drv 597 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[23] = dsaf_read_dev(drv, GMAC_RX_PKTS_65TO127OCTETS_REG); drv 598 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[24] = dsaf_read_dev(drv, GMAC_RX_PKTS_128TO255OCTETS_REG); drv 599 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[25] = dsaf_read_dev(drv, GMAC_RX_PKTS_255TO511OCTETS_REG); drv 600 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[26] = dsaf_read_dev(drv, GMAC_RX_PKTS_512TO1023OCTETS_REG); drv 601 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[27] = dsaf_read_dev(drv, GMAC_RX_PKTS_1024TO1518OCTETS_REG); drv 602 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[28] = dsaf_read_dev(drv, GMAC_RX_PKTS_1519TOMAXOCTETS_REG); drv 603 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[29] = dsaf_read_dev(drv, GMAC_RX_FCS_ERRORS_REG); drv 604 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[30] = dsaf_read_dev(drv, GMAC_RX_TAGGED_REG); drv 605 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[31] = dsaf_read_dev(drv, GMAC_RX_DATA_ERR_REG); drv 606 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[32] = dsaf_read_dev(drv, GMAC_RX_ALIGN_ERRORS_REG); drv 607 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[33] = dsaf_read_dev(drv, GMAC_RX_LONG_ERRORS_REG); drv 608 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[34] = dsaf_read_dev(drv, GMAC_RX_JABBER_ERRORS_REG); drv 609 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[35] = dsaf_read_dev(drv, GMAC_RX_PAUSE_MACCTRL_FRAM_REG); drv 610 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[36] = dsaf_read_dev(drv, GMAC_RX_UNKNOWN_MACCTRL_FRAM_REG); drv 611 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[37] = dsaf_read_dev(drv, GMAC_RX_VERY_LONG_ERR_CNT_REG); drv 612 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[38] = dsaf_read_dev(drv, GMAC_RX_RUNT_ERR_CNT_REG); drv 613 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[39] = dsaf_read_dev(drv, GMAC_RX_SHORT_ERR_CNT_REG); drv 614 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[40] = dsaf_read_dev(drv, GMAC_RX_FILT_PKT_CNT_REG); drv 615 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[41] = dsaf_read_dev(drv, GMAC_RX_OCTETS_TOTAL_FILT_REG); drv 618 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[42] = dsaf_read_dev(drv, GMAC_OCTETS_TRANSMITTED_OK_REG); drv 619 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[43] = dsaf_read_dev(drv, GMAC_OCTETS_TRANSMITTED_BAD_REG); drv 620 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[44] = dsaf_read_dev(drv, GMAC_TX_UC_PKTS_REG); drv 621 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[45] = dsaf_read_dev(drv, GMAC_TX_MC_PKTS_REG); drv 622 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[46] = dsaf_read_dev(drv, GMAC_TX_BC_PKTS_REG); drv 623 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[47] = dsaf_read_dev(drv, GMAC_TX_PKTS_64OCTETS_REG); drv 624 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[48] = dsaf_read_dev(drv, GMAC_TX_PKTS_65TO127OCTETS_REG); drv 625 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[49] = dsaf_read_dev(drv, GMAC_TX_PKTS_128TO255OCTETS_REG); drv 626 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[50] = dsaf_read_dev(drv, GMAC_TX_PKTS_255TO511OCTETS_REG); drv 627 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[51] = dsaf_read_dev(drv, GMAC_TX_PKTS_512TO1023OCTETS_REG); drv 628 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[52] = dsaf_read_dev(drv, GMAC_TX_PKTS_1024TO1518OCTETS_REG); drv 629 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[53] = dsaf_read_dev(drv, GMAC_TX_PKTS_1519TOMAXOCTETS_REG); drv 630 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[54] = dsaf_read_dev(drv, GMAC_TX_EXCESSIVE_LENGTH_DROP_REG); drv 631 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[55] = dsaf_read_dev(drv, GMAC_TX_UNDERRUN_REG); drv 632 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[56] = dsaf_read_dev(drv, GMAC_TX_TAGGED_REG); drv 633 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[57] = dsaf_read_dev(drv, GMAC_TX_CRC_ERROR_REG); drv 634 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[58] = dsaf_read_dev(drv, GMAC_TX_PAUSE_FRAMES_REG); drv 636 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[59] = dsaf_read_dev(drv, GAMC_RX_MAX_FRAME); drv 637 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[60] = dsaf_read_dev(drv, GMAC_LINE_LOOP_BACK_REG); drv 638 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[61] = dsaf_read_dev(drv, GMAC_CF_CRC_STRIP_REG); drv 639 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[62] = dsaf_read_dev(drv, GMAC_MODE_CHANGE_EN_REG); drv 640 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[63] = dsaf_read_dev(drv, GMAC_SIXTEEN_BIT_CNTR_REG); drv 641 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[64] = dsaf_read_dev(drv, GMAC_LD_LINK_COUNTER_REG); drv 642 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[65] = dsaf_read_dev(drv, GMAC_LOOP_REG); drv 643 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[66] = dsaf_read_dev(drv, GMAC_RECV_CONTROL_REG); drv 644 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[67] = dsaf_read_dev(drv, GMAC_VLAN_CODE_REG); drv 645 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[68] = dsaf_read_dev(drv, GMAC_RX_OVERRUN_CNT_REG); drv 646 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[69] = dsaf_read_dev(drv, GMAC_RX_LENGTHFIELD_ERR_CNT_REG); drv 647 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[70] = dsaf_read_dev(drv, GMAC_RX_FAIL_COMMA_CNT_REG); drv 649 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[71] = dsaf_read_dev(drv, GMAC_STATION_ADDR_LOW_0_REG); drv 650 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[72] = dsaf_read_dev(drv, GMAC_STATION_ADDR_HIGH_0_REG); drv 651 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[73] = dsaf_read_dev(drv, GMAC_STATION_ADDR_LOW_1_REG); drv 652 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[74] = dsaf_read_dev(drv, GMAC_STATION_ADDR_HIGH_1_REG); drv 653 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[75] = dsaf_read_dev(drv, GMAC_STATION_ADDR_LOW_2_REG); drv 654 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[76] = dsaf_read_dev(drv, GMAC_STATION_ADDR_HIGH_2_REG); drv 655 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[77] = dsaf_read_dev(drv, GMAC_STATION_ADDR_LOW_3_REG); drv 656 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[78] = dsaf_read_dev(drv, GMAC_STATION_ADDR_HIGH_3_REG); drv 657 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[79] = dsaf_read_dev(drv, GMAC_STATION_ADDR_LOW_4_REG); drv 658 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[80] = dsaf_read_dev(drv, GMAC_STATION_ADDR_HIGH_4_REG); drv 659 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[81] = dsaf_read_dev(drv, GMAC_STATION_ADDR_LOW_5_REG); drv 660 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[82] = dsaf_read_dev(drv, GMAC_STATION_ADDR_HIGH_5_REG); drv 661 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[83] = dsaf_read_dev(drv, GMAC_STATION_ADDR_LOW_MSK_0_REG); drv 662 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[84] = dsaf_read_dev(drv, GMAC_STATION_ADDR_HIGH_MSK_0_REG); drv 663 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[85] = dsaf_read_dev(drv, GMAC_STATION_ADDR_LOW_MSK_1_REG); drv 664 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[86] = dsaf_read_dev(drv, GMAC_STATION_ADDR_HIGH_MSK_1_REG); drv 665 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[87] = dsaf_read_dev(drv, GMAC_MAC_SKIP_LEN_REG); drv 666 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c regs[88] = dsaf_read_dev(drv, GMAC_TX_LOOP_PKT_PRI_REG); drv 677 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 680 drivers/net/ethernet/hisilicon/hns/hns_dsaf_gmac.c hw_stats = &drv->mac_cb->hw_stats; drv 451 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c struct mac_driver *drv = hns_mac_get_drv(mac_cb); drv 453 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c if (drv->wait_fifo_clean) drv 454 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c return drv->wait_fifo_clean(drv); drv 461 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c struct mac_driver *drv = hns_mac_get_drv(mac_cb); drv 464 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c drv->mac_init(drv); drv 466 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c if (drv->config_max_frame_length) drv 467 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c drv->config_max_frame_length(drv, mac_cb->max_frm); drv 469 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c if (drv->set_tx_auto_pause_frames) drv 470 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c drv->set_tx_auto_pause_frames(drv, mac_cb->tx_pause_frm_time); drv 472 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c if (drv->set_an_mode) drv 473 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c drv->set_an_mode(drv, 1); drv 475 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c if (drv->mac_pausefrm_cfg) { drv 477 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c drv->mac_pausefrm_cfg(drv, !is_ver1, !is_ver1); drv 479 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c drv->mac_pausefrm_cfg(drv, 0, 1); drv 485 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c struct mac_driver *drv = hns_mac_get_drv(mac_cb); drv 491 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c if (!drv->config_max_frame_length) drv 498 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c drv->config_max_frame_length(drv, new_frm); drv 632 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c struct mac_driver *drv; drv 640 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c drv = (struct mac_driver *)hns_gmac_config(mac_cb, ¶m); drv 642 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c drv = (struct mac_driver *)hns_xgmac_config(mac_cb, ¶m); drv 644 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c if (!drv) drv 647 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c mac_cb->priv.mac = (void *)drv; drv 659 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c drv->mac_free(mac_cb->priv.mac); drv 1140 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c struct mac_driver *drv = hns_mac_get_drv(mac_cb); drv 1142 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c if (drv->config_loopback) drv 1143 drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c ret = drv->config_loopback(drv, loop, en); drv 1092 drivers/net/ethernet/hisilicon/hns/hns_dsaf_reg.h #define hns_mac_reg_read64(drv, offset) \ drv 1093 drivers/net/ethernet/hisilicon/hns/hns_dsaf_reg.h readq((__iomem void *)(((drv)->io_base + 0xc00 + (offset)))) drv 91 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c static void hns_xgmac_tx_enable(struct mac_driver *drv, u32 value) drv 93 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c dsaf_set_dev_bit(drv, XGMAC_MAC_ENABLE_REG, XGMAC_ENABLE_TX_B, !!value); drv 101 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c static void hns_xgmac_rx_enable(struct mac_driver *drv, u32 value) drv 103 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c dsaf_set_dev_bit(drv, XGMAC_MAC_ENABLE_REG, XGMAC_ENABLE_RX_B, !!value); drv 138 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 140 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hns_xgmac_lf_rf_insert(drv, HNS_XGMAC_NO_LF_RF_INSERT); drv 144 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hns_xgmac_tx_enable(drv, 1); drv 146 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hns_xgmac_rx_enable(drv, 1); drv 148 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hns_xgmac_tx_enable(drv, 1); drv 149 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hns_xgmac_rx_enable(drv, 1); drv 151 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c dev_err(drv->dev, "error mac mode:%d\n", mode); drv 162 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 165 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hns_xgmac_tx_enable(drv, 0); drv 167 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hns_xgmac_rx_enable(drv, 0); drv 169 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hns_xgmac_tx_enable(drv, 0); drv 170 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hns_xgmac_rx_enable(drv, 0); drv 172 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hns_xgmac_lf_rf_insert(drv, HNS_XGMAC_LF_INSERT); drv 182 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c static void hns_xgmac_pma_fec_enable(struct mac_driver *drv, u32 tx_value, drv 185 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c u32 origin = dsaf_read_dev(drv, XGMAC_PMA_FEC_CONTROL_REG); drv 189 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c dsaf_write_dev(drv, XGMAC_PMA_FEC_CONTROL_REG, origin); drv 193 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c static void hns_xgmac_exc_irq_en(struct mac_driver *drv, u32 en) drv 198 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c dsaf_write_dev(drv, XGMAC_INT_STATUS_REG, clr_vlue); drv 199 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c dsaf_write_dev(drv, XGMAC_INT_ENABLE_REG, msk_vlue); drv 208 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 210 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c = (struct dsaf_device *)dev_get_drvdata(drv->dev); drv 211 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c u32 port = drv->mac_id; drv 218 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hns_xgmac_lf_rf_control_init(drv); drv 219 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hns_xgmac_exc_irq_en(drv, 0); drv 221 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hns_xgmac_pma_fec_enable(drv, 0x0, 0x0); drv 233 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 234 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c u32 origin = dsaf_read_dev(drv, XGMAC_MAC_CONTROL_REG); drv 239 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c dsaf_write_dev(drv, XGMAC_MAC_CONTROL_REG, origin); drv 249 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 250 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c u32 origin = dsaf_read_dev(drv, XGMAC_MAC_PAUSE_CTRL_REG); drv 254 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c dsaf_write_dev(drv, XGMAC_MAC_PAUSE_CTRL_REG, origin); drv 259 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 264 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c dsaf_write_dev(drv, XGMAC_MAC_PAUSE_LOCAL_MAC_L_REG, low_val); drv 265 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c dsaf_write_dev(drv, XGMAC_MAC_PAUSE_LOCAL_MAC_H_REG, high_val); drv 275 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 277 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c dsaf_set_dev_bit(drv, XGMAC_MAC_PAUSE_CTRL_REG, drv 288 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 290 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c dsaf_set_dev_bit(drv, XGMAC_MAC_PAUSE_CTRL_REG, drv 295 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c dsaf_write_dev(drv, XGMAC_MAC_PAUSE_TIME_REG, enable); drv 305 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 307 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c dsaf_write_dev(drv, XGMAC_MAC_MAX_PKT_SIZE_REG, newval); drv 312 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 313 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c struct mac_hw_stats *hw_stats = &drv->mac_cb->hw_stats; drv 317 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c = hns_mac_reg_read64(drv, XGMAC_TX_PKTS_FRAGMENT); drv 319 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c = hns_mac_reg_read64(drv, XGMAC_TX_PKTS_UNDERSIZE); drv 321 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c = hns_mac_reg_read64(drv, XGMAC_TX_PKTS_UNDERMIN); drv 322 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->tx_64bytes = hns_mac_reg_read64(drv, XGMAC_TX_PKTS_64OCTETS); drv 324 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c = hns_mac_reg_read64(drv, XGMAC_TX_PKTS_65TO127OCTETS); drv 326 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c = hns_mac_reg_read64(drv, XGMAC_TX_PKTS_128TO255OCTETS); drv 328 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c = hns_mac_reg_read64(drv, XGMAC_TX_PKTS_256TO511OCTETS); drv 330 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c = hns_mac_reg_read64(drv, XGMAC_TX_PKTS_512TO1023OCTETS); drv 332 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c = hns_mac_reg_read64(drv, XGMAC_TX_PKTS_1024TO1518OCTETS); drv 334 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c = hns_mac_reg_read64(drv, XGMAC_TX_PKTS_1519TOMAXOCTETS); drv 336 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c = hns_mac_reg_read64(drv, XGMAC_TX_PKTS_1519TOMAXOCTETSOK); drv 337 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->tx_oversize = hns_mac_reg_read64(drv, XGMAC_TX_PKTS_OVERSIZE); drv 338 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->tx_jabber_err = hns_mac_reg_read64(drv, XGMAC_TX_PKTS_JABBER); drv 339 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->tx_good_pkts = hns_mac_reg_read64(drv, XGMAC_TX_GOODPKTS); drv 340 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->tx_good_bytes = hns_mac_reg_read64(drv, XGMAC_TX_GOODOCTETS); drv 341 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->tx_total_pkts = hns_mac_reg_read64(drv, XGMAC_TX_TOTAL_PKTS); drv 343 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c = hns_mac_reg_read64(drv, XGMAC_TX_TOTALOCTETS); drv 344 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->tx_uc_pkts = hns_mac_reg_read64(drv, XGMAC_TX_UNICASTPKTS); drv 345 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->tx_mc_pkts = hns_mac_reg_read64(drv, XGMAC_TX_MULTICASTPKTS); drv 346 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->tx_bc_pkts = hns_mac_reg_read64(drv, XGMAC_TX_BROADCASTPKTS); drv 347 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->tx_pfc_tc0 = hns_mac_reg_read64(drv, XGMAC_TX_PRI0PAUSEPKTS); drv 348 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->tx_pfc_tc1 = hns_mac_reg_read64(drv, XGMAC_TX_PRI1PAUSEPKTS); drv 349 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->tx_pfc_tc2 = hns_mac_reg_read64(drv, XGMAC_TX_PRI2PAUSEPKTS); drv 350 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->tx_pfc_tc3 = hns_mac_reg_read64(drv, XGMAC_TX_PRI3PAUSEPKTS); drv 351 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->tx_pfc_tc4 = hns_mac_reg_read64(drv, XGMAC_TX_PRI4PAUSEPKTS); drv 352 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->tx_pfc_tc5 = hns_mac_reg_read64(drv, XGMAC_TX_PRI5PAUSEPKTS); drv 353 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->tx_pfc_tc6 = hns_mac_reg_read64(drv, XGMAC_TX_PRI6PAUSEPKTS); drv 354 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->tx_pfc_tc7 = hns_mac_reg_read64(drv, XGMAC_TX_PRI7PAUSEPKTS); drv 355 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->tx_ctrl = hns_mac_reg_read64(drv, XGMAC_TX_MACCTRLPKTS); drv 356 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->tx_1731_pkts = hns_mac_reg_read64(drv, XGMAC_TX_1731PKTS); drv 357 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->tx_1588_pkts = hns_mac_reg_read64(drv, XGMAC_TX_1588PKTS); drv 359 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c = hns_mac_reg_read64(drv, XGMAC_RX_FROMAPPGOODPKTS); drv 361 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c = hns_mac_reg_read64(drv, XGMAC_RX_FROMAPPBADPKTS); drv 362 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->tx_bad_pkts = hns_mac_reg_read64(drv, XGMAC_TX_ERRALLPKTS); drv 366 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c = hns_mac_reg_read64(drv, XGMAC_RX_PKTS_FRAGMENT); drv 368 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c = hns_mac_reg_read64(drv, XGMAC_RX_PKTSUNDERSIZE); drv 370 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c = hns_mac_reg_read64(drv, XGMAC_RX_PKTS_UNDERMIN); drv 371 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->rx_64bytes = hns_mac_reg_read64(drv, XGMAC_RX_PKTS_64OCTETS); drv 373 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c = hns_mac_reg_read64(drv, XGMAC_RX_PKTS_65TO127OCTETS); drv 375 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c = hns_mac_reg_read64(drv, XGMAC_RX_PKTS_128TO255OCTETS); drv 377 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c = hns_mac_reg_read64(drv, XGMAC_RX_PKTS_256TO511OCTETS); drv 379 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c = hns_mac_reg_read64(drv, XGMAC_RX_PKTS_512TO1023OCTETS); drv 381 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c = hns_mac_reg_read64(drv, XGMAC_RX_PKTS_1024TO1518OCTETS); drv 383 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c = hns_mac_reg_read64(drv, XGMAC_RX_PKTS_1519TOMAXOCTETS); drv 385 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c = hns_mac_reg_read64(drv, XGMAC_RX_PKTS_1519TOMAXOCTETSOK); drv 386 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->rx_oversize = hns_mac_reg_read64(drv, XGMAC_RX_PKTS_OVERSIZE); drv 387 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->rx_jabber_err = hns_mac_reg_read64(drv, XGMAC_RX_PKTS_JABBER); drv 388 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->rx_good_pkts = hns_mac_reg_read64(drv, XGMAC_RX_GOODPKTS); drv 389 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->rx_good_bytes = hns_mac_reg_read64(drv, XGMAC_RX_GOODOCTETS); drv 390 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->rx_total_pkts = hns_mac_reg_read64(drv, XGMAC_RX_TOTAL_PKTS); drv 392 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c = hns_mac_reg_read64(drv, XGMAC_RX_TOTALOCTETS); drv 393 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->rx_uc_pkts = hns_mac_reg_read64(drv, XGMAC_RX_UNICASTPKTS); drv 394 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->rx_mc_pkts = hns_mac_reg_read64(drv, XGMAC_RX_MULTICASTPKTS); drv 395 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->rx_bc_pkts = hns_mac_reg_read64(drv, XGMAC_RX_BROADCASTPKTS); drv 396 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->rx_pfc_tc0 = hns_mac_reg_read64(drv, XGMAC_RX_PRI0PAUSEPKTS); drv 397 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->rx_pfc_tc1 = hns_mac_reg_read64(drv, XGMAC_RX_PRI1PAUSEPKTS); drv 398 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->rx_pfc_tc2 = hns_mac_reg_read64(drv, XGMAC_RX_PRI2PAUSEPKTS); drv 399 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->rx_pfc_tc3 = hns_mac_reg_read64(drv, XGMAC_RX_PRI3PAUSEPKTS); drv 400 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->rx_pfc_tc4 = hns_mac_reg_read64(drv, XGMAC_RX_PRI4PAUSEPKTS); drv 401 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->rx_pfc_tc5 = hns_mac_reg_read64(drv, XGMAC_RX_PRI5PAUSEPKTS); drv 402 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->rx_pfc_tc6 = hns_mac_reg_read64(drv, XGMAC_RX_PRI6PAUSEPKTS); drv 403 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->rx_pfc_tc7 = hns_mac_reg_read64(drv, XGMAC_RX_PRI7PAUSEPKTS); drv 406 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c = hns_mac_reg_read64(drv, XGMAC_RX_MACCTRLPKTS); drv 408 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c = hns_mac_reg_read64(drv, XGMAC_TX_SENDAPPGOODPKTS); drv 410 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c = hns_mac_reg_read64(drv, XGMAC_TX_SENDAPPBADPKTS); drv 411 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->rx_1731_pkts = hns_mac_reg_read64(drv, XGMAC_RX_1731PKTS); drv 413 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c = hns_mac_reg_read64(drv, XGMAC_RX_SYMBOLERRPKTS); drv 414 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats->rx_fcs_err = hns_mac_reg_read64(drv, XGMAC_RX_FCSERRPKTS); drv 423 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 425 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c = (struct dsaf_device *)dev_get_drvdata(drv->dev); drv 427 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c u32 mac_id = drv->mac_id; drv 439 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 442 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c ctrl_val = dsaf_read_dev(drv, XGMAC_MAC_CONTROL_REG); drv 446 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c pause_time = dsaf_read_dev(drv, XGMAC_MAC_PAUSE_TIME_REG); drv 449 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c port_mode = dsaf_read_dev(drv, XGMAC_PORT_MODE_REG); drv 457 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c pause_ctrl = dsaf_read_dev(drv, XGMAC_MAC_PAUSE_CTRL_REG); drv 470 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 473 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c pause_ctrl = dsaf_read_dev(drv, XGMAC_MAC_PAUSE_CTRL_REG); drv 485 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 487 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c *link_stat = dsaf_read_dev(drv, XGMAC_LINK_STATUS_REG); drv 499 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 504 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[0] = dsaf_read_dev(drv, XGMAC_INT_STATUS_REG); drv 505 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[1] = dsaf_read_dev(drv, XGMAC_INT_ENABLE_REG); drv 506 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[2] = dsaf_read_dev(drv, XGMAC_INT_SET_REG); drv 507 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[3] = dsaf_read_dev(drv, XGMAC_IERR_U_INFO_REG); drv 508 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[4] = dsaf_read_dev(drv, XGMAC_OVF_INFO_REG); drv 509 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[5] = dsaf_read_dev(drv, XGMAC_OVF_CNT_REG); drv 510 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[6] = dsaf_read_dev(drv, XGMAC_PORT_MODE_REG); drv 511 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[7] = dsaf_read_dev(drv, XGMAC_CLK_ENABLE_REG); drv 512 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[8] = dsaf_read_dev(drv, XGMAC_RESET_REG); drv 513 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[9] = dsaf_read_dev(drv, XGMAC_LINK_CONTROL_REG); drv 514 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[10] = dsaf_read_dev(drv, XGMAC_LINK_STATUS_REG); drv 516 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[11] = dsaf_read_dev(drv, XGMAC_SPARE_REG); drv 517 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[12] = dsaf_read_dev(drv, XGMAC_SPARE_CNT_REG); drv 518 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[13] = dsaf_read_dev(drv, XGMAC_MAC_ENABLE_REG); drv 519 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[14] = dsaf_read_dev(drv, XGMAC_MAC_CONTROL_REG); drv 520 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[15] = dsaf_read_dev(drv, XGMAC_MAC_IPG_REG); drv 521 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[16] = dsaf_read_dev(drv, XGMAC_MAC_MSG_CRC_EN_REG); drv 522 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[17] = dsaf_read_dev(drv, XGMAC_MAC_MSG_IMG_REG); drv 523 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[18] = dsaf_read_dev(drv, XGMAC_MAC_MSG_FC_CFG_REG); drv 524 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[19] = dsaf_read_dev(drv, XGMAC_MAC_MSG_TC_CFG_REG); drv 525 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[20] = dsaf_read_dev(drv, XGMAC_MAC_PAD_SIZE_REG); drv 526 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[21] = dsaf_read_dev(drv, XGMAC_MAC_MIN_PKT_SIZE_REG); drv 527 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[22] = dsaf_read_dev(drv, XGMAC_MAC_MAX_PKT_SIZE_REG); drv 528 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[23] = dsaf_read_dev(drv, XGMAC_MAC_PAUSE_CTRL_REG); drv 529 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[24] = dsaf_read_dev(drv, XGMAC_MAC_PAUSE_TIME_REG); drv 530 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[25] = dsaf_read_dev(drv, XGMAC_MAC_PAUSE_GAP_REG); drv 531 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[26] = dsaf_read_dev(drv, XGMAC_MAC_PAUSE_LOCAL_MAC_H_REG); drv 532 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[27] = dsaf_read_dev(drv, XGMAC_MAC_PAUSE_LOCAL_MAC_L_REG); drv 533 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[28] = dsaf_read_dev(drv, XGMAC_MAC_PAUSE_PEER_MAC_H_REG); drv 534 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[29] = dsaf_read_dev(drv, XGMAC_MAC_PAUSE_PEER_MAC_L_REG); drv 535 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[30] = dsaf_read_dev(drv, XGMAC_MAC_PFC_PRI_EN_REG); drv 536 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[31] = dsaf_read_dev(drv, XGMAC_MAC_1588_CTRL_REG); drv 537 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[32] = dsaf_read_dev(drv, XGMAC_MAC_1588_TX_PORT_DLY_REG); drv 538 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[33] = dsaf_read_dev(drv, XGMAC_MAC_1588_RX_PORT_DLY_REG); drv 539 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[34] = dsaf_read_dev(drv, XGMAC_MAC_1588_ASYM_DLY_REG); drv 540 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[35] = dsaf_read_dev(drv, XGMAC_MAC_1588_ADJUST_CFG_REG); drv 542 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[36] = dsaf_read_dev(drv, XGMAC_MAC_Y1731_ETH_TYPE_REG); drv 543 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[37] = dsaf_read_dev(drv, XGMAC_MAC_MIB_CONTROL_REG); drv 544 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[38] = dsaf_read_dev(drv, XGMAC_MAC_WAN_RATE_ADJUST_REG); drv 545 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[39] = dsaf_read_dev(drv, XGMAC_MAC_TX_ERR_MARK_REG); drv 546 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[40] = dsaf_read_dev(drv, XGMAC_MAC_TX_LF_RF_CONTROL_REG); drv 547 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[41] = dsaf_read_dev(drv, XGMAC_MAC_RX_LF_RF_STATUS_REG); drv 548 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[42] = dsaf_read_dev(drv, XGMAC_MAC_TX_RUNT_PKT_CNT_REG); drv 549 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[43] = dsaf_read_dev(drv, XGMAC_MAC_RX_RUNT_PKT_CNT_REG); drv 550 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[44] = dsaf_read_dev(drv, XGMAC_MAC_RX_PREAM_ERR_PKT_CNT_REG); drv 551 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[45] = dsaf_read_dev(drv, XGMAC_MAC_TX_LF_RF_TERM_PKT_CNT_REG); drv 552 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[46] = dsaf_read_dev(drv, XGMAC_MAC_TX_SN_MISMATCH_PKT_CNT_REG); drv 553 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[47] = dsaf_read_dev(drv, XGMAC_MAC_RX_ERR_MSG_CNT_REG); drv 554 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[48] = dsaf_read_dev(drv, XGMAC_MAC_RX_ERR_EFD_CNT_REG); drv 555 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[49] = dsaf_read_dev(drv, XGMAC_MAC_ERR_INFO_REG); drv 556 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[50] = dsaf_read_dev(drv, XGMAC_MAC_DBG_INFO_REG); drv 558 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[51] = dsaf_read_dev(drv, XGMAC_PCS_BASER_SYNC_THD_REG); drv 559 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[52] = dsaf_read_dev(drv, XGMAC_PCS_STATUS1_REG); drv 560 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[53] = dsaf_read_dev(drv, XGMAC_PCS_BASER_STATUS1_REG); drv 561 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[54] = dsaf_read_dev(drv, XGMAC_PCS_BASER_STATUS2_REG); drv 562 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[55] = dsaf_read_dev(drv, XGMAC_PCS_BASER_SEEDA_0_REG); drv 563 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[56] = dsaf_read_dev(drv, XGMAC_PCS_BASER_SEEDA_1_REG); drv 564 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[57] = dsaf_read_dev(drv, XGMAC_PCS_BASER_SEEDB_0_REG); drv 565 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[58] = dsaf_read_dev(drv, XGMAC_PCS_BASER_SEEDB_1_REG); drv 566 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[59] = dsaf_read_dev(drv, XGMAC_PCS_BASER_TEST_CONTROL_REG); drv 567 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[60] = dsaf_read_dev(drv, XGMAC_PCS_BASER_TEST_ERR_CNT_REG); drv 568 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[61] = dsaf_read_dev(drv, XGMAC_PCS_DBG_INFO_REG); drv 569 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[62] = dsaf_read_dev(drv, XGMAC_PCS_DBG_INFO1_REG); drv 570 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[63] = dsaf_read_dev(drv, XGMAC_PCS_DBG_INFO2_REG); drv 571 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[64] = dsaf_read_dev(drv, XGMAC_PCS_DBG_INFO3_REG); drv 573 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[65] = dsaf_read_dev(drv, XGMAC_PMA_ENABLE_REG); drv 574 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[66] = dsaf_read_dev(drv, XGMAC_PMA_CONTROL_REG); drv 575 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[67] = dsaf_read_dev(drv, XGMAC_PMA_SIGNAL_STATUS_REG); drv 576 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[68] = dsaf_read_dev(drv, XGMAC_PMA_DBG_INFO_REG); drv 577 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[69] = dsaf_read_dev(drv, XGMAC_PMA_FEC_ABILITY_REG); drv 578 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[70] = dsaf_read_dev(drv, XGMAC_PMA_FEC_CONTROL_REG); drv 579 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[71] = dsaf_read_dev(drv, XGMAC_PMA_FEC_CORR_BLOCK_CNT__REG); drv 580 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c regs[72] = dsaf_read_dev(drv, XGMAC_PMA_FEC_UNCORR_BLOCK_CNT__REG); drv 589 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_TX_PKTS_FRAGMENT); drv 591 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_TX_PKTS_UNDERSIZE); drv 593 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_TX_PKTS_UNDERMIN); drv 595 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_TX_PKTS_64OCTETS); drv 597 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_TX_PKTS_65TO127OCTETS); drv 599 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_TX_PKTS_128TO255OCTETS); drv 601 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_TX_PKTS_256TO511OCTETS); drv 603 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_TX_PKTS_512TO1023OCTETS); drv 605 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_TX_PKTS_1024TO1518OCTETS); drv 607 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_TX_PKTS_1519TOMAXOCTETS); drv 609 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_TX_PKTS_1519TOMAXOCTETSOK); drv 611 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_TX_PKTS_OVERSIZE); drv 613 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_TX_PKTS_JABBER); drv 615 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_TX_GOODPKTS); drv 617 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_TX_GOODOCTETS); drv 619 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_TX_TOTAL_PKTS); drv 621 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_TX_TOTALOCTETS); drv 623 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_TX_UNICASTPKTS); drv 625 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_TX_MULTICASTPKTS); drv 627 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_TX_BROADCASTPKTS); drv 629 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_TX_PRI0PAUSEPKTS); drv 631 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_TX_PRI1PAUSEPKTS); drv 633 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_TX_PRI2PAUSEPKTS); drv 635 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_TX_PRI3PAUSEPKTS); drv 637 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_TX_PRI4PAUSEPKTS); drv 639 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_TX_PRI5PAUSEPKTS); drv 641 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_TX_PRI6PAUSEPKTS); drv 643 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_TX_PRI7PAUSEPKTS); drv 645 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_TX_MACCTRLPKTS); drv 647 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_TX_1731PKTS); drv 649 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_TX_1588PKTS); drv 651 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_RX_FROMAPPGOODPKTS); drv 653 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_RX_FROMAPPBADPKTS); drv 655 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_TX_ERRALLPKTS); drv 659 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_RX_PKTS_FRAGMENT); drv 661 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_RX_PKTSUNDERSIZE); drv 663 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_RX_PKTS_UNDERMIN); drv 665 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_RX_PKTS_64OCTETS); drv 667 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_RX_PKTS_65TO127OCTETS); drv 669 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_RX_PKTS_128TO255OCTETS); drv 671 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_RX_PKTS_256TO511OCTETS); drv 673 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_RX_PKTS_512TO1023OCTETS); drv 675 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_RX_PKTS_1024TO1518OCTETS); drv 677 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_RX_PKTS_1519TOMAXOCTETS); drv 679 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_RX_PKTS_1519TOMAXOCTETSOK); drv 681 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_RX_PKTS_OVERSIZE); drv 683 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_RX_PKTS_JABBER); drv 685 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_RX_GOODPKTS); drv 687 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_RX_GOODOCTETS); drv 689 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_RX_TOTAL_PKTS); drv 691 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_RX_TOTALOCTETS); drv 693 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_RX_UNICASTPKTS); drv 695 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_RX_MULTICASTPKTS); drv 697 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_RX_BROADCASTPKTS); drv 699 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_RX_PRI0PAUSEPKTS); drv 701 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_RX_PRI1PAUSEPKTS); drv 703 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_RX_PRI2PAUSEPKTS); drv 705 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_RX_PRI3PAUSEPKTS); drv 707 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_RX_PRI4PAUSEPKTS); drv 709 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_RX_PRI5PAUSEPKTS); drv 711 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_RX_PRI6PAUSEPKTS); drv 713 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_RX_PRI7PAUSEPKTS); drv 716 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_RX_MACCTRLPKTS); drv 718 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_TX_SENDAPPGOODPKTS); drv 720 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_TX_SENDAPPBADPKTS); drv 722 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_RX_1731PKTS); drv 724 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_RX_SYMBOLERRPKTS); drv 726 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c qtmp = hns_mac_reg_read64(drv, XGMAC_RX_FCSERRPKTS); drv 743 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c struct mac_driver *drv = (struct mac_driver *)mac_drv; drv 746 drivers/net/ethernet/hisilicon/hns/hns_dsaf_xgmac.c hw_stats = &drv->mac_cb->hw_stats; drv 474 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c netif_dbg(h, drv, netdev, "net open\n"); drv 536 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c netif_dbg(h, drv, netdev, "net stop\n"); drv 1596 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c netif_dbg(h, drv, netdev, "setup tc: num_tc=%u\n", tc); drv 1641 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c netif_dbg(h, drv, netdev, drv 1663 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c netif_dbg(h, drv, netdev, drv 4474 drivers/net/ethernet/hisilicon/hns3/hns3_enet.c netif_dbg(h, drv, netdev, drv 319 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c netif_dbg(h, drv, ndev, "self test start"); drv 389 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c netif_dbg(h, drv, ndev, "self test end\n"); drv 620 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c netif_dbg(h, drv, netdev, drv 769 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c netif_dbg(handle, drv, netdev, drv 1062 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c netif_dbg(handle, drv, netdev, drv 1390 drivers/net/ethernet/hisilicon/hns3/hns3_ethtool.c netif_dbg(handle, drv, netdev, "set fecparam: mode=%u\n", fec_mode); drv 241 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c netif_dbg(h, drv, netdev, "set ets\n"); drv 345 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c netif_dbg(h, drv, netdev, drv 386 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_dcb.c netif_dbg(h, drv, netdev, "set dcbx: mode=%u\n", mode); drv 647 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c netif_err(nic_dev, drv, netdev, drv 666 drivers/net/ethernet/huawei/hinic/hinic_ethtool.c netif_err(nic_dev, drv, netdev, drv 151 drivers/net/ethernet/huawei/hinic/hinic_main.c netif_err(nic_dev, drv, netdev, drv 211 drivers/net/ethernet/huawei/hinic/hinic_main.c netif_err(nic_dev, drv, netdev, drv 337 drivers/net/ethernet/huawei/hinic/hinic_main.c netif_err(nic_dev, drv, netdev, drv 368 drivers/net/ethernet/huawei/hinic/hinic_main.c netif_err(nic_dev, drv, netdev, "Failed to init rss\n"); drv 380 drivers/net/ethernet/huawei/hinic/hinic_main.c netif_err(nic_dev, drv, netdev, drv 388 drivers/net/ethernet/huawei/hinic/hinic_main.c netif_err(nic_dev, drv, netdev, drv 395 drivers/net/ethernet/huawei/hinic/hinic_main.c netif_err(nic_dev, drv, netdev, drv 404 drivers/net/ethernet/huawei/hinic/hinic_main.c netif_err(nic_dev, drv, nic_dev->netdev, drv 414 drivers/net/ethernet/huawei/hinic/hinic_main.c netif_err(nic_dev, drv, netdev, drv 421 drivers/net/ethernet/huawei/hinic/hinic_main.c netif_err(nic_dev, drv, netdev, drv 433 drivers/net/ethernet/huawei/hinic/hinic_main.c netif_err(nic_dev, drv, netdev, "Failed to get link state\n"); drv 444 drivers/net/ethernet/huawei/hinic/hinic_main.c netif_info(nic_dev, drv, netdev, "link + intf UP\n"); drv 451 drivers/net/ethernet/huawei/hinic/hinic_main.c netif_info(nic_dev, drv, netdev, "HINIC_INTF is UP\n"); drv 458 drivers/net/ethernet/huawei/hinic/hinic_main.c netif_warn(nic_dev, drv, netdev, drv 464 drivers/net/ethernet/huawei/hinic/hinic_main.c netif_warn(nic_dev, drv, netdev, drv 514 drivers/net/ethernet/huawei/hinic/hinic_main.c netif_info(nic_dev, drv, netdev, "HINIC_INTF is DOWN\n"); drv 523 drivers/net/ethernet/huawei/hinic/hinic_main.c netif_info(nic_dev, drv, netdev, "set_mtu = %d\n", new_mtu); drv 527 drivers/net/ethernet/huawei/hinic/hinic_main.c netif_err(nic_dev, drv, netdev, "Failed to set port mtu\n"); drv 550 drivers/net/ethernet/huawei/hinic/hinic_main.c netif_info(nic_dev, drv, netdev, "change mac addr = %02x %02x %02x %02x %02x %02x\n", drv 558 drivers/net/ethernet/huawei/hinic/hinic_main.c netif_err(nic_dev, drv, netdev, drv 565 drivers/net/ethernet/huawei/hinic/hinic_main.c netif_err(nic_dev, drv, netdev, "Failed to add mac\n"); drv 604 drivers/net/ethernet/huawei/hinic/hinic_main.c netif_info(nic_dev, drv, netdev, "set mac addr = %02x %02x %02x %02x %02x %02x\n", drv 612 drivers/net/ethernet/huawei/hinic/hinic_main.c netif_err(nic_dev, drv, netdev, "Failed to add mac\n"); drv 639 drivers/net/ethernet/huawei/hinic/hinic_main.c netif_info(nic_dev, drv, netdev, "remove mac addr = %02x %02x %02x %02x %02x %02x\n", drv 647 drivers/net/ethernet/huawei/hinic/hinic_main.c netif_err(nic_dev, drv, netdev, drv 665 drivers/net/ethernet/huawei/hinic/hinic_main.c netif_info(nic_dev, drv, netdev, "add vid = %d\n", vid); drv 671 drivers/net/ethernet/huawei/hinic/hinic_main.c netif_err(nic_dev, drv, netdev, "Failed to add vlan\n"); drv 677 drivers/net/ethernet/huawei/hinic/hinic_main.c netif_err(nic_dev, drv, netdev, "Failed to set mac\n"); drv 689 drivers/net/ethernet/huawei/hinic/hinic_main.c netif_err(nic_dev, drv, netdev, drv 703 drivers/net/ethernet/huawei/hinic/hinic_main.c netif_info(nic_dev, drv, netdev, "remove vid = %d\n", vid); drv 709 drivers/net/ethernet/huawei/hinic/hinic_main.c netif_err(nic_dev, drv, netdev, "Failed to delete vlan\n"); drv 728 drivers/net/ethernet/huawei/hinic/hinic_main.c netif_info(nic_dev, drv, nic_dev->netdev, "set rx mode work\n"); drv 762 drivers/net/ethernet/huawei/hinic/hinic_main.c netif_err(nic_dev, drv, netdev, "Tx timeout\n"); drv 807 drivers/net/ethernet/huawei/hinic/hinic_main.c netif_info(nic_dev, drv, netdev, "disabling LRO as RXCSUM is off\n"); drv 873 drivers/net/ethernet/huawei/hinic/hinic_main.c netif_info(nic_dev, drv, nic_dev->netdev, "HINIC_Link is UP\n"); drv 884 drivers/net/ethernet/huawei/hinic/hinic_main.c netif_info(nic_dev, drv, nic_dev->netdev, "HINIC_Link is DOWN\n"); drv 50 drivers/net/ethernet/huawei/hinic/hinic_port.c netif_err(nic_dev, drv, netdev, "Invalid VLAN number\n"); drv 152 drivers/net/ethernet/huawei/hinic/hinic_port.c netif_err(nic_dev, drv, netdev, "mtu < MIN MTU size"); drv 158 drivers/net/ethernet/huawei/hinic/hinic_port.c netif_err(nic_dev, drv, netdev, "mtu > MAX MTU size"); drv 1066 drivers/net/ethernet/i825xx/ether1.c .drv = { drv 3522 drivers/net/ethernet/ibm/ehea/ehea_main.c static ssize_t capabilities_show(struct device_driver *drv, char *buf) drv 2644 drivers/net/ethernet/ibm/emac/core.c dev->phy.def->phy_id = dev->phy_dev->drv->phy_id; drv 2645 drivers/net/ethernet/ibm/emac/core.c dev->phy.def->phy_id_mask = dev->phy_dev->drv->phy_id_mask; drv 2646 drivers/net/ethernet/ibm/emac/core.c dev->phy.def->name = dev->phy_dev->drv->name; drv 2578 drivers/net/ethernet/intel/e100.c netif_info(nic, drv, nic->netdev, "Ring Param settings: rx: %d, tx %d\n", drv 184 drivers/net/ethernet/intel/e1000/e1000_ethtool.c e_err(drv, "forcing MDI/MDI-X state is not supported when link speed and/or duplex are forced\n"); drv 668 drivers/net/ethernet/intel/e1000/e1000_ethtool.c e_err(drv, "pattern test reg %04X failed: " drv 688 drivers/net/ethernet/intel/e1000/e1000_ethtool.c e_err(drv, "set/check reg %04X test failed: " drv 733 drivers/net/ethernet/intel/e1000/e1000_ethtool.c e_err(drv, "failed STATUS register test got: " drv 1659 drivers/net/ethernet/intel/e1000/e1000_ethtool.c e_err(drv, "Interface does not support directed " drv 1691 drivers/net/ethernet/intel/e1000/e1000_ethtool.c e_err(drv, "Interface does not support directed " drv 2786 drivers/net/ethernet/intel/e1000/e1000_main.c e_warn(drv, "checksum_partial proto=%x!\n", drv 3158 drivers/net/ethernet/intel/e1000/e1000_main.c e_err(drv, "__pskb_pull_tail " drv 3505 drivers/net/ethernet/intel/e1000/e1000_main.c e_err(drv, "Reset adapter\n"); drv 3898 drivers/net/ethernet/intel/e1000/e1000_main.c e_err(drv, "Detected Tx Unit Hang\n" drv 858 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c netif_warn(interface, drv, interface->netdev, drv 943 drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c netif_err(interface, drv, dev, drv 1291 drivers/net/ethernet/intel/fm10k/fm10k_main.c netif_err(interface, drv, tx_ring->netdev, drv 717 drivers/net/ethernet/intel/fm10k/fm10k_netdev.c netif_info(interface, drv, netdev, drv 509 drivers/net/ethernet/intel/fm10k/fm10k_pci.c netif_info(interface, drv, netdev, "NIC Link is up\n"); drv 527 drivers/net/ethernet/intel/fm10k/fm10k_pci.c netif_info(interface, drv, netdev, "NIC Link is down\n"); drv 947 drivers/net/ethernet/intel/fm10k/fm10k_pci.c netif_err(interface, drv, interface->netdev, drv 2454 drivers/net/ethernet/intel/i40e/i40e_ethtool.c netif_err(pf, drv, netdev, "link query timed out, please retry test\n"); drv 2536 drivers/net/ethernet/intel/i40e/i40e_ethtool.c netif_info(pf, drv, netdev, "offline testing starting\n"); drv 2584 drivers/net/ethernet/intel/i40e/i40e_ethtool.c netif_info(pf, drv, netdev, "online testing starting\n"); drv 2597 drivers/net/ethernet/intel/i40e/i40e_ethtool.c netif_info(pf, drv, netdev, "testing finished\n"); drv 2878 drivers/net/ethernet/intel/i40e/i40e_ethtool.c netif_info(pf, drv, netdev, "Invalid queue value, queue range is 0 - %d\n", drv 2888 drivers/net/ethernet/intel/i40e/i40e_ethtool.c netif_info(pf, drv, netdev, "tx-usecs-high is not used, please program rx-usecs-high\n"); drv 2893 drivers/net/ethernet/intel/i40e/i40e_ethtool.c netif_info(pf, drv, netdev, "Invalid value, rx-usecs-high range is 0-%lu\n", drv 2900 drivers/net/ethernet/intel/i40e/i40e_ethtool.c netif_info(pf, drv, netdev, "RX interrupt moderation cannot be changed if adaptive-rx is enabled.\n"); drv 2905 drivers/net/ethernet/intel/i40e/i40e_ethtool.c netif_info(pf, drv, netdev, "Invalid value, rx-usecs range is 0-8160\n"); drv 2911 drivers/net/ethernet/intel/i40e/i40e_ethtool.c netif_info(pf, drv, netdev, "TX interrupt moderation cannot be changed if adaptive-tx is enabled.\n"); drv 2916 drivers/net/ethernet/intel/i40e/i40e_ethtool.c netif_info(pf, drv, netdev, "Invalid value, tx-usecs range is 0-8160\n"); drv 2929 drivers/net/ethernet/intel/i40e/i40e_ethtool.c netif_info(pf, drv, netdev, "Interrupt rate limit rounded down to %d\n", drv 3975 drivers/net/ethernet/intel/i40e/i40e_ethtool.c netif_info(pf, drv, vsi->netdev, "L3 source address: %s -> %s\n", drv 3982 drivers/net/ethernet/intel/i40e/i40e_ethtool.c netif_info(pf, drv, vsi->netdev, "L3 destination address: %s -> %s\n", drv 3989 drivers/net/ethernet/intel/i40e/i40e_ethtool.c netif_info(pf, drv, vsi->netdev, "L4 source port: %s -> %s\n", drv 3996 drivers/net/ethernet/intel/i40e/i40e_ethtool.c netif_info(pf, drv, vsi->netdev, "L4 destination port: %s -> %s\n", drv 4003 drivers/net/ethernet/intel/i40e/i40e_ethtool.c netif_info(pf, drv, vsi->netdev, "SCTP verification tag: %s -> %s\n", drv 4014 drivers/net/ethernet/intel/i40e/i40e_ethtool.c netif_info(pf, drv, vsi->netdev, "FLEX index %d: %s -> %s\n", drv 4020 drivers/net/ethernet/intel/i40e/i40e_ethtool.c netif_info(pf, drv, vsi->netdev, " Current input set: %0llx\n", drv 4022 drivers/net/ethernet/intel/i40e/i40e_ethtool.c netif_info(pf, drv, vsi->netdev, "Requested input set: %0llx\n", drv 4284 drivers/net/ethernet/intel/i40e/i40e_ethtool.c netif_info(pf, drv, vsi->netdev, "Input set change requested for %s flows:\n", drv 4288 drivers/net/ethernet/intel/i40e/i40e_ethtool.c netif_info(pf, drv, vsi->netdev, "FLEX index %d: Offset -> %d", drv 4297 drivers/net/ethernet/intel/i40e/i40e_ethtool.c netif_err(pf, drv, vsi->netdev, "Cannot change Flow Director input sets while MFP is enabled\n"); drv 4311 drivers/net/ethernet/intel/i40e/i40e_ethtool.c netif_err(pf, drv, vsi->netdev, "Cannot change input set for %s flows until %d preexisting filters are removed\n", drv 762 drivers/net/ethernet/intel/iavf/iavf_ethtool.c netif_info(adapter, drv, netdev, "rx-usecs=0, need to disable adaptive-rx for a complete disable\n"); drv 765 drivers/net/ethernet/intel/iavf/iavf_ethtool.c netif_info(adapter, drv, netdev, "Invalid value, rx-usecs range is 0-8160\n"); drv 769 drivers/net/ethernet/intel/iavf/iavf_ethtool.c netif_info(adapter, drv, netdev, "tx-usecs=0, need to disable adaptive-tx for a complete disable\n"); drv 772 drivers/net/ethernet/intel/iavf/iavf_ethtool.c netif_info(adapter, drv, netdev, "Invalid value, tx-usecs range is 0-8160\n"); drv 785 drivers/net/ethernet/intel/iavf/iavf_ethtool.c netif_info(adapter, drv, netdev, "Invalid queue value, queue range is 0 - %d\n", drv 1842 drivers/net/ethernet/intel/ixgb/ixgb_main.c netif_err(adapter, drv, adapter->netdev, drv 1431 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c e_err(drv, "pattern test reg %04X failed: got 0x%08X expected 0x%08X\n", drv 1455 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c e_err(drv, "set/check reg %04X test failed: got 0x%08X expected 0x%08X\n", drv 1472 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c e_err(drv, "Adapter removed - register test blocked\n"); drv 1505 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c e_err(drv, "failed STATUS register test got: 0x%08X expected: 0x%08X\n", drv 2714 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c e_err(drv, "Location out of range\n"); drv 2730 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c e_err(drv, "Unrecognized flow type\n"); drv 2775 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c e_err(drv, "Error writing mask\n"); drv 2779 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c e_err(drv, "Only one mask supported per port\n"); drv 2904 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c e_warn(drv, "enabling UDP RSS: fragmented packets may arrive out of order to the stack above\n"); drv 3225 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c e_err(drv, "Address change required to access page 0xA2, but not supported. Please report the module type to the driver maintainers.\n"); drv 3371 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c e_err(drv, "Setting EEE tx-lpi is not supported\n"); drv 3376 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c e_err(drv, drv 3382 drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c e_err(drv, drv 157 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c e_warn(drv, "xid=0x%x out-of-range\n", xid); drv 169 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c e_err(drv, "xid 0x%x w/ non-null sgl=%p nents=%d\n", drv 177 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c e_warn(drv, "No ddp_pool resources allocated\n"); drv 183 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c e_warn(drv, "xid=0x%x no ddp pool for fcoe\n", xid); drv 190 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c e_err(drv, "xid 0x%x DMA map error\n", xid); drv 197 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c e_err(drv, "failed allocated ddp context\n"); drv 769 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c e_err(drv, "failed to map extra DDP buffer\n"); drv 783 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c e_err(drv, "failed to alloc DDP pool on cpu:%d\n", cpu); drv 801 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c e_err(drv, "failed to allocate percpu DDP resources\n"); drv 847 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c e_info(drv, "Enabling FCoE offload features.\n"); drv 891 drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c e_info(drv, "Disabling FCoE offload features.\n"); drv 893 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c e_warn(drv, "VF %d attempted to add an IPsec SA\n", vf); drv 997 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c e_err(drv, "vf %d attempted to delete an SA\n", vf); drv 1006 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c e_err(drv, "vf %d SA index %d out of range\n", drv 1018 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c e_err(drv, "vf %d bad Rx SA index %d\n", vf, sa_idx); drv 1028 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c e_err(drv, "vf %d SA index %d out of range\n", drv 1040 drivers/net/ethernet/intel/ixgbe/ixgbe_ipsec.c e_err(drv, "vf %d bad Tx SA index %d\n", vf, sa_idx); drv 1068 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c e_warn(drv, "initiating reset due to tx timeout\n"); drv 1218 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c e_err(drv, "Detected Tx Unit Hang %s\n" drv 2797 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c e_crit(drv, "%s\n", ixgbe_overheat_msg); drv 2856 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c e_crit(drv, "%s\n", ixgbe_overheat_msg); drv 4060 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c e_err(drv, "RXDCTL.ENABLE on Rx queue %d not set within " drv 5146 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c e_warn(drv, "Packet Buffer(%i) can not provide enough" drv 5258 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c e_err(drv, "FDIR restore failed without VF, ring: %u\n", drv 5264 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c e_err(drv, "FDIR restore failed with VF, vf: %hhu, ring: %u\n", drv 5657 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c e_crit(drv, "Fan has stopped, replace the adapter\n"); drv 5808 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c e_err(drv, drv 5889 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c e_err(drv, drv 7487 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c e_info(drv, "NIC Link is Up %s, Flow Control: %s\n", speed_str, drv 7529 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c e_info(drv, "NIC Link is Down\n"); drv 7601 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c e_warn(drv, "initiating reset to clear Tx work after link loss\n"); drv 7662 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c e_warn(drv, "%u Spoofed packets detected\n", ssvpc); drv 7850 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c e_crit(drv, "%s\n", ixgbe_overheat_msg); drv 9432 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c e_err(drv, "Location out of range\n"); drv 9478 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c e_err(drv, "Link filter exists for link: %x\n", drv 9546 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c e_err(drv, "Filter exists in location: %x\n", drv 10008 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c e_info(drv, "enabling bridge mode: %s\n", drv 10443 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c e_err(drv, "TXDCTL.ENABLE not cleared within the polling period\n"); drv 10489 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c e_err(drv, "RXDCTL.ENABLE not cleared within the polling period\n"); drv 11464 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c e_info(drv, "Resuming after VF err\n"); drv 1642 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c e_warn(drv, "WARNING: Intel (R) Network Connections are quality tested using Intel (R) Ethernet Optics. Using untested modules is not supported and may cause unstable operation or damage to the module or the adapter. Intel Corporation is not responsible for any harm caused by using untested modules.\n"); drv 1821 drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c e_warn(drv, "WARNING: Intel (R) Network Connections are quality tested using Intel (R) Ethernet Optics. Using untested modules is not supported and may cause unstable operation or damage to the module or the adapter. Intel Corporation is not responsible for any harm caused by using untested modules.\n"); drv 753 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c e_warn(drv, "clearing RX Timestamp hang\n"); drv 800 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c e_warn(drv, "clearing Tx timestamp hang\n"); drv 869 drivers/net/ethernet/intel/ixgbe/ixgbe_ptp.c e_warn(drv, "clearing Tx Timestamp hang\n"); drv 531 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c e_err(drv, "VF max_frame %d out of range\n", max_frame); drv 538 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c e_err(drv, "VF max_frame %d out of range\n", max_frame); drv 926 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c e_warn(drv, "VF %d attempted to set invalid mac\n", vf); drv 932 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c e_warn(drv, drv 950 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c e_warn(drv, drv 974 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c e_warn(drv, drv 983 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c e_warn(drv, "VF %d attempted to set invalid mac\n", vf); drv 1001 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c e_warn(drv, drv 1025 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c e_info(drv, "VF %d requested invalid api version %u\n", vf, api); drv 1181 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c e_warn(drv, drv 1279 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c e_err(drv, "Unhandled Msg %8.8x\n", msgbuf[0]); drv 1698 drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.c e_info(drv, "VF %u is %strusted\n", vf, setting ? "" : "not "); drv 105 drivers/net/ethernet/microchip/encx24j600.c netif_err(priv, drv, dev, "%s: error %d reading reg %02x\n", drv 116 drivers/net/ethernet/microchip/encx24j600.c netif_err(priv, drv, dev, "%s: error %d writing reg %02x=%04x\n", drv 127 drivers/net/ethernet/microchip/encx24j600.c netif_err(priv, drv, dev, "%s: error %d updating reg %02x=%04x~%04x\n", drv 138 drivers/net/ethernet/microchip/encx24j600.c netif_err(priv, drv, dev, "%s: error %d reading %02x\n", drv 149 drivers/net/ethernet/microchip/encx24j600.c netif_err(priv, drv, dev, "%s: error %d writing reg %02x=%04x\n", drv 169 drivers/net/ethernet/microchip/encx24j600.c netif_err(priv, drv, dev, "%s: error %d with cmd %02x\n", drv 232 drivers/net/ethernet/microchip/encx24j600.c netif_notice(priv, drv, dev, "timeout waiting for autoneg done\n"); drv 240 drivers/net/ethernet/microchip/encx24j600.c netif_notice(priv, drv, dev, "Using parallel detection: %s/%s", drv 737 drivers/net/ethernet/microchip/encx24j600.c netif_info(priv, drv, dev, "Hardware must be disabled to set Mac address\n"); drv 743 drivers/net/ethernet/microchip/encx24j600.c netif_info(priv, drv, dev, "%s: Setting MAC address to %pM\n", drv 1085 drivers/net/ethernet/microchip/encx24j600.c netif_info(priv, drv, priv->ndev, "MAC address %pM\n", ndev->dev_addr); drv 72 drivers/net/ethernet/microchip/lan743x_ethtool.c netif_warn(adapter, drv, adapter->netdev, drv 167 drivers/net/ethernet/microchip/lan743x_ethtool.c netif_warn(adapter, drv, adapter->netdev, drv 189 drivers/net/ethernet/microchip/lan743x_ethtool.c netif_warn(adapter, drv, adapter->netdev, "EEPROM is busy\n"); drv 702 drivers/net/ethernet/microchip/lan743x_ethtool.c if (!phydev->drv) { drv 703 drivers/net/ethernet/microchip/lan743x_ethtool.c netif_err(adapter, drv, adapter->netdev, drv 746 drivers/net/ethernet/microchip/lan743x_ethtool.c if (!phydev->drv) { drv 747 drivers/net/ethernet/microchip/lan743x_ethtool.c netif_err(adapter, drv, adapter->netdev, drv 755 drivers/net/ethernet/microchip/lan743x_ethtool.c netif_err(adapter, drv, adapter->netdev, drv 787 drivers/net/ethernet/microchip/lan743x_main.c netif_info(adapter, drv, adapter->netdev, drv 57 drivers/net/ethernet/microchip/lan743x_ptp.c netif_err(adapter, drv, adapter->netdev, drv 76 drivers/net/ethernet/microchip/lan743x_ptp.c netif_err(adapter, drv, adapter->netdev, drv 169 drivers/net/ethernet/microchip/lan743x_ptp.c netif_warn(adapter, drv, adapter->netdev, drv 371 drivers/net/ethernet/microchip/lan743x_ptp.c netif_warn(adapter, drv, adapter->netdev, drv 378 drivers/net/ethernet/microchip/lan743x_ptp.c netif_warn(adapter, drv, adapter->netdev, drv 387 drivers/net/ethernet/microchip/lan743x_ptp.c netif_warn(adapter, drv, adapter->netdev, "ts == NULL\n"); drv 449 drivers/net/ethernet/microchip/lan743x_ptp.c netif_warn(adapter, drv, adapter->netdev, drv 468 drivers/net/ethernet/microchip/lan743x_ptp.c netif_warn(adapter, drv, adapter->netdev, drv 496 drivers/net/ethernet/microchip/lan743x_ptp.c netif_warn(adapter, drv, adapter->netdev, drv 564 drivers/net/ethernet/microchip/lan743x_ptp.c netif_err(adapter, drv, adapter->netdev, drv 570 drivers/net/ethernet/microchip/lan743x_ptp.c netif_err(adapter, drv, adapter->netdev, "request == NULL\n"); drv 607 drivers/net/ethernet/microchip/lan743x_ptp.c netif_err(adapter, drv, adapter->netdev, drv 610 drivers/net/ethernet/microchip/lan743x_ptp.c netif_warn(adapter, drv, adapter->netdev, drv 614 drivers/net/ethernet/microchip/lan743x_ptp.c netif_warn(adapter, drv, adapter->netdev, drv 787 drivers/net/ethernet/microchip/lan743x_ptp.c netif_err(adapter, drv, adapter->netdev, drv 827 drivers/net/ethernet/microchip/lan743x_ptp.c netif_err(adapter, drv, adapter->netdev, drv 950 drivers/net/ethernet/microchip/lan743x_ptp.c netif_info(adapter, drv, adapter->netdev, drv 1010 drivers/net/ethernet/microchip/lan743x_ptp.c netif_warn(adapter, drv, adapter->netdev, drv 1025 drivers/net/ethernet/microchip/lan743x_ptp.c netif_warn(adapter, drv, adapter->netdev, drv 1042 drivers/net/ethernet/microchip/lan743x_ptp.c netif_err(adapter, drv, adapter->netdev, drv 1093 drivers/net/ethernet/microchip/lan743x_ptp.c netif_err(adapter, drv, adapter->netdev, drv 1114 drivers/net/ethernet/microchip/lan743x_ptp.c netif_err(adapter, drv, adapter->netdev, drv 1123 drivers/net/ethernet/microchip/lan743x_ptp.c netif_warn(adapter, drv, adapter->netdev, drv 1152 drivers/net/ethernet/microchip/lan743x_ptp.c netif_warn(adapter, drv, adapter->netdev, drv 50 drivers/net/ethernet/natsemi/sonic.c netif_dbg(lp, drv, dev, "%s", version); drv 2473 drivers/net/ethernet/pensando/ionic/ionic_if.h union ionic_drv_identity drv; drv 390 drivers/net/ethernet/pensando/ionic/ionic_main.c ident->drv.os_type = cpu_to_le32(IONIC_OS_TYPE_LINUX); drv 391 drivers/net/ethernet/pensando/ionic/ionic_main.c strncpy(ident->drv.driver_ver_str, IONIC_DRV_VERSION, drv 392 drivers/net/ethernet/pensando/ionic/ionic_main.c sizeof(ident->drv.driver_ver_str) - 1); drv 396 drivers/net/ethernet/pensando/ionic/ionic_main.c sz = min(sizeof(ident->drv), sizeof(idev->dev_cmd_regs->data)); drv 397 drivers/net/ethernet/pensando/ionic/ionic_main.c memcpy_toio(&idev->dev_cmd_regs->data, &ident->drv, sz); drv 207 drivers/net/ethernet/qlogic/qede/qede_rdma.c int qede_rdma_register_driver(struct qedr_driver *drv) drv 217 drivers/net/ethernet/qlogic/qede/qede_rdma.c qedr_drv = drv; drv 237 drivers/net/ethernet/qlogic/qede/qede_rdma.c void qede_rdma_unregister_driver(struct qedr_driver *drv) drv 1320 drivers/net/ethernet/qlogic/qlcnic/qlcnic_minidump.c netif_info(adapter->ahw, drv, adapter->netdev, "Take FW dump\n"); drv 799 drivers/net/ethernet/realtek/r8169_main.c netif_err(tp, drv, tp->dev, "%s == %d (loop: %d, delay: %d).\n", drv 845 drivers/net/ethernet/realtek/r8169_main.c netif_err(tp, drv, tp->dev, "Invalid ocp reg %x!\n", reg); drv 3865 drivers/net/ethernet/realtek/r8169_main.c netif_dbg(tp, drv, dev, drv 5464 drivers/net/ethernet/realtek/r8169_main.c netif_dbg(tp, drv, tp->dev, drv 5551 drivers/net/ethernet/realtek/r8169_main.c netif_err(tp, drv, tp->dev, "Failed to map RX DMA!\n"); drv 5719 drivers/net/ethernet/realtek/r8169_main.c netif_err(tp, drv, tp->dev, drv 5894 drivers/net/ethernet/realtek/r8169_main.c netif_err(tp, drv, dev, "BUG! Tx Ring full when queue awake!\n"); drv 5915 drivers/net/ethernet/realtek/r8169_main.c netif_err(tp, drv, dev, "Failed to map TX DMA!\n"); drv 6908 drivers/net/ethernet/realtek/r8169_main.c } else if (!tp->phydev->drv) { drv 879 drivers/net/ethernet/seeq/ether3.c .drv = { drv 240 drivers/net/ethernet/sfc/ef10.c netif_err(efx, drv, efx->net_dev, drv 561 drivers/net/ethernet/sfc/ef10.c netif_warn(efx, drv, efx->net_dev, drv 633 drivers/net/ethernet/sfc/ef10.c netif_err(efx, drv, efx->net_dev, drv 933 drivers/net/ethernet/sfc/ef10.c netif_err(efx, drv, efx->net_dev, drv 986 drivers/net/ethernet/sfc/ef10.c netif_err(efx, drv, efx->net_dev, drv 1073 drivers/net/ethernet/sfc/ef10.c netif_info(efx, drv, efx->net_dev, drv 1215 drivers/net/ethernet/sfc/ef10.c netif_info(efx, drv, efx->net_dev, drv 1241 drivers/net/ethernet/sfc/ef10.c netif_info(efx, drv, efx->net_dev, drv 1277 drivers/net/ethernet/sfc/ef10.c netif_dbg(efx, drv, efx->net_dev, "base VI is A0x%03x\n", drv 1372 drivers/net/ethernet/sfc/ef10.c netif_info(efx, drv, efx->net_dev, drv 1475 drivers/net/ethernet/sfc/ef10.c netif_dbg(efx, drv, efx->net_dev, drv 1478 drivers/net/ethernet/sfc/ef10.c netif_err(efx, drv, efx->net_dev, drv 3324 drivers/net/ethernet/sfc/ef10.c netif_dbg(efx, drv, efx->net_dev, drv 3358 drivers/net/ethernet/sfc/ef10.c netif_info(efx, drv, efx->net_dev, drv 3839 drivers/net/ethernet/sfc/ef10.c netif_vdbg(efx, drv, efx->net_dev, drv 5074 drivers/net/ethernet/sfc/ef10.c netif_warn(efx, drv, efx->net_dev, drv 5081 drivers/net/ethernet/sfc/ef10.c netif_warn(efx, drv, efx->net_dev, drv 5115 drivers/net/ethernet/sfc/ef10.c netif_dbg(efx, drv, efx->net_dev, drv 5162 drivers/net/ethernet/sfc/ef10.c netif_info(efx, drv, efx->net_dev, drv 5182 drivers/net/ethernet/sfc/ef10.c netif_dbg(efx, drv, efx->net_dev, drv 5300 drivers/net/ethernet/sfc/ef10.c netif_info(efx, drv, efx->net_dev, drv 5328 drivers/net/ethernet/sfc/ef10.c netif_warn(efx, drv, efx->net_dev, drv 5406 drivers/net/ethernet/sfc/ef10.c netif_cond_dbg(efx, drv, efx->net_dev, drv 5444 drivers/net/ethernet/sfc/ef10.c netif_warn(efx, drv, efx->net_dev, drv 5518 drivers/net/ethernet/sfc/ef10.c netif_info(efx, drv, efx->net_dev, drv 5522 drivers/net/ethernet/sfc/ef10.c netif_info(efx, drv, efx->net_dev, drv 5586 drivers/net/ethernet/sfc/ef10.c netif_err(efx, drv, efx->net_dev, drv 5774 drivers/net/ethernet/sfc/ef10.c netif_err(efx, drv, efx->net_dev, drv 5835 drivers/net/ethernet/sfc/ef10.c netif_err(efx, drv, efx->net_dev, drv 5906 drivers/net/ethernet/sfc/ef10.c netif_err(efx, drv, efx->net_dev, drv 5988 drivers/net/ethernet/sfc/ef10.c netif_dbg(efx, drv, efx->net_dev, "starting BIST type %u\n", bist_type); drv 6405 drivers/net/ethernet/sfc/ef10.c netif_warn(efx, drv, efx->net_dev, drv 6409 drivers/net/ethernet/sfc/ef10.c netif_info(efx, drv, efx->net_dev, drv 6478 drivers/net/ethernet/sfc/ef10.c netif_dbg(efx, drv, efx->net_dev, "Adding UDP tunnel (%s) port %d\n", drv 6490 drivers/net/ethernet/sfc/ef10.c netif_dbg(efx, drv, efx->net_dev, drv 6499 drivers/net/ethernet/sfc/ef10.c netif_dbg(efx, drv, efx->net_dev, drv 6514 drivers/net/ethernet/sfc/ef10.c netif_dbg(efx, drv, efx->net_dev, drv 6560 drivers/net/ethernet/sfc/ef10.c netif_dbg(efx, drv, efx->net_dev, "Removing UDP tunnel (%s) port %d\n", drv 6574 drivers/net/ethernet/sfc/ef10.c netif_dbg(efx, drv, efx->net_dev, drv 6585 drivers/net/ethernet/sfc/ef10.c netif_warn(efx, drv, efx->net_dev, drv 414 drivers/net/ethernet/sfc/ef10_sriov.c netif_info(efx, drv, efx->net_dev, "VFs are assigned to guests; " drv 463 drivers/net/ethernet/sfc/ef10_sriov.c netif_dbg(efx, drv, efx->net_dev, drv 466 drivers/net/ethernet/sfc/ef10_sriov.c netif_dbg(efx, drv, efx->net_dev, "SRIOV disabled\n"); drv 594 drivers/net/ethernet/sfc/ef10_sriov.c netif_warn(efx, drv, efx->net_dev, drv 596 drivers/net/ethernet/sfc/ef10_sriov.c netif_warn(efx, drv, efx->net_dev, drv 598 drivers/net/ethernet/sfc/ef10_sriov.c netif_warn(efx, drv, efx->net_dev, drv 675 drivers/net/ethernet/sfc/ef10_sriov.c netif_err(efx, drv, efx->net_dev, drv 679 drivers/net/ethernet/sfc/ef10_sriov.c netif_err(efx, drv, efx->net_dev, drv 682 drivers/net/ethernet/sfc/ef10_sriov.c netif_err(efx, drv, efx->net_dev, drv 241 drivers/net/ethernet/sfc/efx.c netif_err(efx, drv, efx->net_dev, drv 397 drivers/net/ethernet/sfc/efx.c netif_dbg(efx, drv, efx->net_dev, drv 438 drivers/net/ethernet/sfc/efx.c netif_dbg(channel->efx, drv, channel->efx->net_dev, drv 447 drivers/net/ethernet/sfc/efx.c netif_dbg(channel->efx, drv, channel->efx->net_dev, drv 676 drivers/net/ethernet/sfc/efx.c netif_dbg(efx, drv, efx->net_dev, drv 681 drivers/net/ethernet/sfc/efx.c netif_dbg(efx, drv, efx->net_dev, drv 766 drivers/net/ethernet/sfc/efx.c netif_err(efx, drv, efx->net_dev, "failed to flush queues\n"); drv 768 drivers/net/ethernet/sfc/efx.c netif_dbg(efx, drv, efx->net_dev, drv 785 drivers/net/ethernet/sfc/efx.c netif_dbg(channel->efx, drv, channel->efx->net_dev, drv 893 drivers/net/ethernet/sfc/efx.c netif_err(efx, drv, efx->net_dev, drv 1116 drivers/net/ethernet/sfc/efx.c netif_dbg(efx, drv, efx->net_dev, "init port\n"); drv 1185 drivers/net/ethernet/sfc/efx.c netif_dbg(efx, drv, efx->net_dev, "shut down port\n"); drv 1199 drivers/net/ethernet/sfc/efx.c netif_dbg(efx, drv, efx->net_dev, "destroying port\n"); drv 1357 drivers/net/ethernet/sfc/efx.c netif_dbg(efx, drv, efx->net_dev, "shutting down I/O\n"); drv 1468 drivers/net/ethernet/sfc/efx.c netif_err(efx, drv, efx->net_dev, drv 1475 drivers/net/ethernet/sfc/efx.c netif_err(efx, drv, efx->net_dev, drv 1478 drivers/net/ethernet/sfc/efx.c netif_err(efx, drv, efx->net_dev, drv 1514 drivers/net/ethernet/sfc/efx.c netif_err(efx, drv, efx->net_dev, drv 1766 drivers/net/ethernet/sfc/efx.c netif_err(efx, drv, efx->net_dev, drv 1817 drivers/net/ethernet/sfc/efx.c netif_dbg(efx, drv, efx->net_dev, "destroying NIC\n"); drv 2074 drivers/net/ethernet/sfc/efx.c netif_err(efx, drv, efx->net_dev, "Channels are shared. " drv 2292 drivers/net/ethernet/sfc/efx.c netif_dbg(efx, drv, efx->net_dev, "changing MTU to %d\n", new_mtu); drv 2316 drivers/net/ethernet/sfc/efx.c netif_err(efx, drv, efx->net_dev, drv 2603 drivers/net/ethernet/sfc/efx.c netif_err(efx, drv, efx->net_dev, drv 2610 drivers/net/ethernet/sfc/efx.c netif_err(efx, drv, efx->net_dev, drv 2629 drivers/net/ethernet/sfc/efx.c netif_err(efx, drv, efx->net_dev, "could not register net dev\n"); drv 2694 drivers/net/ethernet/sfc/efx.c netif_err(efx, drv, efx->net_dev, "failed to initialise NIC\n"); drv 2708 drivers/net/ethernet/sfc/efx.c netif_err(efx, drv, efx->net_dev, drv 2761 drivers/net/ethernet/sfc/efx.c netif_info(efx, drv, efx->net_dev, "resetting (%s)\n", drv 2769 drivers/net/ethernet/sfc/efx.c netif_err(efx, drv, efx->net_dev, "failed to reset hardware\n"); drv 2801 drivers/net/ethernet/sfc/efx.c netif_err(efx, drv, efx->net_dev, "has been disabled\n"); drv 2804 drivers/net/ethernet/sfc/efx.c netif_dbg(efx, drv, efx->net_dev, "reset complete\n"); drv 2844 drivers/net/ethernet/sfc/efx.c netif_err(efx, drv, efx->net_dev, "Warning: No MC reboot after BIST mode\n"); drv 2892 drivers/net/ethernet/sfc/efx.c netif_dbg(efx, drv, efx->net_dev, drv 2909 drivers/net/ethernet/sfc/efx.c netif_dbg(efx, drv, efx->net_dev, "scheduling %s reset\n", drv 2914 drivers/net/ethernet/sfc/efx.c netif_dbg(efx, drv, efx->net_dev, drv 3360 drivers/net/ethernet/sfc/efx.c netif_dbg(efx, drv, efx->net_dev, "shutdown successful\n"); drv 3384 drivers/net/ethernet/sfc/efx.c netif_err(efx, drv, efx->net_dev, "Unable to read VPD\n"); drv 3391 drivers/net/ethernet/sfc/efx.c netif_err(efx, drv, efx->net_dev, "VPD Read-only not found\n"); drv 3404 drivers/net/ethernet/sfc/efx.c netif_err(efx, drv, efx->net_dev, "Part number not found\n"); drv 3411 drivers/net/ethernet/sfc/efx.c netif_err(efx, drv, efx->net_dev, "Incomplete part number\n"); drv 3415 drivers/net/ethernet/sfc/efx.c netif_info(efx, drv, efx->net_dev, drv 3422 drivers/net/ethernet/sfc/efx.c netif_err(efx, drv, efx->net_dev, "Serial number not found\n"); drv 3429 drivers/net/ethernet/sfc/efx.c netif_err(efx, drv, efx->net_dev, "Incomplete serial number\n"); drv 3631 drivers/net/ethernet/sfc/efx.c netif_dbg(efx, drv, efx->net_dev, "initialisation failed. rc=%d\n", rc); drv 165 drivers/net/ethernet/sfc/ethtool.c netif_dbg(efx, drv, efx->net_dev, drv 533 drivers/net/ethernet/sfc/ethtool.c netif_info(efx, drv, efx->net_dev, "starting %sline testing\n", drv 541 drivers/net/ethernet/sfc/ethtool.c netif_err(efx, drv, efx->net_dev, drv 552 drivers/net/ethernet/sfc/ethtool.c netif_info(efx, drv, efx->net_dev, "%s %sline self-tests\n", drv 684 drivers/net/ethernet/sfc/ethtool.c netif_err(efx, drv, efx->net_dev, drv 692 drivers/net/ethernet/sfc/ethtool.c netif_warn(efx, drv, efx->net_dev, drv 714 drivers/net/ethernet/sfc/ethtool.c netif_dbg(efx, drv, efx->net_dev, drv 721 drivers/net/ethernet/sfc/ethtool.c netif_dbg(efx, drv, efx->net_dev, drv 739 drivers/net/ethernet/sfc/ethtool.c netif_err(efx, drv, efx->net_dev, drv 218 drivers/net/ethernet/sfc/falcon/efx.c netif_err(efx, drv, efx->net_dev, drv 361 drivers/net/ethernet/sfc/falcon/efx.c netif_dbg(efx, drv, efx->net_dev, drv 402 drivers/net/ethernet/sfc/falcon/efx.c netif_dbg(channel->efx, drv, channel->efx->net_dev, drv 411 drivers/net/ethernet/sfc/falcon/efx.c netif_dbg(channel->efx, drv, channel->efx->net_dev, drv 630 drivers/net/ethernet/sfc/falcon/efx.c netif_dbg(efx, drv, efx->net_dev, drv 635 drivers/net/ethernet/sfc/falcon/efx.c netif_dbg(efx, drv, efx->net_dev, drv 721 drivers/net/ethernet/sfc/falcon/efx.c netif_err(efx, drv, efx->net_dev, drv 725 drivers/net/ethernet/sfc/falcon/efx.c netif_err(efx, drv, efx->net_dev, "failed to flush queues\n"); drv 727 drivers/net/ethernet/sfc/falcon/efx.c netif_dbg(efx, drv, efx->net_dev, drv 744 drivers/net/ethernet/sfc/falcon/efx.c netif_dbg(channel->efx, drv, channel->efx->net_dev, drv 852 drivers/net/ethernet/sfc/falcon/efx.c netif_err(efx, drv, efx->net_dev, drv 1056 drivers/net/ethernet/sfc/falcon/efx.c netif_dbg(efx, drv, efx->net_dev, "init port\n"); drv 1125 drivers/net/ethernet/sfc/falcon/efx.c netif_dbg(efx, drv, efx->net_dev, "shut down port\n"); drv 1139 drivers/net/ethernet/sfc/falcon/efx.c netif_dbg(efx, drv, efx->net_dev, "destroying port\n"); drv 1297 drivers/net/ethernet/sfc/falcon/efx.c netif_dbg(efx, drv, efx->net_dev, "shutting down I/O\n"); drv 1391 drivers/net/ethernet/sfc/falcon/efx.c netif_err(efx, drv, efx->net_dev, drv 1394 drivers/net/ethernet/sfc/falcon/efx.c netif_err(efx, drv, efx->net_dev, drv 1397 drivers/net/ethernet/sfc/falcon/efx.c netif_err(efx, drv, efx->net_dev, drv 1433 drivers/net/ethernet/sfc/falcon/efx.c netif_err(efx, drv, efx->net_dev, drv 1631 drivers/net/ethernet/sfc/falcon/efx.c netif_err(efx, drv, efx->net_dev, drv 1682 drivers/net/ethernet/sfc/falcon/efx.c netif_dbg(efx, drv, efx->net_dev, "destroying NIC\n"); drv 1924 drivers/net/ethernet/sfc/falcon/efx.c netif_err(efx, drv, efx->net_dev, "Channels are shared. " drv 2133 drivers/net/ethernet/sfc/falcon/efx.c netif_dbg(efx, drv, efx->net_dev, "changing MTU to %d\n", new_mtu); drv 2157 drivers/net/ethernet/sfc/falcon/efx.c netif_err(efx, drv, efx->net_dev, drv 2317 drivers/net/ethernet/sfc/falcon/efx.c netif_err(efx, drv, efx->net_dev, drv 2330 drivers/net/ethernet/sfc/falcon/efx.c netif_err(efx, drv, efx->net_dev, "could not register net dev\n"); drv 2384 drivers/net/ethernet/sfc/falcon/efx.c netif_err(efx, drv, efx->net_dev, "failed to initialise NIC\n"); drv 2398 drivers/net/ethernet/sfc/falcon/efx.c netif_err(efx, drv, efx->net_dev, drv 2434 drivers/net/ethernet/sfc/falcon/efx.c netif_info(efx, drv, efx->net_dev, "resetting (%s)\n", drv 2442 drivers/net/ethernet/sfc/falcon/efx.c netif_err(efx, drv, efx->net_dev, "failed to reset hardware\n"); drv 2474 drivers/net/ethernet/sfc/falcon/efx.c netif_err(efx, drv, efx->net_dev, "has been disabled\n"); drv 2477 drivers/net/ethernet/sfc/falcon/efx.c netif_dbg(efx, drv, efx->net_dev, "reset complete\n"); drv 2544 drivers/net/ethernet/sfc/falcon/efx.c netif_dbg(efx, drv, efx->net_dev, drv 2559 drivers/net/ethernet/sfc/falcon/efx.c netif_dbg(efx, drv, efx->net_dev, "scheduling %s reset\n", drv 2564 drivers/net/ethernet/sfc/falcon/efx.c netif_dbg(efx, drv, efx->net_dev, drv 2774 drivers/net/ethernet/sfc/falcon/efx.c netif_dbg(efx, drv, efx->net_dev, "shutdown successful\n"); drv 2798 drivers/net/ethernet/sfc/falcon/efx.c netif_err(efx, drv, efx->net_dev, "Unable to read VPD\n"); drv 2805 drivers/net/ethernet/sfc/falcon/efx.c netif_err(efx, drv, efx->net_dev, "VPD Read-only not found\n"); drv 2818 drivers/net/ethernet/sfc/falcon/efx.c netif_err(efx, drv, efx->net_dev, "Part number not found\n"); drv 2825 drivers/net/ethernet/sfc/falcon/efx.c netif_err(efx, drv, efx->net_dev, "Incomplete part number\n"); drv 2829 drivers/net/ethernet/sfc/falcon/efx.c netif_info(efx, drv, efx->net_dev, drv 2836 drivers/net/ethernet/sfc/falcon/efx.c netif_err(efx, drv, efx->net_dev, "Serial number not found\n"); drv 2843 drivers/net/ethernet/sfc/falcon/efx.c netif_err(efx, drv, efx->net_dev, "Incomplete serial number\n"); drv 2995 drivers/net/ethernet/sfc/falcon/efx.c netif_dbg(efx, drv, efx->net_dev, "initialisation failed. rc=%d\n", rc); drv 149 drivers/net/ethernet/sfc/falcon/ethtool.c netif_dbg(efx, drv, efx->net_dev, drv 511 drivers/net/ethernet/sfc/falcon/ethtool.c netif_info(efx, drv, efx->net_dev, "starting %sline testing\n", drv 519 drivers/net/ethernet/sfc/falcon/ethtool.c netif_err(efx, drv, efx->net_dev, drv 530 drivers/net/ethernet/sfc/falcon/ethtool.c netif_info(efx, drv, efx->net_dev, "%s %sline self-tests\n", drv 662 drivers/net/ethernet/sfc/falcon/ethtool.c netif_err(efx, drv, efx->net_dev, drv 670 drivers/net/ethernet/sfc/falcon/ethtool.c netif_warn(efx, drv, efx->net_dev, drv 692 drivers/net/ethernet/sfc/falcon/ethtool.c netif_dbg(efx, drv, efx->net_dev, drv 699 drivers/net/ethernet/sfc/falcon/ethtool.c netif_dbg(efx, drv, efx->net_dev, drv 717 drivers/net/ethernet/sfc/falcon/ethtool.c netif_err(efx, drv, efx->net_dev, drv 1990 drivers/net/ethernet/sfc/falcon/falcon.c netif_err(efx, drv, efx->net_dev, drv 1998 drivers/net/ethernet/sfc/falcon/falcon.c netif_err(efx, drv, efx->net_dev, drv 2034 drivers/net/ethernet/sfc/falcon/falcon.c netif_dbg(efx, drv, efx->net_dev, drv 405 drivers/net/ethernet/sfc/falcon/falcon_boards.c netif_info(efx, drv, efx->net_dev, "%s\n", __func__); drv 203 drivers/net/ethernet/sfc/falcon/mdio_10g.c netif_vdbg(efx, drv, efx->net_dev, "Setting low power mode for MMD %d to %d\n", drv 86 drivers/net/ethernet/sfc/falcon/nic.c netif_err(efx, drv, efx->net_dev, drv 113 drivers/net/ethernet/sfc/falcon/nic.c netif_err(efx, drv, efx->net_dev, drv 737 drivers/net/ethernet/sfc/falcon/rx.c netif_dbg(rx_queue->efx, drv, rx_queue->efx->net_dev, drv 779 drivers/net/ethernet/sfc/falcon/rx.c netif_dbg(rx_queue->efx, drv, rx_queue->efx->net_dev, drv 814 drivers/net/ethernet/sfc/falcon/rx.c netif_dbg(rx_queue->efx, drv, rx_queue->efx->net_dev, drv 137 drivers/net/ethernet/sfc/falcon/selftest.c netif_dbg(efx, drv, efx->net_dev, "testing interrupts\n"); drv 142 drivers/net/ethernet/sfc/falcon/selftest.c netif_dbg(efx, drv, efx->net_dev, drv 152 drivers/net/ethernet/sfc/falcon/selftest.c netif_dbg(efx, drv, efx->net_dev, "waiting for test interrupt\n"); drv 161 drivers/net/ethernet/sfc/falcon/selftest.c netif_err(efx, drv, efx->net_dev, "timed out waiting for interrupt\n"); drv 165 drivers/net/ethernet/sfc/falcon/selftest.c netif_dbg(efx, drv, efx->net_dev, "%s test interrupt seen on CPU%d\n", drv 225 drivers/net/ethernet/sfc/falcon/selftest.c netif_dbg(efx, drv, efx->net_dev, drv 234 drivers/net/ethernet/sfc/falcon/selftest.c netif_err(efx, drv, efx->net_dev, drv 238 drivers/net/ethernet/sfc/falcon/selftest.c netif_err(efx, drv, efx->net_dev, drv 243 drivers/net/ethernet/sfc/falcon/selftest.c netif_err(efx, drv, efx->net_dev, drv 267 drivers/net/ethernet/sfc/falcon/selftest.c netif_info(efx, drv, efx->net_dev, drv 305 drivers/net/ethernet/sfc/falcon/selftest.c netif_err(efx, drv, efx->net_dev, drv 313 drivers/net/ethernet/sfc/falcon/selftest.c netif_err(efx, drv, efx->net_dev, drv 321 drivers/net/ethernet/sfc/falcon/selftest.c netif_err(efx, drv, efx->net_dev, drv 330 drivers/net/ethernet/sfc/falcon/selftest.c netif_err(efx, drv, efx->net_dev, drv 338 drivers/net/ethernet/sfc/falcon/selftest.c netif_err(efx, drv, efx->net_dev, drv 346 drivers/net/ethernet/sfc/falcon/selftest.c netif_err(efx, drv, efx->net_dev, drv 354 drivers/net/ethernet/sfc/falcon/selftest.c netif_vdbg(efx, drv, efx->net_dev, drv 363 drivers/net/ethernet/sfc/falcon/selftest.c netif_err(efx, drv, efx->net_dev, "received packet:\n"); drv 366 drivers/net/ethernet/sfc/falcon/selftest.c netif_err(efx, drv, efx->net_dev, "expected packet:\n"); drv 444 drivers/net/ethernet/sfc/falcon/selftest.c netif_err(efx, drv, efx->net_dev, drv 495 drivers/net/ethernet/sfc/falcon/selftest.c netif_err(efx, drv, efx->net_dev, drv 506 drivers/net/ethernet/sfc/falcon/selftest.c netif_dbg(efx, drv, efx->net_dev, drv 542 drivers/net/ethernet/sfc/falcon/selftest.c netif_dbg(efx, drv, efx->net_dev, drv 569 drivers/net/ethernet/sfc/falcon/selftest.c netif_dbg(efx, drv, efx->net_dev, drv 645 drivers/net/ethernet/sfc/falcon/selftest.c netif_err(efx, drv, efx->net_dev, drv 653 drivers/net/ethernet/sfc/falcon/selftest.c netif_err(efx, drv, efx->net_dev, drv 586 drivers/net/ethernet/sfc/falcon/tx.c netif_dbg(efx, drv, efx->net_dev, drv 610 drivers/net/ethernet/sfc/falcon/tx.c netif_dbg(tx_queue->efx, drv, tx_queue->efx->net_dev, drv 635 drivers/net/ethernet/sfc/falcon/tx.c netif_dbg(tx_queue->efx, drv, tx_queue->efx->net_dev, drv 2169 drivers/net/ethernet/sfc/mcdi.c netif_err(efx, drv, efx->net_dev, drv 2192 drivers/net/ethernet/sfc/mcdi.c netif_err(efx, drv, efx->net_dev, drv 87 drivers/net/ethernet/sfc/nic.c netif_err(efx, drv, efx->net_dev, drv 114 drivers/net/ethernet/sfc/nic.c netif_err(efx, drv, efx->net_dev, drv 848 drivers/net/ethernet/sfc/ptp.c netif_err(efx, drv, efx->net_dev, drv 983 drivers/net/ethernet/sfc/ptp.c netif_warn(efx, drv, efx->net_dev, drv 1553 drivers/net/ethernet/sfc/ptp.c netif_warn(efx, drv, efx->net_dev, drv 1924 drivers/net/ethernet/sfc/ptp.c netif_warn(efx, drv, efx->net_dev, drv 2046 drivers/net/ethernet/sfc/ptp.c netif_vdbg(efx, drv, efx->net_dev, drv 2203 drivers/net/ethernet/sfc/ptp.c netif_err(efx, drv, efx->net_dev, "Failed to restart PTP.\n"); drv 735 drivers/net/ethernet/sfc/rx.c netif_dbg(rx_queue->efx, drv, rx_queue->efx->net_dev, drv 777 drivers/net/ethernet/sfc/rx.c netif_dbg(rx_queue->efx, drv, rx_queue->efx->net_dev, drv 812 drivers/net/ethernet/sfc/rx.c netif_dbg(rx_queue->efx, drv, rx_queue->efx->net_dev, drv 137 drivers/net/ethernet/sfc/selftest.c netif_dbg(efx, drv, efx->net_dev, "testing interrupts\n"); drv 142 drivers/net/ethernet/sfc/selftest.c netif_dbg(efx, drv, efx->net_dev, drv 152 drivers/net/ethernet/sfc/selftest.c netif_dbg(efx, drv, efx->net_dev, "waiting for test interrupt\n"); drv 161 drivers/net/ethernet/sfc/selftest.c netif_err(efx, drv, efx->net_dev, "timed out waiting for interrupt\n"); drv 165 drivers/net/ethernet/sfc/selftest.c netif_dbg(efx, drv, efx->net_dev, "%s test interrupt seen on CPU%d\n", drv 225 drivers/net/ethernet/sfc/selftest.c netif_dbg(efx, drv, efx->net_dev, drv 234 drivers/net/ethernet/sfc/selftest.c netif_err(efx, drv, efx->net_dev, drv 238 drivers/net/ethernet/sfc/selftest.c netif_err(efx, drv, efx->net_dev, drv 243 drivers/net/ethernet/sfc/selftest.c netif_err(efx, drv, efx->net_dev, drv 267 drivers/net/ethernet/sfc/selftest.c netif_info(efx, drv, efx->net_dev, drv 305 drivers/net/ethernet/sfc/selftest.c netif_err(efx, drv, efx->net_dev, drv 313 drivers/net/ethernet/sfc/selftest.c netif_err(efx, drv, efx->net_dev, drv 321 drivers/net/ethernet/sfc/selftest.c netif_err(efx, drv, efx->net_dev, drv 330 drivers/net/ethernet/sfc/selftest.c netif_err(efx, drv, efx->net_dev, drv 338 drivers/net/ethernet/sfc/selftest.c netif_err(efx, drv, efx->net_dev, drv 346 drivers/net/ethernet/sfc/selftest.c netif_err(efx, drv, efx->net_dev, drv 354 drivers/net/ethernet/sfc/selftest.c netif_vdbg(efx, drv, efx->net_dev, drv 363 drivers/net/ethernet/sfc/selftest.c netif_err(efx, drv, efx->net_dev, "received packet:\n"); drv 366 drivers/net/ethernet/sfc/selftest.c netif_err(efx, drv, efx->net_dev, "expected packet:\n"); drv 444 drivers/net/ethernet/sfc/selftest.c netif_err(efx, drv, efx->net_dev, drv 495 drivers/net/ethernet/sfc/selftest.c netif_err(efx, drv, efx->net_dev, drv 506 drivers/net/ethernet/sfc/selftest.c netif_dbg(efx, drv, efx->net_dev, drv 542 drivers/net/ethernet/sfc/selftest.c netif_dbg(efx, drv, efx->net_dev, drv 569 drivers/net/ethernet/sfc/selftest.c netif_dbg(efx, drv, efx->net_dev, drv 645 drivers/net/ethernet/sfc/selftest.c netif_err(efx, drv, efx->net_dev, drv 653 drivers/net/ethernet/sfc/selftest.c netif_err(efx, drv, efx->net_dev, drv 1021 drivers/net/ethernet/sfc/siena_sriov.c netif_err(efx, drv, efx->net_dev, drv 843 drivers/net/ethernet/sfc/tx.c netif_dbg(efx, drv, efx->net_dev, drv 875 drivers/net/ethernet/sfc/tx.c netif_dbg(tx_queue->efx, drv, tx_queue->efx->net_dev, drv 900 drivers/net/ethernet/sfc/tx.c netif_dbg(tx_queue->efx, drv, tx_queue->efx->net_dev, drv 1319 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, drv, "Rx not stopped"); drv 1352 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, drv, "Failed reading PHY control reg"); drv 1362 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, drv, "Failed writing PHY control reg"); drv 1384 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, drv, "Failed reading PHY control reg"); drv 1395 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, drv, "Failed writing PHY control reg"); drv 1417 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, drv, "Failed reading PHY control reg"); drv 1428 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, drv, "Failed writing PHY control reg"); drv 1449 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, drv, "Failed to power-up the PHY chip"); drv 1463 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, drv, "Failed to wakeup the PHY chip"); drv 1485 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, drv, "Failed to complete reset"); drv 1493 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, drv, "Failed to wakeup the PHY chip"); drv 2021 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, drv, "op 0x%08x", op); drv 2023 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, drv, "Busy at start"); drv 2036 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, drv, "TIMED OUT"); drv 2041 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, drv, "Error occurred during eeprom operation"); drv 2054 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, drv, "address 0x%x", address); drv 2070 drivers/net/ethernet/smsc/smsc911x.c SMSC_TRACE(pdata, drv, "address 0x%x, data 0x%x", address, data); drv 2238 drivers/net/ethernet/smsc/smsc911x.c SMSC_WARN(pdata, drv, "BYTE_TEST: 0x%08X", byte_test); drv 114 drivers/net/ethernet/smsc/smsc9420.c netif_warn(pd, drv, pd->dev, "MII is busy???\n"); drv 133 drivers/net/ethernet/smsc/smsc9420.c netif_warn(pd, drv, pd->dev, "MII busy timeout!\n"); drv 152 drivers/net/ethernet/smsc/smsc9420.c netif_warn(pd, drv, pd->dev, "MII is busy???\n"); drv 174 drivers/net/ethernet/smsc/smsc9420.c netif_warn(pd, drv, pd->dev, "MII busy timeout!\n"); drv 196 drivers/net/ethernet/smsc/smsc9420.c netif_dbg(pd, drv, pd->dev, "%s: Eeprom busy\n", __func__); drv 209 drivers/net/ethernet/smsc/smsc9420.c netif_warn(pd, drv, pd->dev, "%s: Eeprom timed out\n", __func__); drv 680 drivers/net/ethernet/smsc/smsc9420.c netif_warn(pd, drv, pd->dev, "Software reset not cleared\n"); drv 969 drivers/net/ethernet/socionext/netsec.c netif_err(priv, drv, priv->ndev, drv 1017 drivers/net/ethernet/socionext/netsec.c netif_err(priv, drv, priv->ndev, drv 1158 drivers/net/ethernet/socionext/netsec.c netif_err(priv, drv, priv->ndev, drv 1609 drivers/net/ethernet/socionext/netsec.c netif_err(priv, drv, priv->ndev, "request_irq failed\n"); drv 149 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c netif_dbg(pdata, drv, pdata->netdev, drv 181 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c netif_dbg(pdata, drv, pdata->netdev, "%s - Tx ring:\n", drv 193 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c netif_dbg(pdata, drv, pdata->netdev, "%s - Rx ring:\n", drv 242 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c netif_dbg(pdata, drv, pdata->netdev, drv 281 drivers/net/ethernet/synopsys/dwc-xlgmac-desc.c netif_dbg(pdata, drv, pdata->netdev, drv 94 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c netif_dbg(pdata, drv, pdata->netdev, drv 254 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c netif_dbg(pdata, drv, pdata->netdev, "%s promiscuous mode\n", drv 284 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c netif_dbg(pdata, drv, pdata->netdev, "%s allmulti mode\n", drv 1520 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c netif_dbg(pdata, drv, pdata->netdev, drv 1534 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c netif_dbg(pdata, drv, pdata->netdev, drv 1559 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c netif_dbg(pdata, drv, pdata->netdev, drv 1566 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c netif_dbg(pdata, drv, pdata->netdev, drv 1647 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c netif_info(pdata, drv, pdata->netdev, drv 1669 drivers/net/ethernet/synopsys/dwc-xlgmac-hw.c netif_info(pdata, drv, pdata->netdev, drv 46 drivers/net/ethernet/synopsys/dwc-xlgmac-net.c netif_info(pdata, drv, pdata->netdev, drv 364 drivers/net/ethernet/ti/cpsw_ethtool.c cpsw_err(priv, drv, "ethtool begin failed %d\n", ret); drv 378 drivers/net/ethernet/ti/cpsw_ethtool.c cpsw_err(priv, drv, "ethtool complete failed %d\n", ret); drv 428 drivers/net/ethernet/ti/davinci_mdio.c phy->drv ? phy->drv->name : "unknown"); drv 2535 drivers/net/ethernet/ti/netcp_ethss.c #define HAS_PHY_TXTSTAMP(p) ((p)->drv && (p)->drv->txtstamp) drv 2536 drivers/net/ethernet/ti/netcp_ethss.c #define HAS_PHY_RXTSTAMP(p) ((p)->drv && (p)->drv->rxtstamp) drv 2832 drivers/net/ethernet/ti/netcp_ethss.c if (!phy || !phy->drv->hwtstamp) { drv 1227 drivers/net/ethernet/via/via-rhine.c netif_err(rp, drv, dev, "Rx DMA mapping failure\n"); drv 1189 drivers/net/hamradio/baycom_epp.c struct device_driver *drv = par_dev->dev.driver; drv 1190 drivers/net/hamradio/baycom_epp.c int len = strlen(drv->name); drv 1192 drivers/net/hamradio/baycom_epp.c if (strncmp(par_dev->name, drv->name, len)) drv 494 drivers/net/hamradio/baycom_par.c struct device_driver *drv = par_dev->dev.driver; drv 495 drivers/net/hamradio/baycom_par.c int len = strlen(drv->name); drv 497 drivers/net/hamradio/baycom_par.c if (strncmp(par_dev->name, drv->name, len)) drv 1042 drivers/net/macvlan.c if (phydev && phydev->drv && phydev->drv->ts_info) { drv 1043 drivers/net/macvlan.c return phydev->drv->ts_info(phydev, info); drv 133 drivers/net/phy/bcm-cygnus.c rev = phydev->phy_id & ~phydev->drv->phy_id_mask; drv 136 drivers/net/phy/bcm-cygnus.c phydev_name(phydev), phydev->drv->name, rev); drv 148 drivers/net/phy/bcm7xxx.c rev = phydev->phy_id & ~phydev->drv->phy_id_mask; drv 151 drivers/net/phy/bcm7xxx.c phydev_name(phydev), phydev->drv->name, rev, patch); drv 368 drivers/net/phy/bcm7xxx.c u8 rev = phydev->phy_id & ~phydev->drv->phy_id_mask; drv 372 drivers/net/phy/bcm7xxx.c phydev_name(phydev), phydev->drv->name, rev); drv 20 drivers/net/phy/broadcom.c ((phydev)->drv->phy_id & (phydev)->drv->phy_id_mask) drv 23 drivers/net/phy/broadcom.c ((phydev)->drv->phy_id & ~((phydev)->drv->phy_id_mask)) drv 179 drivers/net/phy/broadcom.c if (phydev->drv->phy_id == PHY_ID_BCM50610) { drv 68 drivers/net/phy/cortina.c if (phy_id != phydev->drv->phy_id) { drv 70 drivers/net/phy/cortina.c phydev->drv->name); drv 703 drivers/net/phy/mdio_bus.c static int mdio_bus_match(struct device *dev, struct device_driver *drv) drv 707 drivers/net/phy/mdio_bus.c if (of_driver_match_device(dev, drv)) drv 711 drivers/net/phy/mdio_bus.c return mdio->bus_match(dev, drv); drv 36 drivers/net/phy/mdio_device.c int mdio_device_bus_match(struct device *dev, struct device_driver *drv) drv 39 drivers/net/phy/mdio_device.c struct mdio_driver *mdiodrv = to_mdio_driver(drv); drv 44 drivers/net/phy/mdio_device.c return strcmp(mdiodev->modalias, drv->name) == 0; drv 149 drivers/net/phy/mdio_device.c struct device_driver *drv = mdiodev->dev.driver; drv 150 drivers/net/phy/mdio_device.c struct mdio_driver *mdiodrv = to_mdio_driver(drv); drv 170 drivers/net/phy/mdio_device.c struct device_driver *drv = mdiodev->dev.driver; drv 171 drivers/net/phy/mdio_device.c struct mdio_driver *mdiodrv = to_mdio_driver(drv); drv 187 drivers/net/phy/mdio_device.c int mdio_driver_register(struct mdio_driver *drv) drv 189 drivers/net/phy/mdio_device.c struct mdio_driver_common *mdiodrv = &drv->mdiodrv; drv 210 drivers/net/phy/mdio_device.c void mdio_driver_unregister(struct mdio_driver *drv) drv 212 drivers/net/phy/mdio_device.c struct mdio_driver_common *mdiodrv = &drv->mdiodrv; drv 159 drivers/net/phy/micrel.c const struct kszphy_type *type = phydev->drv->driver_data; drv 832 drivers/net/phy/micrel.c if (phydev->drv->config_intr && phy_interrupt_is_valid(phydev)) drv 833 drivers/net/phy/micrel.c phydev->drv->config_intr(phydev); drv 893 drivers/net/phy/micrel.c if (phydev->drv->config_intr) drv 894 drivers/net/phy/micrel.c phydev->drv->config_intr(phydev); drv 919 drivers/net/phy/micrel.c if (phydev->drv->config_intr) drv 920 drivers/net/phy/micrel.c phydev->drv->config_intr(phydev); drv 928 drivers/net/phy/micrel.c const struct kszphy_type *type = phydev->drv->driver_data; drv 1600 drivers/net/phy/mscc.c if ((phy->phy_id & phydev->drv->phy_id_mask) != drv 1601 drivers/net/phy/mscc.c (phydev->drv->phy_id & phydev->drv->phy_id_mask)) drv 1650 drivers/net/phy/mscc.c if ((phydev->phy_id & phydev->drv->phy_id_mask) == drv 1651 drivers/net/phy/mscc.c (PHY_ID_VSC8574 & phydev->drv->phy_id_mask)) drv 1653 drivers/net/phy/mscc.c else if ((phydev->phy_id & phydev->drv->phy_id_mask) == drv 1654 drivers/net/phy/mscc.c (PHY_ID_VSC8584 & phydev->drv->phy_id_mask)) drv 1752 drivers/net/phy/mscc.c phy_id = phydev->drv->phy_id & phydev->drv->phy_id_mask; drv 382 drivers/net/phy/phy-core.c if (phydev->drv->read_mmd) { drv 383 drivers/net/phy/phy-core.c val = phydev->drv->read_mmd(phydev, devad, regnum); drv 439 drivers/net/phy/phy-core.c if (phydev->drv->write_mmd) { drv 440 drivers/net/phy/phy-core.c ret = phydev->drv->write_mmd(phydev, devad, regnum, val); drv 692 drivers/net/phy/phy-core.c return phydev->drv->read_page(phydev); drv 697 drivers/net/phy/phy-core.c return phydev->drv->write_page(phydev, page); drv 119 drivers/net/phy/phy.c if (phydev->drv->ack_interrupt) drv 120 drivers/net/phy/phy.c return phydev->drv->ack_interrupt(phydev); drv 135 drivers/net/phy/phy.c if (phydev->drv->config_intr) drv 136 drivers/net/phy/phy.c return phydev->drv->config_intr(phydev); drv 171 drivers/net/phy/phy.c if (phydev->drv && phydev->drv->aneg_done) drv 172 drivers/net/phy/phy.c return phydev->drv->aneg_done(phydev); drv 484 drivers/net/phy/phy.c if (phydev->drv && phydev->drv->hwtstamp) drv 485 drivers/net/phy/phy.c return phydev->drv->hwtstamp(phydev, ifr); drv 508 drivers/net/phy/phy.c if (phydev->drv->config_aneg) drv 509 drivers/net/phy/phy.c return phydev->drv->config_aneg(phydev); drv 567 drivers/net/phy/phy.c if (!phydev->drv) drv 753 drivers/net/phy/phy.c if (phydev->drv->did_interrupt && !phydev->drv->did_interrupt(phydev)) drv 756 drivers/net/phy/phy.c if (phydev->drv->handle_interrupt) { drv 757 drivers/net/phy/phy.c if (phydev->drv->handle_interrupt(phydev)) drv 765 drivers/net/phy/phy.c if (!phydev->drv->did_interrupt && phy_clear_interrupt(phydev)) drv 942 drivers/net/phy/phy.c if (phydev->drv && phydev->drv->link_change_notify) drv 943 drivers/net/phy/phy.c phydev->drv->link_change_notify(phydev); drv 1010 drivers/net/phy/phy.c if (!phydev->drv) drv 1078 drivers/net/phy/phy.c if (!phydev->drv) drv 1097 drivers/net/phy/phy.c if (!phydev->drv) drv 1136 drivers/net/phy/phy.c if (!phydev->drv) drv 1176 drivers/net/phy/phy.c if (phydev->drv && phydev->drv->set_wol) drv 1177 drivers/net/phy/phy.c return phydev->drv->set_wol(phydev, wol); drv 1185 drivers/net/phy/phy.c if (phydev->drv && phydev->drv->get_wol) drv 1186 drivers/net/phy/phy.c phydev->drv->get_wol(phydev, wol); drv 1223 drivers/net/phy/phy.c if (!phydev->drv) drv 236 drivers/net/phy/phy_device.c struct device_driver *drv = phydev->mdio.dev.driver; drv 237 drivers/net/phy/phy_device.c struct phy_driver *phydrv = to_phy_driver(drv); drv 240 drivers/net/phy/phy_device.c if (!drv || !phydrv->suspend) drv 481 drivers/net/phy/phy_device.c static int phy_bus_match(struct device *dev, struct device_driver *drv) drv 484 drivers/net/phy/phy_device.c struct phy_driver *phydrv = to_phy_driver(drv); drv 1082 drivers/net/phy/phy_device.c if (!phydev->drv) drv 1085 drivers/net/phy/phy_device.c if (phydev->drv->soft_reset) drv 1086 drivers/net/phy/phy_device.c ret = phydev->drv->soft_reset(phydev); drv 1095 drivers/net/phy/phy_device.c if (phydev->drv->config_init) drv 1096 drivers/net/phy/phy_device.c ret = phydev->drv->config_init(phydev); drv 1111 drivers/net/phy/phy_device.c const char *drv_name = phydev->drv ? phydev->drv->name : "unbound"; drv 1366 drivers/net/phy/phy_device.c if (!phydev->drv) drv 1462 drivers/net/phy/phy_device.c if (phydev->drv && phydrv->suspend) drv 1481 drivers/net/phy/phy_device.c if (phydev->drv && phydrv->resume) drv 1522 drivers/net/phy/phy_device.c if (phydev->drv && phydrv->set_loopback) drv 1549 drivers/net/phy/phy_device.c if (!phydev || !phydev->drv) drv 1552 drivers/net/phy/phy_device.c if (phydev->drv->flags & PHY_RST_AFTER_CLK_EN) { drv 2187 drivers/net/phy/phy_device.c struct device_driver *drv = phydev->mdio.dev.driver; drv 2188 drivers/net/phy/phy_device.c struct phy_driver *phydrv = to_phy_driver(drv); drv 2191 drivers/net/phy/phy_device.c phydev->drv = phydrv; drv 2204 drivers/net/phy/phy_device.c if (phydev->drv->probe) { drv 2208 drivers/net/phy/phy_device.c err = phydev->drv->probe(phydev); drv 2290 drivers/net/phy/phy_device.c if (phydev->drv && phydev->drv->remove) { drv 2291 drivers/net/phy/phy_device.c phydev->drv->remove(phydev); drv 2296 drivers/net/phy/phy_device.c phydev->drv = NULL; drv 2357 drivers/net/phy/phy_device.c void phy_driver_unregister(struct phy_driver *drv) drv 2359 drivers/net/phy/phy_device.c driver_unregister(&drv->mdiodrv.driver); drv 2363 drivers/net/phy/phy_device.c void phy_drivers_unregister(struct phy_driver *drv, int n) drv 2368 drivers/net/phy/phy_device.c phy_driver_unregister(drv + i); drv 754 drivers/net/phy/phylink.c phy->drv->name); drv 293 drivers/net/phy/vitesse.c (phydev->drv->phy_id == PHY_ID_VSC8234 || drv 294 drivers/net/phy/vitesse.c phydev->drv->phy_id == PHY_ID_VSC8244 || drv 295 drivers/net/phy/vitesse.c phydev->drv->phy_id == PHY_ID_VSC8572 || drv 296 drivers/net/phy/vitesse.c phydev->drv->phy_id == PHY_ID_VSC8601) ? drv 83 drivers/net/phy/xilinx_gmii2rgmii.c if (!priv->phy_dev->drv) { drv 89 drivers/net/phy/xilinx_gmii2rgmii.c priv->phy_drv = priv->phy_dev->drv; drv 90 drivers/net/phy/xilinx_gmii2rgmii.c memcpy(&priv->conv_phy_drv, priv->phy_dev->drv, drv 94 drivers/net/phy/xilinx_gmii2rgmii.c priv->phy_dev->drv = &priv->conv_phy_drv; drv 1335 drivers/net/plip/plip.c struct device_driver *drv = par_dev->dev.driver; drv 1336 drivers/net/plip/plip.c int len = strlen(drv->name); drv 1338 drivers/net/plip/plip.c if (strncmp(par_dev->name, drv->name, len)) drv 1047 drivers/net/usb/lan78xx.c netif_dbg(dev, drv, dev->net, "deferred multicast write 0x%08x\n", drv 1087 drivers/net/usb/lan78xx.c netif_dbg(dev, drv, dev->net, "promiscuous mode enabled"); drv 1091 drivers/net/usb/lan78xx.c netif_dbg(dev, drv, dev->net, drv 1101 drivers/net/usb/lan78xx.c netif_dbg(dev, drv, dev->net, "receive multicast hash filter"); drv 2073 drivers/net/usb/lan78xx.c if (!phydev->drv) { drv 137 drivers/net/usb/pegasus.c netif_dbg(pegasus, drv, pegasus->net, drv 159 drivers/net/usb/pegasus.c netif_dbg(pegasus, drv, pegasus->net, drv 178 drivers/net/usb/pegasus.c netif_dbg(pegasus, drv, pegasus->net, drv 213 drivers/net/usb/pegasus.c netif_err(pegasus, drv, pegasus->net, drv 249 drivers/net/usb/pegasus.c netif_dbg(p, drv, p->net, "%s failed\n", __func__); drv 308 drivers/net/usb/pegasus.c netif_warn(pegasus, drv, pegasus->net, "%s failed\n", __func__); drv 357 drivers/net/usb/pegasus.c netif_warn(pegasus, drv, pegasus->net, "%s failed\n", __func__); drv 3543 drivers/net/usb/r8152.c netif_err(tp, drv, tp->netdev, "patch request fail\n"); drv 530 drivers/net/usb/smsc75xx.c netif_dbg(dev, drv, dev->net, "deferred multicast write 0x%08x\n", drv 558 drivers/net/usb/smsc75xx.c netif_dbg(dev, drv, dev->net, "promiscuous mode enabled\n"); drv 561 drivers/net/usb/smsc75xx.c netif_dbg(dev, drv, dev->net, "receive all multicast enabled\n"); drv 566 drivers/net/usb/smsc75xx.c netif_dbg(dev, drv, dev->net, "receive multicast hash filter\n"); drv 576 drivers/net/usb/smsc75xx.c netif_dbg(dev, drv, dev->net, "receive own packets only\n"); drv 468 drivers/net/usb/smsc95xx.c netif_dbg(dev, drv, dev->net, "promiscuous mode enabled\n"); drv 472 drivers/net/usb/smsc95xx.c netif_dbg(dev, drv, dev->net, "receive all multicast enabled\n"); drv 490 drivers/net/usb/smsc95xx.c netif_dbg(dev, drv, dev->net, "HASHH=0x%08X, HASHL=0x%08X\n", drv 493 drivers/net/usb/smsc95xx.c netif_dbg(dev, drv, dev->net, "receive own packets only\n"); drv 2133 drivers/net/wireless/ath/ath10k/sdio.c .drv = { drv 1429 drivers/net/wireless/ath/ath6kl/sdio.c .drv.pm = ATH6KL_SDIO_PM_OPS, drv 1162 drivers/net/wireless/broadcom/brcm80211/brcmfmac/bcmsdh.c .drv = { drv 102 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c static void brcmf_feat_firmware_overrides(struct brcmf_pub *drv) drv 110 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c if (!strcmp(e->fwid, drv->fwver)) { drv 123 drivers/net/wireless/broadcom/brcm80211/brcmfmac/feature.c drv->feat_flags |= feat_flags; drv 1552 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c struct device_driver *drv = &brcmf_usbdrvr.drvwrap.driver; drv 1556 drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c ret = driver_for_each_device(drv, NULL, NULL, drv 2407 drivers/net/wireless/intel/ipw2x00/ipw2100.c struct ipw2100_status *status = &priv->status_queue.drv[i]; drv 2440 drivers/net/wireless/intel/ipw2x00/ipw2100.c printk_buf((u8 *) priv->status_queue.drv, drv 2453 drivers/net/wireless/intel/ipw2x00/ipw2100.c struct ipw2100_status *status = &priv->status_queue.drv[i]; drv 2518 drivers/net/wireless/intel/ipw2x00/ipw2100.c priv->rx_queue.drv[i].host_addr = packet->dma_addr; drv 2527 drivers/net/wireless/intel/ipw2x00/ipw2100.c struct ipw2100_status *status = &priv->status_queue.drv[i]; drv 2600 drivers/net/wireless/intel/ipw2x00/ipw2100.c priv->rx_queue.drv[i].host_addr = packet->dma_addr; drv 2607 drivers/net/wireless/intel/ipw2x00/ipw2100.c struct ipw2100_status *status = &priv->status_queue.drv[i]; drv 2701 drivers/net/wireless/intel/ipw2x00/ipw2100.c frame_type = sq->drv[i].status_fields & STATUS_TYPE_MASK; drv 2702 drivers/net/wireless/intel/ipw2x00/ipw2100.c stats.rssi = sq->drv[i].rssi + IPW2100_RSSI_TO_DBM; drv 2703 drivers/net/wireless/intel/ipw2x00/ipw2100.c stats.len = sq->drv[i].frame_size; drv 2753 drivers/net/wireless/intel/ipw2x00/ipw2100.c rxq->drv[i].status.info.field = 0; drv 2822 drivers/net/wireless/intel/ipw2x00/ipw2100.c tbd = &txq->drv[packet->index]; drv 2892 drivers/net/wireless/intel/ipw2x00/ipw2100.c &txq->drv[i], drv 2894 drivers/net/wireless/intel/ipw2x00/ipw2100.c txq->drv[i].host_addr, txq->drv[i].buf_length); drv 2900 drivers/net/wireless/intel/ipw2x00/ipw2100.c &txq->drv[i], drv 2903 drivers/net/wireless/intel/ipw2x00/ipw2100.c (u32) txq->drv[i].host_addr, drv 2904 drivers/net/wireless/intel/ipw2x00/ipw2100.c txq->drv[i].buf_length); drv 2911 drivers/net/wireless/intel/ipw2x00/ipw2100.c if (txq->drv[txq->oldest].status.info.fields.txType != 0) drv 2919 drivers/net/wireless/intel/ipw2x00/ipw2100.c tbd = &txq->drv[(packet->index + 1 + i) % txq->entries]; drv 2948 drivers/net/wireless/intel/ipw2x00/ipw2100.c if (txq->drv[txq->oldest].status.info.fields.txType != 1) drv 3023 drivers/net/wireless/intel/ipw2x00/ipw2100.c &txq->drv[txq->next], drv 3029 drivers/net/wireless/intel/ipw2x00/ipw2100.c tbd = &txq->drv[txq->next]; drv 3103 drivers/net/wireless/intel/ipw2x00/ipw2100.c tbd = &txq->drv[txq->next]; drv 3154 drivers/net/wireless/intel/ipw2x00/ipw2100.c tbd = &txq->drv[txq->next]; drv 4325 drivers/net/wireless/intel/ipw2x00/ipw2100.c q->drv = pci_zalloc_consistent(priv->pci_dev, q->size, &q->nic); drv 4326 drivers/net/wireless/intel/ipw2x00/ipw2100.c if (!q->drv) { drv 4340 drivers/net/wireless/intel/ipw2x00/ipw2100.c if (priv->status_queue.drv) { drv 4342 drivers/net/wireless/intel/ipw2x00/ipw2100.c priv->status_queue.drv, drv 4344 drivers/net/wireless/intel/ipw2x00/ipw2100.c priv->status_queue.drv = NULL; drv 4359 drivers/net/wireless/intel/ipw2x00/ipw2100.c q->drv = pci_zalloc_consistent(priv->pci_dev, q->size, &q->nic); drv 4360 drivers/net/wireless/intel/ipw2x00/ipw2100.c if (!q->drv) { drv 4378 drivers/net/wireless/intel/ipw2x00/ipw2100.c if (q->drv) { drv 4379 drivers/net/wireless/intel/ipw2x00/ipw2100.c pci_free_consistent(priv->pci_dev, q->size, q->drv, q->nic); drv 4380 drivers/net/wireless/intel/ipw2x00/ipw2100.c q->drv = NULL; drv 4392 drivers/net/wireless/intel/ipw2x00/ipw2100.c IPW_DEBUG_INFO("initializing bd queue at virt=%p, phys=%08x\n", q->drv, drv 4601 drivers/net/wireless/intel/ipw2x00/ipw2100.c priv->rx_queue.drv[i].host_addr = packet->dma_addr; drv 4602 drivers/net/wireless/intel/ipw2x00/ipw2100.c priv->rx_queue.drv[i].buf_length = IPW_RX_NIC_BUFFER_LENGTH; drv 4603 drivers/net/wireless/intel/ipw2x00/ipw2100.c priv->status_queue.drv[i].status_fields = 0; drv 167 drivers/net/wireless/intel/ipw2x00/ipw2100.h struct ipw2100_bd *drv; drv 216 drivers/net/wireless/intel/ipw2x00/ipw2100.h struct ipw2100_status *drv; drv 723 drivers/net/wireless/intel/iwlegacy/4965-rs.c struct il_priv *il = lq_sta->drv; drv 765 drivers/net/wireless/intel/iwlegacy/4965-rs.c il4965_rs_get_adjacent_rate(lq_sta->drv, scale_idx, rate_mask, drv 773 drivers/net/wireless/intel/iwlegacy/4965-rs.c return il4965_rate_n_flags_from_tbl(lq_sta->drv, tbl, low, is_green); drv 814 drivers/net/wireless/intel/iwlegacy/4965-rs.c } else if (!lq_sta->drv) { drv 1638 drivers/net/wireless/intel/iwlegacy/4965-rs.c il = lq_sta->drv; drv 2207 drivers/net/wireless/intel/iwlegacy/4965-rs.c if (lq_sta && !lq_sta->drv) { drv 2340 drivers/net/wireless/intel/iwlegacy/4965-rs.c lq_sta->drv = il; drv 2507 drivers/net/wireless/intel/iwlegacy/4965-rs.c il = lq_sta->drv; drv 2540 drivers/net/wireless/intel/iwlegacy/4965-rs.c il = lq_sta->drv; drv 2560 drivers/net/wireless/intel/iwlegacy/4965-rs.c il_send_lq_cmd(lq_sta->drv, &lq_sta->lq, CMD_ASYNC, false); drv 2580 drivers/net/wireless/intel/iwlegacy/4965-rs.c il = lq_sta->drv; drv 2812 drivers/net/wireless/intel/iwlegacy/common.h struct il_priv *drv; drv 343 drivers/net/wireless/intel/iwlwifi/dvm/rs.c iwl_send_lq_cmd(lq_sta->drv, ctx, &lq_sta->lq, CMD_ASYNC, drv 782 drivers/net/wireless/intel/iwlwifi/dvm/rs.c struct iwl_priv *priv = lq_sta->drv; drv 822 drivers/net/wireless/intel/iwlwifi/dvm/rs.c high_low = rs_get_adjacent_rate(lq_sta->drv, scale_index, rate_mask, drv 830 drivers/net/wireless/intel/iwlwifi/dvm/rs.c return rate_n_flags_from_tbl(lq_sta->drv, tbl, low, is_green); drv 902 drivers/net/wireless/intel/iwlwifi/dvm/rs.c } else if (!lq_sta->drv) { drv 2100 drivers/net/wireless/intel/iwlwifi/dvm/rs.c priv = lq_sta->drv; drv 2718 drivers/net/wireless/intel/iwlwifi/dvm/rs.c if (lq_sta && !lq_sta->drv) { drv 2860 drivers/net/wireless/intel/iwlwifi/dvm/rs.c lq_sta->drv = priv; drv 3050 drivers/net/wireless/intel/iwlwifi/dvm/rs.c priv = lq_sta->drv; drv 3081 drivers/net/wireless/intel/iwlwifi/dvm/rs.c priv = lq_sta->drv; drv 3110 drivers/net/wireless/intel/iwlwifi/dvm/rs.c priv = lq_sta->drv; drv 361 drivers/net/wireless/intel/iwlwifi/dvm/rs.h struct iwl_priv *drv; drv 138 drivers/net/wireless/intel/iwlwifi/iwl-drv.c struct list_head drv; /* list of devices using this op_mode */ drv 156 drivers/net/wireless/intel/iwlwifi/iwl-drv.c static void iwl_free_fw_desc(struct iwl_drv *drv, struct fw_desc *desc) drv 163 drivers/net/wireless/intel/iwlwifi/iwl-drv.c static void iwl_free_fw_img(struct iwl_drv *drv, struct fw_img *img) drv 167 drivers/net/wireless/intel/iwlwifi/iwl-drv.c iwl_free_fw_desc(drv, &img->sec[i]); drv 171 drivers/net/wireless/intel/iwlwifi/iwl-drv.c static void iwl_dealloc_ucode(struct iwl_drv *drv) drv 175 drivers/net/wireless/intel/iwlwifi/iwl-drv.c kfree(drv->fw.dbg.dest_tlv); drv 176 drivers/net/wireless/intel/iwlwifi/iwl-drv.c for (i = 0; i < ARRAY_SIZE(drv->fw.dbg.conf_tlv); i++) drv 177 drivers/net/wireless/intel/iwlwifi/iwl-drv.c kfree(drv->fw.dbg.conf_tlv[i]); drv 178 drivers/net/wireless/intel/iwlwifi/iwl-drv.c for (i = 0; i < ARRAY_SIZE(drv->fw.dbg.trigger_tlv); i++) drv 179 drivers/net/wireless/intel/iwlwifi/iwl-drv.c kfree(drv->fw.dbg.trigger_tlv[i]); drv 180 drivers/net/wireless/intel/iwlwifi/iwl-drv.c kfree(drv->fw.dbg.mem_tlv); drv 181 drivers/net/wireless/intel/iwlwifi/iwl-drv.c kfree(drv->fw.iml); drv 182 drivers/net/wireless/intel/iwlwifi/iwl-drv.c kfree(drv->fw.ucode_capa.cmd_versions); drv 185 drivers/net/wireless/intel/iwlwifi/iwl-drv.c iwl_free_fw_img(drv, drv->fw.img + i); drv 188 drivers/net/wireless/intel/iwlwifi/iwl-drv.c static int iwl_alloc_fw_desc(struct iwl_drv *drv, struct fw_desc *desc, drv 213 drivers/net/wireless/intel/iwlwifi/iwl-drv.c static int iwl_request_firmware(struct iwl_drv *drv, bool first) drv 215 drivers/net/wireless/intel/iwlwifi/iwl-drv.c const struct iwl_cfg *cfg = drv->trans->cfg; drv 218 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (drv->trans->trans_cfg->device_family == IWL_DEVICE_FAMILY_9000 && drv 219 drivers/net/wireless/intel/iwlwifi/iwl-drv.c (CSR_HW_REV_STEP(drv->trans->hw_rev) != SILICON_B_STEP && drv 220 drivers/net/wireless/intel/iwlwifi/iwl-drv.c CSR_HW_REV_STEP(drv->trans->hw_rev) != SILICON_C_STEP)) { drv 221 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_ERR(drv, drv 223 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->trans->hw_rev); drv 228 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw_index = cfg->ucode_api_max; drv 229 drivers/net/wireless/intel/iwlwifi/iwl-drv.c sprintf(tag, "%d", drv->fw_index); drv 231 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw_index--; drv 232 drivers/net/wireless/intel/iwlwifi/iwl-drv.c sprintf(tag, "%d", drv->fw_index); drv 235 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (drv->fw_index < cfg->ucode_api_min) { drv 236 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_ERR(drv, "no suitable firmware found!\n"); drv 239 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_ERR(drv, "%s%d is required\n", cfg->fw_name_pre, drv 242 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_ERR(drv, "minimum version required: %s%d\n", drv 244 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_ERR(drv, "maximum version supported: %s%d\n", drv 248 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_ERR(drv, drv 253 drivers/net/wireless/intel/iwlwifi/iwl-drv.c snprintf(drv->firmware_name, sizeof(drv->firmware_name), "%s%s.ucode", drv 256 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_DEBUG_FW_INFO(drv, "attempting to load firmware '%s'\n", drv 257 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->firmware_name); drv 259 drivers/net/wireless/intel/iwlwifi/iwl-drv.c return request_firmware_nowait(THIS_MODULE, 1, drv->firmware_name, drv 260 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->trans->dev, drv 261 drivers/net/wireless/intel/iwlwifi/iwl-drv.c GFP_KERNEL, drv, iwl_req_fw_callback); drv 436 drivers/net/wireless/intel/iwlwifi/iwl-drv.c static int iwl_set_default_calib(struct iwl_drv *drv, const u8 *data) drv 442 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_ERR(drv, "Wrong ucode_type %u for default calibration.\n", drv 446 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.default_calib[ucode_type].flow_trigger = drv 448 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.default_calib[ucode_type].event_trigger = drv 454 drivers/net/wireless/intel/iwlwifi/iwl-drv.c static void iwl_set_ucode_api_flags(struct iwl_drv *drv, const u8 *data, drv 463 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_WARN(drv, drv 475 drivers/net/wireless/intel/iwlwifi/iwl-drv.c static void iwl_set_ucode_capabilities(struct iwl_drv *drv, const u8 *data, drv 484 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_WARN(drv, drv 496 drivers/net/wireless/intel/iwlwifi/iwl-drv.c static int iwl_parse_v1_v2_firmware(struct iwl_drv *drv, drv 505 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.ucode_ver = le32_to_cpu(ucode->ver); drv 506 drivers/net/wireless/intel/iwlwifi/iwl-drv.c api_ver = IWL_UCODE_API(drv->fw.ucode_ver); drv 512 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_ERR(drv, "File size too small!\n"); drv 531 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_ERR(drv, "File size too small!\n"); drv 552 drivers/net/wireless/intel/iwlwifi/iwl-drv.c snprintf(drv->fw.fw_version, drv 553 drivers/net/wireless/intel/iwlwifi/iwl-drv.c sizeof(drv->fw.fw_version), drv 555 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_UCODE_MAJOR(drv->fw.ucode_ver), drv 556 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_UCODE_MINOR(drv->fw.ucode_ver), drv 557 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_UCODE_API(drv->fw.ucode_ver), drv 558 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_UCODE_SERIAL(drv->fw.ucode_ver), drv 569 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_ERR(drv, drv 597 drivers/net/wireless/intel/iwlwifi/iwl-drv.c static int iwl_parse_tlv_firmware(struct iwl_drv *drv, drv 617 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_ERR(drv, "uCode has invalid length: %zd\n", len); drv 622 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_ERR(drv, "invalid uCode magic: 0X%x\n", drv 627 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.ucode_ver = le32_to_cpu(ucode->ver); drv 628 drivers/net/wireless/intel/iwlwifi/iwl-drv.c memcpy(drv->fw.human_readable, ucode->human_readable, drv 629 drivers/net/wireless/intel/iwlwifi/iwl-drv.c sizeof(drv->fw.human_readable)); drv 637 drivers/net/wireless/intel/iwlwifi/iwl-drv.c snprintf(drv->fw.fw_version, drv 638 drivers/net/wireless/intel/iwlwifi/iwl-drv.c sizeof(drv->fw.fw_version), drv 640 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_UCODE_MAJOR(drv->fw.ucode_ver), drv 641 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_UCODE_MINOR(drv->fw.ucode_ver), drv 642 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_UCODE_API(drv->fw.ucode_ver), drv 643 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_UCODE_SERIAL(drv->fw.ucode_ver), drv 659 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_ERR(drv, "invalid TLV len: %zd/%u\n", drv 704 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_ERR(drv, "Found unexpected BOOT ucode\n"); drv 736 drivers/net/wireless/intel/iwlwifi/iwl-drv.c iwl_set_ucode_api_flags(drv, tlv_data, capa); drv 741 drivers/net/wireless/intel/iwlwifi/iwl-drv.c iwl_set_ucode_capabilities(drv, tlv_data, capa); drv 782 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.enhance_sensitivity_table = true; drv 811 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.type = IWL_FW_MVM; drv 816 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.type = IWL_FW_MVM; drv 821 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.type = IWL_FW_MVM; drv 826 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (iwl_set_default_calib(drv, tlv_data)) drv 832 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.phy_config = le32_to_cpup((__le32 *)tlv_data); drv 833 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.valid_tx_ant = (drv->fw.phy_config & drv 836 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.valid_rx_ant = (drv->fw.phy_config & drv 843 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.type = IWL_FW_MVM; drv 848 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.type = IWL_FW_MVM; drv 853 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.type = IWL_FW_MVM; drv 862 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.img[IWL_UCODE_REGULAR].is_dual_cpus = drv 864 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.img[IWL_UCODE_INIT].is_dual_cpus = drv 866 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.img[IWL_UCODE_WOWLAN].is_dual_cpus = drv 869 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_ERR(drv, "Driver support upto 2 CPUs\n"); drv 874 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (iwl_store_cscheme(&drv->fw, tlv_data, tlv_len)) drv 896 drivers/net/wireless/intel/iwlwifi/iwl-drv.c snprintf(drv->fw.fw_version, drv 897 drivers/net/wireless/intel/iwlwifi/iwl-drv.c sizeof(drv->fw.fw_version), drv 900 drivers/net/wireless/intel/iwlwifi/iwl-drv.c snprintf(drv->fw.fw_version, drv 901 drivers/net/wireless/intel/iwlwifi/iwl-drv.c sizeof(drv->fw.fw_version), drv 916 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_ERR(drv, drv 923 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_ERR(drv, drv 938 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_INFO(drv, "Found debug destination: %s\n", drv 941 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.dbg.n_dest_reg = (dest_v1) ? drv 949 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.dbg.n_dest_reg /= drv 950 drivers/net/wireless/intel/iwlwifi/iwl-drv.c sizeof(drv->fw.dbg.dest_tlv->reg_ops[0]); drv 958 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_ERR(drv, drv 964 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (conf->id >= ARRAY_SIZE(drv->fw.dbg.conf_tlv)) { drv 965 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_ERR(drv, drv 972 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_ERR(drv, drv 981 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_INFO(drv, "Found debug configuration: %d\n", drv 993 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (trigger_id >= ARRAY_SIZE(drv->fw.dbg.trigger_tlv)) { drv 994 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_ERR(drv, drv 1001 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_ERR(drv, drv 1007 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_INFO(drv, "Found debug trigger: %u\n", trigger->id); drv 1015 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_ERR(drv, drv 1020 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.dbg.dump_mask = drv 1035 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_DEBUG_FW(drv, drv 1040 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_ERR(drv, drv 1047 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_ERR(drv, drv 1053 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.img[IWL_UCODE_REGULAR].paging_mem_size = drv 1056 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.img[usniffer_img].paging_mem_size = drv 1071 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_DEBUG_INFO(drv, "Found debug memory segment: %u\n", drv 1085 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.iml_len = tlv_len; drv 1086 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.iml = kmemdup(tlv_data, tlv_len, GFP_KERNEL); drv 1087 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (!drv->fw.iml) drv 1113 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_INFO(drv, "TLV_FW_FSEQ_VERSION: %s\n", drv 1123 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (drv->trans->trans_cfg->device_family < drv 1126 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->trans->dbg.umac_error_event_table = drv 1129 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->trans->dbg.error_event_table_tlv_status |= drv 1139 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (drv->trans->trans_cfg->device_family < drv 1142 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->trans->dbg.lmac_error_event_table[0] = drv 1145 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->trans->dbg.error_event_table_tlv_status |= drv 1155 drivers/net/wireless/intel/iwlwifi/iwl-drv.c iwl_dbg_tlv_alloc(drv->trans, tlv, false); drv 1159 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_ERR(drv, drv 1175 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_DEBUG_INFO(drv, "unknown TLV: %d\n", tlv_type); drv 1182 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_ERR(drv, drv 1188 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_ERR(drv, "invalid TLV after parsing: %zd\n", len); drv 1189 drivers/net/wireless/intel/iwlwifi/iwl-drv.c iwl_print_hex_dump(drv, IWL_DL_FW, (u8 *)data, len); drv 1196 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_ERR(drv, "TLV %d has invalid size: %u\n", tlv_type, tlv_len); drv 1198 drivers/net/wireless/intel/iwlwifi/iwl-drv.c iwl_print_hex_dump(drv, IWL_DL_FW, tlv_data, tlv_len); drv 1203 drivers/net/wireless/intel/iwlwifi/iwl-drv.c static int iwl_alloc_ucode(struct iwl_drv *drv, drv 1213 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.img[type].sec = sec; drv 1214 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.img[type].num_sec = pieces->img[type].sec_counter; drv 1217 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (iwl_alloc_fw_desc(drv, &sec[i], get_sec(pieces, type, i))) drv 1223 drivers/net/wireless/intel/iwlwifi/iwl-drv.c static int validate_sec_sizes(struct iwl_drv *drv, drv 1227 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_DEBUG_INFO(drv, "f/w package hdr runtime inst size = %zd\n", drv 1230 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_DEBUG_INFO(drv, "f/w package hdr runtime data size = %zd\n", drv 1233 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_DEBUG_INFO(drv, "f/w package hdr init inst size = %zd\n", drv 1235 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_DEBUG_INFO(drv, "f/w package hdr init data size = %zd\n", drv 1241 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_ERR(drv, "uCode instr len %zd too large to fit in\n", drv 1249 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_ERR(drv, "uCode data len %zd too large to fit in\n", drv 1257 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_ERR(drv, "uCode init instr len %zd too large to fit in\n", drv 1265 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_ERR(drv, "uCode init data len %zd too large to fit in\n", drv 1274 drivers/net/wireless/intel/iwlwifi/iwl-drv.c _iwl_op_mode_start(struct iwl_drv *drv, struct iwlwifi_opmode_table *op) drv 1281 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->dbgfs_op_mode = debugfs_create_dir(op->name, drv 1282 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->dbgfs_drv); drv 1283 drivers/net/wireless/intel/iwlwifi/iwl-drv.c dbgfs_dir = drv->dbgfs_op_mode; drv 1286 drivers/net/wireless/intel/iwlwifi/iwl-drv.c op_mode = ops->start(drv->trans, drv->trans->cfg, &drv->fw, dbgfs_dir); drv 1290 drivers/net/wireless/intel/iwlwifi/iwl-drv.c debugfs_remove_recursive(drv->dbgfs_op_mode); drv 1291 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->dbgfs_op_mode = NULL; drv 1298 drivers/net/wireless/intel/iwlwifi/iwl-drv.c static void _iwl_op_mode_stop(struct iwl_drv *drv) drv 1301 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (drv->op_mode) { drv 1302 drivers/net/wireless/intel/iwlwifi/iwl-drv.c iwl_op_mode_stop(drv->op_mode); drv 1303 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->op_mode = NULL; drv 1306 drivers/net/wireless/intel/iwlwifi/iwl-drv.c debugfs_remove_recursive(drv->dbgfs_op_mode); drv 1307 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->dbgfs_op_mode = NULL; drv 1320 drivers/net/wireless/intel/iwlwifi/iwl-drv.c struct iwl_drv *drv = context; drv 1321 drivers/net/wireless/intel/iwlwifi/iwl-drv.c struct iwl_fw *fw = &drv->fw; drv 1326 drivers/net/wireless/intel/iwlwifi/iwl-drv.c const unsigned int api_max = drv->trans->cfg->ucode_api_max; drv 1327 drivers/net/wireless/intel/iwlwifi/iwl-drv.c const unsigned int api_min = drv->trans->cfg->ucode_api_min; drv 1348 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_DEBUG_FW_INFO(drv, "Loaded firmware file '%s' (%zd bytes).\n", drv 1349 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->firmware_name, ucode_raw->size); drv 1353 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_ERR(drv, "File size way too small!\n"); drv 1361 drivers/net/wireless/intel/iwlwifi/iwl-drv.c err = iwl_parse_v1_v2_firmware(drv, ucode_raw, pieces); drv 1363 drivers/net/wireless/intel/iwlwifi/iwl-drv.c err = iwl_parse_tlv_firmware(drv, ucode_raw, pieces, drv 1369 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (fw_has_api(&drv->fw.ucode_capa, IWL_UCODE_TLV_API_NEW_VERSION)) drv 1370 drivers/net/wireless/intel/iwlwifi/iwl-drv.c api_ver = drv->fw.ucode_ver; drv 1372 drivers/net/wireless/intel/iwlwifi/iwl-drv.c api_ver = IWL_UCODE_API(drv->fw.ucode_ver); drv 1380 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_ERR(drv, drv 1391 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (fw->type == IWL_FW_DVM && validate_sec_sizes(drv, pieces, drv 1392 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->trans->cfg)) drv 1402 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (iwl_alloc_ucode(drv, pieces, i)) drv 1406 drivers/net/wireless/intel/iwlwifi/iwl-drv.c size_t dbg_dest_size = sizeof(*drv->fw.dbg.dest_tlv) + drv 1407 drivers/net/wireless/intel/iwlwifi/iwl-drv.c sizeof(drv->fw.dbg.dest_tlv->reg_ops[0]) * drv 1408 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.dbg.n_dest_reg; drv 1410 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.dbg.dest_tlv = kmalloc(dbg_dest_size, GFP_KERNEL); drv 1412 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (!drv->fw.dbg.dest_tlv) drv 1416 drivers/net/wireless/intel/iwlwifi/iwl-drv.c memcpy(drv->fw.dbg.dest_tlv, pieces->dbg_dest_tlv_v1, drv 1420 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.dbg.dest_tlv; drv 1435 drivers/net/wireless/intel/iwlwifi/iwl-drv.c sizeof(drv->fw.dbg.dest_tlv->reg_ops[0]) * drv 1436 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.dbg.n_dest_reg); drv 1452 drivers/net/wireless/intel/iwlwifi/iwl-drv.c for (i = 0; i < ARRAY_SIZE(drv->fw.dbg.conf_tlv); i++) { drv 1454 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.dbg.conf_tlv[i] = drv 1485 drivers/net/wireless/intel/iwlwifi/iwl-drv.c for (i = 0; i < ARRAY_SIZE(drv->fw.dbg.trigger_tlv); i++) { drv 1498 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.dbg.trigger_tlv_len[i] = drv 1500 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.dbg.trigger_tlv[i] = drv 1502 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.dbg.trigger_tlv_len[i], drv 1504 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (!drv->fw.dbg.trigger_tlv[i]) drv 1511 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.dbg.mem_tlv = pieces->dbg_mem_tlv; drv 1513 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.dbg.n_mem_tlv = pieces->n_mem_tlv; drv 1525 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->trans->trans_cfg->base_params->max_event_log_size; drv 1532 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->trans->trans_cfg->base_params->max_event_log_size; drv 1560 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_INFO(drv, "loaded firmware version %s op_mode %s\n", drv 1561 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->fw.fw_version, op->name); drv 1564 drivers/net/wireless/intel/iwlwifi/iwl-drv.c list_add_tail(&drv->list, &op->drv); drv 1567 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->op_mode = _iwl_op_mode_start(drv, op); drv 1569 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (!drv->op_mode) { drv 1583 drivers/net/wireless/intel/iwlwifi/iwl-drv.c complete(&drv->request_firmware_complete); drv 1594 drivers/net/wireless/intel/iwlwifi/iwl-drv.c IWL_ERR(drv, drv 1604 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (iwl_request_firmware(drv, false)) drv 1611 drivers/net/wireless/intel/iwlwifi/iwl-drv.c complete(&drv->request_firmware_complete); drv 1612 drivers/net/wireless/intel/iwlwifi/iwl-drv.c device_release_driver(drv->trans->dev); drv 1624 drivers/net/wireless/intel/iwlwifi/iwl-drv.c struct iwl_drv *drv; drv 1627 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv = kzalloc(sizeof(*drv), GFP_KERNEL); drv 1628 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (!drv) { drv 1633 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->trans = trans; drv 1634 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->dev = trans->dev; drv 1636 drivers/net/wireless/intel/iwlwifi/iwl-drv.c init_completion(&drv->request_firmware_complete); drv 1637 drivers/net/wireless/intel/iwlwifi/iwl-drv.c INIT_LIST_HEAD(&drv->list); drv 1639 drivers/net/wireless/intel/iwlwifi/iwl-drv.c iwl_dbg_tlv_load_bin(drv->trans->dev, drv->trans); drv 1643 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->dbgfs_drv = debugfs_create_dir(dev_name(trans->dev), drv 1647 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->trans->dbgfs_dir = debugfs_create_dir("trans", drv->dbgfs_drv); drv 1650 drivers/net/wireless/intel/iwlwifi/iwl-drv.c ret = iwl_request_firmware(drv, true); drv 1656 drivers/net/wireless/intel/iwlwifi/iwl-drv.c return drv; drv 1660 drivers/net/wireless/intel/iwlwifi/iwl-drv.c debugfs_remove_recursive(drv->dbgfs_drv); drv 1661 drivers/net/wireless/intel/iwlwifi/iwl-drv.c iwl_dbg_tlv_free(drv->trans); drv 1663 drivers/net/wireless/intel/iwlwifi/iwl-drv.c kfree(drv); drv 1668 drivers/net/wireless/intel/iwlwifi/iwl-drv.c void iwl_drv_stop(struct iwl_drv *drv) drv 1670 drivers/net/wireless/intel/iwlwifi/iwl-drv.c wait_for_completion(&drv->request_firmware_complete); drv 1672 drivers/net/wireless/intel/iwlwifi/iwl-drv.c _iwl_op_mode_stop(drv); drv 1674 drivers/net/wireless/intel/iwlwifi/iwl-drv.c iwl_dealloc_ucode(drv); drv 1682 drivers/net/wireless/intel/iwlwifi/iwl-drv.c if (!list_empty(&drv->list)) drv 1683 drivers/net/wireless/intel/iwlwifi/iwl-drv.c list_del(&drv->list); drv 1687 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->trans->ops->debugfs_cleanup(drv->trans); drv 1689 drivers/net/wireless/intel/iwlwifi/iwl-drv.c debugfs_remove_recursive(drv->dbgfs_drv); drv 1692 drivers/net/wireless/intel/iwlwifi/iwl-drv.c iwl_dbg_tlv_free(drv->trans); drv 1694 drivers/net/wireless/intel/iwlwifi/iwl-drv.c kfree(drv); drv 1711 drivers/net/wireless/intel/iwlwifi/iwl-drv.c struct iwl_drv *drv; drv 1721 drivers/net/wireless/intel/iwlwifi/iwl-drv.c list_for_each_entry(drv, &op->drv, list) drv 1722 drivers/net/wireless/intel/iwlwifi/iwl-drv.c drv->op_mode = _iwl_op_mode_start(drv, op); drv 1735 drivers/net/wireless/intel/iwlwifi/iwl-drv.c struct iwl_drv *drv; drv 1744 drivers/net/wireless/intel/iwlwifi/iwl-drv.c list_for_each_entry(drv, &iwlwifi_opmode_table[i].drv, list) drv 1745 drivers/net/wireless/intel/iwlwifi/iwl-drv.c _iwl_op_mode_stop(drv); drv 1761 drivers/net/wireless/intel/iwlwifi/iwl-drv.c INIT_LIST_HEAD(&iwlwifi_opmode_table[i].drv); drv 133 drivers/net/wireless/intel/iwlwifi/iwl-drv.h void iwl_drv_stop(struct iwl_drv *drv); drv 787 drivers/net/wireless/intel/iwlwifi/iwl-trans.h struct iwl_drv *drv; drv 432 drivers/net/wireless/intel/iwlwifi/mvm/debugfs.c struct iwl_mvm *mvm = lq_sta->pers.drv; drv 489 drivers/net/wireless/intel/iwlwifi/mvm/rs-fw.c lq_sta->pers.drv = mvm; drv 1085 drivers/net/wireless/intel/iwlwifi/mvm/rs.c struct iwl_mvm *mvm = lq_sta->pers.drv; drv 1104 drivers/net/wireless/intel/iwlwifi/mvm/rs.c struct iwl_mvm *mvm = lq_sta->pers.drv; drv 1460 drivers/net/wireless/intel/iwlwifi/mvm/rs.c mvm = lq_sta->pers.drv; drv 2762 drivers/net/wireless/intel/iwlwifi/mvm/rs.c lq_sta->pers.drv = mvm; drv 3082 drivers/net/wireless/intel/iwlwifi/mvm/rs.c if (!lq_sta->pers.drv) { drv 3768 drivers/net/wireless/intel/iwlwifi/mvm/rs.c iwl_mvm_send_lq_cmd(lq_sta->pers.drv, &lq_sta->lq); drv 3781 drivers/net/wireless/intel/iwlwifi/mvm/rs.c mvm = lq_sta->pers.drv; drv 3814 drivers/net/wireless/intel/iwlwifi/mvm/rs.c mvm = lq_sta->pers.drv; drv 4063 drivers/net/wireless/intel/iwlwifi/mvm/rs.c struct iwl_mvm *mvm = lq_sta->pers.drv; drv 249 drivers/net/wireless/intel/iwlwifi/mvm/rs.h struct iwl_mvm *drv; drv 392 drivers/net/wireless/intel/iwlwifi/mvm/rs.h struct iwl_mvm *drv; drv 1148 drivers/net/wireless/intel/iwlwifi/pcie/drv.c iwl_trans->drv = iwl_drv_start(iwl_trans); drv 1150 drivers/net/wireless/intel/iwlwifi/pcie/drv.c if (IS_ERR(iwl_trans->drv)) { drv 1151 drivers/net/wireless/intel/iwlwifi/pcie/drv.c ret = PTR_ERR(iwl_trans->drv); drv 1175 drivers/net/wireless/intel/iwlwifi/pcie/drv.c iwl_drv_stop(trans->drv); drv 1377 drivers/net/wireless/marvell/libertas/if_sdio.c .drv = { drv 538 drivers/net/wireless/marvell/mwifiex/sdio.c .drv = { drv 166 drivers/net/wireless/mediatek/mt76/dma.c dev->drv->tx_complete_skb(dev, qid, &entry); drv 169 drivers/net/wireless/mediatek/mt76/dma.c if (!(dev->drv->txwi_flags & MT_TXWI_NO_FREE)) drv 304 drivers/net/wireless/mediatek/mt76/dma.c if (dev->drv->tx_aligned4_skbs) drv 313 drivers/net/wireless/mediatek/mt76/dma.c tx_info.buf[n++].len = dev->drv->txwi_size; drv 331 drivers/net/wireless/mediatek/mt76/dma.c dma_sync_single_for_cpu(dev->dev, t->dma_addr, dev->drv->txwi_size, drv 333 drivers/net/wireless/mediatek/mt76/dma.c ret = dev->drv->tx_prepare_skb(dev, txwi, qid, wcid, sta, &tx_info); drv 334 drivers/net/wireless/mediatek/mt76/dma.c dma_sync_single_for_device(dev->dev, t->dma_addr, dev->drv->txwi_size, drv 355 drivers/net/wireless/mediatek/mt76/dma.c dev->drv->tx_complete_skb(dev, qid, &e); drv 463 drivers/net/wireless/mediatek/mt76/dma.c dev->drv->rx_skb(dev, q - dev->q_rx, skb); drv 519 drivers/net/wireless/mediatek/mt76/dma.c dev->drv->rx_skb(dev, q - dev->q_rx, skb); drv 547 drivers/net/wireless/mediatek/mt76/dma.c dev->drv->rx_poll_complete(dev, qid); drv 277 drivers/net/wireless/mediatek/mt76/mac80211.c dev->drv = drv_ops; drv 411 drivers/net/wireless/mediatek/mt76/mac80211.c if (dev->drv->update_survey) drv 412 drivers/net/wireless/mediatek/mt76/mac80211.c dev->drv->update_survey(dev); drv 435 drivers/net/wireless/mediatek/mt76/mac80211.c if (idx == 0 && dev->drv->update_survey) drv 436 drivers/net/wireless/mediatek/mt76/mac80211.c dev->drv->update_survey(dev); drv 607 drivers/net/wireless/mediatek/mt76/mac80211.c dev->drv->sta_ps(dev, sta, ps); drv 671 drivers/net/wireless/mediatek/mt76/mac80211.c ret = dev->drv->sta_add(dev, vif, sta); drv 708 drivers/net/wireless/mediatek/mt76/mac80211.c if (dev->drv->sta_remove) drv 709 drivers/net/wireless/mediatek/mt76/mac80211.c dev->drv->sta_remove(dev, vif, sta); drv 740 drivers/net/wireless/mediatek/mt76/mac80211.c dev->drv->sta_assoc) drv 741 drivers/net/wireless/mediatek/mt76/mac80211.c dev->drv->sta_assoc(dev, vif, sta); drv 435 drivers/net/wireless/mediatek/mt76/mt76.h const struct mt76_driver_ops *drv; drv 638 drivers/net/wireless/mediatek/mt76/mt76.h return (u8 *)t - dev->drv->txwi_size; drv 819 drivers/net/wireless/mediatek/mt76/mt7615/mac.c t = (struct mt76_txwi_cache *)(txwi + mdev->drv->txwi_size); drv 16 drivers/net/wireless/mediatek/mt76/tx.c size = L1_CACHE_ALIGN(dev->drv->txwi_size + sizeof(*t)); drv 21 drivers/net/wireless/mediatek/mt76/tx.c addr = dma_map_single(dev->dev, txwi, dev->drv->txwi_size, drv 23 drivers/net/wireless/mediatek/mt76/tx.c t = (struct mt76_txwi_cache *)(txwi + dev->drv->txwi_size); drv 73 drivers/net/wireless/mediatek/mt76/tx.c dma_unmap_single(dev->dev, t->dma_addr, dev->drv->txwi_size, drv 490 drivers/net/wireless/mediatek/mt76/usb.c dev->drv->rx_skb(dev, MT_RXQ_MAIN, skb); drv 681 drivers/net/wireless/mediatek/mt76/usb.c dev->drv->tx_complete_skb(dev, i, &entry); drv 724 drivers/net/wireless/mediatek/mt76/usb.c if (!dev->drv->tx_status_data(dev, &update)) drv 783 drivers/net/wireless/mediatek/mt76/usb.c err = dev->drv->tx_prepare_skb(dev, NULL, qid, wcid, sta, &tx_info); drv 906 drivers/net/wireless/mediatek/mt76/usb.c dev->drv->tx_complete_skb(dev, i, &entry); drv 74 drivers/net/wireless/ralink/rt2x00/rt2800lib.h const struct rt2800_ops *rt2800ops = rt2x00dev->ops->drv; drv 82 drivers/net/wireless/ralink/rt2x00/rt2800lib.h const struct rt2800_ops *rt2800ops = rt2x00dev->ops->drv; drv 91 drivers/net/wireless/ralink/rt2x00/rt2800lib.h const struct rt2800_ops *rt2800ops = rt2x00dev->ops->drv; drv 100 drivers/net/wireless/ralink/rt2x00/rt2800lib.h const struct rt2800_ops *rt2800ops = rt2x00dev->ops->drv; drv 109 drivers/net/wireless/ralink/rt2x00/rt2800lib.h const struct rt2800_ops *rt2800ops = rt2x00dev->ops->drv; drv 119 drivers/net/wireless/ralink/rt2x00/rt2800lib.h const struct rt2800_ops *rt2800ops = rt2x00dev->ops->drv; drv 129 drivers/net/wireless/ralink/rt2x00/rt2800lib.h const struct rt2800_ops *rt2800ops = rt2x00dev->ops->drv; drv 136 drivers/net/wireless/ralink/rt2x00/rt2800lib.h const struct rt2800_ops *rt2800ops = rt2x00dev->ops->drv; drv 143 drivers/net/wireless/ralink/rt2x00/rt2800lib.h const struct rt2800_ops *rt2800ops = rt2x00dev->ops->drv; drv 151 drivers/net/wireless/ralink/rt2x00/rt2800lib.h const struct rt2800_ops *rt2800ops = rt2x00dev->ops->drv; drv 158 drivers/net/wireless/ralink/rt2x00/rt2800lib.h const struct rt2800_ops *rt2800ops = rt2x00dev->ops->drv; drv 165 drivers/net/wireless/ralink/rt2x00/rt2800lib.h const struct rt2800_ops *rt2800ops = entry->queue->rt2x00dev->ops->drv; drv 172 drivers/net/wireless/ralink/rt2x00/rt2800lib.h const struct rt2800_ops *rt2800ops = queue->rt2x00dev->ops->drv; drv 383 drivers/net/wireless/ralink/rt2x00/rt2800pci.c .drv = &rt2800pci_rt2800_ops, drv 228 drivers/net/wireless/ralink/rt2x00/rt2800soc.c .drv = &rt2800soc_rt2800_ops, drv 764 drivers/net/wireless/ralink/rt2x00/rt2800usb.c .drv = &rt2800usb_rt2800_ops, drv 639 drivers/net/wireless/ralink/rt2x00/rt2x00.h const void *drv; drv 1537 drivers/net/wireless/rsi/rsi_91x_sdio.c .drv = { drv 379 drivers/net/wireless/st/cw1200/cw1200_sdio.c .drv = { drv 351 drivers/net/wireless/ti/wl1251/sdio.c .drv.pm = &wl1251_sdio_pm_ops, drv 448 drivers/net/wireless/ti/wlcore/sdio.c .drv = { drv 86 drivers/ntb/core.c memset(&client->drv, 0, sizeof(client->drv)); drv 87 drivers/ntb/core.c client->drv.bus = &ntb_bus; drv 88 drivers/ntb/core.c client->drv.name = mod_name; drv 89 drivers/ntb/core.c client->drv.owner = mod; drv 91 drivers/ntb/core.c return driver_register(&client->drv); drv 97 drivers/ntb/core.c driver_unregister(&client->drv); drv 287 drivers/ntb/ntb_transport.c struct device_driver *drv) drv 289 drivers/ntb/ntb_transport.c return !strncmp(dev_name(dev), drv->name, strlen(drv->name)); drv 440 drivers/ntb/ntb_transport.c int ntb_transport_register_client(struct ntb_transport_client *drv) drv 442 drivers/ntb/ntb_transport.c drv->driver.bus = &ntb_transport_bus; drv 447 drivers/ntb/ntb_transport.c return driver_register(&drv->driver); drv 459 drivers/ntb/ntb_transport.c void ntb_transport_unregister_client(struct ntb_transport_client *drv) drv 461 drivers/ntb/ntb_transport.c driver_unregister(&drv->driver); drv 323 drivers/nvdimm/blk.c .drv = { drv 336 drivers/nvdimm/blk.c driver_unregister(&nd_blk_driver.drv); drv 283 drivers/nvdimm/bus.c static int nvdimm_bus_match(struct device *dev, struct device_driver *drv); drv 470 drivers/nvdimm/bus.c .drv = { drv 479 drivers/nvdimm/bus.c static int nvdimm_bus_match(struct device *dev, struct device_driver *drv) drv 481 drivers/nvdimm/bus.c struct nd_device_driver *nd_drv = to_nd_device_driver(drv); drv 605 drivers/nvdimm/bus.c struct device_driver *drv = &nd_drv->drv; drv 618 drivers/nvdimm/bus.c drv->bus = &nvdimm_bus_type; drv 619 drivers/nvdimm/bus.c drv->owner = owner; drv 620 drivers/nvdimm/bus.c drv->mod_name = mod_name; drv 622 drivers/nvdimm/bus.c return driver_register(drv); drv 1268 drivers/nvdimm/bus.c rc = driver_register(&nd_bus_driver.drv); drv 1288 drivers/nvdimm/bus.c driver_unregister(&nd_bus_driver.drv); drv 134 drivers/nvdimm/dimm.c .drv = { drv 147 drivers/nvdimm/dimm.c driver_unregister(&nvdimm_driver.drv); drv 620 drivers/nvdimm/pmem.c .drv = { drv 143 drivers/nvdimm/region.c .drv = { drv 156 drivers/nvdimm/region.c driver_unregister(&nd_region_driver.drv); drv 115 drivers/parport/share.c struct parport_driver *drv; drv 120 drivers/parport/share.c drv = to_parport_driver(dev->driver); drv 121 drivers/parport/share.c if (!drv->probe) { drv 125 drivers/parport/share.c if (strcmp(par_dev->name, drv->name)) drv 130 drivers/parport/share.c return drv->probe(to_pardevice(dev)); drv 157 drivers/parport/share.c struct parport_driver *drv = to_parport_driver(dev_drv); drv 159 drivers/parport/share.c if (drv->match_port) drv 160 drivers/parport/share.c drv->match_port(port); drv 168 drivers/parport/share.c struct parport_driver *drv; drv 170 drivers/parport/share.c list_for_each_entry(drv, &drivers, list) drv 171 drivers/parport/share.c drv->attach(port); drv 184 drivers/parport/share.c struct parport_driver *drv = to_parport_driver(_drv); drv 186 drivers/parport/share.c if (drv->detach) drv 187 drivers/parport/share.c drv->detach(port); drv 194 drivers/parport/share.c struct parport_driver *drv; drv 196 drivers/parport/share.c list_for_each_entry(drv, &drivers, list) drv 197 drivers/parport/share.c drv->detach(port); drv 225 drivers/parport/share.c struct parport_driver *drv = dev_drv; drv 229 drivers/parport/share.c drv->match_port(to_parport_dev(dev)); drv 278 drivers/parport/share.c int __parport_register_driver(struct parport_driver *drv, struct module *owner, drv 284 drivers/parport/share.c if (drv->devmodel) { drv 289 drivers/parport/share.c drv->driver.name = drv->name; drv 290 drivers/parport/share.c drv->driver.bus = &parport_bus_type; drv 291 drivers/parport/share.c drv->driver.owner = owner; drv 292 drivers/parport/share.c drv->driver.mod_name = mod_name; drv 293 drivers/parport/share.c ret = driver_register(&drv->driver); drv 307 drivers/parport/share.c if (drv->match_port) drv 308 drivers/parport/share.c bus_for_each_dev(&parport_bus_type, NULL, drv, drv 314 drivers/parport/share.c drv->devmodel = false; drv 318 drivers/parport/share.c drv->attach(port); drv 319 drivers/parport/share.c list_add(&drv->list, &drivers); drv 329 drivers/parport/share.c struct parport_driver *drv = _drv; drv 331 drivers/parport/share.c if (is_parport(dev) && drv->detach) drv 332 drivers/parport/share.c drv->detach(to_parport_dev(dev)); drv 354 drivers/parport/share.c void parport_unregister_driver(struct parport_driver *drv) drv 359 drivers/parport/share.c if (drv->devmodel) { drv 360 drivers/parport/share.c bus_for_each_dev(&parport_bus_type, NULL, drv, port_detach); drv 361 drivers/parport/share.c driver_unregister(&drv->driver); drv 363 drivers/parport/share.c list_del_init(&drv->list); drv 365 drivers/parport/share.c drv->detach(port); drv 332 drivers/pci/endpoint/pci-epf-core.c static int pci_epf_device_match(struct device *dev, struct device_driver *drv) drv 335 drivers/pci/endpoint/pci-epf-core.c struct pci_epf_driver *driver = to_pci_epf_driver(drv); drv 340 drivers/pci/endpoint/pci-epf-core.c return !strcmp(epf->name, drv->name); drv 50 drivers/pci/pci-driver.c int pci_add_dynid(struct pci_driver *drv, drv 70 drivers/pci/pci-driver.c spin_lock(&drv->dynids.lock); drv 71 drivers/pci/pci-driver.c list_add_tail(&dynid->node, &drv->dynids.list); drv 72 drivers/pci/pci-driver.c spin_unlock(&drv->dynids.lock); drv 74 drivers/pci/pci-driver.c return driver_attach(&drv->driver); drv 78 drivers/pci/pci-driver.c static void pci_free_dynids(struct pci_driver *drv) drv 82 drivers/pci/pci-driver.c spin_lock(&drv->dynids.lock); drv 83 drivers/pci/pci-driver.c list_for_each_entry_safe(dynid, n, &drv->dynids.list, node) { drv 87 drivers/pci/pci-driver.c spin_unlock(&drv->dynids.lock); drv 251 drivers/pci/pci-driver.c static const struct pci_device_id *pci_match_device(struct pci_driver *drv, drv 258 drivers/pci/pci-driver.c if (dev->driver_override && strcmp(dev->driver_override, drv->name)) drv 262 drivers/pci/pci-driver.c spin_lock(&drv->dynids.lock); drv 263 drivers/pci/pci-driver.c list_for_each_entry(dynid, &drv->dynids.list, node) { drv 269 drivers/pci/pci-driver.c spin_unlock(&drv->dynids.lock); drv 272 drivers/pci/pci-driver.c found_id = pci_match_id(drv->id_table, dev); drv 282 drivers/pci/pci-driver.c struct pci_driver *drv; drv 291 drivers/pci/pci-driver.c struct pci_driver *pci_drv = ddi->drv; drv 331 drivers/pci/pci-driver.c static int pci_call_probe(struct pci_driver *drv, struct pci_dev *dev, drv 335 drivers/pci/pci-driver.c struct drv_dev_and_id ddi = { drv, dev, id }; drv 375 drivers/pci/pci-driver.c static int __pci_device_probe(struct pci_driver *drv, struct pci_dev *pci_dev) drv 380 drivers/pci/pci-driver.c if (!pci_dev->driver && drv->probe) { drv 383 drivers/pci/pci-driver.c id = pci_match_device(drv, pci_dev); drv 385 drivers/pci/pci-driver.c error = pci_call_probe(drv, pci_dev, id); drv 416 drivers/pci/pci-driver.c struct pci_driver *drv = to_pci_driver(dev->driver); drv 428 drivers/pci/pci-driver.c error = __pci_device_probe(drv, pci_dev); drv 440 drivers/pci/pci-driver.c struct pci_driver *drv = pci_dev->driver; drv 442 drivers/pci/pci-driver.c if (drv) { drv 443 drivers/pci/pci-driver.c if (drv->remove) { drv 445 drivers/pci/pci-driver.c drv->remove(pci_dev); drv 479 drivers/pci/pci-driver.c struct pci_driver *drv = pci_dev->driver; drv 483 drivers/pci/pci-driver.c if (drv && drv->shutdown) drv 484 drivers/pci/pci-driver.c drv->shutdown(pci_dev); drv 568 drivers/pci/pci-driver.c struct pci_driver *drv = pci_dev->driver; drv 570 drivers/pci/pci-driver.c if (drv && drv->suspend) { drv 574 drivers/pci/pci-driver.c error = drv->suspend(pci_dev, state); drv 575 drivers/pci/pci-driver.c suspend_report_result(drv->suspend, error); drv 583 drivers/pci/pci-driver.c drv->suspend); drv 595 drivers/pci/pci-driver.c struct pci_driver *drv = pci_dev->driver; drv 597 drivers/pci/pci-driver.c if (drv && drv->suspend_late) { drv 601 drivers/pci/pci-driver.c error = drv->suspend_late(pci_dev, state); drv 602 drivers/pci/pci-driver.c suspend_report_result(drv->suspend_late, error); drv 610 drivers/pci/pci-driver.c drv->suspend_late); drv 629 drivers/pci/pci-driver.c struct pci_driver *drv = pci_dev->driver; drv 631 drivers/pci/pci-driver.c return drv && drv->resume_early ? drv 632 drivers/pci/pci-driver.c drv->resume_early(pci_dev) : 0; drv 638 drivers/pci/pci-driver.c struct pci_driver *drv = pci_dev->driver; drv 642 drivers/pci/pci-driver.c return drv && drv->resume ? drv 643 drivers/pci/pci-driver.c drv->resume(pci_dev) : pci_pm_reenable_device(pci_dev); drv 663 drivers/pci/pci-driver.c struct pci_driver *drv = pci_dev->driver; drv 664 drivers/pci/pci-driver.c bool ret = drv && (drv->suspend || drv->suspend_late || drv->resume drv 665 drivers/pci/pci-driver.c || drv->resume_early); drv 672 drivers/pci/pci-driver.c WARN(ret && drv->driver.pm, "driver %s device %04x:%04x\n", drv 673 drivers/pci/pci-driver.c drv->name, pci_dev->vendor, pci_dev->device); drv 682 drivers/pci/pci-driver.c struct device_driver *drv = dev->driver; drv 685 drivers/pci/pci-driver.c if (drv && drv->pm && drv->pm->prepare) { drv 686 drivers/pci/pci-driver.c int error = drv->pm->prepare(dev); drv 920 drivers/pci/pci-driver.c struct device_driver *drv = dev->driver; drv 954 drivers/pci/pci-driver.c if (drv && drv->pm && drv->pm->resume_noirq) drv 955 drivers/pci/pci-driver.c error = drv->pm->resume_noirq(dev); drv 1046 drivers/pci/pci-driver.c struct device_driver *drv = dev->driver; drv 1051 drivers/pci/pci-driver.c if (drv && drv->pm && drv->pm->freeze_noirq) { drv 1054 drivers/pci/pci-driver.c error = drv->pm->freeze_noirq(dev); drv 1055 drivers/pci/pci-driver.c suspend_report_result(drv->pm->freeze_noirq, error); drv 1074 drivers/pci/pci-driver.c struct device_driver *drv = dev->driver; drv 1099 drivers/pci/pci-driver.c if (drv && drv->pm && drv->pm->thaw_noirq) drv 1100 drivers/pci/pci-driver.c error = drv->pm->thaw_noirq(dev); drv 1173 drivers/pci/pci-driver.c struct device_driver *drv = dev->driver; drv 1181 drivers/pci/pci-driver.c if (!drv || !drv->pm) { drv 1186 drivers/pci/pci-driver.c if (drv->pm->poweroff_noirq) { drv 1189 drivers/pci/pci-driver.c error = drv->pm->poweroff_noirq(dev); drv 1190 drivers/pci/pci-driver.c suspend_report_result(drv->pm->poweroff_noirq, error); drv 1216 drivers/pci/pci-driver.c struct device_driver *drv = dev->driver; drv 1231 drivers/pci/pci-driver.c if (drv && drv->pm && drv->pm->restore_noirq) drv 1232 drivers/pci/pci-driver.c error = drv->pm->restore_noirq(dev); drv 1435 drivers/pci/pci-driver.c int __pci_register_driver(struct pci_driver *drv, struct module *owner, drv 1439 drivers/pci/pci-driver.c drv->driver.name = drv->name; drv 1440 drivers/pci/pci-driver.c drv->driver.bus = &pci_bus_type; drv 1441 drivers/pci/pci-driver.c drv->driver.owner = owner; drv 1442 drivers/pci/pci-driver.c drv->driver.mod_name = mod_name; drv 1443 drivers/pci/pci-driver.c drv->driver.groups = drv->groups; drv 1445 drivers/pci/pci-driver.c spin_lock_init(&drv->dynids.lock); drv 1446 drivers/pci/pci-driver.c INIT_LIST_HEAD(&drv->dynids.list); drv 1449 drivers/pci/pci-driver.c return driver_register(&drv->driver); drv 1463 drivers/pci/pci-driver.c void pci_unregister_driver(struct pci_driver *drv) drv 1465 drivers/pci/pci-driver.c driver_unregister(&drv->driver); drv 1466 drivers/pci/pci-driver.c pci_free_dynids(drv); drv 1504 drivers/pci/pci-driver.c static int pci_bus_match(struct device *dev, struct device_driver *drv) drv 1513 drivers/pci/pci-driver.c pci_drv = to_pci_driver(drv); drv 1672 drivers/pci/pci-driver.c static int pcie_port_bus_match(struct device *dev, struct device_driver *drv) drv 1677 drivers/pci/pci-driver.c if (drv->bus != &pcie_port_bus_type || dev->bus != &pcie_port_bus_type) drv 1681 drivers/pci/pci-driver.c driver = to_service_driver(drv); drv 23 drivers/pci/pcie/portdrv_core.c struct pcie_port_service_driver *drv; drv 447 drivers/pci/pcie/portdrv_core.c pdrvs->drv = service_driver; drv 466 drivers/pci/pcie/portdrv_core.c struct pcie_port_service_driver *drv; drv 469 drivers/pci/pcie/portdrv_core.c pdrvs.drv = NULL; drv 473 drivers/pci/pcie/portdrv_core.c drv = pdrvs.drv; drv 474 drivers/pci/pcie/portdrv_core.c return drv; drv 603 drivers/pci/pcie/portdrv_core.c void pcie_port_service_unregister(struct pcie_port_service_driver *drv) drv 605 drivers/pci/pcie/portdrv_core.c driver_unregister(&drv->driver); drv 359 drivers/pci/proc.c const struct pci_driver *drv; drv 365 drivers/pci/proc.c drv = pci_dev_driver(dev); drv 389 drivers/pci/proc.c if (drv) drv 390 drivers/pci/proc.c seq_puts(m, drv->name); drv 127 drivers/pcmcia/ds.c retval = driver_attach(&pdrv->drv); drv 136 drivers/pcmcia/ds.c pcmcia_free_dynids(struct pcmcia_driver *drv) drv 140 drivers/pcmcia/ds.c mutex_lock(&drv->dynids.lock); drv 141 drivers/pcmcia/ds.c list_for_each_entry_safe(dynid, n, &drv->dynids.list, node) { drv 145 drivers/pcmcia/ds.c mutex_unlock(&drv->dynids.lock); drv 149 drivers/pcmcia/ds.c pcmcia_create_newid_file(struct pcmcia_driver *drv) drv 152 drivers/pcmcia/ds.c if (drv->probe != NULL) drv 153 drivers/pcmcia/ds.c error = driver_create_file(&drv->drv, &driver_attr_new_id); drv 158 drivers/pcmcia/ds.c pcmcia_remove_newid_file(struct pcmcia_driver *drv) drv 160 drivers/pcmcia/ds.c driver_remove_file(&drv->drv, &driver_attr_new_id); drv 179 drivers/pcmcia/ds.c driver->drv.bus = &pcmcia_bus_type; drv 180 drivers/pcmcia/ds.c driver->drv.owner = driver->owner; drv 181 drivers/pcmcia/ds.c driver->drv.name = driver->name; drv 187 drivers/pcmcia/ds.c error = driver_register(&driver->drv); drv 193 drivers/pcmcia/ds.c driver_unregister(&driver->drv); drv 207 drivers/pcmcia/ds.c driver_unregister(&driver->drv); drv 904 drivers/pcmcia/ds.c static int pcmcia_bus_match(struct device *dev, struct device_driver *drv) drv 907 drivers/pcmcia/ds.c struct pcmcia_driver *p_drv = to_pcmcia_drv(drv); drv 914 drivers/pcmcia/ds.c dev_dbg(dev, "trying to match to %s\n", drv->name); drv 916 drivers/pcmcia/ds.c dev_dbg(dev, "matched to %s\n", drv->name); drv 924 drivers/pcmcia/ds.c dev_dbg(dev, "trying to match to %s\n", drv->name); drv 926 drivers/pcmcia/ds.c dev_dbg(dev, "matched to %s\n", drv->name); drv 259 drivers/pcmcia/sa1111_generic.c .drv = { drv 57 drivers/phy/renesas/phy-rcar-gen2.c struct rcar_gen2_phy_driver *drv; drv 81 drivers/phy/renesas/phy-rcar-gen2.c struct rcar_gen2_phy_driver *drv = channel->drv; drv 94 drivers/phy/renesas/phy-rcar-gen2.c clk_prepare_enable(drv->clk); drv 96 drivers/phy/renesas/phy-rcar-gen2.c spin_lock_irqsave(&drv->lock, flags); drv 97 drivers/phy/renesas/phy-rcar-gen2.c ugctrl2 = readl(drv->base + USBHS_UGCTRL2); drv 100 drivers/phy/renesas/phy-rcar-gen2.c writel(ugctrl2, drv->base + USBHS_UGCTRL2); drv 101 drivers/phy/renesas/phy-rcar-gen2.c spin_unlock_irqrestore(&drv->lock, flags); drv 110 drivers/phy/renesas/phy-rcar-gen2.c clk_disable_unprepare(channel->drv->clk); drv 120 drivers/phy/renesas/phy-rcar-gen2.c struct rcar_gen2_phy_driver *drv = phy->channel->drv; drv 121 drivers/phy/renesas/phy-rcar-gen2.c void __iomem *base = drv->base; drv 130 drivers/phy/renesas/phy-rcar-gen2.c spin_lock_irqsave(&drv->lock, flags); drv 156 drivers/phy/renesas/phy-rcar-gen2.c spin_unlock_irqrestore(&drv->lock, flags); drv 164 drivers/phy/renesas/phy-rcar-gen2.c struct rcar_gen2_phy_driver *drv = phy->channel->drv; drv 165 drivers/phy/renesas/phy-rcar-gen2.c void __iomem *base = drv->base; drv 173 drivers/phy/renesas/phy-rcar-gen2.c spin_lock_irqsave(&drv->lock, flags); drv 188 drivers/phy/renesas/phy-rcar-gen2.c spin_unlock_irqrestore(&drv->lock, flags); drv 196 drivers/phy/renesas/phy-rcar-gen2.c struct rcar_gen2_phy_driver *drv = phy->channel->drv; drv 197 drivers/phy/renesas/phy-rcar-gen2.c void __iomem *base = drv->base; drv 201 drivers/phy/renesas/phy-rcar-gen2.c spin_lock_irqsave(&drv->lock, flags); drv 217 drivers/phy/renesas/phy-rcar-gen2.c spin_unlock_irqrestore(&drv->lock, flags); drv 225 drivers/phy/renesas/phy-rcar-gen2.c struct rcar_gen2_phy_driver *drv = phy->channel->drv; drv 226 drivers/phy/renesas/phy-rcar-gen2.c void __iomem *base = drv->base; drv 230 drivers/phy/renesas/phy-rcar-gen2.c spin_lock_irqsave(&drv->lock, flags); drv 242 drivers/phy/renesas/phy-rcar-gen2.c spin_unlock_irqrestore(&drv->lock, flags); drv 312 drivers/phy/renesas/phy-rcar-gen2.c struct rcar_gen2_phy_driver *drv; drv 316 drivers/phy/renesas/phy-rcar-gen2.c drv = dev_get_drvdata(dev); drv 317 drivers/phy/renesas/phy-rcar-gen2.c if (!drv) drv 320 drivers/phy/renesas/phy-rcar-gen2.c for (i = 0; i < drv->num_channels; i++) { drv 321 drivers/phy/renesas/phy-rcar-gen2.c if (np == drv->channels[i].of_node) drv 325 drivers/phy/renesas/phy-rcar-gen2.c if (i >= drv->num_channels || args->args[0] >= 2) drv 328 drivers/phy/renesas/phy-rcar-gen2.c return drv->channels[i].phys[args->args[0]].phy; drv 339 drivers/phy/renesas/phy-rcar-gen2.c struct rcar_gen2_phy_driver *drv; drv 365 drivers/phy/renesas/phy-rcar-gen2.c drv = devm_kzalloc(dev, sizeof(*drv), GFP_KERNEL); drv 366 drivers/phy/renesas/phy-rcar-gen2.c if (!drv) drv 369 drivers/phy/renesas/phy-rcar-gen2.c spin_lock_init(&drv->lock); drv 371 drivers/phy/renesas/phy-rcar-gen2.c drv->clk = clk; drv 372 drivers/phy/renesas/phy-rcar-gen2.c drv->base = base; drv 378 drivers/phy/renesas/phy-rcar-gen2.c drv->num_channels = of_get_child_count(dev->of_node); drv 379 drivers/phy/renesas/phy-rcar-gen2.c drv->channels = devm_kcalloc(dev, drv->num_channels, drv 382 drivers/phy/renesas/phy-rcar-gen2.c if (!drv->channels) drv 386 drivers/phy/renesas/phy-rcar-gen2.c struct rcar_gen2_channel *channel = drv->channels + i; drv 391 drivers/phy/renesas/phy-rcar-gen2.c channel->drv = drv; drv 428 drivers/phy/renesas/phy-rcar-gen2.c dev_set_drvdata(dev, drv); drv 126 drivers/phy/samsung/phy-exynos4210-usb2.c struct samsung_usb2_phy_driver *drv = inst->drv; drv 143 drivers/phy/samsung/phy-exynos4210-usb2.c regmap_update_bits(drv->reg_pmu, offset, mask, on ? 0 : mask); drv 148 drivers/phy/samsung/phy-exynos4210-usb2.c struct samsung_usb2_phy_driver *drv = inst->drv; drv 167 drivers/phy/samsung/phy-exynos4210-usb2.c writel(on, drv->reg_phy + EXYNOS_4210_UPHY1CON); drv 182 drivers/phy/samsung/phy-exynos4210-usb2.c clk = readl(drv->reg_phy + EXYNOS_4210_UPHYCLK); drv 184 drivers/phy/samsung/phy-exynos4210-usb2.c clk |= drv->ref_reg_val << EXYNOS_4210_UPHYCLK_PHYFSEL_OFFSET; drv 185 drivers/phy/samsung/phy-exynos4210-usb2.c writel(clk, drv->reg_phy + EXYNOS_4210_UPHYCLK); drv 187 drivers/phy/samsung/phy-exynos4210-usb2.c pwr = readl(drv->reg_phy + EXYNOS_4210_UPHYPWR); drv 189 drivers/phy/samsung/phy-exynos4210-usb2.c writel(pwr, drv->reg_phy + EXYNOS_4210_UPHYPWR); drv 191 drivers/phy/samsung/phy-exynos4210-usb2.c rst = readl(drv->reg_phy + EXYNOS_4210_UPHYRST); drv 193 drivers/phy/samsung/phy-exynos4210-usb2.c writel(rst, drv->reg_phy + EXYNOS_4210_UPHYRST); drv 196 drivers/phy/samsung/phy-exynos4210-usb2.c writel(rst, drv->reg_phy + EXYNOS_4210_UPHYRST); drv 201 drivers/phy/samsung/phy-exynos4210-usb2.c pwr = readl(drv->reg_phy + EXYNOS_4210_UPHYPWR); drv 203 drivers/phy/samsung/phy-exynos4210-usb2.c writel(pwr, drv->reg_phy + EXYNOS_4210_UPHYPWR); drv 167 drivers/phy/samsung/phy-exynos4x12-usb2.c struct samsung_usb2_phy_driver *drv = inst->drv; drv 189 drivers/phy/samsung/phy-exynos4x12-usb2.c regmap_update_bits(drv->reg_pmu, offset, mask, on ? 0 : mask); drv 194 drivers/phy/samsung/phy-exynos4x12-usb2.c struct samsung_usb2_phy_driver *drv = inst->drv; drv 197 drivers/phy/samsung/phy-exynos4x12-usb2.c clk = readl(drv->reg_phy + EXYNOS_4x12_UPHYCLK); drv 200 drivers/phy/samsung/phy-exynos4x12-usb2.c if (drv->cfg->has_refclk_sel) drv 203 drivers/phy/samsung/phy-exynos4x12-usb2.c clk |= drv->ref_reg_val << EXYNOS_4x12_UPHYCLK_PHYFSEL_OFFSET; drv 205 drivers/phy/samsung/phy-exynos4x12-usb2.c writel(clk, drv->reg_phy + EXYNOS_4x12_UPHYCLK); drv 210 drivers/phy/samsung/phy-exynos4x12-usb2.c struct samsung_usb2_phy_driver *drv = inst->drv; drv 240 drivers/phy/samsung/phy-exynos4x12-usb2.c pwr = readl(drv->reg_phy + EXYNOS_4x12_UPHYPWR); drv 242 drivers/phy/samsung/phy-exynos4x12-usb2.c writel(pwr, drv->reg_phy + EXYNOS_4x12_UPHYPWR); drv 244 drivers/phy/samsung/phy-exynos4x12-usb2.c rst = readl(drv->reg_phy + EXYNOS_4x12_UPHYRST); drv 246 drivers/phy/samsung/phy-exynos4x12-usb2.c writel(rst, drv->reg_phy + EXYNOS_4x12_UPHYRST); drv 249 drivers/phy/samsung/phy-exynos4x12-usb2.c writel(rst, drv->reg_phy + EXYNOS_4x12_UPHYRST); drv 254 drivers/phy/samsung/phy-exynos4x12-usb2.c pwr = readl(drv->reg_phy + EXYNOS_4x12_UPHYPWR); drv 256 drivers/phy/samsung/phy-exynos4x12-usb2.c writel(pwr, drv->reg_phy + EXYNOS_4x12_UPHYPWR); drv 272 drivers/phy/samsung/phy-exynos4x12-usb2.c struct samsung_usb2_phy_driver *drv = inst->drv; drv 278 drivers/phy/samsung/phy-exynos4x12-usb2.c regmap_update_bits(drv->reg_sys, EXYNOS_4x12_MODE_SWITCH_OFFSET, drv 281 drivers/phy/samsung/phy-exynos4x12-usb2.c exynos4x12_power_on_int(&drv->instances[EXYNOS4x12_DEVICE]); drv 284 drivers/phy/samsung/phy-exynos4x12-usb2.c if (inst->cfg->id == EXYNOS4x12_DEVICE && drv->cfg->has_mode_switch) drv 285 drivers/phy/samsung/phy-exynos4x12-usb2.c regmap_update_bits(drv->reg_sys, EXYNOS_4x12_MODE_SWITCH_OFFSET, drv 291 drivers/phy/samsung/phy-exynos4x12-usb2.c exynos4x12_power_on_int(&drv->instances[EXYNOS4x12_DEVICE]); drv 292 drivers/phy/samsung/phy-exynos4x12-usb2.c exynos4x12_power_on_int(&drv->instances[EXYNOS4x12_HOST]); drv 311 drivers/phy/samsung/phy-exynos4x12-usb2.c struct samsung_usb2_phy_driver *drv = inst->drv; drv 316 drivers/phy/samsung/phy-exynos4x12-usb2.c if (inst->cfg->id == EXYNOS4x12_DEVICE && drv->cfg->has_mode_switch) drv 317 drivers/phy/samsung/phy-exynos4x12-usb2.c regmap_update_bits(drv->reg_sys, EXYNOS_4x12_MODE_SWITCH_OFFSET, drv 322 drivers/phy/samsung/phy-exynos4x12-usb2.c exynos4x12_power_off_int(&drv->instances[EXYNOS4x12_DEVICE]); drv 326 drivers/phy/samsung/phy-exynos4x12-usb2.c exynos4x12_power_off_int(&drv->instances[EXYNOS4x12_DEVICE]); drv 327 drivers/phy/samsung/phy-exynos4x12-usb2.c exynos4x12_power_off_int(&drv->instances[EXYNOS4x12_HOST]); drv 177 drivers/phy/samsung/phy-exynos5250-usb2.c struct samsung_usb2_phy_driver *drv = inst->drv; drv 194 drivers/phy/samsung/phy-exynos5250-usb2.c regmap_update_bits(drv->reg_pmu, offset, mask, on ? 0 : mask); drv 199 drivers/phy/samsung/phy-exynos5250-usb2.c struct samsung_usb2_phy_driver *drv = inst->drv; drv 208 drivers/phy/samsung/phy-exynos5250-usb2.c regmap_update_bits(drv->reg_sys, drv 214 drivers/phy/samsung/phy-exynos5250-usb2.c otg = readl(drv->reg_phy + EXYNOS_5250_USBOTGSYS); drv 217 drivers/phy/samsung/phy-exynos5250-usb2.c otg |= drv->ref_reg_val << EXYNOS_5250_USBOTGSYS_FSEL_SHIFT; drv 230 drivers/phy/samsung/phy-exynos5250-usb2.c writel(otg, drv->reg_phy + EXYNOS_5250_USBOTGSYS); drv 236 drivers/phy/samsung/phy-exynos5250-usb2.c writel(otg, drv->reg_phy + EXYNOS_5250_USBOTGSYS); drv 244 drivers/phy/samsung/phy-exynos5250-usb2.c ctrl0 = readl(drv->reg_phy + EXYNOS_5250_HOSTPHYCTRL0); drv 247 drivers/phy/samsung/phy-exynos5250-usb2.c ctrl0 |= drv->ref_reg_val << drv 259 drivers/phy/samsung/phy-exynos5250-usb2.c writel(ctrl0, drv->reg_phy + EXYNOS_5250_HOSTPHYCTRL0); drv 263 drivers/phy/samsung/phy-exynos5250-usb2.c writel(ctrl0, drv->reg_phy + EXYNOS_5250_HOSTPHYCTRL0); drv 266 drivers/phy/samsung/phy-exynos5250-usb2.c otg = readl(drv->reg_phy + EXYNOS_5250_USBOTGSYS); drv 269 drivers/phy/samsung/phy-exynos5250-usb2.c otg |= drv->ref_reg_val << EXYNOS_5250_USBOTGSYS_FSEL_SHIFT; drv 282 drivers/phy/samsung/phy-exynos5250-usb2.c writel(otg, drv->reg_phy + EXYNOS_5250_USBOTGSYS); drv 292 drivers/phy/samsung/phy-exynos5250-usb2.c writel(hsic, drv->reg_phy + EXYNOS_5250_HSICPHYCTRL1); drv 293 drivers/phy/samsung/phy-exynos5250-usb2.c writel(hsic, drv->reg_phy + EXYNOS_5250_HSICPHYCTRL2); drv 296 drivers/phy/samsung/phy-exynos5250-usb2.c writel(hsic, drv->reg_phy + EXYNOS_5250_HSICPHYCTRL1); drv 297 drivers/phy/samsung/phy-exynos5250-usb2.c writel(hsic, drv->reg_phy + EXYNOS_5250_HSICPHYCTRL2); drv 303 drivers/phy/samsung/phy-exynos5250-usb2.c ehci = readl(drv->reg_phy + EXYNOS_5250_HOSTEHCICTRL); drv 308 drivers/phy/samsung/phy-exynos5250-usb2.c writel(ehci, drv->reg_phy + EXYNOS_5250_HOSTEHCICTRL); drv 311 drivers/phy/samsung/phy-exynos5250-usb2.c ohci = readl(drv->reg_phy + EXYNOS_5250_HOSTOHCICTRL); drv 314 drivers/phy/samsung/phy-exynos5250-usb2.c writel(ohci, drv->reg_phy + EXYNOS_5250_HOSTOHCICTRL); drv 325 drivers/phy/samsung/phy-exynos5250-usb2.c struct samsung_usb2_phy_driver *drv = inst->drv; drv 334 drivers/phy/samsung/phy-exynos5250-usb2.c otg = readl(drv->reg_phy + EXYNOS_5250_USBOTGSYS); drv 338 drivers/phy/samsung/phy-exynos5250-usb2.c writel(otg, drv->reg_phy + EXYNOS_5250_USBOTGSYS); drv 341 drivers/phy/samsung/phy-exynos5250-usb2.c ctrl0 = readl(drv->reg_phy + EXYNOS_5250_HOSTPHYCTRL0); drv 347 drivers/phy/samsung/phy-exynos5250-usb2.c writel(ctrl0, drv->reg_phy + EXYNOS_5250_HOSTPHYCTRL0); drv 357 drivers/phy/samsung/phy-exynos5250-usb2.c writel(hsic, drv->reg_phy + EXYNOS_5250_HSICPHYCTRL1); drv 358 drivers/phy/samsung/phy-exynos5250-usb2.c writel(hsic, drv->reg_phy + EXYNOS_5250_HSICPHYCTRL2); drv 91 drivers/phy/samsung/phy-s5pv210-usb2.c struct samsung_usb2_phy_driver *drv = inst->drv; drv 105 drivers/phy/samsung/phy-s5pv210-usb2.c regmap_update_bits(drv->reg_pmu, S5PV210_USB_ISOL_OFFSET, drv 111 drivers/phy/samsung/phy-s5pv210-usb2.c struct samsung_usb2_phy_driver *drv = inst->drv; drv 130 drivers/phy/samsung/phy-s5pv210-usb2.c writel(drv->ref_reg_val, drv->reg_phy + S5PV210_UPHYCLK); drv 132 drivers/phy/samsung/phy-s5pv210-usb2.c pwr = readl(drv->reg_phy + S5PV210_UPHYPWR); drv 134 drivers/phy/samsung/phy-s5pv210-usb2.c writel(pwr, drv->reg_phy + S5PV210_UPHYPWR); drv 136 drivers/phy/samsung/phy-s5pv210-usb2.c rst = readl(drv->reg_phy + S5PV210_UPHYRST); drv 138 drivers/phy/samsung/phy-s5pv210-usb2.c writel(rst, drv->reg_phy + S5PV210_UPHYRST); drv 141 drivers/phy/samsung/phy-s5pv210-usb2.c writel(rst, drv->reg_phy + S5PV210_UPHYRST); drv 143 drivers/phy/samsung/phy-s5pv210-usb2.c pwr = readl(drv->reg_phy + S5PV210_UPHYPWR); drv 145 drivers/phy/samsung/phy-s5pv210-usb2.c writel(pwr, drv->reg_phy + S5PV210_UPHYPWR); drv 23 drivers/phy/samsung/phy-samsung-usb2.c struct samsung_usb2_phy_driver *drv = inst->drv; drv 26 drivers/phy/samsung/phy-samsung-usb2.c dev_dbg(drv->dev, "Request to power_on \"%s\" usb phy\n", drv 29 drivers/phy/samsung/phy-samsung-usb2.c if (drv->vbus) { drv 30 drivers/phy/samsung/phy-samsung-usb2.c ret = regulator_enable(drv->vbus); drv 35 drivers/phy/samsung/phy-samsung-usb2.c ret = clk_prepare_enable(drv->clk); drv 38 drivers/phy/samsung/phy-samsung-usb2.c ret = clk_prepare_enable(drv->ref_clk); drv 42 drivers/phy/samsung/phy-samsung-usb2.c spin_lock(&drv->lock); drv 44 drivers/phy/samsung/phy-samsung-usb2.c spin_unlock(&drv->lock); drv 52 drivers/phy/samsung/phy-samsung-usb2.c clk_disable_unprepare(drv->ref_clk); drv 54 drivers/phy/samsung/phy-samsung-usb2.c clk_disable_unprepare(drv->clk); drv 56 drivers/phy/samsung/phy-samsung-usb2.c if (drv->vbus) drv 57 drivers/phy/samsung/phy-samsung-usb2.c regulator_disable(drv->vbus); drv 65 drivers/phy/samsung/phy-samsung-usb2.c struct samsung_usb2_phy_driver *drv = inst->drv; drv 68 drivers/phy/samsung/phy-samsung-usb2.c dev_dbg(drv->dev, "Request to power_off \"%s\" usb phy\n", drv 71 drivers/phy/samsung/phy-samsung-usb2.c spin_lock(&drv->lock); drv 73 drivers/phy/samsung/phy-samsung-usb2.c spin_unlock(&drv->lock); drv 77 drivers/phy/samsung/phy-samsung-usb2.c clk_disable_unprepare(drv->ref_clk); drv 78 drivers/phy/samsung/phy-samsung-usb2.c clk_disable_unprepare(drv->clk); drv 79 drivers/phy/samsung/phy-samsung-usb2.c if (drv->vbus) drv 80 drivers/phy/samsung/phy-samsung-usb2.c ret = regulator_disable(drv->vbus); drv 94 drivers/phy/samsung/phy-samsung-usb2.c struct samsung_usb2_phy_driver *drv; drv 96 drivers/phy/samsung/phy-samsung-usb2.c drv = dev_get_drvdata(dev); drv 97 drivers/phy/samsung/phy-samsung-usb2.c if (!drv) drv 100 drivers/phy/samsung/phy-samsung-usb2.c if (WARN_ON(args->args[0] >= drv->cfg->num_phys)) drv 103 drivers/phy/samsung/phy-samsung-usb2.c return drv->instances[args->args[0]].phy; drv 147 drivers/phy/samsung/phy-samsung-usb2.c struct samsung_usb2_phy_driver *drv; drv 159 drivers/phy/samsung/phy-samsung-usb2.c drv = devm_kzalloc(dev, struct_size(drv, instances, cfg->num_phys), drv 161 drivers/phy/samsung/phy-samsung-usb2.c if (!drv) drv 164 drivers/phy/samsung/phy-samsung-usb2.c dev_set_drvdata(dev, drv); drv 165 drivers/phy/samsung/phy-samsung-usb2.c spin_lock_init(&drv->lock); drv 167 drivers/phy/samsung/phy-samsung-usb2.c drv->cfg = cfg; drv 168 drivers/phy/samsung/phy-samsung-usb2.c drv->dev = dev; drv 171 drivers/phy/samsung/phy-samsung-usb2.c drv->reg_phy = devm_ioremap_resource(dev, mem); drv 172 drivers/phy/samsung/phy-samsung-usb2.c if (IS_ERR(drv->reg_phy)) { drv 174 drivers/phy/samsung/phy-samsung-usb2.c return PTR_ERR(drv->reg_phy); drv 177 drivers/phy/samsung/phy-samsung-usb2.c drv->reg_pmu = syscon_regmap_lookup_by_phandle(pdev->dev.of_node, drv 179 drivers/phy/samsung/phy-samsung-usb2.c if (IS_ERR(drv->reg_pmu)) { drv 181 drivers/phy/samsung/phy-samsung-usb2.c return PTR_ERR(drv->reg_pmu); drv 184 drivers/phy/samsung/phy-samsung-usb2.c if (drv->cfg->has_mode_switch) { drv 185 drivers/phy/samsung/phy-samsung-usb2.c drv->reg_sys = syscon_regmap_lookup_by_phandle( drv 187 drivers/phy/samsung/phy-samsung-usb2.c if (IS_ERR(drv->reg_sys)) { drv 189 drivers/phy/samsung/phy-samsung-usb2.c return PTR_ERR(drv->reg_sys); drv 193 drivers/phy/samsung/phy-samsung-usb2.c drv->clk = devm_clk_get(dev, "phy"); drv 194 drivers/phy/samsung/phy-samsung-usb2.c if (IS_ERR(drv->clk)) { drv 196 drivers/phy/samsung/phy-samsung-usb2.c return PTR_ERR(drv->clk); drv 199 drivers/phy/samsung/phy-samsung-usb2.c drv->ref_clk = devm_clk_get(dev, "ref"); drv 200 drivers/phy/samsung/phy-samsung-usb2.c if (IS_ERR(drv->ref_clk)) { drv 202 drivers/phy/samsung/phy-samsung-usb2.c return PTR_ERR(drv->ref_clk); drv 205 drivers/phy/samsung/phy-samsung-usb2.c drv->ref_rate = clk_get_rate(drv->ref_clk); drv 206 drivers/phy/samsung/phy-samsung-usb2.c if (drv->cfg->rate_to_clk) { drv 207 drivers/phy/samsung/phy-samsung-usb2.c ret = drv->cfg->rate_to_clk(drv->ref_rate, &drv->ref_reg_val); drv 212 drivers/phy/samsung/phy-samsung-usb2.c drv->vbus = devm_regulator_get(dev, "vbus"); drv 213 drivers/phy/samsung/phy-samsung-usb2.c if (IS_ERR(drv->vbus)) { drv 214 drivers/phy/samsung/phy-samsung-usb2.c ret = PTR_ERR(drv->vbus); drv 217 drivers/phy/samsung/phy-samsung-usb2.c drv->vbus = NULL; drv 220 drivers/phy/samsung/phy-samsung-usb2.c for (i = 0; i < drv->cfg->num_phys; i++) { drv 221 drivers/phy/samsung/phy-samsung-usb2.c char *label = drv->cfg->phys[i].label; drv 222 drivers/phy/samsung/phy-samsung-usb2.c struct samsung_usb2_phy_instance *p = &drv->instances[i]; drv 227 drivers/phy/samsung/phy-samsung-usb2.c dev_err(drv->dev, "Failed to create usb2_phy \"%s\"\n", drv 232 drivers/phy/samsung/phy-samsung-usb2.c p->cfg = &drv->cfg->phys[i]; drv 233 drivers/phy/samsung/phy-samsung-usb2.c p->drv = drv; drv 241 drivers/phy/samsung/phy-samsung-usb2.c dev_err(drv->dev, "Failed to register phy provider\n"); drv 29 drivers/phy/samsung/phy-samsung-usb2.h struct samsung_usb2_phy_driver *drv; drv 1089 drivers/pinctrl/pinctrl-bm1880.c static int bm1880_pinconf_drv_get(u32 width, u32 drv) drv 1098 drivers/pinctrl/pinctrl-bm1880.c switch (drv) { drv 1127 drivers/pinctrl/pinctrl-bm1880.c switch (drv) { drv 1068 drivers/pinctrl/pinctrl-pistachio.c u32 drv, val, arg; drv 1122 drivers/pinctrl/pinctrl-pistachio.c drv = PADS_DRIVE_STRENGTH_2MA; drv 1125 drivers/pinctrl/pinctrl-pistachio.c drv = PADS_DRIVE_STRENGTH_4MA; drv 1128 drivers/pinctrl/pinctrl-pistachio.c drv = PADS_DRIVE_STRENGTH_8MA; drv 1131 drivers/pinctrl/pinctrl-pistachio.c drv = PADS_DRIVE_STRENGTH_12MA; drv 1139 drivers/pinctrl/pinctrl-pistachio.c val |= drv << PADS_DRIVE_STRENGTH_SHIFT(pin); drv 152 drivers/pinctrl/pinctrl-rockchip.c struct rockchip_drv drv[4]; drv 203 drivers/pinctrl/pinctrl-rockchip.c .drv = { \ drv 224 drivers/pinctrl/pinctrl-rockchip.c .drv = { \ drv 250 drivers/pinctrl/pinctrl-rockchip.c .drv = { \ drv 274 drivers/pinctrl/pinctrl-rockchip.c .drv = { \ drv 1758 drivers/pinctrl/pinctrl-rockchip.c *reg = bank->drv[drv_num].offset; drv 1759 drivers/pinctrl/pinctrl-rockchip.c if ((bank->drv[drv_num].drv_type == DRV_TYPE_IO_1V8_3V0_AUTO) || drv 1760 drivers/pinctrl/pinctrl-rockchip.c (bank->drv[drv_num].drv_type == DRV_TYPE_IO_3V3_ONLY)) drv 1783 drivers/pinctrl/pinctrl-rockchip.c int drv_type = bank->drv[pin_num / 8].drv_type; drv 1860 drivers/pinctrl/pinctrl-rockchip.c int drv_type = bank->drv[pin_num / 8].drv_type; drv 3270 drivers/pinctrl/pinctrl-rockchip.c struct rockchip_drv *drv = &bank->drv[j]; drv 3288 drivers/pinctrl/pinctrl-rockchip.c if (drv->offset >= 0) { drv 3290 drivers/pinctrl/pinctrl-rockchip.c drv_pmu_offs = drv->offset; drv 3292 drivers/pinctrl/pinctrl-rockchip.c drv_grf_offs = drv->offset; drv 3294 drivers/pinctrl/pinctrl-rockchip.c drv->offset = (iom->type & IOMUX_SOURCE_PMU) ? drv 3299 drivers/pinctrl/pinctrl-rockchip.c i, j, iom->offset, drv->offset); drv 3316 drivers/pinctrl/pinctrl-rockchip.c if ((drv->drv_type == DRV_TYPE_IO_1V8_3V0_AUTO) || drv 3317 drivers/pinctrl/pinctrl-rockchip.c (drv->drv_type == DRV_TYPE_IO_3V3_ONLY)) drv 544 drivers/pinctrl/pinctrl-rzn1.c u32 drv; drv 577 drivers/pinctrl/pinctrl-rzn1.c drv = RZN1_L1_PIN_DRIVE_STRENGTH_4MA; drv 580 drivers/pinctrl/pinctrl-rzn1.c drv = RZN1_L1_PIN_DRIVE_STRENGTH_6MA; drv 583 drivers/pinctrl/pinctrl-rzn1.c drv = RZN1_L1_PIN_DRIVE_STRENGTH_8MA; drv 586 drivers/pinctrl/pinctrl-rzn1.c drv = RZN1_L1_PIN_DRIVE_STRENGTH_12MA; drv 597 drivers/pinctrl/pinctrl-rzn1.c l1 |= (drv << RZN1_L1_PIN_DRIVE_STRENGTH); drv 260 drivers/pinctrl/qcom/pinctrl-apq8064.c #define SDC_PINGROUP(pg_name, ctl, pull, drv) \ drv 272 drivers/pinctrl/qcom/pinctrl-apq8064.c .drv_bit = drv, \ drv 372 drivers/pinctrl/qcom/pinctrl-apq8084.c #define SDC_PINGROUP(pg_name, ctl, pull, drv) \ drv 384 drivers/pinctrl/qcom/pinctrl-apq8084.c .drv_bit = drv, \ drv 212 drivers/pinctrl/qcom/pinctrl-ipq8064.c #define SDC_PINGROUP(pg_name, ctl, pull, drv) \ drv 224 drivers/pinctrl/qcom/pinctrl-ipq8064.c .drv_bit = drv, \ drv 423 drivers/pinctrl/qcom/pinctrl-msm8660.c #define SDC_PINGROUP(pg_name, ctl, pull, drv) \ drv 435 drivers/pinctrl/qcom/pinctrl-msm8660.c .drv_bit = drv, \ drv 335 drivers/pinctrl/qcom/pinctrl-msm8916.c #define SDC_PINGROUP(pg_name, ctl, pull, drv) \ drv 347 drivers/pinctrl/qcom/pinctrl-msm8916.c .drv_bit = drv, \ drv 386 drivers/pinctrl/qcom/pinctrl-msm8960.c #define SDC_PINGROUP(pg_name, ctl, pull, drv) \ drv 398 drivers/pinctrl/qcom/pinctrl-msm8960.c .drv_bit = drv, \ drv 61 drivers/pinctrl/qcom/pinctrl-msm8994.c #define SDC_PINGROUP(pg_name, ctl, pull, drv) \ drv 73 drivers/pinctrl/qcom/pinctrl-msm8994.c .drv_bit = drv, \ drv 61 drivers/pinctrl/qcom/pinctrl-msm8996.c #define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv) \ drv 73 drivers/pinctrl/qcom/pinctrl-msm8996.c .drv_bit = drv, \ drv 63 drivers/pinctrl/qcom/pinctrl-msm8998.c #define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv) \ drv 75 drivers/pinctrl/qcom/pinctrl-msm8998.c .drv_bit = drv, \ drv 372 drivers/pinctrl/qcom/pinctrl-msm8x74.c #define SDC_PINGROUP(pg_name, ctl, pull, drv) \ drv 384 drivers/pinctrl/qcom/pinctrl-msm8x74.c .drv_bit = drv, \ drv 72 drivers/pinctrl/qcom/pinctrl-qcs404.c #define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv) \ drv 85 drivers/pinctrl/qcom/pinctrl-qcs404.c .drv_bit = drv, \ drv 70 drivers/pinctrl/qcom/pinctrl-sc7180.c #define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv) \ drv 83 drivers/pinctrl/qcom/pinctrl-sc7180.c .drv_bit = drv, \ drv 76 drivers/pinctrl/qcom/pinctrl-sdm660.c #define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv) \ drv 89 drivers/pinctrl/qcom/pinctrl-sdm660.c .drv_bit = drv, \ drv 65 drivers/pinctrl/qcom/pinctrl-sdm845.c #define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv) \ drv 77 drivers/pinctrl/qcom/pinctrl-sdm845.c .drv_bit = drv, \ drv 72 drivers/pinctrl/qcom/pinctrl-sm8150.c #define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv) \ drv 85 drivers/pinctrl/qcom/pinctrl-sm8150.c .drv_bit = drv, \ drv 115 drivers/platform/chrome/chromeos_tbmc.c .drv.pm = &chromeos_tbmc_pm_ops, drv 305 drivers/platform/chrome/cros_ec_rpmsg.c .drv = { drv 34 drivers/platform/olpc/olpc-ec.c struct olpc_ec_driver *drv; drv 71 drivers/platform/olpc/olpc-ec.c void olpc_ec_driver_register(struct olpc_ec_driver *drv, void *arg) drv 73 drivers/platform/olpc/olpc-ec.c ec_driver = drv; drv 417 drivers/platform/olpc/olpc-ec.c ec->drv = ec_driver; drv 446 drivers/platform/x86/classmate-laptop.c .drv.pm = &cmpc_accel_pm, drv 766 drivers/platform/x86/classmate-laptop.c .drv.pm = &cmpc_tablet_pm, drv 292 drivers/platform/x86/dell-rbtn.c .drv.pm = &rbtn_pm_ops, drv 346 drivers/platform/x86/dell-rbtn.c ret = driver_for_each_device(&rbtn_driver.drv, NULL, &count, drv 358 drivers/platform/x86/dell-rbtn.c ret = driver_for_each_device(&rbtn_driver.drv, NULL, drv 374 drivers/platform/x86/dell-rbtn.c ret = driver_for_each_device(&rbtn_driver.drv, NULL, drv 513 drivers/platform/x86/fujitsu-tablet.c .drv.pm = &acpi_fujitsu_pm, drv 425 drivers/platform/x86/hp_accel.c .drv.pm = HP_ACCEL_PM, drv 190 drivers/platform/x86/panasonic-laptop.c .drv.pm = &acpi_pcc_hotkey_pm, drv 3324 drivers/platform/x86/sony-laptop.c .drv.pm = &sony_nc_pm, drv 4870 drivers/platform/x86/sony-laptop.c .drv.pm = &sony_pic_pm, drv 265 drivers/platform/x86/surfacepro3_button.c .drv.pm = &surface_button_pm, drv 1452 drivers/platform/x86/thinkpad_acpi.c static ssize_t interface_version_show(struct device_driver *drv, char *buf) drv 1459 drivers/platform/x86/thinkpad_acpi.c static ssize_t debug_level_show(struct device_driver *drv, char *buf) drv 1464 drivers/platform/x86/thinkpad_acpi.c static ssize_t debug_level_store(struct device_driver *drv, const char *buf, drv 1479 drivers/platform/x86/thinkpad_acpi.c static ssize_t version_show(struct device_driver *drv, char *buf) drv 1491 drivers/platform/x86/thinkpad_acpi.c static ssize_t wlsw_emulstate_show(struct device_driver *drv, char *buf) drv 1496 drivers/platform/x86/thinkpad_acpi.c static ssize_t wlsw_emulstate_store(struct device_driver *drv, const char *buf, drv 1514 drivers/platform/x86/thinkpad_acpi.c static ssize_t bluetooth_emulstate_show(struct device_driver *drv, char *buf) drv 1519 drivers/platform/x86/thinkpad_acpi.c static ssize_t bluetooth_emulstate_store(struct device_driver *drv, drv 1534 drivers/platform/x86/thinkpad_acpi.c static ssize_t wwan_emulstate_show(struct device_driver *drv, char *buf) drv 1539 drivers/platform/x86/thinkpad_acpi.c static ssize_t wwan_emulstate_store(struct device_driver *drv, const char *buf, drv 1554 drivers/platform/x86/thinkpad_acpi.c static ssize_t uwb_emulstate_show(struct device_driver *drv, char *buf) drv 1559 drivers/platform/x86/thinkpad_acpi.c static ssize_t uwb_emulstate_store(struct device_driver *drv, const char *buf, drv 1581 drivers/platform/x86/thinkpad_acpi.c static int __init tpacpi_create_driver_attributes(struct device_driver *drv) drv 1588 drivers/platform/x86/thinkpad_acpi.c res = driver_create_file(drv, tpacpi_driver_attributes[i]); drv 1594 drivers/platform/x86/thinkpad_acpi.c res = driver_create_file(drv, &driver_attr_wlsw_emulstate); drv 1596 drivers/platform/x86/thinkpad_acpi.c res = driver_create_file(drv, &driver_attr_bluetooth_emulstate); drv 1598 drivers/platform/x86/thinkpad_acpi.c res = driver_create_file(drv, &driver_attr_wwan_emulstate); drv 1600 drivers/platform/x86/thinkpad_acpi.c res = driver_create_file(drv, &driver_attr_uwb_emulstate); drv 1606 drivers/platform/x86/thinkpad_acpi.c static void tpacpi_remove_driver_attributes(struct device_driver *drv) drv 1611 drivers/platform/x86/thinkpad_acpi.c driver_remove_file(drv, tpacpi_driver_attributes[i]); drv 1614 drivers/platform/x86/thinkpad_acpi.c driver_remove_file(drv, &driver_attr_wlsw_emulstate); drv 1615 drivers/platform/x86/thinkpad_acpi.c driver_remove_file(drv, &driver_attr_bluetooth_emulstate); drv 1616 drivers/platform/x86/thinkpad_acpi.c driver_remove_file(drv, &driver_attr_wwan_emulstate); drv 1617 drivers/platform/x86/thinkpad_acpi.c driver_remove_file(drv, &driver_attr_uwb_emulstate); drv 8728 drivers/platform/x86/thinkpad_acpi.c static ssize_t fan_watchdog_show(struct device_driver *drv, char *buf) drv 8733 drivers/platform/x86/thinkpad_acpi.c static ssize_t fan_watchdog_store(struct device_driver *drv, const char *buf, drv 2368 drivers/platform/x86/toshiba_acpi.c struct toshiba_acpi_dev *drv = dev_get_drvdata(dev); drv 2372 drivers/platform/x86/toshiba_acpi.c exists = (drv->fan_supported) ? true : false; drv 2374 drivers/platform/x86/toshiba_acpi.c exists = (drv->kbd_illum_supported) ? true : false; drv 2376 drivers/platform/x86/toshiba_acpi.c exists = (drv->kbd_mode == SCI_KBD_MODE_AUTO) ? true : false; drv 2378 drivers/platform/x86/toshiba_acpi.c exists = (drv->touchpad_supported) ? true : false; drv 2380 drivers/platform/x86/toshiba_acpi.c exists = (drv->usb_sleep_charge_supported) ? true : false; drv 2382 drivers/platform/x86/toshiba_acpi.c exists = (drv->usb_sleep_charge_supported) ? true : false; drv 2384 drivers/platform/x86/toshiba_acpi.c exists = (drv->usb_rapid_charge_supported) ? true : false; drv 2386 drivers/platform/x86/toshiba_acpi.c exists = (drv->usb_sleep_music_supported) ? true : false; drv 2388 drivers/platform/x86/toshiba_acpi.c exists = (drv->kbd_function_keys_supported) ? true : false; drv 2390 drivers/platform/x86/toshiba_acpi.c exists = (drv->panel_power_on_supported) ? true : false; drv 2392 drivers/platform/x86/toshiba_acpi.c exists = (drv->usb_three_supported) ? true : false; drv 2394 drivers/platform/x86/toshiba_acpi.c exists = (drv->cooling_method_supported) ? true : false; drv 3312 drivers/platform/x86/toshiba_acpi.c .drv.pm = &toshiba_acpi_pm, drv 63 drivers/platform/x86/toshiba_bluetooth.c .drv.pm = &toshiba_bt_pm, drv 264 drivers/platform/x86/toshiba_haps.c .drv.pm = &toshiba_haps_pm, drv 166 drivers/platform/x86/xo15-ebook.c .drv.pm = &ebook_switch_pm, drv 19 drivers/pnp/card.c static const struct pnp_card_device_id *match_card(struct pnp_card_driver *drv, drv 22 drivers/pnp/card.c const struct pnp_card_device_id *drv_id = drv->id_table; drv 60 drivers/pnp/card.c struct pnp_card_driver *drv = to_pnp_card_driver(dev->driver); drv 62 drivers/pnp/card.c if (!dev->card || !drv) drv 64 drivers/pnp/card.c if (drv->remove) drv 65 drivers/pnp/card.c drv->remove(dev->card_link); drv 66 drivers/pnp/card.c drv->link.remove = &card_remove; drv 71 drivers/pnp/card.c static int card_probe(struct pnp_card *card, struct pnp_card_driver *drv) drv 77 drivers/pnp/card.c if (!drv->probe) drv 79 drivers/pnp/card.c id = match_card(drv, card); drv 87 drivers/pnp/card.c clink->driver = drv; drv 90 drivers/pnp/card.c if (drv->probe(clink, id) >= 0) drv 264 drivers/pnp/card.c struct pnp_card_driver *drv = drv 267 drivers/pnp/card.c card_probe(card, drv); drv 333 drivers/pnp/card.c struct pnp_card_driver *drv; drv 340 drivers/pnp/card.c drv = clink->driver; drv 359 drivers/pnp/card.c dev->dev.driver = &drv->link.driver; drv 379 drivers/pnp/card.c struct pnp_card_driver *drv = dev->card_link->driver; drv 381 drivers/pnp/card.c drv->link.remove = &card_remove; drv 383 drivers/pnp/card.c drv->link.remove = &card_remove_first; drv 414 drivers/pnp/card.c int pnp_register_card_driver(struct pnp_card_driver *drv) drv 419 drivers/pnp/card.c drv->link.name = drv->name; drv 420 drivers/pnp/card.c drv->link.id_table = NULL; /* this will disable auto matching */ drv 421 drivers/pnp/card.c drv->link.flags = drv->flags; drv 422 drivers/pnp/card.c drv->link.probe = NULL; drv 423 drivers/pnp/card.c drv->link.remove = &card_remove_first; drv 424 drivers/pnp/card.c drv->link.suspend = drv->suspend ? card_suspend : NULL; drv 425 drivers/pnp/card.c drv->link.resume = drv->resume ? card_resume : NULL; drv 427 drivers/pnp/card.c error = pnp_register_driver(&drv->link); drv 432 drivers/pnp/card.c list_add_tail(&drv->global_list, &pnp_card_drivers); drv 438 drivers/pnp/card.c card_probe(card, drv); drv 447 drivers/pnp/card.c void pnp_unregister_card_driver(struct pnp_card_driver *drv) drv 450 drivers/pnp/card.c list_del(&drv->global_list); drv 452 drivers/pnp/card.c pnp_unregister_driver(&drv->link); drv 44 drivers/pnp/driver.c static const struct pnp_device_id *match_device(struct pnp_driver *drv, drv 47 drivers/pnp/driver.c const struct pnp_device_id *drv_id = drv->id_table; drv 127 drivers/pnp/driver.c struct pnp_driver *drv = pnp_dev->driver; drv 129 drivers/pnp/driver.c if (drv) { drv 130 drivers/pnp/driver.c if (drv->remove) drv 131 drivers/pnp/driver.c drv->remove(pnp_dev); drv 136 drivers/pnp/driver.c (!drv || !(drv->flags & PNP_DRIVER_RES_DO_NOT_CHANGE))) drv 146 drivers/pnp/driver.c struct pnp_driver *drv = pnp_dev->driver; drv 148 drivers/pnp/driver.c if (drv && drv->shutdown) drv 149 drivers/pnp/driver.c drv->shutdown(pnp_dev); drv 152 drivers/pnp/driver.c static int pnp_bus_match(struct device *dev, struct device_driver *drv) drv 155 drivers/pnp/driver.c struct pnp_driver *pnp_drv = to_pnp_driver(drv); drv 267 drivers/pnp/driver.c int pnp_register_driver(struct pnp_driver *drv) drv 269 drivers/pnp/driver.c drv->driver.name = drv->name; drv 270 drivers/pnp/driver.c drv->driver.bus = &pnp_bus_type; drv 272 drivers/pnp/driver.c return driver_register(&drv->driver); drv 275 drivers/pnp/driver.c void pnp_unregister_driver(struct pnp_driver *drv) drv 277 drivers/pnp/driver.c driver_unregister(&drv->driver); drv 46 drivers/pps/clients/pps-ldisc.c struct tty_driver *drv = tty->driver; drv 47 drivers/pps/clients/pps-ldisc.c int index = tty->index + drv->name_base; drv 53 drivers/pps/clients/pps-ldisc.c snprintf(info.name, PPS_MAX_NAME_LEN, "%s%d", drv->driver_name, index); drv 54 drivers/pps/clients/pps-ldisc.c snprintf(info.path, PPS_MAX_NAME_LEN, "/dev/%s%d", drv->name, index); drv 665 drivers/ps3/ps3-vuart.c struct ps3_vuart_port_driver *drv = drv 668 drivers/ps3/ps3-vuart.c BUG_ON(!drv); drv 669 drivers/ps3/ps3-vuart.c drv->work(dev); drv 985 drivers/ps3/ps3-vuart.c struct ps3_vuart_port_driver *drv; drv 990 drivers/ps3/ps3-vuart.c drv = ps3_system_bus_dev_to_vuart_drv(dev); drv 991 drivers/ps3/ps3-vuart.c BUG_ON(!drv); drv 994 drivers/ps3/ps3-vuart.c drv->core.core.name); drv 1047 drivers/ps3/ps3-vuart.c if (drv->probe) drv 1048 drivers/ps3/ps3-vuart.c result = drv->probe(dev); drv 1109 drivers/ps3/ps3-vuart.c struct ps3_vuart_port_driver *drv; drv 1125 drivers/ps3/ps3-vuart.c drv = ps3_system_bus_dev_to_vuart_drv(dev); drv 1127 drivers/ps3/ps3-vuart.c BUG_ON(!drv); drv 1129 drivers/ps3/ps3-vuart.c if (drv->remove) { drv 1130 drivers/ps3/ps3-vuart.c drv->remove(dev); drv 1160 drivers/ps3/ps3-vuart.c struct ps3_vuart_port_driver *drv; drv 1176 drivers/ps3/ps3-vuart.c drv = ps3_system_bus_dev_to_vuart_drv(dev); drv 1178 drivers/ps3/ps3-vuart.c BUG_ON(!drv); drv 1180 drivers/ps3/ps3-vuart.c if (drv->shutdown) drv 1181 drivers/ps3/ps3-vuart.c drv->shutdown(dev); drv 1182 drivers/ps3/ps3-vuart.c else if (drv->remove) { drv 1185 drivers/ps3/ps3-vuart.c drv->remove(dev); drv 1224 drivers/ps3/ps3-vuart.c int ps3_vuart_port_driver_register(struct ps3_vuart_port_driver *drv) drv 1228 drivers/ps3/ps3-vuart.c pr_debug("%s:%d: (%s)\n", __func__, __LINE__, drv->core.core.name); drv 1230 drivers/ps3/ps3-vuart.c BUG_ON(!drv->core.match_id); drv 1231 drivers/ps3/ps3-vuart.c BUG_ON(!drv->core.core.name); drv 1233 drivers/ps3/ps3-vuart.c drv->core.probe = ps3_vuart_probe; drv 1234 drivers/ps3/ps3-vuart.c drv->core.remove = ps3_vuart_remove; drv 1235 drivers/ps3/ps3-vuart.c drv->core.shutdown = ps3_vuart_shutdown; drv 1237 drivers/ps3/ps3-vuart.c result = ps3_system_bus_driver_register(&drv->core); drv 1246 drivers/ps3/ps3-vuart.c void ps3_vuart_port_driver_unregister(struct ps3_vuart_port_driver *drv) drv 1248 drivers/ps3/ps3-vuart.c pr_debug("%s:%d: (%s)\n", __func__, __LINE__, drv->core.core.name); drv 1249 drivers/ps3/ps3-vuart.c ps3_system_bus_driver_unregister(&drv->core); drv 45 drivers/ps3/vuart.h int ps3_vuart_port_driver_register(struct ps3_vuart_port_driver *drv); drv 46 drivers/ps3/vuart.h void ps3_vuart_port_driver_unregister(struct ps3_vuart_port_driver *drv); drv 190 drivers/rapidio/rio-driver.c static int rio_match_bus(struct device *dev, struct device_driver *drv) drv 193 drivers/rapidio/rio-driver.c struct rio_driver *rdrv = to_rio_driver(drv); drv 648 drivers/remoteproc/qcom_sysmon.c .drv = { drv 545 drivers/rpmsg/rpmsg_char.c .drv = { drv 406 drivers/rpmsg/rpmsg_core.c static int rpmsg_dev_match(struct device *dev, struct device_driver *drv) drv 409 drivers/rpmsg/rpmsg_core.c struct rpmsg_driver *rpdrv = to_rpmsg_driver(drv); drv 414 drivers/rpmsg/rpmsg_core.c return !strcmp(rpdev->driver_override, drv->name); drv 421 drivers/rpmsg/rpmsg_core.c return of_driver_match_device(dev, drv); drv 566 drivers/rpmsg/rpmsg_core.c rpdrv->drv.bus = &rpmsg_bus; drv 567 drivers/rpmsg/rpmsg_core.c rpdrv->drv.owner = owner; drv 568 drivers/rpmsg/rpmsg_core.c return driver_register(&rpdrv->drv); drv 580 drivers/rpmsg/rpmsg_core.c driver_unregister(&rpdrv->drv); drv 19 drivers/rpmsg/rpmsg_internal.h #define to_rpmsg_driver(d) container_of(d, struct rpmsg_driver, drv) drv 175 drivers/rtc/rtc-pl030.c .drv = { drv 474 drivers/rtc/rtc-pl031.c .drv = { drv 631 drivers/s390/block/dasd.c device->cdev->drv->restore(device->cdev); drv 75 drivers/s390/block/scm_drv.c .drv = { drv 352 drivers/s390/cio/ccwgroup.c if (!gdev->cdev[i] || !gdev->cdev[i]->drv || drv 353 drivers/s390/cio/ccwgroup.c gdev->cdev[i]->drv != gdev->cdev[0]->drv || drv 381 drivers/s390/cio/ccwgroup.c gdev->cdev[0]->drv != gdrv->ccw_driver) { drv 196 drivers/s390/cio/ccwreq.c if (cdev->drv && cdev->drv->uc_handler) { drv 197 drivers/s390/cio/ccwreq.c todo = cdev->drv->uc_handler(cdev, lcirb); drv 155 drivers/s390/cio/chsc_sch.c .drv = { drv 217 drivers/s390/cio/chsc_sch.c dev = driver_find_device(&chsc_subchannel_driver.drv, drv 1313 drivers/s390/cio/css.c static int css_settle(struct device_driver *drv, void *unused) drv 1315 drivers/s390/cio/css.c struct css_driver *cssdrv = to_cssdriver(drv); drv 1401 drivers/s390/cio/css.c static int css_bus_match(struct device *dev, struct device_driver *drv) drv 1404 drivers/s390/cio/css.c struct css_driver *driver = to_cssdriver(drv); drv 1408 drivers/s390/cio/css.c if (sch->driver_override && strcmp(sch->driver_override, drv->name)) drv 1467 drivers/s390/cio/css.c struct css_driver *drv; drv 1473 drivers/s390/cio/css.c drv = to_cssdriver(sch->dev.driver); drv 1475 drivers/s390/cio/css.c return drv->prepare ? drv->prepare(sch) : 0; drv 1481 drivers/s390/cio/css.c struct css_driver *drv; drv 1485 drivers/s390/cio/css.c drv = to_cssdriver(sch->dev.driver); drv 1486 drivers/s390/cio/css.c if (drv->complete) drv 1487 drivers/s390/cio/css.c drv->complete(sch); drv 1493 drivers/s390/cio/css.c struct css_driver *drv; drv 1497 drivers/s390/cio/css.c drv = to_cssdriver(sch->dev.driver); drv 1498 drivers/s390/cio/css.c return drv->freeze ? drv->freeze(sch) : 0; drv 1504 drivers/s390/cio/css.c struct css_driver *drv; drv 1508 drivers/s390/cio/css.c drv = to_cssdriver(sch->dev.driver); drv 1509 drivers/s390/cio/css.c return drv->thaw ? drv->thaw(sch) : 0; drv 1515 drivers/s390/cio/css.c struct css_driver *drv; drv 1520 drivers/s390/cio/css.c drv = to_cssdriver(sch->dev.driver); drv 1521 drivers/s390/cio/css.c return drv->restore ? drv->restore(sch) : 0; drv 1551 drivers/s390/cio/css.c cdrv->drv.bus = &css_bus_type; drv 1552 drivers/s390/cio/css.c return driver_register(&cdrv->drv); drv 1564 drivers/s390/cio/css.c driver_unregister(&cdrv->drv); drv 84 drivers/s390/cio/css.h struct device_driver drv; drv 99 drivers/s390/cio/css.h #define to_cssdriver(n) container_of(n, struct css_driver, drv) drv 61 drivers/s390/cio/device.c ccw_bus_match (struct device * dev, struct device_driver * drv) drv 64 drivers/s390/cio/device.c struct ccw_driver *cdrv = to_ccwdrv(drv); drv 178 drivers/s390/cio/device.c .drv = { drv 292 drivers/s390/cio/device.c if (!cdev->online || !cdev->drv) drv 295 drivers/s390/cio/device.c if (cdev->drv->set_offline) { drv 296 drivers/s390/cio/device.c ret = cdev->drv->set_offline(cdev); drv 369 drivers/s390/cio/device.c if (cdev->online || !cdev->drv) drv 407 drivers/s390/cio/device.c if (cdev->drv->set_online) drv 408 drivers/s390/cio/device.c ret = cdev->drv->set_online(cdev); drv 457 drivers/s390/cio/device.c if (cdev->drv && cdev->drv->set_offline) drv 475 drivers/s390/cio/device.c if (cdev->drv && cdev->drv->set_online) drv 836 drivers/s390/cio/device.c if (!cdev->drv) { drv 1572 drivers/s390/cio/device.c struct ccw_driver *cdrv = cdev->drv; drv 1588 drivers/s390/cio/device.c if (!cdev->drv || !cdev->handler) drv 1622 drivers/s390/cio/device.c struct ccw_device * __init ccw_device_create_console(struct ccw_driver *drv) drv 1650 drivers/s390/cio/device.c cdev->drv = drv; drv 1741 drivers/s390/cio/device.c cdev->drv = cdrv; /* to let the driver call _set_online */ drv 1745 drivers/s390/cio/device.c cdev->drv = NULL; drv 1756 drivers/s390/cio/device.c struct ccw_driver *cdrv = cdev->drv; drv 1781 drivers/s390/cio/device.c cdev->drv = NULL; drv 1796 drivers/s390/cio/device.c if (cdev->drv && cdev->drv->shutdown) drv 1797 drivers/s390/cio/device.c cdev->drv->shutdown(cdev); drv 1811 drivers/s390/cio/device.c if (cdev->online && cdev->drv && cdev->drv->prepare) drv 1812 drivers/s390/cio/device.c return cdev->drv->prepare(cdev); drv 1821 drivers/s390/cio/device.c if (cdev->online && cdev->drv && cdev->drv->complete) drv 1822 drivers/s390/cio/device.c cdev->drv->complete(cdev); drv 1836 drivers/s390/cio/device.c if (cdev->drv && cdev->drv->freeze) { drv 1837 drivers/s390/cio/device.c ret = cdev->drv->freeze(cdev); drv 1882 drivers/s390/cio/device.c if (cdev->drv && cdev->drv->thaw) drv 1883 drivers/s390/cio/device.c ret = cdev->drv->thaw(cdev); drv 2013 drivers/s390/cio/device.c if (cdev->online && cdev->drv && cdev->drv->restore) drv 2014 drivers/s390/cio/device.c ret = cdev->drv->restore(cdev); drv 2050 drivers/s390/cio/device.c struct device_driver *drv = &cdriver->driver; drv 2052 drivers/s390/cio/device.c drv->bus = &ccw_bus_type; drv 2054 drivers/s390/cio/device.c return driver_register(drv); drv 300 drivers/s390/cio/device_fsm.c if (!cdev->drv) drv 307 drivers/s390/cio/device_fsm.c if (!cdev->drv->notify) { drv 311 drivers/s390/cio/device_fsm.c if (cdev->drv->notify(cdev, event)) drv 454 drivers/s390/cio/device_fsm.c if (cdev->online && cdev->drv->path_event) drv 455 drivers/s390/cio/device_fsm.c cdev->drv->path_event(cdev, path_event); drv 691 drivers/s390/cio/device_pgid.c if (cdev->drv) { drv 362 drivers/s390/cio/eadm_sch.c .drv = { drv 21 drivers/s390/cio/scm.c #define to_scm_drv(d) container_of(d, struct scm_driver, drv) drv 57 drivers/s390/cio/scm.c struct device_driver *drv = &scmdrv->drv; drv 59 drivers/s390/cio/scm.c drv->bus = &scm_bus_type; drv 61 drivers/s390/cio/scm.c return driver_register(drv); drv 71 drivers/s390/cio/scm.c driver_unregister(&scmdrv->drv); drv 268 drivers/s390/cio/vfio_ccw_drv.c .drv = { drv 541 drivers/s390/crypto/ap_bus.c static int ap_bus_match(struct device *dev, struct device_driver *drv) drv 543 drivers/s390/crypto/ap_bus.c struct ap_driver *ap_drv = to_ap_drv(drv); drv 594 drivers/s390/crypto/ap_bus.c if (ap_dev->drv && ap_dev->drv->suspend) drv 595 drivers/s390/crypto/ap_bus.c ap_dev->drv->suspend(ap_dev); drv 603 drivers/s390/crypto/ap_bus.c if (ap_dev->drv && ap_dev->drv->resume) drv 604 drivers/s390/crypto/ap_bus.c ap_dev->drv->resume(ap_dev); drv 807 drivers/s390/crypto/ap_bus.c ap_dev->drv = ap_drv; drv 817 drivers/s390/crypto/ap_bus.c ap_dev->drv = NULL; drv 826 drivers/s390/crypto/ap_bus.c struct ap_driver *ap_drv = ap_dev->drv; drv 854 drivers/s390/crypto/ap_bus.c struct device_driver *drv = &ap_drv->driver; drv 859 drivers/s390/crypto/ap_bus.c drv->bus = &ap_bus_type; drv 860 drivers/s390/crypto/ap_bus.c drv->probe = ap_device_probe; drv 861 drivers/s390/crypto/ap_bus.c drv->remove = ap_device_remove; drv 862 drivers/s390/crypto/ap_bus.c drv->owner = owner; drv 863 drivers/s390/crypto/ap_bus.c drv->name = name; drv 864 drivers/s390/crypto/ap_bus.c return driver_register(drv); drv 150 drivers/s390/crypto/ap_bus.h struct ap_driver *drv; /* Pointer to AP device driver. */ drv 94 drivers/s390/crypto/vfio_ap_drv.c static int matrix_bus_match(struct device *dev, struct device_driver *drv) drv 574 drivers/s390/crypto/zcrypt_api.c if (!zq || !try_module_get(zq->queue->ap_dev.drv->driver.owner)) drv 581 drivers/s390/crypto/zcrypt_api.c *pmod = zq->queue->ap_dev.drv->driver.owner; drv 2007 drivers/s390/net/netiucv.c static ssize_t connection_store(struct device_driver *drv, const char *buf, drv 2071 drivers/s390/net/netiucv.c static ssize_t remove_store(struct device_driver *drv, const char *buf, drv 2993 drivers/scsi/arm/acornscsi.c .drv = { drv 337 drivers/scsi/arm/arxescsi.c .drv = { drv 322 drivers/scsi/arm/cumana_1.c .drv = { drv 494 drivers/scsi/arm/cumana_2.c .drv = { drv 618 drivers/scsi/arm/eesox.c .drv = { drv 192 drivers/scsi/arm/oak.c .drv = { drv 425 drivers/scsi/arm/powertec.c .drv = { drv 407 drivers/scsi/bfa/bfad.c bfa_cb_init(void *drv, bfa_status_t init_status) drv 409 drivers/scsi/bfa/bfad.c struct bfad_s *bfad = drv; drv 33 drivers/scsi/bfa/bfad_im.c bfa_cb_ioim_done(void *drv, struct bfad_ioim_s *dio, drv 38 drivers/scsi/bfa/bfad_im.c struct bfad_s *bfad = drv; drv 103 drivers/scsi/bfa/bfad_im.c bfa_cb_ioim_good_comp(void *drv, struct bfad_ioim_s *dio) drv 131 drivers/scsi/bfa/bfad_im.c bfa_cb_ioim_abort(void *drv, struct bfad_ioim_s *dio) drv 134 drivers/scsi/bfa/bfad_im.c struct bfad_s *bfad = drv; drv 136 drivers/scsi/bfa/bfad_im.h struct bfad_s *drv, int cnt, drv 150 drivers/scsi/bfa/bfad_im.h entry->bfad_num = drv->inst_no; drv 154 drivers/scsi/bfa/bfad_im.h if (drv->bfad_flags & BFAD_FC4_PROBE_DONE) drv 155 drivers/scsi/bfa/bfad_im.h queue_work(drv->im->drv_workq, &drv->im->aen_im_notify_work); drv 170 drivers/scsi/dc395x.c #define MK_RES(drv,did,msg,tgt) ((int)(drv)<<24 | (int)(did)<<16 | (int)(msg)<<8 | (int)(tgt)) drv 171 drivers/scsi/dc395x.c #define MK_RES_LNX(drv,did,msg,tgt) ((int)(drv)<<24 | (int)(did)<<16 | (int)(msg)<<8 | (int)(tgt)<<1) drv 177 drivers/scsi/dc395x.c #define SET_RES_DRV(who,drv) { who &= ~RES_DRV; who |= (int)(drv) << 24; } drv 619 drivers/scsi/fcoe/fcoe_sysfs.c struct device_driver *drv) drv 131 drivers/scsi/qedf/qedf_dbg.h #define qedf_dbg_fileops(drv, ops) \ drv 135 drivers/scsi/qedf/qedf_dbg.h .read = drv##_dbg_##ops##_cmd_read, \ drv 136 drivers/scsi/qedf/qedf_dbg.h .write = drv##_dbg_##ops##_cmd_write \ drv 140 drivers/scsi/qedf/qedf_dbg.h #define qedf_dbg_fileops_seq(drv, ops) \ drv 143 drivers/scsi/qedf/qedf_dbg.h .open = drv##_dbg_##ops##_open, \ drv 114 drivers/scsi/qedi/qedi_dbg.h #define qedi_dbg_fileops(drv, ops) \ drv 118 drivers/scsi/qedi/qedi_dbg.h .read = drv##_dbg_##ops##_cmd_read, \ drv 119 drivers/scsi/qedi/qedi_dbg.h .write = drv##_dbg_##ops##_cmd_write \ drv 123 drivers/scsi/qedi/qedi_dbg.h #define qedi_dbg_fileops_seq(drv, ops) \ drv 126 drivers/scsi/qedi/qedi_dbg.h .open = drv##_dbg_##ops##_open, \ drv 186 drivers/scsi/scsi.c struct scsi_driver *drv; drv 216 drivers/scsi/scsi.c drv = scsi_cmd_to_driver(cmd); drv 217 drivers/scsi/scsi.c if (drv->done) drv 218 drivers/scsi/scsi.c good_bytes = drv->done(cmd); drv 172 drivers/scsi/scsi_dh.c const char *drv; drv 174 drivers/scsi/scsi_dh.c drv = scsi_dh_find_driver(sdev); drv 175 drivers/scsi/scsi_dh.c if (drv) drv 176 drivers/scsi/scsi_dh.c devinfo = __scsi_dh_lookup(drv); drv 547 drivers/scsi/scsi_lib.c struct scsi_driver *drv = scsi_cmd_to_driver(cmd); drv 549 drivers/scsi/scsi_lib.c if (drv->uninit_command) drv 550 drivers/scsi/scsi_lib.c drv->uninit_command(cmd); drv 1521 drivers/scsi/scsi_scan.c struct scsi_driver *drv = to_scsi_driver(dev->driver); drv 1523 drivers/scsi/scsi_scan.c if (drv->rescan) drv 1524 drivers/scsi/scsi_scan.c drv->rescan(dev); drv 1520 drivers/scsi/scsi_sysfs.c int scsi_register_driver(struct device_driver *drv) drv 1522 drivers/scsi/scsi_sysfs.c drv->bus = &scsi_bus_type; drv 1524 drivers/scsi/scsi_sysfs.c return driver_register(drv); drv 1214 drivers/scsi/scsi_transport_iscsi.c struct device_driver *drv) drv 71 drivers/sh/maple/maple.c int maple_driver_register(struct maple_driver *drv) drv 73 drivers/sh/maple/maple.c if (!drv) drv 76 drivers/sh/maple/maple.c drv->drv.bus = &maple_bus_type; drv 78 drivers/sh/maple/maple.c return driver_register(&drv->drv); drv 89 drivers/sh/maple/maple.c void maple_driver_unregister(struct maple_driver *drv) drv 91 drivers/sh/maple/maple.c driver_unregister(&drv->drv); drv 775 drivers/sh/maple/maple.c .drv = { drv 810 drivers/sh/maple/maple.c retval = driver_register(&maple_unsupported_device.drv); drv 880 drivers/sh/maple/maple.c driver_unregister(&maple_unsupported_device.drv); drv 174 drivers/sh/superhyway/superhyway.c int superhyway_register_driver(struct superhyway_driver *drv) drv 176 drivers/sh/superhyway/superhyway.c drv->drv.name = drv->name; drv 177 drivers/sh/superhyway/superhyway.c drv->drv.bus = &superhyway_bus_type; drv 179 drivers/sh/superhyway/superhyway.c return driver_register(&drv->drv); drv 189 drivers/sh/superhyway/superhyway.c void superhyway_unregister_driver(struct superhyway_driver *drv) drv 191 drivers/sh/superhyway/superhyway.c driver_unregister(&drv->drv); drv 194 drivers/sh/superhyway/superhyway.c static int superhyway_bus_match(struct device *dev, struct device_driver *drv) drv 197 drivers/sh/superhyway/superhyway.c struct superhyway_driver *shyway_drv = to_superhyway_driver(drv); drv 506 drivers/siox/siox-core.c static int siox_match(struct device *dev, struct device_driver *drv) drv 33 drivers/slimbus/core.c static int slim_device_match(struct device *dev, struct device_driver *drv) drv 36 drivers/slimbus/core.c struct slim_driver *sbdrv = to_slim_driver(drv); drv 39 drivers/slimbus/core.c if (of_driver_match_device(dev, drv)) drv 123 drivers/slimbus/core.c int __slim_driver_register(struct slim_driver *drv, struct module *owner) drv 126 drivers/slimbus/core.c if (!(drv->driver.of_match_table || drv->id_table) || !drv->probe) drv 129 drivers/slimbus/core.c drv->driver.bus = &slimbus_bus; drv 130 drivers/slimbus/core.c drv->driver.owner = owner; drv 132 drivers/slimbus/core.c return driver_register(&drv->driver); drv 141 drivers/slimbus/core.c void slim_driver_unregister(struct slim_driver *drv) drv 143 drivers/slimbus/core.c driver_unregister(&drv->driver); drv 223 drivers/soc/fsl/qbman/bman_portal.c static int __init bman_portal_driver_register(struct platform_driver *drv) drv 227 drivers/soc/fsl/qbman/bman_portal.c ret = platform_driver_register(drv); drv 236 drivers/soc/fsl/qbman/bman_portal.c platform_driver_unregister(drv); drv 370 drivers/soc/fsl/qbman/qman_portal.c static int __init qman_portal_driver_register(struct platform_driver *drv) drv 374 drivers/soc/fsl/qbman/qman_portal.c ret = platform_driver_register(drv); drv 383 drivers/soc/fsl/qbman/qman_portal.c platform_driver_unregister(drv); drv 187 drivers/soc/qcom/apr.c static int apr_device_match(struct device *dev, struct device_driver *drv) drv 190 drivers/soc/qcom/apr.c struct apr_driver *adrv = to_apr_driver(drv); drv 194 drivers/soc/qcom/apr.c if (of_driver_match_device(dev, drv)) drv 382 drivers/soc/qcom/apr.c int __apr_driver_register(struct apr_driver *drv, struct module *owner) drv 384 drivers/soc/qcom/apr.c drv->driver.bus = &aprbus; drv 385 drivers/soc/qcom/apr.c drv->driver.owner = owner; drv 387 drivers/soc/qcom/apr.c return driver_register(&drv->driver); drv 396 drivers/soc/qcom/apr.c void apr_driver_unregister(struct apr_driver *drv) drv 398 drivers/soc/qcom/apr.c driver_unregister(&drv->driver); drv 413 drivers/soc/qcom/apr.c .drv = { drv 148 drivers/soc/qcom/glink_ssr.c .drv = { drv 37 drivers/soc/qcom/rpmh-internal.h struct rsc_drv *drv; drv 107 drivers/soc/qcom/rpmh-internal.h int rpmh_rsc_send_data(struct rsc_drv *drv, const struct tcs_request *msg); drv 108 drivers/soc/qcom/rpmh-internal.h int rpmh_rsc_write_ctrl_data(struct rsc_drv *drv, drv 110 drivers/soc/qcom/rpmh-internal.h int rpmh_rsc_invalidate(struct rsc_drv *drv); drv 64 drivers/soc/qcom/rpmh-rsc.c static u32 read_tcs_reg(struct rsc_drv *drv, int reg, int tcs_id, int cmd_id) drv 66 drivers/soc/qcom/rpmh-rsc.c return readl_relaxed(drv->tcs_base + reg + RSC_DRV_TCS_OFFSET * tcs_id + drv 70 drivers/soc/qcom/rpmh-rsc.c static void write_tcs_cmd(struct rsc_drv *drv, int reg, int tcs_id, int cmd_id, drv 73 drivers/soc/qcom/rpmh-rsc.c writel_relaxed(data, drv->tcs_base + reg + RSC_DRV_TCS_OFFSET * tcs_id + drv 77 drivers/soc/qcom/rpmh-rsc.c static void write_tcs_reg(struct rsc_drv *drv, int reg, int tcs_id, u32 data) drv 79 drivers/soc/qcom/rpmh-rsc.c writel_relaxed(data, drv->tcs_base + reg + RSC_DRV_TCS_OFFSET * tcs_id); drv 82 drivers/soc/qcom/rpmh-rsc.c static void write_tcs_reg_sync(struct rsc_drv *drv, int reg, int tcs_id, drv 85 drivers/soc/qcom/rpmh-rsc.c writel(data, drv->tcs_base + reg + RSC_DRV_TCS_OFFSET * tcs_id); drv 87 drivers/soc/qcom/rpmh-rsc.c if (data == readl(drv->tcs_base + reg + drv 94 drivers/soc/qcom/rpmh-rsc.c static bool tcs_is_free(struct rsc_drv *drv, int tcs_id) drv 96 drivers/soc/qcom/rpmh-rsc.c return !test_bit(tcs_id, drv->tcs_in_use) && drv 97 drivers/soc/qcom/rpmh-rsc.c read_tcs_reg(drv, RSC_DRV_STATUS, tcs_id, 0); drv 100 drivers/soc/qcom/rpmh-rsc.c static struct tcs_group *get_tcs_of_type(struct rsc_drv *drv, int type) drv 102 drivers/soc/qcom/rpmh-rsc.c return &drv->tcs[type]; drv 105 drivers/soc/qcom/rpmh-rsc.c static int tcs_invalidate(struct rsc_drv *drv, int type) drv 110 drivers/soc/qcom/rpmh-rsc.c tcs = get_tcs_of_type(drv, type); drv 119 drivers/soc/qcom/rpmh-rsc.c if (!tcs_is_free(drv, m)) { drv 123 drivers/soc/qcom/rpmh-rsc.c write_tcs_reg_sync(drv, RSC_DRV_CMD_ENABLE, m, 0); drv 124 drivers/soc/qcom/rpmh-rsc.c write_tcs_reg_sync(drv, RSC_DRV_CMD_WAIT_FOR_CMPL, m, 0); drv 137 drivers/soc/qcom/rpmh-rsc.c int rpmh_rsc_invalidate(struct rsc_drv *drv) drv 141 drivers/soc/qcom/rpmh-rsc.c ret = tcs_invalidate(drv, SLEEP_TCS); drv 143 drivers/soc/qcom/rpmh-rsc.c ret = tcs_invalidate(drv, WAKE_TCS); drv 148 drivers/soc/qcom/rpmh-rsc.c static struct tcs_group *get_tcs_for_msg(struct rsc_drv *drv, drv 176 drivers/soc/qcom/rpmh-rsc.c tcs = get_tcs_of_type(drv, type); drv 178 drivers/soc/qcom/rpmh-rsc.c tcs = get_tcs_of_type(drv, WAKE_TCS); drv 180 drivers/soc/qcom/rpmh-rsc.c ret = rpmh_rsc_invalidate(drv); drv 189 drivers/soc/qcom/rpmh-rsc.c static const struct tcs_request *get_req_from_tcs(struct rsc_drv *drv, drv 196 drivers/soc/qcom/rpmh-rsc.c tcs = &drv->tcs[i]; drv 209 drivers/soc/qcom/rpmh-rsc.c struct rsc_drv *drv = p; drv 215 drivers/soc/qcom/rpmh-rsc.c irq_status = read_tcs_reg(drv, RSC_DRV_IRQ_STATUS, 0, 0); drv 218 drivers/soc/qcom/rpmh-rsc.c req = get_req_from_tcs(drv, i); drv 229 drivers/soc/qcom/rpmh-rsc.c sts = read_tcs_reg(drv, RSC_DRV_CMD_STATUS, i, j); drv 234 drivers/soc/qcom/rpmh-rsc.c drv->name, cmd->addr, cmd->data); drv 239 drivers/soc/qcom/rpmh-rsc.c trace_rpmh_tx_done(drv, i, req, err); drv 242 drivers/soc/qcom/rpmh-rsc.c write_tcs_reg(drv, RSC_DRV_CMD_ENABLE, i, 0); drv 243 drivers/soc/qcom/rpmh-rsc.c write_tcs_reg(drv, RSC_DRV_CMD_WAIT_FOR_CMPL, i, 0); drv 244 drivers/soc/qcom/rpmh-rsc.c write_tcs_reg(drv, RSC_DRV_IRQ_CLEAR, 0, BIT(i)); drv 245 drivers/soc/qcom/rpmh-rsc.c spin_lock(&drv->lock); drv 246 drivers/soc/qcom/rpmh-rsc.c clear_bit(i, drv->tcs_in_use); drv 247 drivers/soc/qcom/rpmh-rsc.c spin_unlock(&drv->lock); drv 255 drivers/soc/qcom/rpmh-rsc.c static void __tcs_buffer_write(struct rsc_drv *drv, int tcs_id, int cmd_id, drv 268 drivers/soc/qcom/rpmh-rsc.c cmd_complete = read_tcs_reg(drv, RSC_DRV_CMD_WAIT_FOR_CMPL, tcs_id, 0); drv 277 drivers/soc/qcom/rpmh-rsc.c write_tcs_cmd(drv, RSC_DRV_CMD_MSGID, tcs_id, j, msgid); drv 278 drivers/soc/qcom/rpmh-rsc.c write_tcs_cmd(drv, RSC_DRV_CMD_ADDR, tcs_id, j, cmd->addr); drv 279 drivers/soc/qcom/rpmh-rsc.c write_tcs_cmd(drv, RSC_DRV_CMD_DATA, tcs_id, j, cmd->data); drv 280 drivers/soc/qcom/rpmh-rsc.c trace_rpmh_send_msg(drv, tcs_id, j, msgid, cmd); drv 283 drivers/soc/qcom/rpmh-rsc.c write_tcs_reg(drv, RSC_DRV_CMD_WAIT_FOR_CMPL, tcs_id, cmd_complete); drv 284 drivers/soc/qcom/rpmh-rsc.c cmd_enable |= read_tcs_reg(drv, RSC_DRV_CMD_ENABLE, tcs_id, 0); drv 285 drivers/soc/qcom/rpmh-rsc.c write_tcs_reg(drv, RSC_DRV_CMD_ENABLE, tcs_id, cmd_enable); drv 288 drivers/soc/qcom/rpmh-rsc.c static void __tcs_trigger(struct rsc_drv *drv, int tcs_id) drv 297 drivers/soc/qcom/rpmh-rsc.c enable = read_tcs_reg(drv, RSC_DRV_CONTROL, tcs_id, 0); drv 299 drivers/soc/qcom/rpmh-rsc.c write_tcs_reg_sync(drv, RSC_DRV_CONTROL, tcs_id, enable); drv 301 drivers/soc/qcom/rpmh-rsc.c write_tcs_reg_sync(drv, RSC_DRV_CONTROL, tcs_id, enable); drv 305 drivers/soc/qcom/rpmh-rsc.c write_tcs_reg_sync(drv, RSC_DRV_CONTROL, tcs_id, enable); drv 307 drivers/soc/qcom/rpmh-rsc.c write_tcs_reg_sync(drv, RSC_DRV_CONTROL, tcs_id, enable); drv 310 drivers/soc/qcom/rpmh-rsc.c static int check_for_req_inflight(struct rsc_drv *drv, struct tcs_group *tcs, drv 319 drivers/soc/qcom/rpmh-rsc.c if (tcs_is_free(drv, tcs_id)) drv 322 drivers/soc/qcom/rpmh-rsc.c curr_enabled = read_tcs_reg(drv, RSC_DRV_CMD_ENABLE, tcs_id, 0); drv 325 drivers/soc/qcom/rpmh-rsc.c addr = read_tcs_reg(drv, RSC_DRV_CMD_ADDR, tcs_id, j); drv 341 drivers/soc/qcom/rpmh-rsc.c if (tcs_is_free(tcs->drv, tcs->offset + i)) drv 348 drivers/soc/qcom/rpmh-rsc.c static int tcs_write(struct rsc_drv *drv, const struct tcs_request *msg) drv 355 drivers/soc/qcom/rpmh-rsc.c tcs = get_tcs_for_msg(drv, msg); drv 360 drivers/soc/qcom/rpmh-rsc.c spin_lock(&drv->lock); drv 365 drivers/soc/qcom/rpmh-rsc.c ret = check_for_req_inflight(drv, tcs, msg); drv 367 drivers/soc/qcom/rpmh-rsc.c spin_unlock(&drv->lock); drv 374 drivers/soc/qcom/rpmh-rsc.c spin_unlock(&drv->lock); drv 379 drivers/soc/qcom/rpmh-rsc.c set_bit(tcs_id, drv->tcs_in_use); drv 380 drivers/soc/qcom/rpmh-rsc.c spin_unlock(&drv->lock); drv 382 drivers/soc/qcom/rpmh-rsc.c __tcs_buffer_write(drv, tcs_id, 0, msg); drv 383 drivers/soc/qcom/rpmh-rsc.c __tcs_trigger(drv, tcs_id); drv 400 drivers/soc/qcom/rpmh-rsc.c int rpmh_rsc_send_data(struct rsc_drv *drv, const struct tcs_request *msg) drv 411 drivers/soc/qcom/rpmh-rsc.c ret = tcs_write(drv, msg); drv 480 drivers/soc/qcom/rpmh-rsc.c static int tcs_ctrl_write(struct rsc_drv *drv, const struct tcs_request *msg) drv 487 drivers/soc/qcom/rpmh-rsc.c tcs = get_tcs_for_msg(drv, msg); drv 495 drivers/soc/qcom/rpmh-rsc.c __tcs_buffer_write(drv, tcs_id, cmd_id, msg); drv 509 drivers/soc/qcom/rpmh-rsc.c int rpmh_rsc_write_ctrl_data(struct rsc_drv *drv, const struct tcs_request *msg) drv 521 drivers/soc/qcom/rpmh-rsc.c return tcs_ctrl_write(drv, msg); drv 525 drivers/soc/qcom/rpmh-rsc.c struct rsc_drv *drv) drv 539 drivers/soc/qcom/rpmh-rsc.c snprintf(drv_id, ARRAY_SIZE(drv_id), "drv-%d", drv->id); drv 548 drivers/soc/qcom/rpmh-rsc.c drv->tcs_base = base + offset; drv 553 drivers/soc/qcom/rpmh-rsc.c max_tcs &= DRV_NUM_TCS_MASK << (DRV_NUM_TCS_SHIFT * drv->id); drv 554 drivers/soc/qcom/rpmh-rsc.c max_tcs = max_tcs >> (DRV_NUM_TCS_SHIFT * drv->id); drv 580 drivers/soc/qcom/rpmh-rsc.c tcs = &drv->tcs[tcs_cfg[i].type]; drv 581 drivers/soc/qcom/rpmh-rsc.c if (tcs->drv) drv 583 drivers/soc/qcom/rpmh-rsc.c tcs->drv = drv; drv 614 drivers/soc/qcom/rpmh-rsc.c drv->num_tcs = st; drv 622 drivers/soc/qcom/rpmh-rsc.c struct rsc_drv *drv; drv 637 drivers/soc/qcom/rpmh-rsc.c drv = devm_kzalloc(&pdev->dev, sizeof(*drv), GFP_KERNEL); drv 638 drivers/soc/qcom/rpmh-rsc.c if (!drv) drv 641 drivers/soc/qcom/rpmh-rsc.c ret = of_property_read_u32(dn, "qcom,drv-id", &drv->id); drv 645 drivers/soc/qcom/rpmh-rsc.c drv->name = of_get_property(dn, "label", NULL); drv 646 drivers/soc/qcom/rpmh-rsc.c if (!drv->name) drv 647 drivers/soc/qcom/rpmh-rsc.c drv->name = dev_name(&pdev->dev); drv 649 drivers/soc/qcom/rpmh-rsc.c ret = rpmh_probe_tcs_config(pdev, drv); drv 653 drivers/soc/qcom/rpmh-rsc.c spin_lock_init(&drv->lock); drv 654 drivers/soc/qcom/rpmh-rsc.c bitmap_zero(drv->tcs_in_use, MAX_TCS_NR); drv 656 drivers/soc/qcom/rpmh-rsc.c irq = platform_get_irq(pdev, drv->id); drv 662 drivers/soc/qcom/rpmh-rsc.c drv->name, drv); drv 667 drivers/soc/qcom/rpmh-rsc.c write_tcs_reg(drv, RSC_DRV_IRQ_ENABLE, 0, drv->tcs[ACTIVE_TCS].mask); drv 669 drivers/soc/qcom/rpmh-rsc.c spin_lock_init(&drv->client.cache_lock); drv 670 drivers/soc/qcom/rpmh-rsc.c INIT_LIST_HEAD(&drv->client.cache); drv 671 drivers/soc/qcom/rpmh-rsc.c INIT_LIST_HEAD(&drv->client.batch_cache); drv 673 drivers/soc/qcom/rpmh-rsc.c dev_set_drvdata(&pdev->dev, drv); drv 73 drivers/soc/qcom/rpmh.c struct rsc_drv *drv = dev_get_drvdata(dev->parent); drv 75 drivers/soc/qcom/rpmh.c return &drv->client; drv 232 drivers/soc/qcom/smd-rpm.c .drv = { drv 115 drivers/soc/qcom/spm.c static inline void spm_register_write(struct spm_driver_data *drv, drv 118 drivers/soc/qcom/spm.c if (drv->reg_data->reg_offset[reg]) drv 119 drivers/soc/qcom/spm.c writel_relaxed(val, drv->reg_base + drv 120 drivers/soc/qcom/spm.c drv->reg_data->reg_offset[reg]); drv 124 drivers/soc/qcom/spm.c static inline void spm_register_write_sync(struct spm_driver_data *drv, drv 129 drivers/soc/qcom/spm.c if (!drv->reg_data->reg_offset[reg]) drv 133 drivers/soc/qcom/spm.c writel_relaxed(val, drv->reg_base + drv 134 drivers/soc/qcom/spm.c drv->reg_data->reg_offset[reg]); drv 135 drivers/soc/qcom/spm.c ret = readl_relaxed(drv->reg_base + drv 136 drivers/soc/qcom/spm.c drv->reg_data->reg_offset[reg]); drv 143 drivers/soc/qcom/spm.c static inline u32 spm_register_read(struct spm_driver_data *drv, drv 146 drivers/soc/qcom/spm.c return readl_relaxed(drv->reg_base + drv->reg_data->reg_offset[reg]); drv 149 drivers/soc/qcom/spm.c static void spm_set_low_power_mode(struct spm_driver_data *drv, drv 155 drivers/soc/qcom/spm.c start_index = drv->reg_data->start_index[mode]; drv 157 drivers/soc/qcom/spm.c ctl_val = spm_register_read(drv, SPM_REG_SPM_CTL); drv 161 drivers/soc/qcom/spm.c spm_register_write_sync(drv, SPM_REG_SPM_CTL, ctl_val); drv 178 drivers/soc/qcom/spm.c struct spm_driver_data *drv = __this_cpu_read(cpu_spm_drv); drv 180 drivers/soc/qcom/spm.c spm_set_low_power_mode(drv, PM_SLEEP_MODE_SPC); drv 188 drivers/soc/qcom/spm.c spm_set_low_power_mode(drv, PM_SLEEP_MODE_STBY); drv 284 drivers/soc/qcom/spm.c struct spm_driver_data *drv = NULL; drv 302 drivers/soc/qcom/spm.c drv = devm_kzalloc(&pdev->dev, sizeof(*drv), GFP_KERNEL); drv 303 drivers/soc/qcom/spm.c if (drv) drv 307 drivers/soc/qcom/spm.c return drv; drv 322 drivers/soc/qcom/spm.c struct spm_driver_data *drv; drv 328 drivers/soc/qcom/spm.c drv = spm_get_drv(pdev, &cpu); drv 329 drivers/soc/qcom/spm.c if (!drv) drv 333 drivers/soc/qcom/spm.c drv->reg_base = devm_ioremap_resource(&pdev->dev, res); drv 334 drivers/soc/qcom/spm.c if (IS_ERR(drv->reg_base)) drv 335 drivers/soc/qcom/spm.c return PTR_ERR(drv->reg_base); drv 341 drivers/soc/qcom/spm.c drv->reg_data = match_id->data; drv 344 drivers/soc/qcom/spm.c addr = drv->reg_base + drv->reg_data->reg_offset[SPM_REG_SEQ_ENTRY]; drv 345 drivers/soc/qcom/spm.c __iowrite32_copy(addr, drv->reg_data->seq, drv 346 drivers/soc/qcom/spm.c ARRAY_SIZE(drv->reg_data->seq) / 4); drv 354 drivers/soc/qcom/spm.c spm_register_write(drv, SPM_REG_CFG, drv->reg_data->spm_cfg); drv 355 drivers/soc/qcom/spm.c spm_register_write(drv, SPM_REG_DLY, drv->reg_data->spm_dly); drv 356 drivers/soc/qcom/spm.c spm_register_write(drv, SPM_REG_PMIC_DLY, drv->reg_data->pmic_dly); drv 357 drivers/soc/qcom/spm.c spm_register_write(drv, SPM_REG_PMIC_DATA_0, drv 358 drivers/soc/qcom/spm.c drv->reg_data->pmic_data[0]); drv 359 drivers/soc/qcom/spm.c spm_register_write(drv, SPM_REG_PMIC_DATA_1, drv 360 drivers/soc/qcom/spm.c drv->reg_data->pmic_data[1]); drv 363 drivers/soc/qcom/spm.c spm_set_low_power_mode(drv, PM_SLEEP_MODE_STBY); drv 365 drivers/soc/qcom/spm.c per_cpu(cpu_spm_drv, cpu) = drv; drv 348 drivers/soc/qcom/wcnss_ctrl.c .drv = { drv 20 drivers/soundwire/bus_type.c sdw_get_device_id(struct sdw_slave *slave, struct sdw_driver *drv) drv 22 drivers/soundwire/bus_type.c const struct sdw_device_id *id = drv->id_table; drv 37 drivers/soundwire/bus_type.c struct sdw_driver *drv = drv_to_sdw_driver(ddrv); drv 39 drivers/soundwire/bus_type.c return !!sdw_get_device_id(slave, drv); drv 73 drivers/soundwire/bus_type.c struct sdw_driver *drv = drv_to_sdw_driver(dev->driver); drv 77 drivers/soundwire/bus_type.c id = sdw_get_device_id(slave, drv); drv 81 drivers/soundwire/bus_type.c slave->ops = drv->ops; drv 90 drivers/soundwire/bus_type.c ret = drv->probe(slave, id); drv 92 drivers/soundwire/bus_type.c dev_err(dev, "Probe of %s failed: %d\n", drv->name, ret); drv 119 drivers/soundwire/bus_type.c struct sdw_driver *drv = drv_to_sdw_driver(dev->driver); drv 122 drivers/soundwire/bus_type.c if (drv->remove) drv 123 drivers/soundwire/bus_type.c ret = drv->remove(slave); drv 133 drivers/soundwire/bus_type.c struct sdw_driver *drv = drv_to_sdw_driver(dev->driver); drv 135 drivers/soundwire/bus_type.c if (drv->shutdown) drv 136 drivers/soundwire/bus_type.c drv->shutdown(slave); drv 146 drivers/soundwire/bus_type.c int __sdw_register_driver(struct sdw_driver *drv, struct module *owner) drv 148 drivers/soundwire/bus_type.c drv->driver.bus = &sdw_bus_type; drv 150 drivers/soundwire/bus_type.c if (!drv->probe) { drv 152 drivers/soundwire/bus_type.c drv->name); drv 156 drivers/soundwire/bus_type.c drv->driver.owner = owner; drv 157 drivers/soundwire/bus_type.c drv->driver.probe = sdw_drv_probe; drv 159 drivers/soundwire/bus_type.c if (drv->remove) drv 160 drivers/soundwire/bus_type.c drv->driver.remove = sdw_drv_remove; drv 162 drivers/soundwire/bus_type.c if (drv->shutdown) drv 163 drivers/soundwire/bus_type.c drv->driver.shutdown = sdw_drv_shutdown; drv 165 drivers/soundwire/bus_type.c return driver_register(&drv->driver); drv 173 drivers/soundwire/bus_type.c void sdw_unregister_driver(struct sdw_driver *drv) drv 175 drivers/soundwire/bus_type.c driver_unregister(&drv->driver); drv 716 drivers/spi/spi-mem.c static inline struct spi_mem_driver *to_spi_mem_drv(struct device_driver *drv) drv 718 drivers/spi/spi-mem.c return container_of(drv, struct spi_mem_driver, spidrv.driver); drv 2491 drivers/spi/spi-pl022.c .drv = { drv 342 drivers/spi/spi.c static int spi_match_device(struct device *dev, struct device_driver *drv) drv 345 drivers/spi/spi.c const struct spi_driver *sdrv = to_spi_driver(drv); drv 349 drivers/spi/spi.c return strcmp(spi->driver_override, drv->name) == 0; drv 352 drivers/spi/spi.c if (of_driver_match_device(dev, drv)) drv 356 drivers/spi/spi.c if (acpi_driver_match_device(dev, drv)) drv 362 drivers/spi/spi.c return strcmp(spi->modalias, drv->name) == 0; drv 44 drivers/spmi/spmi.c static int spmi_device_match(struct device *dev, struct device_driver *drv) drv 46 drivers/spmi/spmi.c if (of_driver_match_device(dev, drv)) drv 49 drivers/spmi/spmi.c if (drv->name) drv 50 drivers/spmi/spmi.c return strncmp(dev_name(dev), drv->name, drv 325 drivers/ssb/main.c static int ssb_bus_match(struct device *dev, struct device_driver *drv) drv 328 drivers/ssb/main.c struct ssb_driver *ssb_drv = drv_to_ssb_drv(drv); drv 787 drivers/ssb/main.c int __ssb_driver_register(struct ssb_driver *drv, struct module *owner) drv 789 drivers/ssb/main.c drv->drv.name = drv->name; drv 790 drivers/ssb/main.c drv->drv.bus = &ssb_bustype; drv 791 drivers/ssb/main.c drv->drv.owner = owner; drv 793 drivers/ssb/main.c return driver_register(&drv->drv); drv 797 drivers/ssb/main.c void ssb_driver_unregister(struct ssb_driver *drv) drv 799 drivers/ssb/main.c driver_unregister(&drv->drv); drv 533 drivers/staging/exfat/exfat.h s32 drv; drv 583 drivers/staging/exfat/exfat.h u32 drv; /* drive ID */ drv 29 drivers/staging/exfat/exfat_cache.c if ((bp->drv == p_fs->drv) && (bp->sec == sec)) { drv 142 drivers/staging/exfat/exfat_cache.c p_fs->FAT_cache_array[i].drv = -1; drv 156 drivers/staging/exfat/exfat_cache.c p_fs->buf_cache_array[i].drv = -1; drv 168 drivers/staging/exfat/exfat_cache.c p_fs->FAT_cache_hash_list[i].drv = -1; drv 180 drivers/staging/exfat/exfat_cache.c p_fs->buf_cache_hash_list[i].drv = -1; drv 459 drivers/staging/exfat/exfat_cache.c bp->drv = p_fs->drv; drv 467 drivers/staging/exfat/exfat_cache.c bp->drv = -1; drv 497 drivers/staging/exfat/exfat_cache.c if (bp->drv == p_fs->drv) { drv 498 drivers/staging/exfat/exfat_cache.c bp->drv = -1; drv 522 drivers/staging/exfat/exfat_cache.c if ((bp->drv == p_fs->drv) && (bp->flag & DIRTYBIT)) { drv 543 drivers/staging/exfat/exfat_cache.c if ((bp->drv == p_fs->drv) && (bp->sec == sec)) { drv 579 drivers/staging/exfat/exfat_cache.c bp->drv = p_fs->drv; drv 587 drivers/staging/exfat/exfat_cache.c bp->drv = -1; drv 667 drivers/staging/exfat/exfat_cache.c bp->drv = -1; drv 691 drivers/staging/exfat/exfat_cache.c if (bp->drv == p_fs->drv) { drv 692 drivers/staging/exfat/exfat_cache.c bp->drv = -1; drv 716 drivers/staging/exfat/exfat_cache.c if ((bp->drv == p_fs->drv) && (bp->flag & DIRTYBIT)) { drv 36 drivers/staging/fieldbus/anybuss/anybuss-client.h int anybuss_client_driver_register(struct anybuss_client_driver *drv); drv 37 drivers/staging/fieldbus/anybuss/anybuss-client.h void anybuss_client_driver_unregister(struct anybuss_client_driver *drv); drv 45 drivers/staging/fieldbus/anybuss/anybuss-client.h to_anybuss_client_driver(struct device_driver *drv) drv 47 drivers/staging/fieldbus/anybuss/anybuss-client.h return container_of(drv, struct anybuss_client_driver, driver); drv 1169 drivers/staging/fieldbus/anybuss/host.c struct device_driver *drv) drv 1172 drivers/staging/fieldbus/anybuss/host.c to_anybuss_client_driver(drv); drv 1208 drivers/staging/fieldbus/anybuss/host.c int anybuss_client_driver_register(struct anybuss_client_driver *drv) drv 1210 drivers/staging/fieldbus/anybuss/host.c drv->driver.bus = &anybus_bus; drv 1211 drivers/staging/fieldbus/anybuss/host.c return driver_register(&drv->driver); drv 1215 drivers/staging/fieldbus/anybuss/host.c void anybuss_client_driver_unregister(struct anybuss_client_driver *drv) drv 1217 drivers/staging/fieldbus/anybuss/host.c return driver_unregister(&drv->driver); drv 120 drivers/staging/greybus/gbphy.c static int gbphy_dev_match(struct device *dev, struct device_driver *drv) drv 122 drivers/staging/greybus/gbphy.c struct gbphy_driver *gbphy_drv = to_gbphy_driver(drv); drv 402 drivers/staging/isdn/gigaset/common.c static struct cardstate *alloc_cs(struct gigaset_driver *drv) drv 409 drivers/staging/isdn/gigaset/common.c spin_lock_irqsave(&drv->lock, flags); drv 410 drivers/staging/isdn/gigaset/common.c if (drv->blocked) drv 412 drivers/staging/isdn/gigaset/common.c for (i = 0; i < drv->minors; ++i) { drv 413 drivers/staging/isdn/gigaset/common.c cs = drv->cs + i; drv 421 drivers/staging/isdn/gigaset/common.c spin_unlock_irqrestore(&drv->lock, flags); drv 433 drivers/staging/isdn/gigaset/common.c struct gigaset_driver *drv = cs->driver; drv 434 drivers/staging/isdn/gigaset/common.c spin_lock_irqsave(&drv->lock, flags); drv 436 drivers/staging/isdn/gigaset/common.c spin_unlock_irqrestore(&drv->lock, flags); drv 442 drivers/staging/isdn/gigaset/common.c struct gigaset_driver *drv = cs->driver; drv 443 drivers/staging/isdn/gigaset/common.c spin_lock_irqsave(&drv->lock, flags); drv 445 drivers/staging/isdn/gigaset/common.c spin_unlock_irqrestore(&drv->lock, flags); drv 666 drivers/staging/isdn/gigaset/common.c struct cardstate *gigaset_initcs(struct gigaset_driver *drv, int channels, drv 675 drivers/staging/isdn/gigaset/common.c cs = alloc_cs(drv); drv 982 drivers/staging/isdn/gigaset/common.c struct gigaset_driver *drv; drv 986 drivers/staging/isdn/gigaset/common.c list_for_each_entry(drv, &drivers, list) { drv 987 drivers/staging/isdn/gigaset/common.c spin_lock(&drv->lock); drv 988 drivers/staging/isdn/gigaset/common.c for (i = 0; i < drv->minors; ++i) { drv 989 drivers/staging/isdn/gigaset/common.c cs = drv->cs + i; drv 995 drivers/staging/isdn/gigaset/common.c spin_unlock(&drv->lock); drv 1007 drivers/staging/isdn/gigaset/common.c struct gigaset_driver *drv; drv 1011 drivers/staging/isdn/gigaset/common.c list_for_each_entry(drv, &drivers, list) { drv 1012 drivers/staging/isdn/gigaset/common.c if (minor < drv->minor || minor >= drv->minor + drv->minors) drv 1014 drivers/staging/isdn/gigaset/common.c index = minor - drv->minor; drv 1015 drivers/staging/isdn/gigaset/common.c spin_lock(&drv->lock); drv 1016 drivers/staging/isdn/gigaset/common.c if (drv->cs[index].flags & VALID_MINOR) drv 1017 drivers/staging/isdn/gigaset/common.c ret = drv->cs + index; drv 1018 drivers/staging/isdn/gigaset/common.c spin_unlock(&drv->lock); drv 1039 drivers/staging/isdn/gigaset/common.c void gigaset_freedriver(struct gigaset_driver *drv) drv 1044 drivers/staging/isdn/gigaset/common.c list_del(&drv->list); drv 1047 drivers/staging/isdn/gigaset/common.c gigaset_if_freedriver(drv); drv 1049 drivers/staging/isdn/gigaset/common.c kfree(drv->cs); drv 1050 drivers/staging/isdn/gigaset/common.c kfree(drv); drv 1072 drivers/staging/isdn/gigaset/common.c struct gigaset_driver *drv; drv 1076 drivers/staging/isdn/gigaset/common.c drv = kmalloc(sizeof *drv, GFP_KERNEL); drv 1077 drivers/staging/isdn/gigaset/common.c if (!drv) drv 1080 drivers/staging/isdn/gigaset/common.c drv->have_tty = 0; drv 1081 drivers/staging/isdn/gigaset/common.c drv->minor = minor; drv 1082 drivers/staging/isdn/gigaset/common.c drv->minors = minors; drv 1083 drivers/staging/isdn/gigaset/common.c spin_lock_init(&drv->lock); drv 1084 drivers/staging/isdn/gigaset/common.c drv->blocked = 0; drv 1085 drivers/staging/isdn/gigaset/common.c drv->ops = ops; drv 1086 drivers/staging/isdn/gigaset/common.c drv->owner = owner; drv 1087 drivers/staging/isdn/gigaset/common.c INIT_LIST_HEAD(&drv->list); drv 1089 drivers/staging/isdn/gigaset/common.c drv->cs = kmalloc_array(minors, sizeof(*drv->cs), GFP_KERNEL); drv 1090 drivers/staging/isdn/gigaset/common.c if (!drv->cs) drv 1094 drivers/staging/isdn/gigaset/common.c drv->cs[i].flags = 0; drv 1095 drivers/staging/isdn/gigaset/common.c drv->cs[i].driver = drv; drv 1096 drivers/staging/isdn/gigaset/common.c drv->cs[i].ops = drv->ops; drv 1097 drivers/staging/isdn/gigaset/common.c drv->cs[i].minor_index = i; drv 1098 drivers/staging/isdn/gigaset/common.c mutex_init(&drv->cs[i].mutex); drv 1101 drivers/staging/isdn/gigaset/common.c gigaset_if_initdriver(drv, procname, devname); drv 1104 drivers/staging/isdn/gigaset/common.c list_add(&drv->list, &drivers); drv 1107 drivers/staging/isdn/gigaset/common.c return drv; drv 1110 drivers/staging/isdn/gigaset/common.c kfree(drv); drv 1122 drivers/staging/isdn/gigaset/common.c void gigaset_blockdriver(struct gigaset_driver *drv) drv 1124 drivers/staging/isdn/gigaset/common.c drv->blocked = 1; drv 727 drivers/staging/isdn/gigaset/gigaset.h void gigaset_freedriver(struct gigaset_driver *drv); drv 731 drivers/staging/isdn/gigaset/gigaset.h void gigaset_blockdriver(struct gigaset_driver *drv); drv 735 drivers/staging/isdn/gigaset/gigaset.h struct cardstate *gigaset_initcs(struct gigaset_driver *drv, int channels, drv 815 drivers/staging/isdn/gigaset/gigaset.h void gigaset_if_initdriver(struct gigaset_driver *drv, const char *procname, drv 818 drivers/staging/isdn/gigaset/gigaset.h void gigaset_if_freedriver(struct gigaset_driver *drv); drv 506 drivers/staging/isdn/gigaset/interface.c struct gigaset_driver *drv; drv 508 drivers/staging/isdn/gigaset/interface.c drv = cs->driver; drv 509 drivers/staging/isdn/gigaset/interface.c if (!drv->have_tty) drv 515 drivers/staging/isdn/gigaset/interface.c cs->tty_dev = tty_port_register_device(&cs->port, drv->tty, drv 529 drivers/staging/isdn/gigaset/interface.c struct gigaset_driver *drv; drv 531 drivers/staging/isdn/gigaset/interface.c drv = cs->driver; drv 532 drivers/staging/isdn/gigaset/interface.c if (!drv->have_tty) drv 538 drivers/staging/isdn/gigaset/interface.c tty_unregister_device(drv->tty, cs->minor_index); drv 565 drivers/staging/isdn/gigaset/interface.c void gigaset_if_initdriver(struct gigaset_driver *drv, const char *procname, drv 571 drivers/staging/isdn/gigaset/interface.c drv->have_tty = 0; drv 573 drivers/staging/isdn/gigaset/interface.c drv->tty = tty = alloc_tty_driver(drv->minors); drv 583 drivers/staging/isdn/gigaset/interface.c tty->minor_start = drv->minor; drv 595 drivers/staging/isdn/gigaset/interface.c drv->have_tty = 1; drv 601 drivers/staging/isdn/gigaset/interface.c if (drv->tty) drv 602 drivers/staging/isdn/gigaset/interface.c put_tty_driver(drv->tty); drv 605 drivers/staging/isdn/gigaset/interface.c void gigaset_if_freedriver(struct gigaset_driver *drv) drv 607 drivers/staging/isdn/gigaset/interface.c if (!drv->have_tty) drv 610 drivers/staging/isdn/gigaset/interface.c drv->have_tty = 0; drv 611 drivers/staging/isdn/gigaset/interface.c tty_unregister_driver(drv->tty); drv 612 drivers/staging/isdn/gigaset/interface.c put_tty_driver(drv->tty); drv 1742 drivers/staging/media/soc_camera/soc_camera.c struct device_driver *drv = dev ? dev->driver : NULL; drv 1743 drivers/staging/media/soc_camera/soc_camera.c if (drv) { drv 1745 drivers/staging/media/soc_camera/soc_camera.c module_put(drv->owner); drv 34 drivers/staging/most/core.c struct device_driver drv; drv 39 drivers/staging/most/core.c #define to_driver(d) container_of(d, struct mostcore, drv) drv 503 drivers/staging/most/core.c static ssize_t links_show(struct device_driver *drv, char *buf) drv 511 drivers/staging/most/core.c static ssize_t components_show(struct device_driver *drv, char *buf) drv 735 drivers/staging/most/core.c static ssize_t remove_link_store(struct device_driver *drv, drv 811 drivers/staging/most/core.c static int most_match(struct device *dev, struct device_driver *drv) drv 1566 drivers/staging/most/core.c mc.drv.name = "most_core", drv 1567 drivers/staging/most/core.c mc.drv.bus = &mc.bus, drv 1568 drivers/staging/most/core.c mc.drv.groups = mc_attr_groups; drv 1575 drivers/staging/most/core.c err = driver_register(&mc.drv); drv 1590 drivers/staging/most/core.c driver_unregister(&mc.drv); drv 1600 drivers/staging/most/core.c driver_unregister(&mc.drv); drv 432 drivers/staging/qlge/qlge_dbg.c netif_err(qdev, drv, qdev->ndev, drv 444 drivers/staging/qlge/qlge_dbg.c netif_err(qdev, drv, qdev->ndev, drv 468 drivers/staging/qlge/qlge_dbg.c netif_err(qdev, drv, qdev->ndev, drv 725 drivers/staging/qlge/qlge_dbg.c netif_err(qdev, drv, qdev->ndev, "No memory allocated\n"); drv 737 drivers/staging/qlge/qlge_dbg.c netif_err(qdev, drv, qdev->ndev, drv 899 drivers/staging/qlge/qlge_dbg.c netif_err(qdev, drv, qdev->ndev, drv 1165 drivers/staging/qlge/qlge_dbg.c netif_err(qdev, drv, qdev->ndev, drv 1173 drivers/staging/qlge/qlge_dbg.c netif_err(qdev, drv, qdev->ndev, drv 1186 drivers/staging/qlge/qlge_dbg.c netif_err(qdev, drv, qdev->ndev, drv 1201 drivers/staging/qlge/qlge_dbg.c netif_err(qdev, drv, qdev->ndev, drv 1215 drivers/staging/qlge/qlge_dbg.c netif_err(qdev, drv, qdev->ndev, "Don't own firmware!\n"); drv 1319 drivers/staging/qlge/qlge_dbg.c netif_err(qdev, drv, qdev->ndev, "coredump failed!\n"); drv 1336 drivers/staging/qlge/qlge_dbg.c netif_printk(qdev, drv, KERN_DEBUG, qdev->ndev, drv 252 drivers/staging/qlge/qlge_ethtool.c netif_err(qdev, drv, qdev->ndev, drv 261 drivers/staging/qlge/qlge_ethtool.c netif_err(qdev, drv, qdev->ndev, drv 275 drivers/staging/qlge/qlge_ethtool.c netif_err(qdev, drv, qdev->ndev, drv 292 drivers/staging/qlge/qlge_ethtool.c netif_err(qdev, drv, qdev->ndev, drv 306 drivers/staging/qlge/qlge_ethtool.c netif_err(qdev, drv, qdev->ndev, drv 319 drivers/staging/qlge/qlge_ethtool.c netif_err(qdev, drv, qdev->ndev, drv 448 drivers/staging/qlge/qlge_ethtool.c netif_info(qdev, drv, qdev->ndev, drv 456 drivers/staging/qlge/qlge_ethtool.c netif_info(qdev, drv, qdev->ndev, "Set wol option 0x%x\n", qdev->wol); drv 592 drivers/staging/qlge/qlge_ethtool.c netif_err(qdev, drv, qdev->ndev, drv 1098 drivers/staging/qlge/qlge_main.c netif_err(qdev, drv, qdev->ndev, drv 1110 drivers/staging/qlge/qlge_main.c netif_err(qdev, drv, qdev->ndev, drv 1511 drivers/staging/qlge/qlge_main.c netif_err(qdev, drv, qdev->ndev, drv 1574 drivers/staging/qlge/qlge_main.c netif_err(qdev, drv, qdev->ndev, drv 2195 drivers/staging/qlge/qlge_main.c netif_err(qdev, drv, qdev->ndev, "Unexpected event %d.\n", drv 3954 drivers/staging/qlge/qlge_main.c netif_info(qdev, drv, qdev->ndev, drv 3964 drivers/staging/qlge/qlge_main.c netif_err(qdev, drv, qdev->ndev, drv 4081 drivers/staging/qlge/qlge_main.c netif_err(qdev, drv, qdev->ndev, "EEH fatal did unload.\n"); drv 4915 drivers/staging/qlge/qlge_main.c netif_err(qdev, drv, qdev->ndev, "reset FAILED!\n"); drv 139 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "Failed mailbox read.\n"); drv 212 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "Enter!\n"); drv 219 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, drv 243 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, drv 262 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, drv 268 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "Link Up.\n"); drv 288 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "Queue Port Config Worker!\n"); drv 310 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "Link down AEN broken!\n"); drv 323 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "SFP in AEN broken!\n"); drv 325 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "SFP insertion detected.\n"); drv 338 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "SFP out AEN broken!\n"); drv 340 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "SFP removal detected.\n"); drv 353 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "Lost AEN broken!\n"); drv 356 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "Lost AEN detected.\n"); drv 358 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "mbox_out[%d] = 0x%.08x.\n", drv 374 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "Firmware did not initialize!\n"); drv 376 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "Firmware Revision = 0x%.08x.\n", drv 401 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, drv 491 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, drv 498 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "System Error.\n"); drv 511 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, drv 586 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, drv 633 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, drv 665 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, drv 675 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, drv 708 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "Failed IDC ACK send.\n"); drv 739 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, drv 742 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, drv 777 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "Failed to dump risc RAM.\n"); drv 827 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, drv 831 drivers/staging/qlge/qlge_mpi.c netif_printk(qdev, drv, KERN_DEBUG, qdev->ndev, drv 859 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "Failed to set WOL mode.\n"); drv 901 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "Failed to set WOL mode.\n"); drv 927 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "IDC Timeout.\n"); drv 935 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, drv 939 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "IDC Success.\n"); drv 943 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, drv 974 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, drv 1000 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, drv 1031 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, drv 1039 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, drv 1070 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, drv 1074 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, drv 1127 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, drv 1141 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, drv 1173 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, drv 1190 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, drv 1193 drivers/staging/qlge/qlge_mpi.c netif_printk(qdev, drv, KERN_DEBUG, qdev->ndev, drv 1223 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, drv 1226 drivers/staging/qlge/qlge_mpi.c netif_printk(qdev, drv, KERN_DEBUG, qdev->ndev, drv 1274 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "Don't own firmware!\n"); drv 1279 drivers/staging/qlge/qlge_mpi.c netif_err(qdev, drv, qdev->ndev, "Core is dumped!\n"); drv 49 drivers/staging/rtl8723bs/os_dep/sdio_intf.c .r871xs_drv.drv = { drv 119 drivers/staging/uwb/umc-bus.c static int umc_bus_match(struct device *dev, struct device_driver *drv) drv 122 drivers/staging/uwb/umc-bus.c struct umc_driver *umc_driver = to_umc_driver(drv); drv 1415 drivers/staging/wilc1000/wilc_hif.c struct wilc_drv_handler drv; drv 1419 drivers/staging/wilc1000/wilc_hif.c wid.size = sizeof(drv); drv 1420 drivers/staging/wilc1000/wilc_hif.c wid.val = (u8 *)&drv; drv 1422 drivers/staging/wilc1000/wilc_hif.c drv.handler = cpu_to_le32(index); drv 1423 drivers/staging/wilc1000/wilc_hif.c drv.mode = (ifc_id | (mode << 1)); drv 1143 drivers/staging/wilc1000/wilc_sdio.c .drv = { drv 1123 drivers/staging/wilc1000/wilc_wlan.c u32 drv = wilc_get_vif_idx(vif); drv 1130 drivers/staging/wilc1000/wilc_wlan.c drv)) { drv 1148 drivers/staging/wilc1000/wilc_wlan.c drv)) { drv 86 drivers/tc/tc-driver.c static int tc_bus_match(struct device *dev, struct device_driver *drv) drv 89 drivers/tc/tc-driver.c struct tc_driver *tdrv = to_tc_driver(drv); drv 1045 drivers/tee/tee_core.c struct device_driver *drv) drv 1050 drivers/tee/tee_core.c id_table = to_tee_client_driver(drv)->id_table; drv 50 drivers/thunderbolt/domain.c struct device_driver *drv) drv 60 drivers/thunderbolt/domain.c driver = container_of(drv, struct tb_service_driver, driver); drv 72 drivers/thunderbolt/domain.c static int tb_service_match(struct device *dev, struct device_driver *drv) drv 74 drivers/thunderbolt/domain.c return !!__tb_service_match(dev, drv); drv 611 drivers/thunderbolt/xdomain.c int tb_register_service_driver(struct tb_service_driver *drv) drv 613 drivers/thunderbolt/xdomain.c drv->driver.bus = &tb_bus_type; drv 614 drivers/thunderbolt/xdomain.c return driver_register(&drv->driver); drv 624 drivers/thunderbolt/xdomain.c void tb_unregister_service_driver(struct tb_service_driver *drv) drv 626 drivers/thunderbolt/xdomain.c driver_unregister(&drv->driver); drv 1020 drivers/tty/hvc/hvc_console.c struct tty_driver *drv; drv 1024 drivers/tty/hvc/hvc_console.c drv = alloc_tty_driver(HVC_ALLOC_TTY_ADAPTERS); drv 1025 drivers/tty/hvc/hvc_console.c if (!drv) { drv 1030 drivers/tty/hvc/hvc_console.c drv->driver_name = "hvc"; drv 1031 drivers/tty/hvc/hvc_console.c drv->name = "hvc"; drv 1032 drivers/tty/hvc/hvc_console.c drv->major = HVC_MAJOR; drv 1033 drivers/tty/hvc/hvc_console.c drv->minor_start = HVC_MINOR; drv 1034 drivers/tty/hvc/hvc_console.c drv->type = TTY_DRIVER_TYPE_SYSTEM; drv 1035 drivers/tty/hvc/hvc_console.c drv->init_termios = tty_std_termios; drv 1036 drivers/tty/hvc/hvc_console.c drv->flags = TTY_DRIVER_REAL_RAW | TTY_DRIVER_RESET_TERMIOS; drv 1037 drivers/tty/hvc/hvc_console.c tty_set_operations(drv, &hvc_ops); drv 1048 drivers/tty/hvc/hvc_console.c err = tty_register_driver(drv); drv 1059 drivers/tty/hvc/hvc_console.c hvc_driver = drv; drv 1066 drivers/tty/hvc/hvc_console.c put_tty_driver(drv); drv 1116 drivers/tty/mips_ejtag_fdc.c .drv = { drv 85 drivers/tty/serdev/core.c static int serdev_device_match(struct device *dev, struct device_driver *drv) drv 91 drivers/tty/serdev/core.c if (acpi_driver_match_device(dev, drv)) drv 94 drivers/tty/serdev/core.c return of_driver_match_device(dev, drv); drv 266 drivers/tty/serdev/serdev-ttyport.c struct tty_driver *drv, int idx) drv 272 drivers/tty/serdev/serdev-ttyport.c if (!port || !drv || !parent) drv 282 drivers/tty/serdev/serdev-ttyport.c serport->tty_drv = drv; drv 293 drivers/tty/serdev/serdev-ttyport.c dev_info(&ctrl->dev, "tty port %s%d registered\n", drv->name, idx); drv 118 drivers/tty/serial/8250/8250_acorn.c .drv = { drv 559 drivers/tty/serial/8250/8250_core.c serial8250_register_ports(struct uart_driver *drv, struct device *dev) drv 575 drivers/tty/serial/8250/8250_core.c uart_add_one_port(drv, &up->port); drv 815 drivers/tty/serial/amba-pl010.c .drv = { drv 2804 drivers/tty/serial/amba-pl011.c .drv = { drv 234 drivers/tty/serial/kgdb_nmi.c static int kgdb_nmi_tty_install(struct tty_driver *drv, struct tty_struct *tty) drv 249 drivers/tty/serial/kgdb_nmi.c ret = tty_port_install(&priv->port, drv, tty); drv 1161 drivers/tty/serial/qcom_geni_serial.c static int __init console_register(struct uart_driver *drv) drv 1163 drivers/tty/serial/qcom_geni_serial.c return uart_register_driver(drv); drv 1166 drivers/tty/serial/qcom_geni_serial.c static void console_unregister(struct uart_driver *drv) drv 1168 drivers/tty/serial/qcom_geni_serial.c uart_unregister_driver(drv); drv 1189 drivers/tty/serial/qcom_geni_serial.c static int console_register(struct uart_driver *drv) drv 1194 drivers/tty/serial/qcom_geni_serial.c static void console_unregister(struct uart_driver *drv) drv 1267 drivers/tty/serial/qcom_geni_serial.c struct uart_driver *drv; drv 1273 drivers/tty/serial/qcom_geni_serial.c drv = &qcom_geni_console_driver; drv 1276 drivers/tty/serial/qcom_geni_serial.c drv = &qcom_geni_uart_driver; drv 1315 drivers/tty/serial/qcom_geni_serial.c uport->private_data = drv; drv 1320 drivers/tty/serial/qcom_geni_serial.c return uart_add_one_port(drv, uport); drv 1326 drivers/tty/serial/qcom_geni_serial.c struct uart_driver *drv = port->uport.private_data; drv 1328 drivers/tty/serial/qcom_geni_serial.c uart_remove_one_port(drv, &port->uport); drv 1543 drivers/tty/serial/serial_core.c struct uart_driver *drv = tty->driver->driver_state; drv 1546 drivers/tty/serial/serial_core.c state = drv->state + tty->index; drv 1751 drivers/tty/serial/serial_core.c struct uart_driver *drv = driver->driver_state; drv 1752 drivers/tty/serial/serial_core.c struct uart_state *state = drv->state + tty->index; drv 1818 drivers/tty/serial/serial_core.c static void uart_line_info(struct seq_file *m, struct uart_driver *drv, int i) drv 1820 drivers/tty/serial/serial_core.c struct uart_state *state = drv->state + i; drv 1901 drivers/tty/serial/serial_core.c struct uart_driver *drv = ttydrv->driver_state; drv 1905 drivers/tty/serial/serial_core.c for (i = 0; i < drv->nr; i++) drv 1906 drivers/tty/serial/serial_core.c uart_line_info(m, drv, i); drv 2150 drivers/tty/serial/serial_core.c int uart_suspend_port(struct uart_driver *drv, struct uart_port *uport) drv 2152 drivers/tty/serial/serial_core.c struct uart_state *state = drv->state + uport->line; drv 2155 drivers/tty/serial/serial_core.c struct uart_match match = {uport, drv}; drv 2212 drivers/tty/serial/serial_core.c int uart_resume_port(struct uart_driver *drv, struct uart_port *uport) drv 2214 drivers/tty/serial/serial_core.c struct uart_state *state = drv->state + uport->line; drv 2217 drivers/tty/serial/serial_core.c struct uart_match match = {uport, drv}; drv 2295 drivers/tty/serial/serial_core.c uart_report_port(struct uart_driver *drv, struct uart_port *port) drv 2329 drivers/tty/serial/serial_core.c uart_configure_port(struct uart_driver *drv, struct uart_state *state, drv 2358 drivers/tty/serial/serial_core.c uart_report_port(drv, port); drv 2393 drivers/tty/serial/serial_core.c struct uart_driver *drv = driver->driver_state; drv 2394 drivers/tty/serial/serial_core.c struct uart_state *state = drv->state + line; drv 2432 drivers/tty/serial/serial_core.c struct uart_driver *drv = driver->driver_state; drv 2433 drivers/tty/serial/serial_core.c struct uart_state *state = drv->state + line; drv 2448 drivers/tty/serial/serial_core.c struct uart_driver *drv = driver->driver_state; drv 2449 drivers/tty/serial/serial_core.c struct uart_state *state = drv->state + line; drv 2519 drivers/tty/serial/serial_core.c int uart_register_driver(struct uart_driver *drv) drv 2524 drivers/tty/serial/serial_core.c BUG_ON(drv->state); drv 2530 drivers/tty/serial/serial_core.c drv->state = kcalloc(drv->nr, sizeof(struct uart_state), GFP_KERNEL); drv 2531 drivers/tty/serial/serial_core.c if (!drv->state) drv 2534 drivers/tty/serial/serial_core.c normal = alloc_tty_driver(drv->nr); drv 2538 drivers/tty/serial/serial_core.c drv->tty_driver = normal; drv 2540 drivers/tty/serial/serial_core.c normal->driver_name = drv->driver_name; drv 2541 drivers/tty/serial/serial_core.c normal->name = drv->dev_name; drv 2542 drivers/tty/serial/serial_core.c normal->major = drv->major; drv 2543 drivers/tty/serial/serial_core.c normal->minor_start = drv->minor; drv 2550 drivers/tty/serial/serial_core.c normal->driver_state = drv; drv 2556 drivers/tty/serial/serial_core.c for (i = 0; i < drv->nr; i++) { drv 2557 drivers/tty/serial/serial_core.c struct uart_state *state = drv->state + i; drv 2568 drivers/tty/serial/serial_core.c for (i = 0; i < drv->nr; i++) drv 2569 drivers/tty/serial/serial_core.c tty_port_destroy(&drv->state[i].port); drv 2572 drivers/tty/serial/serial_core.c kfree(drv->state); drv 2586 drivers/tty/serial/serial_core.c void uart_unregister_driver(struct uart_driver *drv) drv 2588 drivers/tty/serial/serial_core.c struct tty_driver *p = drv->tty_driver; drv 2593 drivers/tty/serial/serial_core.c for (i = 0; i < drv->nr; i++) drv 2594 drivers/tty/serial/serial_core.c tty_port_destroy(&drv->state[i].port); drv 2595 drivers/tty/serial/serial_core.c kfree(drv->state); drv 2596 drivers/tty/serial/serial_core.c drv->state = NULL; drv 2597 drivers/tty/serial/serial_core.c drv->tty_driver = NULL; drv 2787 drivers/tty/serial/serial_core.c int uart_add_one_port(struct uart_driver *drv, struct uart_port *uport) drv 2797 drivers/tty/serial/serial_core.c if (uport->line >= drv->nr) drv 2800 drivers/tty/serial/serial_core.c state = drv->state + uport->line; drv 2817 drivers/tty/serial/serial_core.c uport->cons = drv->cons; drv 2818 drivers/tty/serial/serial_core.c uport->minor = drv->tty_driver->minor_start + uport->line; drv 2819 drivers/tty/serial/serial_core.c uport->name = kasprintf(GFP_KERNEL, "%s%d", drv->dev_name, drv 2820 drivers/tty/serial/serial_core.c drv->tty_driver->name_base + uport->line); drv 2837 drivers/tty/serial/serial_core.c tty_port_link_device(port, drv->tty_driver, uport->line); drv 2838 drivers/tty/serial/serial_core.c uart_configure_port(drv, state, uport); drv 2860 drivers/tty/serial/serial_core.c tty_dev = tty_port_register_device_attr_serdev(port, drv->tty_driver, drv 2890 drivers/tty/serial/serial_core.c int uart_remove_one_port(struct uart_driver *drv, struct uart_port *uport) drv 2892 drivers/tty/serial/serial_core.c struct uart_state *state = drv->state + uport->line; drv 2923 drivers/tty/serial/serial_core.c tty_port_unregister_device(port, drv->tty_driver, uport->line); drv 868 drivers/tty/serial/serial_txx9.c static void __init serial_txx9_register_ports(struct uart_driver *drv, drv 880 drivers/tty/serial/serial_txx9.c uart_add_one_port(drv, &up->port); drv 28 drivers/tty/serial/suncore.c int sunserial_register_minors(struct uart_driver *drv, int count) drv 32 drivers/tty/serial/suncore.c drv->minor = sunserial_current_minor; drv 33 drivers/tty/serial/suncore.c drv->nr += count; drv 35 drivers/tty/serial/suncore.c if (drv->nr == count) drv 36 drivers/tty/serial/suncore.c err = uart_register_driver(drv); drv 39 drivers/tty/serial/suncore.c drv->tty_driver->name_base = drv->minor - 64; drv 45 drivers/tty/serial/suncore.c void sunserial_unregister_minors(struct uart_driver *drv, int count) drv 47 drivers/tty/serial/suncore.c drv->nr -= count; drv 50 drivers/tty/serial/suncore.c if (drv->nr == 0) drv 51 drivers/tty/serial/suncore.c uart_unregister_driver(drv); drv 56 drivers/tty/serial/suncore.c struct uart_driver *drv, int line, bool ignore_line) drv 61 drivers/tty/serial/suncore.c drv->cons = con; drv 3448 drivers/tty/tty_io.c struct tty_driver *drv = cs[i]->device(cs[i], &index); drv 3451 drivers/tty/tty_io.c if (drv && (cs[i]->index > 0 || drv->major != TTY_MAJOR)) drv 3452 drivers/tty/tty_io.c count += tty_line_name(drv, index, buf + count); drv 38 drivers/usb/common/ulpi.c struct ulpi_driver *drv = to_ulpi_driver(driver); drv 46 drivers/usb/common/ulpi.c for (id = drv->id_table; id->vendor; id++) drv 71 drivers/usb/common/ulpi.c struct ulpi_driver *drv = to_ulpi_driver(dev->driver); drv 78 drivers/usb/common/ulpi.c return drv->probe(to_ulpi_dev(dev)); drv 83 drivers/usb/common/ulpi.c struct ulpi_driver *drv = to_ulpi_driver(dev->driver); drv 85 drivers/usb/common/ulpi.c if (drv->remove) drv 86 drivers/usb/common/ulpi.c drv->remove(to_ulpi_dev(dev)); drv 149 drivers/usb/common/ulpi.c int __ulpi_register_driver(struct ulpi_driver *drv, struct module *module) drv 151 drivers/usb/common/ulpi.c if (!drv->probe) drv 154 drivers/usb/common/ulpi.c drv->driver.owner = module; drv 155 drivers/usb/common/ulpi.c drv->driver.bus = &ulpi_bus; drv 157 drivers/usb/common/ulpi.c return driver_register(&drv->driver); drv 167 drivers/usb/common/ulpi.c void ulpi_unregister_driver(struct ulpi_driver *drv) drv 169 drivers/usb/common/ulpi.c driver_unregister(&drv->driver); drv 232 drivers/usb/core/driver.c struct usb_driver *drv) drv 236 drivers/usb/core/driver.c spin_lock(&drv->dynids.lock); drv 237 drivers/usb/core/driver.c list_for_each_entry(dynid, &drv->dynids.list, node) { drv 239 drivers/usb/core/driver.c spin_unlock(&drv->dynids.lock); drv 243 drivers/usb/core/driver.c spin_unlock(&drv->dynids.lock); drv 793 drivers/usb/core/driver.c static int usb_device_match(struct device *dev, struct device_driver *drv) drv 799 drivers/usb/core/driver.c if (!is_usb_device_driver(drv)) drv 811 drivers/usb/core/driver.c if (is_usb_device_driver(drv)) drv 815 drivers/usb/core/driver.c usb_drv = to_usb_driver(drv); drv 1120 drivers/usb/core/driver.c struct usb_driver *drv; drv 1128 drivers/usb/core/driver.c drv = to_usb_driver(intf->dev.driver); drv 1129 drivers/usb/core/driver.c if (!drv->suspend || !drv->resume) drv 67 drivers/usb/core/file.c struct usb_class_driver *drv; drv 69 drivers/usb/core/file.c drv = dev_get_drvdata(dev); drv 70 drivers/usb/core/file.c if (!drv || !drv->devnode) drv 72 drivers/usb/core/file.c return drv->devnode(dev, mode); drv 785 drivers/usb/core/hub.c const struct hc_driver *drv; drv 801 drivers/usb/core/hub.c drv = clear->hcd->driver; drv 802 drivers/usb/core/hub.c if (drv->clear_tt_buffer_complete) drv 803 drivers/usb/core/hub.c (drv->clear_tt_buffer_complete)(clear->hcd, clear->ep); drv 1824 drivers/usb/core/hub.c const struct hc_driver *drv = bus_to_hcd(hdev->bus)->driver; drv 1826 drivers/usb/core/hub.c if (drv->bus_suspend && drv->bus_resume) drv 5907 drivers/usb/core/hub.c struct usb_driver *drv; drv 5911 drivers/usb/core/hub.c drv = to_usb_driver(cintf->dev.driver); drv 5912 drivers/usb/core/hub.c if (drv->pre_reset && drv->post_reset) drv 5913 drivers/usb/core/hub.c unbind = (drv->pre_reset)(cintf); drv 5930 drivers/usb/core/hub.c struct usb_driver *drv; drv 5934 drivers/usb/core/hub.c drv = to_usb_driver(cintf->dev.driver); drv 5935 drivers/usb/core/hub.c if (drv->post_reset) drv 5936 drivers/usb/core/hub.c rebind = (drv->post_reset)(cintf); drv 325 drivers/usb/core/usb.c struct device_driver *drv; drv 336 drivers/usb/core/usb.c if (dev->driver != arg->drv) drv 353 drivers/usb/core/usb.c struct usb_interface *usb_find_interface(struct usb_driver *drv, int minor) drv 359 drivers/usb/core/usb.c argb.drv = &drv->drvwrap.driver; drv 169 drivers/usb/core/usb.h static inline int is_usb_device_driver(struct device_driver *drv) drv 171 drivers/usb/core/usb.h return container_of(drv, struct usbdrv_wrap, driver)-> drv 1513 drivers/usb/gadget/udc/core.c struct usb_gadget_driver *drv = udc->driver; drv 1515 drivers/usb/gadget/udc/core.c if (!drv || !drv->function) drv 1517 drivers/usb/gadget/udc/core.c return scnprintf(buf, PAGE_SIZE, "%s\n", drv->function); drv 1237 drivers/usb/host/ehci-hcd.c void ehci_init_driver(struct hc_driver *drv, drv 1241 drivers/usb/host/ehci-hcd.c *drv = ehci_hc_driver; drv 1244 drivers/usb/host/ehci-hcd.c drv->hcd_priv_size += over->extra_priv_size; drv 1246 drivers/usb/host/ehci-hcd.c drv->reset = over->reset; drv 1248 drivers/usb/host/ehci-hcd.c drv->port_power = over->port_power; drv 234 drivers/usb/host/ehci-ps3.c static int __init ps3_ehci_driver_register(struct ps3_system_bus_driver *drv) drv 237 drivers/usb/host/ehci-ps3.c ? ps3_system_bus_driver_register(drv) drv 241 drivers/usb/host/ehci-ps3.c static void ps3_ehci_driver_unregister(struct ps3_system_bus_driver *drv) drv 244 drivers/usb/host/ehci-ps3.c ps3_system_bus_driver_unregister(drv); drv 879 drivers/usb/host/ehci.h extern void ehci_init_driver(struct hc_driver *drv, drv 1224 drivers/usb/host/ohci-hcd.c void ohci_init_driver(struct hc_driver *drv, drv 1228 drivers/usb/host/ohci-hcd.c *drv = ohci_hc_driver; drv 1231 drivers/usb/host/ohci-hcd.c drv->product_desc = over->product_desc; drv 1232 drivers/usb/host/ohci-hcd.c drv->hcd_priv_size += over->extra_priv_size; drv 1234 drivers/usb/host/ohci-hcd.c drv->reset = over->reset; drv 219 drivers/usb/host/ohci-ps3.c static int __init ps3_ohci_driver_register(struct ps3_system_bus_driver *drv) drv 222 drivers/usb/host/ohci-ps3.c ? ps3_system_bus_driver_register(drv) drv 226 drivers/usb/host/ohci-ps3.c static void ps3_ohci_driver_unregister(struct ps3_system_bus_driver *drv) drv 229 drivers/usb/host/ohci-ps3.c ps3_system_bus_driver_unregister(drv); drv 263 drivers/usb/host/ohci-sa1111.c .drv = { drv 735 drivers/usb/host/ohci.h extern void ohci_init_driver(struct hc_driver *drv, drv 5359 drivers/usb/host/xhci.c void xhci_init_driver(struct hc_driver *drv, drv 5365 drivers/usb/host/xhci.c *drv = xhci_hc_driver; drv 5368 drivers/usb/host/xhci.c drv->hcd_priv_size += over->extra_priv_size; drv 5370 drivers/usb/host/xhci.c drv->reset = over->reset; drv 5372 drivers/usb/host/xhci.c drv->start = over->start; drv 2063 drivers/usb/host/xhci.h void xhci_init_driver(struct hc_driver *drv, drv 17 drivers/usb/serial/bus.c struct device_driver *drv) drv 30 drivers/usb/serial/bus.c driver = to_usb_serial_driver(drv); drv 152 drivers/usb/serial/bus.c static void free_dynids(struct usb_serial_driver *drv) drv 156 drivers/usb/serial/bus.c spin_lock(&drv->dynids.lock); drv 157 drivers/usb/serial/bus.c list_for_each_entry_safe(dynid, n, &drv->dynids.list, node) { drv 161 drivers/usb/serial/bus.c spin_unlock(&drv->dynids.lock); drv 265 drivers/usb/serial/usb-serial.c struct usb_serial_driver *drv = port->serial->type; drv 267 drivers/usb/serial/usb-serial.c if (drv->close) drv 268 drivers/usb/serial/usb-serial.c drv->close(port); drv 621 drivers/usb/serial/usb-serial.c struct usb_serial_driver *drv) drv 625 drivers/usb/serial/usb-serial.c spin_lock(&drv->dynids.lock); drv 626 drivers/usb/serial/usb-serial.c list_for_each_entry(dynid, &drv->dynids.list, node) { drv 628 drivers/usb/serial/usb-serial.c spin_unlock(&drv->dynids.lock); drv 632 drivers/usb/serial/usb-serial.c spin_unlock(&drv->dynids.lock); drv 636 drivers/usb/serial/usb-serial.c static const struct usb_device_id *get_iface_id(struct usb_serial_driver *drv, drv 641 drivers/usb/serial/usb-serial.c id = usb_match_id(intf, drv->id_table); drv 646 drivers/usb/serial/usb-serial.c id = match_dynamic_id(intf, drv); drv 658 drivers/usb/serial/usb-serial.c struct usb_serial_driver *drv; drv 662 drivers/usb/serial/usb-serial.c list_for_each_entry(drv, &usb_serial_driver_list, driver_list) { drv 663 drivers/usb/serial/usb-serial.c if (drv->usb_driver == driver) drv 664 drivers/usb/serial/usb-serial.c id = get_iface_id(drv, iface); drv 666 drivers/usb/serial/usb-serial.c return drv; drv 675 drivers/usb/serial/usb-serial.c struct usb_serial_driver *drv = p->serial->type; drv 677 drivers/usb/serial/usb-serial.c if (drv->carrier_raised) drv 678 drivers/usb/serial/usb-serial.c return drv->carrier_raised(p); drv 686 drivers/usb/serial/usb-serial.c struct usb_serial_driver *drv = p->serial->type; drv 688 drivers/usb/serial/usb-serial.c if (drv->dtr_rts) drv 689 drivers/usb/serial/usb-serial.c drv->dtr_rts(p, on); drv 238 drivers/usb/typec/bus.c int __typec_altmode_register_driver(struct typec_altmode_driver *drv, drv 241 drivers/usb/typec/bus.c if (!drv->probe) drv 244 drivers/usb/typec/bus.c drv->driver.owner = module; drv 245 drivers/usb/typec/bus.c drv->driver.bus = &typec_bus; drv 247 drivers/usb/typec/bus.c return driver_register(&drv->driver); drv 251 drivers/usb/typec/bus.c void typec_altmode_unregister_driver(struct typec_altmode_driver *drv) drv 253 drivers/usb/typec/bus.c driver_unregister(&drv->driver); drv 305 drivers/usb/typec/bus.c struct typec_altmode_driver *drv = to_altmode_driver(driver); drv 309 drivers/usb/typec/bus.c for (id = drv->id_table; id->svid; id++) drv 355 drivers/usb/typec/bus.c struct typec_altmode_driver *drv = to_altmode_driver(dev->driver); drv 370 drivers/usb/typec/bus.c ret = drv->probe(adev); drv 379 drivers/usb/typec/bus.c struct typec_altmode_driver *drv = to_altmode_driver(dev->driver); drv 385 drivers/usb/typec/bus.c if (drv->remove) drv 386 drivers/usb/typec/bus.c drv->remove(to_typec_altmode(dev)); drv 151 drivers/usb/usbip/stub_main.c static ssize_t match_busid_show(struct device_driver *drv, char *buf) drv 42 drivers/vfio/mdev/mdev_driver.c struct mdev_driver *drv = to_mdev_driver(dev->driver); drv 50 drivers/vfio/mdev/mdev_driver.c if (drv && drv->probe) { drv 51 drivers/vfio/mdev/mdev_driver.c ret = drv->probe(dev); drv 61 drivers/vfio/mdev/mdev_driver.c struct mdev_driver *drv = to_mdev_driver(dev->driver); drv 64 drivers/vfio/mdev/mdev_driver.c if (drv && drv->remove) drv 65 drivers/vfio/mdev/mdev_driver.c drv->remove(dev); drv 86 drivers/vfio/mdev/mdev_driver.c int mdev_register_driver(struct mdev_driver *drv, struct module *owner) drv 89 drivers/vfio/mdev/mdev_driver.c drv->driver.name = drv->name; drv 90 drivers/vfio/mdev/mdev_driver.c drv->driver.bus = &mdev_bus_type; drv 91 drivers/vfio/mdev/mdev_driver.c drv->driver.owner = owner; drv 94 drivers/vfio/mdev/mdev_driver.c return driver_register(&drv->driver); drv 102 drivers/vfio/mdev/mdev_driver.c void mdev_unregister_driver(struct mdev_driver *drv) drv 104 drivers/vfio/mdev/mdev_driver.c driver_unregister(&drv->driver); drv 98 drivers/vfio/platform/vfio_amba.c .drv = { drv 629 drivers/vfio/vfio.c static bool vfio_dev_whitelisted(struct device *dev, struct device_driver *drv) drv 640 drivers/vfio/vfio.c drv->name) >= 0; drv 661 drivers/vfio/vfio.c struct device_driver *drv = READ_ONCE(dev->driver); drv 674 drivers/vfio/vfio.c if (!ret || !drv || vfio_dev_whitelisted(dev, drv)) drv 231 drivers/video/backlight/locomolcd.c .drv = { drv 963 drivers/video/fbdev/amba-clcd.c .drv = { drv 1956 drivers/video/fbdev/matrox/matroxfb_base.c int matroxfb_register_driver(struct matroxfb_driver* drv) { drv 1959 drivers/video/fbdev/matrox/matroxfb_base.c list_add(&drv->node, &matroxfb_driver_list); drv 1967 drivers/video/fbdev/matrox/matroxfb_base.c p = drv->probe(minfo); drv 1970 drivers/video/fbdev/matrox/matroxfb_base.c minfo->drivers[minfo->drivers_count++] = drv; drv 1976 drivers/video/fbdev/matrox/matroxfb_base.c void matroxfb_unregister_driver(struct matroxfb_driver* drv) { drv 1979 drivers/video/fbdev/matrox/matroxfb_base.c list_del(&drv->node); drv 1986 drivers/video/fbdev/matrox/matroxfb_base.c if (minfo->drivers[i] == drv) { drv 1987 drivers/video/fbdev/matrox/matroxfb_base.c if (drv && drv->remove) drv 1988 drivers/video/fbdev/matrox/matroxfb_base.c drv->remove(minfo, minfo->drivers_data[i]); drv 1998 drivers/video/fbdev/matrox/matroxfb_base.c struct matroxfb_driver* drv; drv 2001 drivers/video/fbdev/matrox/matroxfb_base.c for (drv = matroxfb_driver_l(matroxfb_driver_list.next); drv 2002 drivers/video/fbdev/matrox/matroxfb_base.c drv != matroxfb_driver_l(&matroxfb_driver_list); drv 2003 drivers/video/fbdev/matrox/matroxfb_base.c drv = matroxfb_driver_l(drv->node.next)) { drv 2004 drivers/video/fbdev/matrox/matroxfb_base.c if (drv->probe) { drv 2005 drivers/video/fbdev/matrox/matroxfb_base.c void *p = drv->probe(minfo); drv 2008 drivers/video/fbdev/matrox/matroxfb_base.c minfo->drivers[i++] = drv; drv 2022 drivers/video/fbdev/matrox/matroxfb_base.c struct matroxfb_driver* drv = minfo->drivers[i]; drv 2024 drivers/video/fbdev/matrox/matroxfb_base.c if (drv && drv->remove) drv 2025 drivers/video/fbdev/matrox/matroxfb_base.c drv->remove(minfo, minfo->drivers_data[i]); drv 513 drivers/video/fbdev/matrox/matroxfb_base.h int matroxfb_register_driver(struct matroxfb_driver* drv); drv 514 drivers/video/fbdev/matrox/matroxfb_base.h void matroxfb_unregister_driver(struct matroxfb_driver* drv); drv 125 drivers/video/fbdev/omap2/omapfb/dss/display.c struct omap_dss_driver *drv = dssdev->driver; drv 153 drivers/video/fbdev/omap2/omapfb/dss/display.c if (drv && drv->get_resolution == NULL) drv 154 drivers/video/fbdev/omap2/omapfb/dss/display.c drv->get_resolution = omapdss_default_get_resolution; drv 155 drivers/video/fbdev/omap2/omapfb/dss/display.c if (drv && drv->get_recommended_bpp == NULL) drv 156 drivers/video/fbdev/omap2/omapfb/dss/display.c drv->get_recommended_bpp = omapdss_default_get_recommended_bpp; drv 157 drivers/video/fbdev/omap2/omapfb/dss/display.c if (drv && drv->get_timings == NULL) drv 158 drivers/video/fbdev/omap2/omapfb/dss/display.c drv->get_timings = omapdss_default_get_timings; drv 32 drivers/video/fbdev/via/via_aux.h void (*cleanup)(struct via_aux_drv *drv); drv 34 drivers/video/fbdev/via/via_aux.h (struct via_aux_drv *drv); drv 43 drivers/video/fbdev/via/via_aux.h static inline bool via_aux_add(struct via_aux_drv *drv) drv 50 drivers/video/fbdev/via/via_aux.h *data = *drv; drv 55 drivers/video/fbdev/via/via_aux.h static inline bool via_aux_read(struct via_aux_drv *drv, u8 start, u8 *buf, drv 59 drivers/video/fbdev/via/via_aux.h {.addr = drv->addr, .flags = 0, .len = 1, .buf = &start}, drv 60 drivers/video/fbdev/via/via_aux.h {.addr = drv->addr, .flags = I2C_M_RD, .len = len, .buf = buf} }; drv 62 drivers/video/fbdev/via/via_aux.h return i2c_transfer(drv->bus->adap, msg, 2) == 2; drv 18 drivers/video/fbdev/via/via_aux_ch7301.c struct via_aux_drv drv = { drv 24 drivers/video/fbdev/via/via_aux_ch7301.c if (!via_aux_read(&drv, 0x4B, &tmp, 1) || tmp != 0x17) drv 28 drivers/video/fbdev/via/via_aux_ch7301.c via_aux_add(&drv); drv 18 drivers/video/fbdev/via/via_aux_edid.c static void query_edid(struct via_aux_drv *drv) drv 20 drivers/video/fbdev/via/via_aux_edid.c struct fb_monspecs *spec = drv->data; drv 33 drivers/video/fbdev/via/via_aux_edid.c if (via_aux_read(drv, 0x00, edid, EDID_LENGTH)) { drv 44 drivers/video/fbdev/via/via_aux_edid.c drv->data = spec; drv 47 drivers/video/fbdev/via/via_aux_edid.c static const struct fb_videomode *get_preferred_mode(struct via_aux_drv *drv) drv 49 drivers/video/fbdev/via/via_aux_edid.c struct fb_monspecs *spec = drv->data; drv 64 drivers/video/fbdev/via/via_aux_edid.c static void cleanup(struct via_aux_drv *drv) drv 66 drivers/video/fbdev/via/via_aux_edid.c struct fb_monspecs *spec = drv->data; drv 74 drivers/video/fbdev/via/via_aux_edid.c struct via_aux_drv drv = { drv 81 drivers/video/fbdev/via/via_aux_edid.c query_edid(&drv); drv 84 drivers/video/fbdev/via/via_aux_edid.c via_aux_add(&drv); drv 18 drivers/video/fbdev/via/via_aux_sii164.c struct via_aux_drv drv = { drv 26 drivers/video/fbdev/via/via_aux_sii164.c if (!via_aux_read(&drv, 0x00, tmp, len) || memcmp(id, tmp, len)) drv 30 drivers/video/fbdev/via/via_aux_sii164.c via_aux_add(&drv); drv 18 drivers/video/fbdev/via/via_aux_vt1621.c struct via_aux_drv drv = { drv 24 drivers/video/fbdev/via/via_aux_vt1621.c if (!via_aux_read(&drv, 0x1B, &tmp, 1) || tmp != 0x02) drv 28 drivers/video/fbdev/via/via_aux_vt1621.c via_aux_add(&drv); drv 18 drivers/video/fbdev/via/via_aux_vt1622.c struct via_aux_drv drv = { drv 24 drivers/video/fbdev/via/via_aux_vt1622.c if (!via_aux_read(&drv, 0x1B, &tmp, 1) || tmp != 0x03) drv 28 drivers/video/fbdev/via/via_aux_vt1622.c via_aux_add(&drv); drv 18 drivers/video/fbdev/via/via_aux_vt1625.c struct via_aux_drv drv = { drv 24 drivers/video/fbdev/via/via_aux_vt1625.c if (!via_aux_read(&drv, 0x1B, &tmp, 1) || tmp != 0x50) drv 28 drivers/video/fbdev/via/via_aux_vt1625.c via_aux_add(&drv); drv 18 drivers/video/fbdev/via/via_aux_vt1631.c struct via_aux_drv drv = { drv 26 drivers/video/fbdev/via/via_aux_vt1631.c if (!via_aux_read(&drv, 0x00, tmp, len) || memcmp(id, tmp, len)) drv 30 drivers/video/fbdev/via/via_aux_vt1631.c via_aux_add(&drv); drv 18 drivers/video/fbdev/via/via_aux_vt1632.c struct via_aux_drv drv = { drv 26 drivers/video/fbdev/via/via_aux_vt1632.c if (!via_aux_read(&drv, 0x00, tmp, len) || memcmp(id, tmp, len)) drv 30 drivers/video/fbdev/via/via_aux_vt1632.c via_aux_add(&drv); drv 18 drivers/video/fbdev/via/via_aux_vt1636.c struct via_aux_drv drv = { drv 26 drivers/video/fbdev/via/via_aux_vt1636.c if (!via_aux_read(&drv, 0x00, tmp, len) || memcmp(id, tmp, len)) drv 30 drivers/video/fbdev/via/via_aux_vt1636.c via_aux_add(&drv); drv 108 drivers/virtio/virtio.c struct virtio_driver *drv = drv_to_virtio(vdev->dev.driver); drv 110 drivers/virtio/virtio.c for (i = 0; i < drv->feature_table_size; i++) drv 111 drivers/virtio/virtio.c if (drv->feature_table[i] == fbit) drv 114 drivers/virtio/virtio.c if (drv->feature_table_legacy) { drv 115 drivers/virtio/virtio.c for (i = 0; i < drv->feature_table_size_legacy; i++) drv 116 drivers/virtio/virtio.c if (drv->feature_table_legacy[i] == fbit) drv 126 drivers/virtio/virtio.c struct virtio_driver *drv = drv_to_virtio(dev->dev.driver); drv 130 drivers/virtio/virtio.c else if (drv && drv->config_changed) drv 131 drivers/virtio/virtio.c drv->config_changed(dev); drv 197 drivers/virtio/virtio.c struct virtio_driver *drv = drv_to_virtio(dev->dev.driver); drv 210 drivers/virtio/virtio.c for (i = 0; i < drv->feature_table_size; i++) { drv 211 drivers/virtio/virtio.c unsigned int f = drv->feature_table[i]; drv 217 drivers/virtio/virtio.c if (drv->feature_table_legacy) { drv 219 drivers/virtio/virtio.c for (i = 0; i < drv->feature_table_size_legacy; i++) { drv 220 drivers/virtio/virtio.c unsigned int f = drv->feature_table_legacy[i]; drv 238 drivers/virtio/virtio.c if (drv->validate) { drv 239 drivers/virtio/virtio.c err = drv->validate(dev); drv 248 drivers/virtio/virtio.c err = drv->probe(dev); drv 256 drivers/virtio/virtio.c if (drv->scan) drv 257 drivers/virtio/virtio.c drv->scan(dev); drv 271 drivers/virtio/virtio.c struct virtio_driver *drv = drv_to_virtio(dev->dev.driver); drv 275 drivers/virtio/virtio.c drv->remove(dev); drv 372 drivers/virtio/virtio.c struct virtio_driver *drv = drv_to_virtio(dev->dev.driver); drv 378 drivers/virtio/virtio.c if (drv && drv->freeze) drv 379 drivers/virtio/virtio.c return drv->freeze(dev); drv 387 drivers/virtio/virtio.c struct virtio_driver *drv = drv_to_virtio(dev->dev.driver); drv 402 drivers/virtio/virtio.c if (!drv) drv 412 drivers/virtio/virtio.c if (drv->restore) { drv 413 drivers/virtio/virtio.c ret = drv->restore(dev); drv 136 drivers/visorbus/visorbus_main.c struct visor_driver *drv; drv 141 drivers/visorbus/visorbus_main.c drv = to_visor_driver(xdrv); drv 143 drivers/visorbus/visorbus_main.c if (!drv->channel_types) drv 145 drivers/visorbus/visorbus_main.c for (i = 0; !guid_is_null(&drv->channel_types[i].guid); i++) drv 146 drivers/visorbus/visorbus_main.c if (guid_equal(&drv->channel_types[i].guid, channel_type) && drv 149 drivers/visorbus/visorbus_main.c &drv->channel_types[i].guid, drv 150 drivers/visorbus/visorbus_main.c (char *)drv->channel_types[i].name, drv 151 drivers/visorbus/visorbus_main.c drv->channel_types[i].min_bytes, drv 152 drivers/visorbus/visorbus_main.c drv->channel_types[i].version, drv 296 drivers/visorbus/visorbus_main.c struct visor_driver *drv = NULL; drv 303 drivers/visorbus/visorbus_main.c drv = to_visor_driver(xdrv); drv 304 drivers/visorbus/visorbus_main.c return sprintf(buf, "%s\n", drv->channel_types[i - 1].name); drv 490 drivers/visorbus/visorbus_main.c struct visor_driver *drv = to_visor_driver(dev->device.driver); drv 492 drivers/visorbus/visorbus_main.c drv->channel_interrupt(dev); drv 532 drivers/visorbus/visorbus_main.c struct visor_driver *drv = to_visor_driver(xdev->driver); drv 536 drivers/visorbus/visorbus_main.c drv->remove(dev); drv 550 drivers/visorbus/visorbus_main.c void visorbus_unregister_visor_driver(struct visor_driver *drv) drv 552 drivers/visorbus/visorbus_main.c driver_unregister(&drv->driver); drv 604 drivers/visorbus/visorbus_main.c struct visor_driver *drv = to_visor_driver(dev->device.driver); drv 606 drivers/visorbus/visorbus_main.c if (!drv->channel_interrupt) { drv 901 drivers/visorbus/visorbus_main.c struct visor_driver *drv = to_visor_driver(xdev->driver); drv 906 drivers/visorbus/visorbus_main.c err = drv->probe(dev); drv 966 drivers/visorbus/visorbus_main.c int visorbus_register_visor_driver(struct visor_driver *drv) drv 971 drivers/visorbus/visorbus_main.c if (!drv->probe) drv 973 drivers/visorbus/visorbus_main.c if (!drv->remove) drv 975 drivers/visorbus/visorbus_main.c if (!drv->pause) drv 977 drivers/visorbus/visorbus_main.c if (!drv->resume) drv 980 drivers/visorbus/visorbus_main.c drv->driver.name = drv->name; drv 981 drivers/visorbus/visorbus_main.c drv->driver.bus = &visorbus_type; drv 982 drivers/visorbus/visorbus_main.c drv->driver.probe = visordriver_probe_device; drv 983 drivers/visorbus/visorbus_main.c drv->driver.remove = visordriver_remove_device; drv 984 drivers/visorbus/visorbus_main.c drv->driver.owner = drv->owner; drv 997 drivers/visorbus/visorbus_main.c return driver_register(&drv->driver); drv 1142 drivers/visorbus/visorbus_main.c struct visor_driver *drv; drv 1150 drivers/visorbus/visorbus_main.c drv = to_visor_driver(dev->device.driver); drv 1153 drivers/visorbus/visorbus_main.c err = drv->pause(dev, pause_state_change_complete); drv 1161 drivers/visorbus/visorbus_main.c err = drv->resume(dev, resume_state_change_complete); drv 310 drivers/vlynq/vlynq.c struct device_driver *drv) drv 313 drivers/vlynq/vlynq.c struct vlynq_driver *vdrv = to_vlynq_driver(drv); drv 334 drivers/vlynq/vlynq.c struct vlynq_driver *drv = to_vlynq_driver(dev->driver); drv 338 drivers/vlynq/vlynq.c if (drv->probe) drv 339 drivers/vlynq/vlynq.c result = drv->probe(vdev, id); drv 347 drivers/vlynq/vlynq.c struct vlynq_driver *drv = to_vlynq_driver(dev->driver); drv 349 drivers/vlynq/vlynq.c if (drv->remove) drv 350 drivers/vlynq/vlynq.c drv->remove(to_vlynq_device(dev)); drv 1852 drivers/vme/vme.c static int __vme_register_driver_bus(struct vme_driver *drv, drv 1868 drivers/vme/vme.c vdev->dev.platform_data = drv; drv 1872 drivers/vme/vme.c dev_set_name(&vdev->dev, "%s.%u-%u", drv->name, bridge->num, drv 1880 drivers/vme/vme.c list_add_tail(&vdev->drv_list, &drv->devices); drv 1890 drivers/vme/vme.c list_for_each_entry_safe(vdev, tmp, &drv->devices, drv_list) { drv 1898 drivers/vme/vme.c static int __vme_register_driver(struct vme_driver *drv, unsigned int ndevs) drv 1912 drivers/vme/vme.c err = __vme_register_driver_bus(drv, bridge, ndevs); drv 1929 drivers/vme/vme.c int vme_register_driver(struct vme_driver *drv, unsigned int ndevs) drv 1933 drivers/vme/vme.c drv->driver.name = drv->name; drv 1934 drivers/vme/vme.c drv->driver.bus = &vme_bus_type; drv 1935 drivers/vme/vme.c INIT_LIST_HEAD(&drv->devices); drv 1937 drivers/vme/vme.c err = driver_register(&drv->driver); drv 1941 drivers/vme/vme.c err = __vme_register_driver(drv, ndevs); drv 1943 drivers/vme/vme.c driver_unregister(&drv->driver); drv 1955 drivers/vme/vme.c void vme_unregister_driver(struct vme_driver *drv) drv 1960 drivers/vme/vme.c list_for_each_entry_safe(dev, dev_tmp, &drv->devices, drv_list) { drv 1967 drivers/vme/vme.c driver_unregister(&drv->driver); drv 1973 drivers/vme/vme.c static int vme_bus_match(struct device *dev, struct device_driver *drv) drv 1977 drivers/vme/vme.c vme_drv = container_of(drv, struct vme_driver, driver); drv 59 drivers/w1/w1.c static int w1_master_match(struct device *dev, struct device_driver *drv) drv 42 drivers/watchdog/mena21_wdt.c static unsigned int a21_wdt_get_bootstatus(struct a21_wdt_drv *drv) drv 46 drivers/watchdog/mena21_wdt.c reset |= gpiod_get_value(drv->gpios[GPIO_WD_RST0]) ? (1 << 0) : 0; drv 47 drivers/watchdog/mena21_wdt.c reset |= gpiod_get_value(drv->gpios[GPIO_WD_RST1]) ? (1 << 1) : 0; drv 48 drivers/watchdog/mena21_wdt.c reset |= gpiod_get_value(drv->gpios[GPIO_WD_RST2]) ? (1 << 2) : 0; drv 55 drivers/watchdog/mena21_wdt.c struct a21_wdt_drv *drv = watchdog_get_drvdata(wdt); drv 57 drivers/watchdog/mena21_wdt.c gpiod_set_value(drv->gpios[GPIO_WD_ENAB], 1); drv 64 drivers/watchdog/mena21_wdt.c struct a21_wdt_drv *drv = watchdog_get_drvdata(wdt); drv 66 drivers/watchdog/mena21_wdt.c gpiod_set_value(drv->gpios[GPIO_WD_ENAB], 0); drv 73 drivers/watchdog/mena21_wdt.c struct a21_wdt_drv *drv = watchdog_get_drvdata(wdt); drv 75 drivers/watchdog/mena21_wdt.c gpiod_set_value(drv->gpios[GPIO_WD_TRIG], 0); drv 77 drivers/watchdog/mena21_wdt.c gpiod_set_value(drv->gpios[GPIO_WD_TRIG], 1); drv 85 drivers/watchdog/mena21_wdt.c struct a21_wdt_drv *drv = watchdog_get_drvdata(wdt); drv 99 drivers/watchdog/mena21_wdt.c gpiod_set_value(drv->gpios[GPIO_WD_FAST], 1); drv 101 drivers/watchdog/mena21_wdt.c gpiod_set_value(drv->gpios[GPIO_WD_FAST], 0); drv 131 drivers/watchdog/mena21_wdt.c struct a21_wdt_drv *drv; drv 137 drivers/watchdog/mena21_wdt.c drv = devm_kzalloc(dev, sizeof(struct a21_wdt_drv), GFP_KERNEL); drv 138 drivers/watchdog/mena21_wdt.c if (!drv) drv 156 drivers/watchdog/mena21_wdt.c drv->gpios[i] = devm_gpiod_get_index(dev, NULL, i, gflags); drv 157 drivers/watchdog/mena21_wdt.c if (IS_ERR(drv->gpios[i])) drv 158 drivers/watchdog/mena21_wdt.c return PTR_ERR(drv->gpios[i]); drv 160 drivers/watchdog/mena21_wdt.c gpiod_set_consumer_name(drv->gpios[i], "MEN A21 Watchdog"); drv 169 drivers/watchdog/mena21_wdt.c val = gpiod_get_value(drv->gpios[i]); drv 170 drivers/watchdog/mena21_wdt.c gpiod_direction_output(drv->gpios[i], val); drv 176 drivers/watchdog/mena21_wdt.c watchdog_set_drvdata(&a21_wdt, drv); drv 179 drivers/watchdog/mena21_wdt.c reset = a21_wdt_get_bootstatus(drv); drv 189 drivers/watchdog/mena21_wdt.c drv->wdt = a21_wdt; drv 190 drivers/watchdog/mena21_wdt.c dev_set_drvdata(dev, drv); drv 203 drivers/watchdog/mena21_wdt.c struct a21_wdt_drv *drv = dev_get_drvdata(&pdev->dev); drv 205 drivers/watchdog/mena21_wdt.c gpiod_set_value(drv->gpios[GPIO_WD_ENAB], 0); drv 36 drivers/watchdog/menz69_wdt.c struct men_z069_drv *drv = watchdog_get_drvdata(wdt); drv 39 drivers/watchdog/menz69_wdt.c val = readw(drv->base + MEN_Z069_WTR); drv 41 drivers/watchdog/menz69_wdt.c writew(val, drv->base + MEN_Z069_WTR); drv 48 drivers/watchdog/menz69_wdt.c struct men_z069_drv *drv = watchdog_get_drvdata(wdt); drv 51 drivers/watchdog/menz69_wdt.c val = readw(drv->base + MEN_Z069_WTR); drv 53 drivers/watchdog/menz69_wdt.c writew(val, drv->base + MEN_Z069_WTR); drv 60 drivers/watchdog/menz69_wdt.c struct men_z069_drv *drv = watchdog_get_drvdata(wdt); drv 64 drivers/watchdog/menz69_wdt.c val = readw(drv->base + MEN_Z069_WVR); drv 66 drivers/watchdog/menz69_wdt.c writew(val, drv->base + MEN_Z069_WVR); drv 74 drivers/watchdog/menz69_wdt.c struct men_z069_drv *drv = watchdog_get_drvdata(wdt); drv 80 drivers/watchdog/menz69_wdt.c reg = readw(drv->base + MEN_Z069_WVR); drv 83 drivers/watchdog/menz69_wdt.c writew(reg, drv->base + MEN_Z069_WTR); drv 112 drivers/watchdog/menz69_wdt.c struct men_z069_drv *drv; drv 115 drivers/watchdog/menz69_wdt.c drv = devm_kzalloc(&dev->dev, sizeof(struct men_z069_drv), GFP_KERNEL); drv 116 drivers/watchdog/menz69_wdt.c if (!drv) drv 123 drivers/watchdog/menz69_wdt.c drv->base = devm_ioremap(&dev->dev, mem->start, resource_size(mem)); drv 124 drivers/watchdog/menz69_wdt.c if (drv->base == NULL) drv 127 drivers/watchdog/menz69_wdt.c drv->mem = mem; drv 129 drivers/watchdog/menz69_wdt.c drv->wdt = men_z069_wdt; drv 130 drivers/watchdog/menz69_wdt.c watchdog_init_timeout(&drv->wdt, 0, &dev->dev); drv 131 drivers/watchdog/menz69_wdt.c watchdog_set_nowayout(&drv->wdt, nowayout); drv 132 drivers/watchdog/menz69_wdt.c watchdog_set_drvdata(&drv->wdt, drv); drv 133 drivers/watchdog/menz69_wdt.c drv->wdt.parent = &dev->dev; drv 134 drivers/watchdog/menz69_wdt.c mcb_set_drvdata(dev, drv); drv 145 drivers/watchdog/menz69_wdt.c struct men_z069_drv *drv = mcb_get_drvdata(dev); drv 147 drivers/watchdog/menz69_wdt.c watchdog_unregister_device(&drv->wdt); drv 148 drivers/watchdog/menz69_wdt.c mcb_release_mem(drv->mem); drv 351 drivers/watchdog/sp805_wdt.c .drv = { drv 1176 drivers/xen/xen-pciback/pci_stub.c static ssize_t new_slot_store(struct device_driver *drv, const char *buf, drv 1195 drivers/xen/xen-pciback/pci_stub.c static ssize_t remove_slot_store(struct device_driver *drv, const char *buf, drv 1214 drivers/xen/xen-pciback/pci_stub.c static ssize_t slots_show(struct device_driver *drv, char *buf) drv 1237 drivers/xen/xen-pciback/pci_stub.c static ssize_t irq_handlers_show(struct device_driver *drv, char *buf) drv 1266 drivers/xen/xen-pciback/pci_stub.c static ssize_t irq_handler_state_store(struct device_driver *drv, drv 1306 drivers/xen/xen-pciback/pci_stub.c static ssize_t quirks_store(struct device_driver *drv, const char *buf, drv 1325 drivers/xen/xen-pciback/pci_stub.c static ssize_t quirks_show(struct device_driver *drv, char *buf) drv 1370 drivers/xen/xen-pciback/pci_stub.c static ssize_t permissive_store(struct device_driver *drv, const char *buf, drv 1410 drivers/xen/xen-pciback/pci_stub.c static ssize_t permissive_show(struct device_driver *drv, char *buf) drv 108 drivers/xen/xenbus/xenbus.h int xenbus_register_driver_common(struct xenbus_driver *drv, drv 94 drivers/xen/xenbus/xenbus_probe.c struct xenbus_driver *drv = to_xenbus_driver(_drv); drv 96 drivers/xen/xenbus/xenbus_probe.c if (!drv->ids) drv 99 drivers/xen/xenbus/xenbus_probe.c return match_device(drv->ids, to_xenbus_device(_dev)) != NULL; drv 123 drivers/xen/xenbus/xenbus_probe.c struct xenbus_driver *drv = to_xenbus_driver(dev->dev.driver); drv 128 drivers/xen/xenbus/xenbus_probe.c return drv->read_otherend_details(dev); drv 177 drivers/xen/xenbus/xenbus_probe.c struct xenbus_driver *drv = to_xenbus_driver(dev->dev.driver); drv 203 drivers/xen/xenbus/xenbus_probe.c if (drv->otherend_changed) drv 204 drivers/xen/xenbus/xenbus_probe.c drv->otherend_changed(dev, state); drv 211 drivers/xen/xenbus/xenbus_probe.c struct xenbus_driver *drv = to_xenbus_driver(_dev->driver); drv 217 drivers/xen/xenbus/xenbus_probe.c if (!drv->probe) { drv 222 drivers/xen/xenbus/xenbus_probe.c id = match_device(drv->ids, dev); drv 235 drivers/xen/xenbus/xenbus_probe.c err = drv->probe(dev, id); drv 257 drivers/xen/xenbus/xenbus_probe.c struct xenbus_driver *drv = to_xenbus_driver(_dev->driver); drv 263 drivers/xen/xenbus/xenbus_probe.c if (drv->remove) drv 264 drivers/xen/xenbus/xenbus_probe.c drv->remove(dev); drv 296 drivers/xen/xenbus/xenbus_probe.c int xenbus_register_driver_common(struct xenbus_driver *drv, drv 300 drivers/xen/xenbus/xenbus_probe.c drv->driver.name = drv->name ? drv->name : drv->ids[0].devicetype; drv 301 drivers/xen/xenbus/xenbus_probe.c drv->driver.bus = &bus->bus; drv 302 drivers/xen/xenbus/xenbus_probe.c drv->driver.owner = owner; drv 303 drivers/xen/xenbus/xenbus_probe.c drv->driver.mod_name = mod_name; drv 305 drivers/xen/xenbus/xenbus_probe.c return driver_register(&drv->driver); drv 309 drivers/xen/xenbus/xenbus_probe.c void xenbus_unregister_driver(struct xenbus_driver *drv) drv 311 drivers/xen/xenbus/xenbus_probe.c driver_unregister(&drv->driver); drv 597 drivers/xen/xenbus/xenbus_probe.c struct xenbus_driver *drv; drv 605 drivers/xen/xenbus/xenbus_probe.c drv = to_xenbus_driver(dev->driver); drv 606 drivers/xen/xenbus/xenbus_probe.c if (drv->suspend) drv 607 drivers/xen/xenbus/xenbus_probe.c err = drv->suspend(xdev); drv 617 drivers/xen/xenbus/xenbus_probe.c struct xenbus_driver *drv; drv 625 drivers/xen/xenbus/xenbus_probe.c drv = to_xenbus_driver(dev->driver); drv 635 drivers/xen/xenbus/xenbus_probe.c if (drv->resume) { drv 636 drivers/xen/xenbus/xenbus_probe.c err = drv->resume(xdev); drv 99 drivers/xen/xenbus/xenbus_probe_backend.c struct xenbus_driver *drv; drv 124 drivers/xen/xenbus/xenbus_probe_backend.c drv = to_xenbus_driver(dev->driver); drv 125 drivers/xen/xenbus/xenbus_probe_backend.c if (drv && drv->uevent) drv 126 drivers/xen/xenbus/xenbus_probe_backend.c return drv->uevent(xdev, env); drv 230 drivers/xen/xenbus/xenbus_probe_backend.c int __xenbus_register_backend(struct xenbus_driver *drv, struct module *owner, drv 233 drivers/xen/xenbus/xenbus_probe_backend.c drv->read_otherend_details = read_frontend_details; drv 235 drivers/xen/xenbus/xenbus_probe_backend.c return xenbus_register_driver_common(drv, &xenbus_backend, drv 179 drivers/xen/xenbus/xenbus_probe_frontend.c struct device_driver *drv = data; drv 190 drivers/xen/xenbus/xenbus_probe_frontend.c if (drv && (dev->driver != drv)) drv 219 drivers/xen/xenbus/xenbus_probe_frontend.c static int exists_essential_connecting_device(struct device_driver *drv) drv 221 drivers/xen/xenbus/xenbus_probe_frontend.c return bus_for_each_dev(&xenbus_frontend.bus, NULL, drv, drv 224 drivers/xen/xenbus/xenbus_probe_frontend.c static int exists_non_essential_connecting_device(struct device_driver *drv) drv 226 drivers/xen/xenbus/xenbus_probe_frontend.c return bus_for_each_dev(&xenbus_frontend.bus, NULL, drv, drv 233 drivers/xen/xenbus/xenbus_probe_frontend.c struct device_driver *drv = data; drv 236 drivers/xen/xenbus/xenbus_probe_frontend.c if (drv && (dev->driver != drv)) drv 291 drivers/xen/xenbus/xenbus_probe_frontend.c struct device_driver *drv = xendrv ? &xendrv->driver : NULL; drv 297 drivers/xen/xenbus/xenbus_probe_frontend.c while (exists_non_essential_connecting_device(drv)) drv 302 drivers/xen/xenbus/xenbus_probe_frontend.c while (exists_essential_connecting_device(drv)) drv 309 drivers/xen/xenbus/xenbus_probe_frontend.c bus_for_each_dev(&xenbus_frontend.bus, NULL, drv, drv 313 drivers/xen/xenbus/xenbus_probe_frontend.c int __xenbus_register_frontend(struct xenbus_driver *drv, struct module *owner, drv 318 drivers/xen/xenbus/xenbus_probe_frontend.c drv->read_otherend_details = read_backend_details; drv 320 drivers/xen/xenbus/xenbus_probe_frontend.c ret = xenbus_register_driver_common(drv, &xenbus_frontend, drv 326 drivers/xen/xenbus/xenbus_probe_frontend.c wait_for_devices(drv); drv 48 drivers/zorro/zorro-driver.c struct zorro_driver *drv = to_zorro_driver(dev->driver); drv 51 drivers/zorro/zorro-driver.c if (!z->driver && drv->probe) { drv 54 drivers/zorro/zorro-driver.c id = zorro_match_device(drv->id_table, z); drv 56 drivers/zorro/zorro-driver.c error = drv->probe(z, id); drv 58 drivers/zorro/zorro-driver.c z->driver = drv; drv 69 drivers/zorro/zorro-driver.c struct zorro_driver *drv = to_zorro_driver(dev->driver); drv 71 drivers/zorro/zorro-driver.c if (drv) { drv 72 drivers/zorro/zorro-driver.c if (drv->remove) drv 73 drivers/zorro/zorro-driver.c drv->remove(z); drv 88 drivers/zorro/zorro-driver.c int zorro_register_driver(struct zorro_driver *drv) drv 91 drivers/zorro/zorro-driver.c drv->driver.name = drv->name; drv 92 drivers/zorro/zorro-driver.c drv->driver.bus = &zorro_bus_type; drv 95 drivers/zorro/zorro-driver.c return driver_register(&drv->driver); drv 110 drivers/zorro/zorro-driver.c void zorro_unregister_driver(struct zorro_driver *drv) drv 112 drivers/zorro/zorro-driver.c driver_unregister(&drv->driver); drv 128 drivers/zorro/zorro-driver.c static int zorro_bus_match(struct device *dev, struct device_driver *drv) drv 131 drivers/zorro/zorro-driver.c struct zorro_driver *zorro_drv = to_zorro_driver(drv); drv 167 include/acpi/acpi_bus.h struct device_driver drv; drv 448 include/acpi/acpi_bus.h #define to_acpi_driver(d) container_of(d, struct acpi_driver, drv) drv 617 include/linux/acpi.h const struct device_driver *drv); drv 815 include/linux/acpi.h const struct device_driver *drv) drv 76 include/linux/amba/bus.h struct device_driver drv; drv 310 include/linux/bcma/bcma.h struct device_driver drv; drv 313 include/linux/bcma/bcma.h int __bcma_driver_register(struct bcma_driver *drv, struct module *owner); drv 314 include/linux/bcma/bcma.h #define bcma_driver_register(drv) \ drv 315 include/linux/bcma/bcma.h __bcma_driver_register(drv, THIS_MODULE) drv 317 include/linux/bcma/bcma.h extern void bcma_driver_unregister(struct bcma_driver *drv); drv 424 include/linux/cpufreq.h static inline int cpufreq_thermal_control_enabled(struct cpufreq_driver *drv) drv 427 include/linux/cpufreq.h (drv->flags & CPUFREQ_IS_COOLING_DEV); drv 55 include/linux/cpuidle.h struct cpuidle_driver *drv, drv 66 include/linux/cpuidle.h struct cpuidle_driver *drv, drv 131 include/linux/cpuidle.h extern bool cpuidle_not_available(struct cpuidle_driver *drv, drv 134 include/linux/cpuidle.h extern int cpuidle_select(struct cpuidle_driver *drv, drv 137 include/linux/cpuidle.h extern int cpuidle_enter(struct cpuidle_driver *drv, drv 140 include/linux/cpuidle.h extern u64 cpuidle_poll_time(struct cpuidle_driver *drv, drv 143 include/linux/cpuidle.h extern int cpuidle_register_driver(struct cpuidle_driver *drv); drv 147 include/linux/cpuidle.h extern void cpuidle_unregister_driver(struct cpuidle_driver *drv); drv 150 include/linux/cpuidle.h extern int cpuidle_register(struct cpuidle_driver *drv, drv 152 include/linux/cpuidle.h extern void cpuidle_unregister(struct cpuidle_driver *drv); drv 166 include/linux/cpuidle.h static inline bool cpuidle_not_available(struct cpuidle_driver *drv, drv 169 include/linux/cpuidle.h static inline int cpuidle_select(struct cpuidle_driver *drv, drv 172 include/linux/cpuidle.h static inline int cpuidle_enter(struct cpuidle_driver *drv, drv 176 include/linux/cpuidle.h static inline u64 cpuidle_poll_time(struct cpuidle_driver *drv, drv 179 include/linux/cpuidle.h static inline int cpuidle_register_driver(struct cpuidle_driver *drv) drv 184 include/linux/cpuidle.h static inline void cpuidle_unregister_driver(struct cpuidle_driver *drv) { } drv 188 include/linux/cpuidle.h static inline int cpuidle_register(struct cpuidle_driver *drv, drv 191 include/linux/cpuidle.h static inline void cpuidle_unregister(struct cpuidle_driver *drv) { } drv 206 include/linux/cpuidle.h extern int cpuidle_find_deepest_state(struct cpuidle_driver *drv, drv 208 include/linux/cpuidle.h extern int cpuidle_enter_s2idle(struct cpuidle_driver *drv, drv 212 include/linux/cpuidle.h static inline int cpuidle_find_deepest_state(struct cpuidle_driver *drv, drv 215 include/linux/cpuidle.h static inline int cpuidle_enter_s2idle(struct cpuidle_driver *drv, drv 236 include/linux/cpuidle.h void cpuidle_poll_state_init(struct cpuidle_driver *drv); drv 238 include/linux/cpuidle.h static inline void cpuidle_poll_state_init(struct cpuidle_driver *drv) {} drv 250 include/linux/cpuidle.h int (*enable) (struct cpuidle_driver *drv, drv 252 include/linux/cpuidle.h void (*disable) (struct cpuidle_driver *drv, drv 255 include/linux/cpuidle.h int (*select) (struct cpuidle_driver *drv, drv 123 include/linux/device.h int (*match)(struct device *dev, struct device_driver *drv); drv 396 include/linux/device.h extern int __must_check driver_register(struct device_driver *drv); drv 397 include/linux/device.h extern void driver_unregister(struct device_driver *drv); drv 425 include/linux/device.h extern int __must_check driver_for_each_device(struct device_driver *drv, drv 430 include/linux/device.h struct device *driver_find_device(struct device_driver *drv, drv 440 include/linux/device.h static inline struct device *driver_find_device_by_name(struct device_driver *drv, drv 443 include/linux/device.h return driver_find_device(drv, NULL, name, device_match_name); drv 453 include/linux/device.h driver_find_device_by_of_node(struct device_driver *drv, drv 456 include/linux/device.h return driver_find_device(drv, NULL, np, device_match_of_node); drv 466 include/linux/device.h driver_find_device_by_fwnode(struct device_driver *drv, drv 469 include/linux/device.h return driver_find_device(drv, NULL, fwnode, device_match_fwnode); drv 478 include/linux/device.h static inline struct device *driver_find_device_by_devt(struct device_driver *drv, drv 481 include/linux/device.h return driver_find_device(drv, NULL, &devt, device_match_devt); drv 484 include/linux/device.h static inline struct device *driver_find_next_device(struct device_driver *drv, drv 487 include/linux/device.h return driver_find_device(drv, start, NULL, device_match_any); drv 498 include/linux/device.h driver_find_device_by_acpi_dev(struct device_driver *drv, drv 501 include/linux/device.h return driver_find_device(drv, NULL, adev, device_match_acpi_dev); drv 505 include/linux/device.h driver_find_device_by_acpi_dev(struct device_driver *drv, const void *adev) drv 1562 include/linux/device.h extern int __must_check driver_attach(struct device_driver *drv); drv 96 include/linux/dio.h #define to_dio_driver(drv) container_of(drv, struct dio_driver, driver) drv 63 include/linux/eisa.h #define to_eisa_driver(drv) container_of(drv,struct eisa_driver, driver) drv 42 include/linux/fsi.h struct device_driver drv; drv 47 include/linux/fsi.h #define to_fsi_drv(drvp) container_of(drvp, struct fsi_driver, drv) drv 376 include/linux/fsl/mc.h #define fsl_mc_driver_register(drv) \ drv 377 include/linux/fsl/mc.h __fsl_mc_driver_register(drv, THIS_MODULE) drv 42 include/linux/gameport.h struct gameport_driver *drv; drv 54 include/linux/gameport.h int (*connect)(struct gameport *, struct gameport_driver *drv); drv 64 include/linux/gameport.h int gameport_open(struct gameport *gameport, struct gameport_driver *drv, int mode); drv 143 include/linux/gameport.h int __must_check __gameport_register_driver(struct gameport_driver *drv, drv 147 include/linux/gameport.h #define gameport_register_driver(drv) \ drv 148 include/linux/gameport.h __gameport_register_driver(drv, THIS_MODULE, KBUILD_MODNAME) drv 150 include/linux/gameport.h void gameport_unregister_driver(struct gameport_driver *drv); drv 160 include/linux/hsi/hsi.h #define to_hsi_client_driver(drv) container_of(drv, struct hsi_client_driver,\ drv 163 include/linux/hsi/hsi.h int hsi_register_client_driver(struct hsi_client_driver *drv); drv 165 include/linux/hsi/hsi.h static inline void hsi_unregister_client_driver(struct hsi_client_driver *drv) drv 167 include/linux/hsi/hsi.h driver_unregister(&drv->driver); drv 183 include/linux/i3c/device.h static inline struct i3c_driver *drv_to_i3cdrv(struct device_driver *drv) drv 185 include/linux/i3c/device.h return container_of(drv, struct i3c_driver, driver); drv 210 include/linux/i3c/device.h int i3c_driver_register_with_owner(struct i3c_driver *drv, drv 212 include/linux/i3c/device.h void i3c_driver_unregister(struct i3c_driver *drv); drv 1081 include/linux/ide.h #define to_ide_driver(drv) container_of(drv, struct ide_driver, gen_driver) drv 86 include/linux/maple.h struct device_driver drv; drv 101 include/linux/maple.h #define to_maple_driver(n) container_of(n, struct maple_driver, drv) drv 101 include/linux/mcb.h static inline struct mcb_driver *to_mcb_driver(struct device_driver *drv) drv 103 include/linux/mcb.h return container_of(drv, struct mcb_driver, driver); drv 116 include/linux/mcb.h extern int __must_check __mcb_register_driver(struct mcb_driver *drv, drv 130 include/linux/mdev.h #define to_mdev_driver(drv) container_of(drv, struct mdev_driver, driver) drv 141 include/linux/mdev.h int mdev_register_driver(struct mdev_driver *drv, struct module *owner); drv 142 include/linux/mdev.h void mdev_unregister_driver(struct mdev_driver *drv); drv 32 include/linux/mdio.h int (*bus_match)(struct device *dev, struct device_driver *drv); drv 87 include/linux/mdio.h int mdio_driver_register(struct mdio_driver *drv); drv 88 include/linux/mdio.h void mdio_driver_unregister(struct mdio_driver *drv); drv 89 include/linux/mdio.h int mdio_device_bus_match(struct device *dev, struct device_driver *drv); drv 305 include/linux/memstick.h int memstick_register_driver(struct memstick_driver *drv); drv 306 include/linux/memstick.h void memstick_unregister_driver(struct memstick_driver *drv); drv 47 include/linux/mfd/mcp.h struct device_driver drv; drv 147 include/linux/mfd/ucb1x00.h struct ucb1x00_driver *drv; drv 87 include/linux/mic_bus.h int mbus_register_driver(struct mbus_driver *drv); drv 88 include/linux/mic_bus.h void mbus_unregister_driver(struct mbus_driver *drv); drv 95 include/linux/mic_bus.h static inline struct mbus_driver *drv_to_mbus(struct device_driver *drv) drv 97 include/linux/mic_bus.h return container_of(drv, struct mbus_driver, driver); drv 80 include/linux/mmc/sdio_func.h struct device_driver drv; drv 67 include/linux/moxtet.h to_moxtet_driver(struct device_driver *drv) drv 69 include/linux/moxtet.h if (!drv) drv 71 include/linux/moxtet.h return container_of(drv, struct moxtet_driver, driver); drv 26 include/linux/nd.h struct device_driver drv; drv 35 include/linux/nd.h struct device_driver *drv) drv 37 include/linux/nd.h return container_of(drv, struct nd_device_driver, drv); drv 175 include/linux/nd.h static inline void nd_driver_unregister(struct nd_device_driver *drv) drv 177 include/linux/nd.h driver_unregister(&drv->drv); drv 403 include/linux/ntb.h struct device_driver drv; drv 406 include/linux/ntb.h #define drv_ntb_client(__drv) container_of((__drv), struct ntb_client, drv) drv 24 include/linux/of_device.h const struct device_driver *drv) drv 26 include/linux/of_device.h return of_match_device(drv->of_match_table, dev) != NULL; drv 64 include/linux/of_device.h const struct device_driver *drv) drv 46 include/linux/olpc-ec.h extern void olpc_ec_driver_register(struct olpc_ec_driver *drv, void *arg); drv 89 include/linux/pci-epf.h #define to_pci_epf_driver(drv) (container_of((drv), struct pci_epf_driver, \ drv 843 include/linux/pci.h #define to_pci_driver(drv) container_of(drv, struct pci_driver, driver) drv 1379 include/linux/pci.h int pci_add_dynid(struct pci_driver *drv, drv 1691 include/linux/pci.h static inline int __pci_register_driver(struct pci_driver *drv, drv 1694 include/linux/pci.h static inline int pci_register_driver(struct pci_driver *drv) drv 1696 include/linux/pci.h static inline void pci_unregister_driver(struct pci_driver *drv) { } drv 365 include/linux/phy.h struct phy_driver *drv; drv 1132 include/linux/phy.h if (!phydev->drv) drv 1135 include/linux/phy.h if (phydev->drv->read_status) drv 1136 include/linux/phy.h return phydev->drv->read_status(phydev); drv 1141 include/linux/phy.h void phy_driver_unregister(struct phy_driver *drv); drv 1142 include/linux/phy.h void phy_drivers_unregister(struct phy_driver *drv, int n); drv 1203 include/linux/phy.h if (!phydev->drv) drv 1207 include/linux/phy.h phydev->drv->get_strings(phydev, data); drv 1217 include/linux/phy.h if (!phydev->drv) drv 1220 include/linux/phy.h if (phydev->drv->get_sset_count && drv 1221 include/linux/phy.h phydev->drv->get_strings && drv 1222 include/linux/phy.h phydev->drv->get_stats) { drv 1224 include/linux/phy.h ret = phydev->drv->get_sset_count(phydev); drv 1236 include/linux/phy.h if (!phydev->drv) drv 1240 include/linux/phy.h phydev->drv->get_stats(phydev, stats, data); drv 56 include/linux/platform_device.h const struct device_driver *drv); drv 201 include/linux/platform_device.h #define to_platform_driver(drv) (container_of((drv), struct platform_driver, \ drv 207 include/linux/platform_device.h #define platform_driver_register(drv) \ drv 208 include/linux/platform_device.h __platform_driver_register(drv, THIS_MODULE) drv 216 include/linux/platform_device.h #define platform_driver_probe(drv, probe) \ drv 217 include/linux/platform_device.h __platform_driver_probe(drv, probe, THIS_MODULE) drv 386 include/linux/pnp.h #define to_pnp_driver(drv) container_of(drv, struct pnp_driver, driver) drv 401 include/linux/pnp.h #define to_pnp_card_driver(drv) container_of(drv, struct pnp_card_driver, link) drv 452 include/linux/pnp.h int pnp_register_card_driver(struct pnp_card_driver *drv); drv 453 include/linux/pnp.h void pnp_unregister_card_driver(struct pnp_card_driver *drv); drv 469 include/linux/pnp.h int pnp_register_driver(struct pnp_driver *drv); drv 470 include/linux/pnp.h void pnp_unregister_driver(struct pnp_driver *drv); drv 483 include/linux/pnp.h static inline int pnp_register_card_driver(struct pnp_card_driver *drv) { return -ENODEV; } drv 484 include/linux/pnp.h static inline void pnp_unregister_card_driver(struct pnp_card_driver *drv) { } drv 500 include/linux/pnp.h static inline int pnp_register_driver(struct pnp_driver *drv) { return -ENODEV; } drv 501 include/linux/pnp.h static inline void pnp_unregister_driver(struct pnp_driver *drv) { } drv 71 include/linux/qed/qede_rdma.h int qede_rdma_register_driver(struct qedr_driver *drv); drv 72 include/linux/qed/qede_rdma.h void qede_rdma_unregister_driver(struct qedr_driver *drv); drv 468 include/linux/rio.h #define to_rio_driver(drv) container_of(drv,struct rio_driver, driver) drv 107 include/linux/rpmsg.h struct device_driver drv; drv 118 include/linux/rpmsg.h int __register_rpmsg_driver(struct rpmsg_driver *drv, struct module *owner); drv 119 include/linux/rpmsg.h void unregister_rpmsg_driver(struct rpmsg_driver *drv); drv 151 include/linux/rpmsg.h static inline int __register_rpmsg_driver(struct rpmsg_driver *drv, drv 160 include/linux/rpmsg.h static inline void unregister_rpmsg_driver(struct rpmsg_driver *drv) drv 248 include/linux/rpmsg.h #define register_rpmsg_driver(drv) \ drv 249 include/linux/rpmsg.h __register_rpmsg_driver(drv, THIS_MODULE) drv 315 include/linux/serdev.h struct tty_driver *drv, int idx); drv 320 include/linux/serdev.h struct tty_driver *drv, int idx) drv 51 include/linux/serio.h struct serio_driver *drv; drv 75 include/linux/serio.h int (*connect)(struct serio *, struct serio_driver *drv); drv 85 include/linux/serio.h int serio_open(struct serio *serio, struct serio_driver *drv); drv 100 include/linux/serio.h int __must_check __serio_register_driver(struct serio_driver *drv, drv 104 include/linux/serio.h #define serio_register_driver(drv) \ drv 105 include/linux/serio.h __serio_register_driver(drv, THIS_MODULE, KBUILD_MODNAME) drv 107 include/linux/serio.h void serio_unregister_driver(struct serio_driver *drv); drv 132 include/linux/serio.h if (serio->drv && serio->drv->write_wakeup) drv 133 include/linux/serio.h serio->drv->write_wakeup(serio); drv 148 include/linux/slimbus.h #define slim_driver_register(drv) \ drv 149 include/linux/slimbus.h __slim_driver_register(drv, THIS_MODULE) drv 150 include/linux/slimbus.h int __slim_driver_register(struct slim_driver *drv, struct module *owner); drv 151 include/linux/slimbus.h void slim_driver_unregister(struct slim_driver *drv); drv 108 include/linux/soc/qcom/apr.h #define apr_driver_register(drv) __apr_driver_register(drv, THIS_MODULE) drv 110 include/linux/soc/qcom/apr.h int __apr_driver_register(struct apr_driver *drv, struct module *owner); drv 111 include/linux/soc/qcom/apr.h void apr_driver_unregister(struct apr_driver *drv); drv 11 include/linux/soundwire/sdw_type.h #define sdw_register_driver(drv) \ drv 12 include/linux/soundwire/sdw_type.h __sdw_register_driver(drv, THIS_MODULE) drv 14 include/linux/soundwire/sdw_type.h int __sdw_register_driver(struct sdw_driver *drv, struct module *owner); drv 15 include/linux/soundwire/sdw_type.h void sdw_unregister_driver(struct sdw_driver *drv); drv 351 include/linux/spi/spi-mem.h int spi_mem_driver_register_with_owner(struct spi_mem_driver *drv, drv 354 include/linux/spi/spi-mem.h void spi_mem_driver_unregister(struct spi_mem_driver *drv); drv 267 include/linux/spi/spi.h static inline struct spi_driver *to_spi_driver(struct device_driver *drv) drv 269 include/linux/spi/spi.h return drv ? container_of(drv, struct spi_driver, driver) : NULL; drv 326 include/linux/ssb/ssb.h struct device_driver drv; drv 328 include/linux/ssb/ssb.h #define drv_to_ssb_drv(_drv) container_of(_drv, struct ssb_driver, drv) drv 330 include/linux/ssb/ssb.h extern int __ssb_driver_register(struct ssb_driver *drv, struct module *owner); drv 331 include/linux/ssb/ssb.h #define ssb_driver_register(drv) \ drv 332 include/linux/ssb/ssb.h __ssb_driver_register(drv, THIS_MODULE) drv 334 include/linux/ssb/ssb.h extern void ssb_driver_unregister(struct ssb_driver *drv); drv 54 include/linux/superhyway.h struct device_driver drv; drv 60 include/linux/superhyway.h #define to_superhyway_driver(d) container_of((d), struct superhyway_driver, drv) drv 68 include/linux/superhyway.h struct superhyway_driver *drv; drv 111 include/linux/tc.h #define to_tc_driver(drv) container_of(drv, struct tc_driver, driver) drv 409 include/linux/thunderbolt.h int tb_register_service_driver(struct tb_service_driver *drv); drv 410 include/linux/thunderbolt.h void tb_unregister_service_driver(struct tb_service_driver *drv); drv 140 include/linux/tifm.h int tifm_register_driver(struct tifm_driver *drv); drv 141 include/linux/tifm.h void tifm_unregister_driver(struct tifm_driver *drv); drv 54 include/linux/ulpi/driver.h #define ulpi_register_driver(drv) __ulpi_register_driver(drv, THIS_MODULE) drv 55 include/linux/ulpi/driver.h int __ulpi_register_driver(struct ulpi_driver *drv, struct module *module); drv 56 include/linux/ulpi/driver.h void ulpi_unregister_driver(struct ulpi_driver *drv); drv 869 include/linux/usb.h extern struct usb_interface *usb_find_interface(struct usb_driver *drv, drv 150 include/linux/usb/typec_altmode.h #define typec_altmode_register_driver(drv) \ drv 151 include/linux/usb/typec_altmode.h __typec_altmode_register_driver(drv, THIS_MODULE) drv 152 include/linux/usb/typec_altmode.h int __typec_altmode_register_driver(struct typec_altmode_driver *drv, drv 154 include/linux/usb/typec_altmode.h void typec_altmode_unregister_driver(struct typec_altmode_driver *drv); drv 183 include/linux/virtio.h static inline struct virtio_driver *drv_to_virtio(struct device_driver *drv) drv 185 include/linux/virtio.h return container_of(drv, struct virtio_driver, driver); drv 188 include/linux/virtio.h int register_virtio_driver(struct virtio_driver *drv); drv 189 include/linux/virtio.h void unregister_virtio_driver(struct virtio_driver *drv); drv 323 include/linux/visorbus.h int visorbus_register_visor_driver(struct visor_driver *drv); drv 324 include/linux/visorbus.h void visorbus_unregister_visor_driver(struct visor_driver *drv); drv 77 include/linux/vlynq.h static inline struct vlynq_driver *to_vlynq_driver(struct device_driver *drv) drv 79 include/linux/vlynq.h return container_of(drv, struct vlynq_driver, driver); drv 63 include/linux/zorro.h #define to_zorro_driver(drv) container_of(drv, struct zorro_driver, driver) drv 96 include/net/caif/caif_hsi.h void (*tx_done_cb) (struct cfhsi_cb_ops *drv); drv 97 include/net/caif/caif_hsi.h void (*rx_done_cb) (struct cfhsi_cb_ops *drv); drv 98 include/net/caif/caif_hsi.h void (*wake_up_cb) (struct cfhsi_cb_ops *drv); drv 99 include/net/caif/caif_hsi.h void (*wake_down_cb) (struct cfhsi_cb_ops *drv); drv 57 include/pcmcia/ds.h struct device_driver drv; drv 152 include/pcmcia/ds.h #define to_pcmcia_drv(n) container_of(n, struct pcmcia_driver, drv) drv 23 include/scsi/scsi_driver.h #define to_scsi_driver(drv) \ drv 24 include/scsi/scsi_driver.h container_of((drv), struct scsi_driver, gendrv) drv 27 include/scsi/scsi_driver.h #define scsi_unregister_driver(drv) \ drv 28 include/scsi/scsi_driver.h driver_unregister(drv); drv 463 include/scsi/scsi_transport_iscsi.h struct device_driver *drv); drv 82 include/sound/ac97/codec.h int snd_ac97_codec_driver_register(struct ac97_codec_driver *drv); drv 83 include/sound/ac97/codec.h void snd_ac97_codec_driver_unregister(struct ac97_codec_driver *drv); drv 86 include/sound/ac97/codec.h snd_ac97_codec_driver_register(struct ac97_codec_driver *drv) drv 91 include/sound/ac97/codec.h snd_ac97_codec_driver_unregister(struct ac97_codec_driver *drv) drv 95 include/sound/hda_codec.h int __hda_codec_driver_register(struct hda_codec_driver *drv, const char *name, drv 97 include/sound/hda_codec.h #define hda_codec_driver_register(drv) \ drv 98 include/sound/hda_codec.h __hda_codec_driver_register(drv, KBUILD_MODNAME, THIS_MODULE) drv 99 include/sound/hda_codec.h void hda_codec_driver_unregister(struct hda_codec_driver *drv); drv 100 include/sound/hda_codec.h #define module_hda_codec_driver(drv) \ drv 101 include/sound/hda_codec.h module_driver(drv, hda_codec_driver_register, \ drv 221 include/sound/hdaudio.h int (*match)(struct hdac_device *dev, struct hdac_driver *drv); drv 233 include/sound/hdaudio.h hdac_get_device_id(struct hdac_device *hdev, struct hdac_driver *drv); drv 164 include/sound/hdaudio_ext.h int snd_hda_ext_driver_register(struct hdac_driver *drv); drv 165 include/sound/hdaudio_ext.h void snd_hda_ext_driver_unregister(struct hdac_driver *drv); drv 67 include/sound/seq_device.h int __must_check __snd_seq_driver_register(struct snd_seq_driver *drv, drv 69 include/sound/seq_device.h #define snd_seq_driver_register(drv) \ drv 70 include/sound/seq_device.h __snd_seq_driver_register(drv, THIS_MODULE) drv 71 include/sound/seq_device.h void snd_seq_driver_unregister(struct snd_seq_driver *drv); drv 73 include/sound/seq_device.h #define module_snd_seq_driver(drv) \ drv 74 include/sound/seq_device.h module_driver(drv, snd_seq_driver_register, snd_seq_driver_unregister) drv 109 include/xen/xenbus.h static inline struct xenbus_driver *to_xenbus_driver(struct device_driver *drv) drv 111 include/xen/xenbus.h return container_of(drv, struct xenbus_driver, driver); drv 114 include/xen/xenbus.h int __must_check __xenbus_register_frontend(struct xenbus_driver *drv, drv 117 include/xen/xenbus.h int __must_check __xenbus_register_backend(struct xenbus_driver *drv, drv 121 include/xen/xenbus.h #define xenbus_register_frontend(drv) \ drv 122 include/xen/xenbus.h __xenbus_register_frontend(drv, THIS_MODULE, KBUILD_MODNAME) drv 123 include/xen/xenbus.h #define xenbus_register_backend(drv) \ drv 124 include/xen/xenbus.h __xenbus_register_backend(drv, THIS_MODULE, KBUILD_MODNAME) drv 126 include/xen/xenbus.h void xenbus_unregister_driver(struct xenbus_driver *drv); drv 175 kernel/dma/debug.c struct device_driver *drv; drv 195 kernel/dma/debug.c drv = dev->driver; drv 196 kernel/dma/debug.c if (!drv) drv 203 kernel/dma/debug.c if (drv->name && drv 204 kernel/dma/debug.c strncmp(current_driver_name, drv->name, NAME_MAX_LEN - 1) == 0) { drv 205 kernel/dma/debug.c current_driver = drv; drv 99 kernel/sched/idle.c static int call_cpuidle(struct cpuidle_driver *drv, struct cpuidle_device *dev, drv 117 kernel/sched/idle.c return cpuidle_enter(drv, dev, next_state); drv 132 kernel/sched/idle.c struct cpuidle_driver *drv = cpuidle_get_cpu_driver(dev); drv 150 kernel/sched/idle.c if (cpuidle_not_available(drv, dev)) { drv 172 kernel/sched/idle.c entered_state = cpuidle_enter_s2idle(drv, dev); drv 184 kernel/sched/idle.c next_state = cpuidle_find_deepest_state(drv, dev); drv 185 kernel/sched/idle.c call_cpuidle(drv, dev, next_state); drv 192 kernel/sched/idle.c next_state = cpuidle_select(drv, dev, &stop_tick); drv 201 kernel/sched/idle.c entered_state = call_cpuidle(drv, dev, next_state); drv 67 kernel/trace/trace_mmiotrace.c const struct pci_driver *drv = pci_dev_driver(dev); drv 85 kernel/trace/trace_mmiotrace.c if (drv) drv 86 kernel/trace/trace_mmiotrace.c trace_seq_printf(s, " %s\n", drv->name); drv 650 net/8021q/vlan_dev.c if (phydev && phydev->drv && phydev->drv->ts_info) { drv 651 net/8021q/vlan_dev.c return phydev->drv->ts_info(phydev, info); drv 2173 net/core/ethtool.c if (phydev && phydev->drv && phydev->drv->ts_info) { drv 2174 net/core/ethtool.c err = phydev->drv->ts_info(phydev, &info); drv 2202 net/core/ethtool.c if (phydev && phydev->drv && phydev->drv->module_info) drv 2203 net/core/ethtool.c return phydev->drv->module_info(phydev, modinfo); drv 2239 net/core/ethtool.c if (phydev && phydev->drv && phydev->drv->module_eeprom) drv 2240 net/core/ethtool.c return phydev->drv->module_eeprom(phydev, ee, data); drv 2476 net/core/ethtool.c if (!(phydev && phydev->drv && phydev->drv->get_tunable)) drv 2488 net/core/ethtool.c ret = phydev->drv->get_tunable(phydev, &tuna, data); drv 2510 net/core/ethtool.c if (!(phydev && phydev->drv && phydev->drv->set_tunable)) drv 2522 net/core/ethtool.c ret = phydev->drv->set_tunable(phydev, &tuna, data); drv 16 net/core/timestamping.c skb->dev->phydev->drv)) drv 36 net/core/timestamping.c if (likely(phydev->drv->txtstamp)) { drv 40 net/core/timestamping.c phydev->drv->txtstamp(phydev, clone, type); drv 50 net/core/timestamping.c if (!skb->dev || !skb->dev->phydev || !skb->dev->phydev->drv) drv 66 net/core/timestamping.c if (likely(phydev->drv->rxtstamp)) drv 67 net/core/timestamping.c return phydev->drv->rxtstamp(phydev, skb, type); drv 65 net/iucv/iucv.c static int iucv_bus_match(struct device *dev, struct device_driver *drv) drv 102 net/qrtr/smd.c .drv = { drv 87 samples/rpmsg/rpmsg_client_sample.c .drv.name = KBUILD_MODNAME, drv 191 sound/ac97/bus.c int snd_ac97_codec_driver_register(struct ac97_codec_driver *drv) drv 193 sound/ac97/bus.c drv->driver.bus = &ac97_bus_type; drv 194 sound/ac97/bus.c return driver_register(&drv->driver); drv 204 sound/ac97/bus.c void snd_ac97_codec_driver_unregister(struct ac97_codec_driver *drv) drv 206 sound/ac97/bus.c driver_unregister(&drv->driver); drv 473 sound/ac97/bus.c static int ac97_bus_match(struct device *dev, struct device_driver *drv) drv 476 sound/ac97/bus.c struct ac97_codec_driver *adrv = to_ac97_driver(drv); drv 83 sound/ac97_bus.c static int ac97_bus_match(struct device *dev, struct device_driver *drv) drv 39 sound/aoa/soundbus/core.c struct soundbus_driver *drv; drv 42 sound/aoa/soundbus/core.c drv = to_soundbus_driver(dev->driver); drv 45 sound/aoa/soundbus/core.c if (!drv->probe) drv 50 sound/aoa/soundbus/core.c error = drv->probe(soundbus_dev); drv 110 sound/aoa/soundbus/core.c struct soundbus_driver * drv = to_soundbus_driver(dev->driver); drv 112 sound/aoa/soundbus/core.c if (dev->driver && drv->remove) drv 113 sound/aoa/soundbus/core.c drv->remove(soundbus_dev); drv 122 sound/aoa/soundbus/core.c struct soundbus_driver * drv = to_soundbus_driver(dev->driver); drv 124 sound/aoa/soundbus/core.c if (dev->driver && drv->shutdown) drv 125 sound/aoa/soundbus/core.c drv->shutdown(soundbus_dev); drv 164 sound/aoa/soundbus/core.c int soundbus_register_driver(struct soundbus_driver *drv) drv 167 sound/aoa/soundbus/core.c drv->driver.name = drv->name; drv 168 sound/aoa/soundbus/core.c drv->driver.bus = &soundbus_bus_type; drv 171 sound/aoa/soundbus/core.c return driver_register(&drv->driver); drv 175 sound/aoa/soundbus/core.c void soundbus_unregister_driver(struct soundbus_driver *drv) drv 177 sound/aoa/soundbus/core.c driver_unregister(&drv->driver); drv 194 sound/aoa/soundbus/soundbus.h #define to_soundbus_driver(drv) container_of(drv,struct soundbus_driver, driver) drv 196 sound/aoa/soundbus/soundbus.h extern int soundbus_register_driver(struct soundbus_driver *drv); drv 197 sound/aoa/soundbus/soundbus.h extern void soundbus_unregister_driver(struct soundbus_driver *drv); drv 1096 sound/arm/aaci.c .drv = { drv 33 sound/core/seq/seq_midi_emul.c static void note_off(struct snd_midi_op *ops, void *drv, drv 40 sound/core/seq/seq_midi_emul.c static void rpn(struct snd_midi_op *ops, void *drv, struct snd_midi_channel *chan, drv 42 sound/core/seq/seq_midi_emul.c static void nrpn(struct snd_midi_op *ops, void *drv, struct snd_midi_channel *chan, drv 74 sound/core/seq/seq_midi_emul.c void *drv; drv 94 sound/core/seq/seq_midi_emul.c drv = chanset->private_data; drv 117 sound/core/seq/seq_midi_emul.c ops->note_off(drv, ev->data.note.note, 0, chan); drv 121 sound/core/seq/seq_midi_emul.c ops->note_on(drv, ev->data.note.note, ev->data.note.velocity, chan); drv 127 sound/core/seq/seq_midi_emul.c note_off(ops, drv, chan, ev->data.note.note, ev->data.note.velocity); drv 131 sound/core/seq/seq_midi_emul.c ops->key_press(drv, ev->data.note.note, ev->data.note.velocity, chan); drv 134 sound/core/seq/seq_midi_emul.c do_control(ops, drv, chanset, chan, drv 143 sound/core/seq/seq_midi_emul.c ops->control(drv, MIDI_CTL_PITCHBEND, chan); drv 148 sound/core/seq/seq_midi_emul.c ops->control(drv, MIDI_CTL_CHAN_PRESSURE, chan); drv 156 sound/core/seq/seq_midi_emul.c do_control(ops, drv, chanset, chan, drv 160 sound/core/seq/seq_midi_emul.c do_control(ops, drv, chanset, chan, drv 175 sound/core/seq/seq_midi_emul.c nrpn(ops, drv, chan, chanset); drv 188 sound/core/seq/seq_midi_emul.c rpn(ops, drv, chan, chanset); drv 196 sound/core/seq/seq_midi_emul.c sysex(ops, drv, sysexbuf, len, chanset); drv 232 sound/core/seq/seq_midi_emul.c note_off(struct snd_midi_op *ops, void *drv, struct snd_midi_channel *chan, drv 245 sound/core/seq/seq_midi_emul.c ops->note_off(drv, note, vel, chan); drv 254 sound/core/seq/seq_midi_emul.c do_control(struct snd_midi_op *ops, void *drv, struct snd_midi_channel_set *chset, drv 277 sound/core/seq/seq_midi_emul.c ops->note_off(drv, i, 0, chan); drv 299 sound/core/seq/seq_midi_emul.c ops->note_off(drv, i, 0, chan); drv 310 sound/core/seq/seq_midi_emul.c rpn(ops, drv, chan, chset); drv 312 sound/core/seq/seq_midi_emul.c nrpn(ops, drv, chan, chset); drv 324 sound/core/seq/seq_midi_emul.c all_sounds_off(ops, drv, chan); drv 328 sound/core/seq/seq_midi_emul.c all_notes_off(ops, drv, chan); drv 363 sound/core/seq/seq_midi_emul.c ops->control(drv, control, chan); drv 405 sound/core/seq/seq_midi_emul.c rpn(struct snd_midi_op *ops, void *drv, struct snd_midi_channel *chan, drv 445 sound/core/seq/seq_midi_emul.c nrpn(struct snd_midi_op *ops, void *drv, struct snd_midi_channel *chan, drv 450 sound/core/seq/seq_midi_emul.c ops->nrpn(drv, chan, chset); drv 587 sound/core/seq/seq_midi_emul.c all_sounds_off(struct snd_midi_op *ops, void *drv, struct snd_midi_channel *chan) drv 595 sound/core/seq/seq_midi_emul.c ops->note_terminate(drv, n, chan); drv 605 sound/core/seq/seq_midi_emul.c all_notes_off(struct snd_midi_op *ops, void *drv, struct snd_midi_channel *chan) drv 613 sound/core/seq/seq_midi_emul.c note_off(ops, drv, chan, n, 0); drv 43 sound/core/seq_device.c static int snd_seq_bus_match(struct device *dev, struct device_driver *drv) drv 46 sound/core/seq_device.c struct snd_seq_driver *sdrv = to_seq_drv(drv); drv 241 sound/core/seq_device.c int __snd_seq_driver_register(struct snd_seq_driver *drv, struct module *mod) drv 243 sound/core/seq_device.c if (WARN_ON(!drv->driver.name || !drv->id)) drv 245 sound/core/seq_device.c drv->driver.bus = &snd_seq_bus_type; drv 246 sound/core/seq_device.c drv->driver.owner = mod; drv 247 sound/core/seq_device.c return driver_register(&drv->driver); drv 251 sound/core/seq_device.c void snd_seq_driver_unregister(struct snd_seq_driver *drv) drv 253 sound/core/seq_device.c driver_unregister(&drv->driver); drv 167 sound/hda/ext/hdac_ext_bus.c int snd_hda_ext_driver_register(struct hdac_driver *drv) drv 169 sound/hda/ext/hdac_ext_bus.c drv->type = HDA_DEV_ASOC; drv 170 sound/hda/ext/hdac_ext_bus.c drv->driver.bus = &snd_hda_bus_type; drv 173 sound/hda/ext/hdac_ext_bus.c if (drv->probe) drv 174 sound/hda/ext/hdac_ext_bus.c drv->driver.probe = hda_ext_drv_probe; drv 175 sound/hda/ext/hdac_ext_bus.c if (drv->remove) drv 176 sound/hda/ext/hdac_ext_bus.c drv->driver.remove = hdac_ext_drv_remove; drv 177 sound/hda/ext/hdac_ext_bus.c if (drv->shutdown) drv 178 sound/hda/ext/hdac_ext_bus.c drv->driver.shutdown = hdac_ext_drv_shutdown; drv 180 sound/hda/ext/hdac_ext_bus.c return driver_register(&drv->driver); drv 189 sound/hda/ext/hdac_ext_bus.c void snd_hda_ext_driver_unregister(struct hdac_driver *drv) drv 191 sound/hda/ext/hdac_ext_bus.c driver_unregister(&drv->driver); drv 24 sound/hda/hda_bus_type.c hdac_get_device_id(struct hdac_device *hdev, struct hdac_driver *drv) drv 26 sound/hda/hda_bus_type.c if (drv->id_table) { drv 27 sound/hda/hda_bus_type.c const struct hda_device_id *id = drv->id_table; drv 41 sound/hda/hda_bus_type.c static int hdac_codec_match(struct hdac_device *dev, struct hdac_driver *drv) drv 43 sound/hda/hda_bus_type.c if (hdac_get_device_id(dev, drv)) drv 49 sound/hda/hda_bus_type.c static int hda_bus_match(struct device *dev, struct device_driver *drv) drv 52 sound/hda/hda_bus_type.c struct hdac_driver *hdrv = drv_to_hdac_driver(drv); drv 158 sound/hda/hdac_bus.c struct hdac_driver *drv; drv 172 sound/hda/hdac_bus.c drv = drv_to_hdac_driver(codec->dev.driver); drv 173 sound/hda/hdac_bus.c if (drv->unsol_event) drv 174 sound/hda/hdac_bus.c drv->unsol_event(codec, res); drv 21 sound/pci/hda/hda_bind.c static int hda_codec_match(struct hdac_device *dev, struct hdac_driver *drv) drv 25 sound/pci/hda/hda_bind.c container_of(drv, struct hda_codec_driver, core); drv 170 sound/pci/hda/hda_bind.c int __hda_codec_driver_register(struct hda_codec_driver *drv, const char *name, drv 173 sound/pci/hda/hda_bind.c drv->core.driver.name = name; drv 174 sound/pci/hda/hda_bind.c drv->core.driver.owner = owner; drv 175 sound/pci/hda/hda_bind.c drv->core.driver.bus = &snd_hda_bus_type; drv 176 sound/pci/hda/hda_bind.c drv->core.driver.probe = hda_codec_driver_probe; drv 177 sound/pci/hda/hda_bind.c drv->core.driver.remove = hda_codec_driver_remove; drv 178 sound/pci/hda/hda_bind.c drv->core.driver.shutdown = hda_codec_driver_shutdown; drv 179 sound/pci/hda/hda_bind.c drv->core.driver.pm = &hda_codec_driver_pm; drv 180 sound/pci/hda/hda_bind.c drv->core.type = HDA_DEV_LEGACY; drv 181 sound/pci/hda/hda_bind.c drv->core.match = hda_codec_match; drv 182 sound/pci/hda/hda_bind.c drv->core.unsol_event = hda_codec_unsol_event; drv 183 sound/pci/hda/hda_bind.c return driver_register(&drv->core.driver); drv 187 sound/pci/hda/hda_bind.c void hda_codec_driver_unregister(struct hda_codec_driver *drv) drv 189 sound/pci/hda/hda_bind.c driver_unregister(&drv->core.driver); drv 500 sound/soc/codecs/adau1977.c unsigned int ctrl0, ctrl1, drv; drv 517 sound/soc/codecs/adau1977.c drv = 0; drv 520 sound/soc/codecs/adau1977.c drv |= ADAU1977_SAI_OVERTEMP_DRV_C(i); drv 569 sound/soc/codecs/adau1977.c ADAU1977_SAI_OVERTEMP_DRV_C(3), drv); drv 610 sound/soc/codecs/hdmi-codec.c struct snd_soc_dai_driver *drv = dai->driver; drv 625 sound/soc/codecs/hdmi-codec.c NULL, drv->playback.channels_max, 0, drv 23 sound/soc/intel/atom/sst-atom-controls.c static int sst_fill_byte_control(struct sst_data *drv, drv 28 sound/soc/intel/atom/sst-atom-controls.c struct snd_sst_bytes_v2 *byte_data = drv->byte_stream; drv 37 sound/soc/intel/atom/sst-atom-controls.c dev_err(&drv->pdev->dev, "command length too big (%u)", len); drv 47 sound/soc/intel/atom/sst-atom-controls.c static int sst_fill_and_send_cmd_unlocked(struct sst_data *drv, drv 53 sound/soc/intel/atom/sst-atom-controls.c ret = sst_fill_byte_control(drv, ipc_msg, drv 57 sound/soc/intel/atom/sst-atom-controls.c return sst->ops->send_byte_stream(sst->dev, drv->byte_stream); drv 65 sound/soc/intel/atom/sst-atom-controls.c static int sst_fill_and_send_cmd(struct sst_data *drv, drv 71 sound/soc/intel/atom/sst-atom-controls.c mutex_lock(&drv->lock); drv 72 sound/soc/intel/atom/sst-atom-controls.c ret = sst_fill_and_send_cmd_unlocked(drv, ipc_msg, block, drv 74 sound/soc/intel/atom/sst-atom-controls.c mutex_unlock(&drv->lock); drv 105 sound/soc/intel/atom/sst-atom-controls.c static int sst_send_slot_map(struct sst_data *drv) drv 122 sound/soc/intel/atom/sst-atom-controls.c return sst_fill_and_send_cmd_unlocked(drv, SST_IPC_IA_SET_PARAMS, drv 156 sound/soc/intel/atom/sst-atom-controls.c struct sst_data *drv = snd_soc_component_get_drvdata(c); drv 162 sound/soc/intel/atom/sst-atom-controls.c mutex_lock(&drv->lock); drv 170 sound/soc/intel/atom/sst-atom-controls.c mutex_unlock(&drv->lock); drv 183 sound/soc/intel/atom/sst-atom-controls.c static int sst_check_and_send_slot_map(struct sst_data *drv, struct snd_kcontrol *kcontrol) drv 189 sound/soc/intel/atom/sst-atom-controls.c ret = sst_send_slot_map(drv); drv 191 sound/soc/intel/atom/sst-atom-controls.c dev_err(&drv->pdev->dev, "Slot control: %s doesn't have DAPM widget!!!\n", drv 213 sound/soc/intel/atom/sst-atom-controls.c struct sst_data *drv = snd_soc_component_get_drvdata(c); drv 229 sound/soc/intel/atom/sst-atom-controls.c mutex_lock(&drv->lock); drv 236 sound/soc/intel/atom/sst-atom-controls.c ret = sst_check_and_send_slot_map(drv, kcontrol); drv 238 sound/soc/intel/atom/sst-atom-controls.c mutex_unlock(&drv->lock); drv 250 sound/soc/intel/atom/sst-atom-controls.c ret = sst_check_and_send_slot_map(drv, kcontrol); drv 252 sound/soc/intel/atom/sst-atom-controls.c mutex_unlock(&drv->lock); drv 256 sound/soc/intel/atom/sst-atom-controls.c static int sst_send_algo_cmd(struct sst_data *drv, drv 273 sound/soc/intel/atom/sst-atom-controls.c ret = sst_fill_and_send_cmd_unlocked(drv, SST_IPC_IA_SET_PARAMS, drv 286 sound/soc/intel/atom/sst-atom-controls.c static int sst_find_and_send_pipe_algo(struct sst_data *drv, drv 293 sound/soc/intel/atom/sst-atom-controls.c dev_dbg(&drv->pdev->dev, "Enter: widget=%s\n", pipe); drv 298 sound/soc/intel/atom/sst-atom-controls.c dev_dbg(&drv->pdev->dev, "Found algo control name=%s pipe=%s\n", drv 300 sound/soc/intel/atom/sst-atom-controls.c ret = sst_send_algo_cmd(drv, bc); drv 342 sound/soc/intel/atom/sst-atom-controls.c struct sst_data *drv = snd_soc_component_get_drvdata(cmpnt); drv 346 sound/soc/intel/atom/sst-atom-controls.c mutex_lock(&drv->lock); drv 352 sound/soc/intel/atom/sst-atom-controls.c mutex_unlock(&drv->lock); drv 359 sound/soc/intel/atom/sst-atom-controls.c ret = sst_send_algo_cmd(drv, bc); drv 360 sound/soc/intel/atom/sst-atom-controls.c mutex_unlock(&drv->lock); drv 392 sound/soc/intel/atom/sst-atom-controls.c static int sst_send_gain_cmd(struct sst_data *drv, struct sst_gain_value *gv, drv 397 sound/soc/intel/atom/sst-atom-controls.c dev_dbg(&drv->pdev->dev, "Enter\n"); drv 419 sound/soc/intel/atom/sst-atom-controls.c return sst_fill_and_send_cmd_unlocked(drv, SST_IPC_IA_SET_PARAMS, drv 459 sound/soc/intel/atom/sst-atom-controls.c struct sst_data *drv = snd_soc_component_get_drvdata(cmpnt); drv 463 sound/soc/intel/atom/sst-atom-controls.c mutex_lock(&drv->lock); drv 485 sound/soc/intel/atom/sst-atom-controls.c mutex_unlock(&drv->lock); drv 492 sound/soc/intel/atom/sst-atom-controls.c ret = sst_send_gain_cmd(drv, gv, mc->task_id, drv 494 sound/soc/intel/atom/sst-atom-controls.c mutex_unlock(&drv->lock); drv 500 sound/soc/intel/atom/sst-atom-controls.c struct sst_data *drv, int mute); drv 506 sound/soc/intel/atom/sst-atom-controls.c struct sst_data *drv = snd_soc_component_get_drvdata(c); drv 509 sound/soc/intel/atom/sst-atom-controls.c mutex_lock(&drv->lock); drv 510 sound/soc/intel/atom/sst-atom-controls.c sst_find_and_send_pipe_algo(drv, w->name, ids); drv 511 sound/soc/intel/atom/sst-atom-controls.c sst_set_pipe_gain(ids, drv, 0); drv 512 sound/soc/intel/atom/sst-atom-controls.c mutex_unlock(&drv->lock); drv 582 sound/soc/intel/atom/sst-atom-controls.c struct sst_data *drv, int mute) drv 592 sound/soc/intel/atom/sst-atom-controls.c dev_dbg(&drv->pdev->dev, "control name=%s\n", kctl->id.name); drv 596 sound/soc/intel/atom/sst-atom-controls.c ret = sst_send_gain_cmd(drv, gv, mc->task_id, drv 609 sound/soc/intel/atom/sst-atom-controls.c struct sst_data *drv = snd_soc_component_get_drvdata(cmpnt); drv 662 sound/soc/intel/atom/sst-atom-controls.c return sst_fill_and_send_cmd(drv, SST_IPC_IA_CMD, SST_FLAG_BLOCKED, drv 728 sound/soc/intel/atom/sst-atom-controls.c struct sst_data *drv = snd_soc_dai_get_drvdata(dai); drv 746 sound/soc/intel/atom/sst-atom-controls.c mutex_lock(&drv->lock); drv 758 sound/soc/intel/atom/sst-atom-controls.c ret = sst_fill_and_send_cmd_unlocked(drv, SST_IPC_IA_CMD, drv 766 sound/soc/intel/atom/sst-atom-controls.c mutex_unlock(&drv->lock); drv 927 sound/soc/intel/atom/sst-atom-controls.c struct sst_data *drv = snd_soc_dai_get_drvdata(dai); drv 941 sound/soc/intel/atom/sst-atom-controls.c SST_FILL_DEFAULT_DESTINATION(drv->ssp_cmd.header.dst); drv 942 sound/soc/intel/atom/sst-atom-controls.c drv->ssp_cmd.header.command_id = SBA_HW_SET_SSP; drv 943 sound/soc/intel/atom/sst-atom-controls.c drv->ssp_cmd.header.length = sizeof(struct sst_cmd_sba_hw_set_ssp) drv 946 sound/soc/intel/atom/sst-atom-controls.c drv->ssp_cmd.selection = ssp_id; drv 950 sound/soc/intel/atom/sst-atom-controls.c drv->ssp_cmd.switch_state = SST_SWITCH_ON; drv 952 sound/soc/intel/atom/sst-atom-controls.c drv->ssp_cmd.switch_state = SST_SWITCH_OFF; drv 954 sound/soc/intel/atom/sst-atom-controls.c return sst_fill_and_send_cmd(drv, SST_IPC_IA_CMD, SST_FLAG_BLOCKED, drv 955 sound/soc/intel/atom/sst-atom-controls.c SST_TASK_SBA, 0, &drv->ssp_cmd, drv 956 sound/soc/intel/atom/sst-atom-controls.c sizeof(drv->ssp_cmd.header) + drv->ssp_cmd.header.length); drv 964 sound/soc/intel/atom/sst-atom-controls.c struct sst_data *drv = snd_soc_component_get_drvdata(c); drv 969 sound/soc/intel/atom/sst-atom-controls.c mutex_lock(&drv->lock); drv 970 sound/soc/intel/atom/sst-atom-controls.c ret = sst_send_slot_map(drv); drv 971 sound/soc/intel/atom/sst-atom-controls.c mutex_unlock(&drv->lock); drv 985 sound/soc/intel/atom/sst-atom-controls.c struct sst_data *drv = snd_soc_component_get_drvdata(c); drv 1005 sound/soc/intel/atom/sst-atom-controls.c ret = sst_fill_and_send_cmd(drv, SST_IPC_IA_CMD, SST_FLAG_BLOCKED, drv 1022 sound/soc/intel/atom/sst-atom-controls.c struct sst_data *drv = snd_soc_component_get_drvdata(c); drv 1043 sound/soc/intel/atom/sst-atom-controls.c ret = sst_fill_and_send_cmd(drv, SST_IPC_IA_CMD, SST_FLAG_BLOCKED, drv 1308 sound/soc/intel/atom/sst-atom-controls.c struct sst_data *drv = snd_soc_dai_get_drvdata(dai); drv 1328 sound/soc/intel/atom/sst-atom-controls.c mutex_lock(&drv->lock); drv 1329 sound/soc/intel/atom/sst-atom-controls.c sst_set_pipe_gain(ids, drv, mute); drv 1330 sound/soc/intel/atom/sst-atom-controls.c mutex_unlock(&drv->lock); drv 1347 sound/soc/intel/atom/sst-atom-controls.c mutex_lock(&drv->lock); drv 1348 sound/soc/intel/atom/sst-atom-controls.c sst_set_pipe_gain(ids, drv, mute); drv 1349 sound/soc/intel/atom/sst-atom-controls.c mutex_unlock(&drv->lock); drv 1513 sound/soc/intel/atom/sst-atom-controls.c struct sst_data *drv = snd_soc_component_get_drvdata(component); drv 1516 sound/soc/intel/atom/sst-atom-controls.c drv->byte_stream = devm_kzalloc(component->dev, drv 1518 sound/soc/intel/atom/sst-atom-controls.c if (!drv->byte_stream) drv 695 sound/soc/intel/atom/sst-mfld-platform-pcm.c struct sst_data *drv = dev_get_drvdata(component->dev); drv 697 sound/soc/intel/atom/sst-mfld-platform-pcm.c drv->soc_card = component->card; drv 703 sound/soc/intel/atom/sst-mfld-platform-pcm.c struct sst_data *drv = dev_get_drvdata(component->dev); drv 705 sound/soc/intel/atom/sst-mfld-platform-pcm.c drv->soc_card = NULL; drv 719 sound/soc/intel/atom/sst-mfld-platform-pcm.c struct sst_data *drv; drv 723 sound/soc/intel/atom/sst-mfld-platform-pcm.c drv = devm_kzalloc(&pdev->dev, sizeof(*drv), GFP_KERNEL); drv 724 sound/soc/intel/atom/sst-mfld-platform-pcm.c if (drv == NULL) { drv 735 sound/soc/intel/atom/sst-mfld-platform-pcm.c drv->pdata = pdata; drv 736 sound/soc/intel/atom/sst-mfld-platform-pcm.c drv->pdev = pdev; drv 737 sound/soc/intel/atom/sst-mfld-platform-pcm.c mutex_init(&drv->lock); drv 738 sound/soc/intel/atom/sst-mfld-platform-pcm.c dev_set_drvdata(&pdev->dev, drv); drv 758 sound/soc/intel/atom/sst-mfld-platform-pcm.c struct sst_data *drv = dev_get_drvdata(dev); drv 761 sound/soc/intel/atom/sst-mfld-platform-pcm.c if (!drv->soc_card) drv 765 sound/soc/intel/atom/sst-mfld-platform-pcm.c snd_soc_suspend(drv->soc_card->dev); drv 766 sound/soc/intel/atom/sst-mfld-platform-pcm.c snd_soc_poweroff(drv->soc_card->dev); drv 769 sound/soc/intel/atom/sst-mfld-platform-pcm.c for_each_card_rtds(drv->soc_card, rtd) { drv 783 sound/soc/intel/atom/sst-mfld-platform-pcm.c struct sst_data *drv = dev_get_drvdata(dev); drv 786 sound/soc/intel/atom/sst-mfld-platform-pcm.c if (!drv->soc_card) drv 790 sound/soc/intel/atom/sst-mfld-platform-pcm.c for_each_card_rtds(drv->soc_card, rtd) { drv 798 sound/soc/intel/atom/sst-mfld-platform-pcm.c snd_soc_resume(drv->soc_card->dev); drv 52 sound/soc/intel/atom/sst/sst.c struct intel_sst_drv *drv = (struct intel_sst_drv *) context; drv 56 sound/soc/intel/atom/sst/sst.c isr.full = sst_shim_read64(drv->shim, SST_ISRX); drv 60 sound/soc/intel/atom/sst/sst.c spin_lock(&drv->ipc_spin_lock); drv 61 sound/soc/intel/atom/sst/sst.c header.full = sst_shim_read64(drv->shim, drv 62 sound/soc/intel/atom/sst/sst.c drv->ipc_reg.ipcx); drv 64 sound/soc/intel/atom/sst/sst.c sst_shim_write64(drv->shim, drv->ipc_reg.ipcx, header.full); drv 68 sound/soc/intel/atom/sst/sst.c sst_shim_write64(drv->shim, SST_ISRX, isr.full); drv 69 sound/soc/intel/atom/sst/sst.c spin_unlock(&drv->ipc_spin_lock); drv 72 sound/soc/intel/atom/sst/sst.c queue_work(drv->post_msg_wq, &drv->ipc_post_msg_wq); drv 78 sound/soc/intel/atom/sst/sst.c spin_lock(&drv->ipc_spin_lock); drv 79 sound/soc/intel/atom/sst/sst.c imr.full = sst_shim_read64(drv->shim, SST_IMRX); drv 81 sound/soc/intel/atom/sst/sst.c sst_shim_write64(drv->shim, SST_IMRX, imr.full); drv 82 sound/soc/intel/atom/sst/sst.c spin_unlock(&drv->ipc_spin_lock); drv 83 sound/soc/intel/atom/sst/sst.c header.full = sst_shim_read64(drv->shim, drv->ipc_reg.ipcd); drv 86 sound/soc/intel/atom/sst/sst.c drv->ops->clear_interrupt(drv); drv 94 sound/soc/intel/atom/sst/sst.c drv->mailbox + drv->mailbox_recv_offset, size); drv 96 sound/soc/intel/atom/sst/sst.c dev_err(drv->dev, drv 105 sound/soc/intel/atom/sst/sst.c spin_lock(&drv->rx_msg_lock); drv 106 sound/soc/intel/atom/sst/sst.c list_add_tail(&msg->node, &drv->rx_list); drv 107 sound/soc/intel/atom/sst/sst.c spin_unlock(&drv->rx_msg_lock); drv 108 sound/soc/intel/atom/sst/sst.c drv->ops->clear_interrupt(drv); drv 116 sound/soc/intel/atom/sst/sst.c struct intel_sst_drv *drv = (struct intel_sst_drv *) context; drv 120 sound/soc/intel/atom/sst/sst.c spin_lock_irqsave(&drv->rx_msg_lock, irq_flags); drv 121 sound/soc/intel/atom/sst/sst.c if (list_empty(&drv->rx_list)) { drv 122 sound/soc/intel/atom/sst/sst.c spin_unlock_irqrestore(&drv->rx_msg_lock, irq_flags); drv 126 sound/soc/intel/atom/sst/sst.c list_for_each_entry_safe(msg, __msg, &drv->rx_list, node) { drv 128 sound/soc/intel/atom/sst/sst.c spin_unlock_irqrestore(&drv->rx_msg_lock, irq_flags); drv 130 sound/soc/intel/atom/sst/sst.c drv->ops->process_message(msg); drv 132 sound/soc/intel/atom/sst/sst.c drv->ops->process_reply(drv, msg); drv 137 sound/soc/intel/atom/sst/sst.c spin_lock_irqsave(&drv->rx_msg_lock, irq_flags); drv 139 sound/soc/intel/atom/sst/sst.c spin_unlock_irqrestore(&drv->rx_msg_lock, irq_flags); drv 336 sound/soc/intel/atom/sst/sst_pvt.c int sst_assign_pvt_id(struct intel_sst_drv *drv) drv 340 sound/soc/intel/atom/sst/sst_pvt.c spin_lock(&drv->block_lock); drv 342 sound/soc/intel/atom/sst/sst_pvt.c local = ffz(drv->pvt_id); drv 343 sound/soc/intel/atom/sst/sst_pvt.c dev_dbg(drv->dev, "pvt_id assigned --> %d\n", local); drv 345 sound/soc/intel/atom/sst/sst_pvt.c spin_unlock(&drv->block_lock); drv 346 sound/soc/intel/atom/sst/sst_pvt.c dev_err(drv->dev, "PVT _ID error: no free id blocks "); drv 350 sound/soc/intel/atom/sst/sst_pvt.c change_bit(local, &drv->pvt_id); drv 351 sound/soc/intel/atom/sst/sst_pvt.c spin_unlock(&drv->block_lock); drv 87 sound/soc/intel/boards/byt-max98090.c struct byt_max98090_private *drv = snd_soc_card_get_drvdata(card); drv 88 sound/soc/intel/boards/byt-max98090.c struct snd_soc_jack *jack = &drv->jack; drv 529 sound/soc/intel/boards/cht_bsw_max98090_ti.c struct cht_mc_private *drv; drv 534 sound/soc/intel/boards/cht_bsw_max98090_ti.c drv = devm_kzalloc(&pdev->dev, sizeof(*drv), GFP_KERNEL); drv 535 sound/soc/intel/boards/cht_bsw_max98090_ti.c if (!drv) drv 540 sound/soc/intel/boards/cht_bsw_max98090_ti.c drv->quirks = (unsigned long)dmi_id->driver_data; drv 542 sound/soc/intel/boards/cht_bsw_max98090_ti.c drv->ts3a227e_present = acpi_dev_found("104C227E"); drv 543 sound/soc/intel/boards/cht_bsw_max98090_ti.c if (!drv->ts3a227e_present) { drv 565 sound/soc/intel/boards/cht_bsw_max98090_ti.c snd_soc_card_set_drvdata(&snd_soc_card_cht, drv); drv 567 sound/soc/intel/boards/cht_bsw_max98090_ti.c if (drv->quirks & QUIRK_PMC_PLT_CLK_0) drv 572 sound/soc/intel/boards/cht_bsw_max98090_ti.c drv->mclk = devm_clk_get(&pdev->dev, mclk_name); drv 573 sound/soc/intel/boards/cht_bsw_max98090_ti.c if (IS_ERR(drv->mclk)) { drv 576 sound/soc/intel/boards/cht_bsw_max98090_ti.c mclk_name, PTR_ERR(drv->mclk)); drv 577 sound/soc/intel/boards/cht_bsw_max98090_ti.c return PTR_ERR(drv->mclk); drv 587 sound/soc/intel/boards/cht_bsw_max98090_ti.c if (drv->quirks & QUIRK_PMC_PLT_CLK_0) { drv 588 sound/soc/intel/boards/cht_bsw_max98090_ti.c ret_val = clk_prepare_enable(drv->mclk); drv 250 sound/soc/intel/boards/cht_bsw_nau8824.c struct cht_mc_private *drv; drv 255 sound/soc/intel/boards/cht_bsw_nau8824.c drv = devm_kzalloc(&pdev->dev, sizeof(*drv), GFP_KERNEL); drv 256 sound/soc/intel/boards/cht_bsw_nau8824.c if (!drv) drv 258 sound/soc/intel/boards/cht_bsw_nau8824.c snd_soc_card_set_drvdata(&snd_soc_card_cht, drv); drv 531 sound/soc/intel/boards/cht_bsw_rt5645.c struct cht_mc_private *drv; drv 540 sound/soc/intel/boards/cht_bsw_rt5645.c drv = devm_kzalloc(&pdev->dev, sizeof(*drv), GFP_KERNEL); drv 541 sound/soc/intel/boards/cht_bsw_rt5645.c if (!drv) drv 552 sound/soc/intel/boards/cht_bsw_rt5645.c drv->acpi_card = &snd_soc_cards[i]; drv 564 sound/soc/intel/boards/cht_bsw_rt5645.c sprintf(drv->codec_name, "i2c-%s:00", drv->acpi_card->codec_id); drv 570 sound/soc/intel/boards/cht_bsw_rt5645.c card->dai_link[i].codecs->name = drv->codec_name; drv 680 sound/soc/intel/boards/cht_bsw_rt5645.c drv->mclk = devm_clk_get(&pdev->dev, mclk_name); drv 681 sound/soc/intel/boards/cht_bsw_rt5645.c if (IS_ERR(drv->mclk)) { drv 683 sound/soc/intel/boards/cht_bsw_rt5645.c mclk_name, PTR_ERR(drv->mclk)); drv 684 sound/soc/intel/boards/cht_bsw_rt5645.c return PTR_ERR(drv->mclk); drv 687 sound/soc/intel/boards/cht_bsw_rt5645.c snd_soc_card_set_drvdata(card, drv); drv 403 sound/soc/intel/boards/cht_bsw_rt5672.c struct cht_mc_private *drv; drv 409 sound/soc/intel/boards/cht_bsw_rt5672.c drv = devm_kzalloc(&pdev->dev, sizeof(*drv), GFP_KERNEL); drv 410 sound/soc/intel/boards/cht_bsw_rt5672.c if (!drv) drv 413 sound/soc/intel/boards/cht_bsw_rt5672.c strcpy(drv->codec_name, RT5672_I2C_DEFAULT); drv 418 sound/soc/intel/boards/cht_bsw_rt5672.c snprintf(drv->codec_name, sizeof(drv->codec_name), drv 424 sound/soc/intel/boards/cht_bsw_rt5672.c cht_dailink[i].codecs->name = drv->codec_name; drv 439 sound/soc/intel/boards/cht_bsw_rt5672.c drv->mclk = devm_clk_get(&pdev->dev, "pmc_plt_clk_3"); drv 440 sound/soc/intel/boards/cht_bsw_rt5672.c if (IS_ERR(drv->mclk)) { drv 443 sound/soc/intel/boards/cht_bsw_rt5672.c PTR_ERR(drv->mclk)); drv 444 sound/soc/intel/boards/cht_bsw_rt5672.c return PTR_ERR(drv->mclk); drv 446 sound/soc/intel/boards/cht_bsw_rt5672.c snd_soc_card_set_drvdata(&snd_soc_card_cht, drv); drv 422 sound/soc/meson/axg-spdifin.c struct snd_soc_dai_driver *drv; drv 425 sound/soc/meson/axg-spdifin.c drv = devm_kzalloc(dev, sizeof(*drv), GFP_KERNEL); drv 426 sound/soc/meson/axg-spdifin.c if (!drv) drv 429 sound/soc/meson/axg-spdifin.c drv->name = "SPDIF Input"; drv 430 sound/soc/meson/axg-spdifin.c drv->ops = &axg_spdifin_ops; drv 431 sound/soc/meson/axg-spdifin.c drv->probe = axg_spdifin_dai_probe; drv 432 sound/soc/meson/axg-spdifin.c drv->remove = axg_spdifin_dai_remove; drv 433 sound/soc/meson/axg-spdifin.c drv->capture.stream_name = "Capture"; drv 434 sound/soc/meson/axg-spdifin.c drv->capture.channels_min = 1; drv 435 sound/soc/meson/axg-spdifin.c drv->capture.channels_max = 2; drv 436 sound/soc/meson/axg-spdifin.c drv->capture.formats = SNDRV_PCM_FMTBIT_IEC958_SUBFRAME_LE; drv 445 sound/soc/meson/axg-spdifin.c drv->capture.rates |= rb; drv 448 sound/soc/meson/axg-spdifin.c return drv; drv 18 sound/soc/meson/axg-tdm-formatter.c const struct axg_tdm_formatter_driver *drv; drv 73 sound/soc/meson/axg-tdm-formatter.c bool invert = formatter->drv->quirks->invert_sclk; drv 108 sound/soc/meson/axg-tdm-formatter.c ret = formatter->drv->ops->prepare(formatter->map, drv 109 sound/soc/meson/axg-tdm-formatter.c formatter->drv->quirks, drv 126 sound/soc/meson/axg-tdm-formatter.c formatter->drv->ops->enable(formatter->map); drv 138 sound/soc/meson/axg-tdm-formatter.c formatter->drv->ops->disable(formatter->map); drv 180 sound/soc/meson/axg-tdm-formatter.c struct axg_tdm_stream *ts = formatter->drv->ops->get_stream(w); drv 254 sound/soc/meson/axg-tdm-formatter.c const struct axg_tdm_formatter_driver *drv; drv 259 sound/soc/meson/axg-tdm-formatter.c drv = of_device_get_match_data(dev); drv 260 sound/soc/meson/axg-tdm-formatter.c if (!drv) { drv 269 sound/soc/meson/axg-tdm-formatter.c formatter->drv = drv; drv 275 sound/soc/meson/axg-tdm-formatter.c formatter->map = devm_regmap_init_mmio(dev, regs, drv->regmap_cfg); drv 336 sound/soc/meson/axg-tdm-formatter.c return devm_snd_soc_register_component(dev, drv->component_drv, drv 76 sound/soc/samsung/i2s.c struct snd_soc_dai_driver *drv; drv 133 sound/soc/samsung/i2s.c return i2s->drv->id == SAMSUNG_I2S_ID_SECONDARY; drv 1189 sound/soc/samsung/i2s.c priv->dai[i].drv = &priv->dai_drv[i]; drv 1472 sound/soc/samsung/i2s.c pri_dai->drv->playback.channels_max = 6; drv 1262 sound/soc/sh/rcar/core.c struct snd_soc_dai_driver *drv; drv 1268 sound/soc/sh/rcar/core.c drv = rsnd_daidrv_get(priv, dai_i); drv 1275 sound/soc/sh/rcar/core.c drv->name = rdai->name; drv 1276 sound/soc/sh/rcar/core.c drv->ops = &rsnd_soc_dai_ops; drv 1277 sound/soc/sh/rcar/core.c drv->pcm_new = rsnd_pcm_new; drv 1281 sound/soc/sh/rcar/core.c drv->playback.rates = RSND_RATES; drv 1282 sound/soc/sh/rcar/core.c drv->playback.formats = RSND_FMTS; drv 1283 sound/soc/sh/rcar/core.c drv->playback.channels_min = 2; drv 1284 sound/soc/sh/rcar/core.c drv->playback.channels_max = 8; drv 1285 sound/soc/sh/rcar/core.c drv->playback.stream_name = io_playback->name; drv 1289 sound/soc/sh/rcar/core.c drv->capture.rates = RSND_RATES; drv 1290 sound/soc/sh/rcar/core.c drv->capture.formats = RSND_FMTS; drv 1291 sound/soc/sh/rcar/core.c drv->capture.channels_min = 2; drv 1292 sound/soc/sh/rcar/core.c drv->capture.channels_max = 8; drv 1293 sound/soc/sh/rcar/core.c drv->capture.stream_name = io_capture->name; drv 1322 sound/soc/sh/rcar/core.c drv->symmetric_rates = 1; drv 1479 sound/soc/soc-core.c struct snd_soc_dai_driver *drv = dais[i]->driver; drv 1481 sound/soc/soc-core.c if (drv->pcm_new) drv 1482 sound/soc/soc-core.c ret = drv->pcm_new(rtd, dais[i]); drv 2790 sound/soc/soc-pcm.c struct snd_soc_dai_driver *drv = dai->driver; drv 2795 sound/soc/soc-pcm.c if (drv->ops && drv->ops->digital_mute && drv 2797 sound/soc/soc-pcm.c drv->ops->digital_mute(dai, mute); drv 413 sound/soc/sof/core.c sof_ops(sdev)->drv, drv 392 sound/soc/sof/imx/imx8.c .drv = imx8_dai, drv 90 sound/soc/sof/intel/apl.c .drv = skl_dai, drv 573 sound/soc/sof/intel/bdw.c .drv = bdw_dai, drv 513 sound/soc/sof/intel/byt.c .drv = byt_dai, drv 674 sound/soc/sof/intel/byt.c .drv = byt_dai, drv 733 sound/soc/sof/intel/byt.c .drv = byt_dai, drv 248 sound/soc/sof/intel/cnl.c .drv = skl_dai, drv 51 sound/soc/sof/nocodec.c links[i].cpus->dai_name = ops->drv[i].name; drv 206 sound/soc/sof/sof-priv.h struct snd_soc_dai_driver *drv;