/openbmc/linux/drivers/cpuidle/governors/ |
H A D | teo.c | 272 for (i = 0; i < drv->state_count; i++) { in teo_update() 308 idx_timer = drv->state_count; in teo_update() 394 teo_update(drv, dev); in teo_select() 406 if (drv->state_count < 2) { in teo_select() 420 if (drv->state_count < 3 && cpu_utilized) { in teo_select() 441 for (i = 1; i < drv->state_count; i++) { in teo_select() 443 struct cpuidle_state *s = &drv->states[i]; in teo_select() 528 if (teo_state_ok(i, drv) && in teo_select() 540 if (!teo_state_ok(i, drv)) { in teo_select() 571 if (teo_state_ok(i, drv)) in teo_select() [all …]
|
/openbmc/linux/drivers/cpufreq/ |
H A D | qcom-cpufreq-nvmem.c | 199 drv->versions = (1 << speed); in qcom_cpufreq_krait_name_version() 246 drv = kzalloc(sizeof(*drv), GFP_KERNEL); in qcom_cpufreq_probe() 247 if (!drv) in qcom_cpufreq_probe() 251 drv->data = match->data; in qcom_cpufreq_probe() 252 if (!drv->data) { in qcom_cpufreq_probe() 275 drv->opp_tokens = kcalloc(num_possible_cpus(), sizeof(*drv->opp_tokens), in qcom_cpufreq_probe() 277 if (!drv->opp_tokens) { in qcom_cpufreq_probe() 329 kfree(drv->opp_tokens); in qcom_cpufreq_probe() 331 kfree(drv); in qcom_cpufreq_probe() 346 kfree(drv->opp_tokens); in qcom_cpufreq_remove() [all …]
|
/openbmc/linux/drivers/zorro/ |
H A D | zorro-driver.c | 50 if (drv->probe) { in zorro_device_probe() 53 id = zorro_match_device(drv->id_table, z); in zorro_device_probe() 55 error = drv->probe(z, id); in zorro_device_probe() 68 if (drv->remove) in zorro_device_remove() 69 drv->remove(z); in zorro_device_remove() 81 int zorro_register_driver(struct zorro_driver *drv) in zorro_register_driver() argument 84 drv->driver.name = drv->name; in zorro_register_driver() 85 drv->driver.bus = &zorro_bus_type; in zorro_register_driver() 88 return driver_register(&drv->driver); in zorro_register_driver() 103 void zorro_unregister_driver(struct zorro_driver *drv) in zorro_unregister_driver() argument [all …]
|
/openbmc/linux/include/linux/ |
H A D | cpuidle.h | 61 struct cpuidle_driver *drv, 75 struct cpuidle_driver *drv, 175 extern int cpuidle_select(struct cpuidle_driver *drv, 178 extern int cpuidle_enter(struct cpuidle_driver *drv, 181 extern u64 cpuidle_poll_time(struct cpuidle_driver *drv, 191 extern int cpuidle_register(struct cpuidle_driver *drv, 193 extern void cpuidle_unregister(struct cpuidle_driver *drv); 279 void cpuidle_poll_state_init(struct cpuidle_driver *drv); 293 int (*enable) (struct cpuidle_driver *drv, 295 void (*disable) (struct cpuidle_driver *drv, [all …]
|
/openbmc/linux/drivers/cpuidle/ |
H A D | cpuidle-arm.c | 35 struct cpuidle_driver *drv, int idx) in arm_enter_idle_state() argument 81 struct cpuidle_driver *drv; in arm_idle_init_cpu() local 83 drv = kmemdup(&arm_idle_driver, sizeof(*drv), GFP_KERNEL); in arm_idle_init_cpu() 84 if (!drv) in arm_idle_init_cpu() 124 ret = cpuidle_register(drv, NULL); in arm_idle_init_cpu() 128 cpuidle_cooling_register(drv); in arm_idle_init_cpu() 133 kfree(drv); in arm_idle_init_cpu() 147 struct cpuidle_driver *drv; in arm_idle_init() local 161 drv = cpuidle_get_cpu_driver(dev); in arm_idle_init() 162 cpuidle_unregister(drv); in arm_idle_init() [all …]
|
H A D | cpuidle-riscv-sbi.c | 264 struct cpuidle_driver *drv, in sbi_cpuidle_dt_init_states() argument 327 struct cpuidle_driver *drv; in sbi_cpuidle_init_cpu() local 331 drv = devm_kzalloc(dev, sizeof(*drv), GFP_KERNEL); in sbi_cpuidle_init_cpu() 332 if (!drv) in sbi_cpuidle_init_cpu() 335 drv->name = "sbi_cpuidle"; in sbi_cpuidle_init_cpu() 336 drv->owner = THIS_MODULE; in sbi_cpuidle_init_cpu() 341 drv->states[0].exit_latency = 1; in sbi_cpuidle_init_cpu() 370 ret = cpuidle_register(drv, NULL); in sbi_cpuidle_init_cpu() 374 cpuidle_cooling_register(drv); in sbi_cpuidle_init_cpu() 542 struct cpuidle_driver *drv; in sbi_cpuidle_probe() local [all …]
|
/openbmc/linux/drivers/crypto/nx/ |
H A D | nx_debugfs.c | 38 drv->dfs_root = root; in nx_debugfs_init() 41 root, &drv->stats.aes_ops.counter); in nx_debugfs_init() 43 root, &drv->stats.sha256_ops.counter); in nx_debugfs_init() 45 root, &drv->stats.sha512_ops.counter); in nx_debugfs_init() 47 root, &drv->stats.aes_bytes.counter); in nx_debugfs_init() 49 root, &drv->stats.sha256_bytes.counter); in nx_debugfs_init() 51 root, &drv->stats.sha512_bytes.counter); in nx_debugfs_init() 53 root, &drv->stats.errors.counter); in nx_debugfs_init() 55 root, &drv->stats.last_error.counter); in nx_debugfs_init() 61 nx_debugfs_fini(struct nx_crypto_driver *drv) in nx_debugfs_fini() argument [all …]
|
/openbmc/linux/drivers/dio/ |
H A D | dio-driver.c | 53 if (!d->driver && drv->probe) { in dio_device_probe() 56 id = dio_match_device(drv->id_table, d); in dio_device_probe() 58 error = drv->probe(d, id); in dio_device_probe() 60 d->driver = drv; in dio_device_probe() 76 int dio_register_driver(struct dio_driver *drv) in dio_register_driver() argument 79 drv->driver.name = drv->name; in dio_register_driver() 80 drv->driver.bus = &dio_bus_type; in dio_register_driver() 83 return driver_register(&drv->driver); in dio_register_driver() 97 void dio_unregister_driver(struct dio_driver *drv) in dio_unregister_driver() argument 99 driver_unregister(&drv->driver); in dio_unregister_driver() [all …]
|
/openbmc/linux/drivers/pnp/ |
H A D | card.c | 62 if (!dev->card || !drv) in card_remove_first() 64 if (drv->remove) in card_remove_first() 77 if (!drv->probe) in card_probe() 87 clink->driver = drv; in card_probe() 267 card_probe(card, drv); in pnp_add_card() 340 drv = clink->driver; in pnp_request_card_device() 421 drv->link.name = drv->name; in pnp_register_card_driver() 423 drv->link.flags = drv->flags; in pnp_register_card_driver() 424 drv->link.probe = NULL; in pnp_register_card_driver() 426 drv->link.suspend = drv->suspend ? card_suspend : NULL; in pnp_register_card_driver() [all …]
|
/openbmc/linux/drivers/base/ |
H A D | dd.c | 472 if (drv) { in driver_sysfs_remove() 473 if (drv->coredump) in driver_sysfs_remove() 578 else if (drv->probe) in call_driver_probe() 624 drv->bus->name, __func__, drv->name, dev_name(dev)); in really_probe() 632 dev->driver = drv; in really_probe() 710 drv->bus->name, __func__, dev_name(dev), drv->name); in really_probe() 790 drv->bus->name, __func__, dev_name(dev), drv->name); in __driver_probe_device() 1233 return bus_for_each_dev(drv->bus, NULL, drv, __driver_attach); in driver_attach() 1245 drv = dev->driver; in __device_release_driver() 1246 if (drv) { in __device_release_driver() [all …]
|
H A D | platform.c | 1128 if (!drv) in platform_pm_suspend() 1131 if (drv->pm) { in platform_pm_suspend() 1146 if (!drv) in platform_pm_resume() 1149 if (drv->pm) { in platform_pm_resume() 1168 if (!drv) in platform_pm_freeze() 1171 if (drv->pm) { in platform_pm_freeze() 1186 if (!drv) in platform_pm_thaw() 1189 if (drv->pm) { in platform_pm_thaw() 1204 if (!drv) in platform_pm_poweroff() 1207 if (drv->pm) { in platform_pm_poweroff() [all …]
|
/openbmc/linux/drivers/dma/idxd/ |
H A D | bus.c | 13 struct device_driver *drv = &idxd_drv->drv; in __idxd_driver_register() local 20 drv->name = idxd_drv->name; in __idxd_driver_register() 21 drv->bus = &dsa_bus_type; in __idxd_driver_register() 22 drv->owner = owner; in __idxd_driver_register() 23 drv->mod_name = mod_name; in __idxd_driver_register() 25 return driver_register(drv); in __idxd_driver_register() 31 driver_unregister(&idxd_drv->drv); in idxd_driver_unregister() 36 struct device_driver *drv) in idxd_config_bus_match() argument 39 container_of(drv, struct idxd_device_driver, drv); in idxd_config_bus_match() 55 container_of(dev->driver, struct idxd_device_driver, drv); in idxd_config_bus_probe() [all …]
|
/openbmc/linux/arch/x86/kernel/apic/ |
H A D | probe_32.c | 78 struct apic **drv; in parse_apic() local 83 for (drv = __apicdrivers; drv < __apicdrivers_end; drv++) { in parse_apic() 84 if (!strcmp((*drv)->name, arg)) { in parse_apic() 85 apic_install_driver(*drv); in parse_apic() 128 struct apic **drv; in x86_32_probe_apic() local 130 for (drv = __apicdrivers; drv < __apicdrivers_end; drv++) { in x86_32_probe_apic() 131 if ((*drv)->probe()) { in x86_32_probe_apic() 132 apic_install_driver(*drv); in x86_32_probe_apic() 137 if (drv == __apicdrivers_end) in x86_32_probe_apic()
|
/openbmc/qemu/system/ |
H A D | tpm.c | 74 TPMBackend *drv; in qemu_find_tpm_be() local 79 return drv; in qemu_find_tpm_be() 98 TPMBackend *drv; in tpm_init_tpmdev() local 135 drv = be->create(opts); in tpm_init_tpmdev() 136 if (!drv) { in tpm_init_tpmdev() 140 drv->id = g_strdup(id); in tpm_init_tpmdev() 152 TPMBackend *drv, *next; in tpm_cleanup() local 155 QLIST_REMOVE(drv, list); in tpm_cleanup() 156 object_unref(OBJECT(drv)); in tpm_cleanup() 198 TPMBackend *drv; in qmp_query_tpm() local [all …]
|
/openbmc/linux/drivers/staging/media/atomisp/pci/ |
H A D | atomisp_drvfs.c | 39 struct device_driver *drv; member 91 static ssize_t iunit_dbglvl_show(struct device_driver *drv, char *buf) in iunit_dbglvl_show() argument 164 static int iunit_drvfs_create_files(struct device_driver *drv) in iunit_drvfs_create_files() argument 169 ret |= driver_create_file(drv, &iunit_drvfs_attrs[i]); in iunit_drvfs_create_files() 174 static void iunit_drvfs_remove_files(struct device_driver *drv) in iunit_drvfs_remove_files() argument 179 driver_remove_file(drv, &iunit_drvfs_attrs[i]); in iunit_drvfs_remove_files() 184 struct device_driver *drv = isp->dev->driver; in atomisp_drvfs_init() local 188 iunit_debug.drv = drv; in atomisp_drvfs_init() 190 ret = iunit_drvfs_create_files(iunit_debug.drv); in atomisp_drvfs_init() 193 iunit_drvfs_remove_files(iunit_debug.drv); in atomisp_drvfs_init() [all …]
|
/openbmc/qemu/util/ |
H A D | transactions.c | 29 TransactionActionDrv *drv; member 47 void tran_add(Transaction *tran, TransactionActionDrv *drv, void *opaque) in tran_add() argument 53 .drv = drv, in tran_add() 65 if (act->drv->abort) { in tran_abort() 66 act->drv->abort(act->opaque); in tran_abort() 71 if (act->drv->clean) { in tran_abort() 72 act->drv->clean(act->opaque); in tran_abort() 86 if (act->drv->commit) { in tran_commit() 87 act->drv->commit(act->opaque); in tran_commit() 92 if (act->drv->clean) { in tran_commit() [all …]
|
/openbmc/linux/drivers/edac/ |
H A D | qcom_edac.c | 136 ret = regmap_write(drv->bcast_regmap, in qcom_llcc_clear_error_status() 137 drv->edac_reg_offset->drp_interrupt_clear, in qcom_llcc_clear_error_status() 142 ret = regmap_write(drv->bcast_regmap, in qcom_llcc_clear_error_status() 150 ret = regmap_write(drv->bcast_regmap, in qcom_llcc_clear_error_status() 156 ret = regmap_write(drv->bcast_regmap, in qcom_llcc_clear_error_status() 214 get_reg_offsets(drv, err_type, ®s); in dump_syn_reg_values() 218 ret = regmap_read(drv->regmaps[bank], synd_reg, in dump_syn_reg_values() 258 ret = dump_syn_reg_values(drv, bank, err_type); in dump_syn_reg() 297 for (i = 0; i < drv->num_banks; i++) { in llcc_ecc_irq_handler() 298 ret = regmap_read(drv->regmaps[i], drv->edac_reg_offset->drp_interrupt_status, in llcc_ecc_irq_handler() [all …]
|
/openbmc/linux/include/linux/device/ |
H A D | driver.h | 125 int __must_check driver_register(struct device_driver *drv); 126 void driver_unregister(struct device_driver *drv); 158 struct device *driver_find_device(struct device_driver *drv, 171 return driver_find_device(drv, NULL, name, device_match_name); in driver_find_device_by_name() 181 driver_find_device_by_of_node(struct device_driver *drv, in driver_find_device_by_of_node() argument 184 return driver_find_device(drv, NULL, np, device_match_of_node); in driver_find_device_by_of_node() 194 driver_find_device_by_fwnode(struct device_driver *drv, in driver_find_device_by_fwnode() argument 197 return driver_find_device(drv, NULL, fwnode, device_match_fwnode); in driver_find_device_by_fwnode() 209 return driver_find_device(drv, NULL, &devt, device_match_devt); in driver_find_device_by_devt() 215 return driver_find_device(drv, start, NULL, device_match_any); in driver_find_next_device() [all …]
|
/openbmc/u-boot/drivers/core/ |
H A D | device-remove.c | 28 if (drv && (pos->driver != drv)) in device_chld_unbind() 48 if (drv && (pos->driver != drv)) in device_chld_remove() 61 const struct driver *drv; in device_unbind() local 73 drv = dev->driver; in device_unbind() 74 assert(drv); in device_unbind() 76 if (drv->unbind) { in device_unbind() 77 ret = drv->unbind(dev); in device_unbind() 166 drv = dev->driver; in device_remove() 167 assert(drv); in device_remove() 181 if (drv->remove && flags_remove(flags, drv->flags)) { in device_remove() [all …]
|
/openbmc/linux/sound/aoa/soundbus/ |
H A D | core.c | 39 struct soundbus_driver *drv; in soundbus_probe() local 42 drv = to_soundbus_driver(dev->driver); in soundbus_probe() 45 if (!drv->probe) in soundbus_probe() 50 error = drv->probe(soundbus_dev); in soundbus_probe() 112 if (dev->driver && drv->remove) in soundbus_device_remove() 113 drv->remove(soundbus_dev); in soundbus_device_remove() 122 if (dev->driver && drv->shutdown) in soundbus_device_shutdown() 123 drv->shutdown(soundbus_dev); in soundbus_device_shutdown() 165 drv->driver.name = drv->name; in soundbus_register_driver() 166 drv->driver.bus = &soundbus_bus_type; in soundbus_register_driver() [all …]
|
/openbmc/linux/drivers/input/serio/ |
H A D | serio.c | 44 retval = drv->connect(serio, drv); in serio_connect_driver() 55 if (serio->drv && serio->drv->reconnect) in serio_reconnect_driver() 65 if (serio->drv) in serio_disconnect_driver() 104 drv->description, error); in serio_bind_driver() 382 struct device_driver *drv; in drvctl_store() local 788 if (serio->drv && serio->drv->cleanup) in serio_cleanup() 816 drv->driver.owner = owner; in __serio_register_driver() 823 drv->manual_bind = true; in __serio_register_driver() 860 if (serio->drv == drv) { in serio_unregister_driver() 876 serio->drv = drv; in serio_set_drv() [all …]
|
/openbmc/linux/drivers/gpu/drm/virtio/ |
H A D | virtgpu_fence.c | 63 (u64)atomic64_read(&fence->drv->last_fence_id)); in virtio_gpu_timeline_value_str() 79 struct virtio_gpu_fence_driver *drv = &vgdev->fence_drv; in virtio_gpu_fence_alloc() local 86 fence->drv = drv; in virtio_gpu_fence_alloc() 105 struct virtio_gpu_fence_driver *drv = &vgdev->fence_drv; in virtio_gpu_fence_emit() local 108 spin_lock_irqsave(&drv->lock, irq_flags); in virtio_gpu_fence_emit() 111 list_add_tail(&fence->node, &drv->fences); in virtio_gpu_fence_emit() 112 spin_unlock_irqrestore(&drv->lock, irq_flags); in virtio_gpu_fence_emit() 130 struct virtio_gpu_fence_driver *drv = &vgdev->fence_drv; in virtio_gpu_fence_event_process() local 134 spin_lock_irqsave(&drv->lock, irq_flags); in virtio_gpu_fence_event_process() 136 list_for_each_entry_safe(curr, tmp, &drv->fences, node) { in virtio_gpu_fence_event_process() [all …]
|
/openbmc/linux/drivers/video/fbdev/via/ |
H A D | via_aux_edid.c | 18 static void query_edid(struct via_aux_drv *drv) in query_edid() argument 20 struct fb_monspecs *spec = drv->data; in query_edid() 33 if (via_aux_read(drv, 0x00, edid, EDID_LENGTH)) { in query_edid() 44 drv->data = spec; in query_edid() 47 static const struct fb_videomode *get_preferred_mode(struct via_aux_drv *drv) in get_preferred_mode() argument 49 struct fb_monspecs *spec = drv->data; in get_preferred_mode() 64 static void cleanup(struct via_aux_drv *drv) in cleanup() argument 66 struct fb_monspecs *spec = drv->data; in cleanup() 74 struct via_aux_drv drv = { in via_aux_edid_probe() local 81 query_edid(&drv); in via_aux_edid_probe() [all …]
|
/openbmc/linux/drivers/mtd/chips/ |
H A D | chipreg.c | 18 void register_mtd_chip_driver(struct mtd_chip_driver *drv) in register_mtd_chip_driver() argument 21 list_add(&drv->list, &chip_drvs_list); in register_mtd_chip_driver() 25 void unregister_mtd_chip_driver(struct mtd_chip_driver *drv) in unregister_mtd_chip_driver() argument 28 list_del(&drv->list); in unregister_mtd_chip_driver() 57 struct mtd_chip_driver *drv; in do_map_probe() local 60 drv = get_mtd_chip_driver(name); in do_map_probe() 62 if (!drv && !request_module("%s", name)) in do_map_probe() 63 drv = get_mtd_chip_driver(name); in do_map_probe() 65 if (!drv) in do_map_probe() 68 ret = drv->probe(map); in do_map_probe() [all …]
|
/openbmc/linux/drivers/phy/samsung/ |
H A D | phy-s5pv210-usb2.c | 91 struct samsung_usb2_phy_driver *drv = inst->drv; in s5pv210_isol() local 105 regmap_update_bits(drv->reg_pmu, S5PV210_USB_ISOL_OFFSET, in s5pv210_isol() 111 struct samsung_usb2_phy_driver *drv = inst->drv; in s5pv210_phy_pwr() local 130 writel(drv->ref_reg_val, drv->reg_phy + S5PV210_UPHYCLK); in s5pv210_phy_pwr() 132 pwr = readl(drv->reg_phy + S5PV210_UPHYPWR); in s5pv210_phy_pwr() 134 writel(pwr, drv->reg_phy + S5PV210_UPHYPWR); in s5pv210_phy_pwr() 136 rst = readl(drv->reg_phy + S5PV210_UPHYRST); in s5pv210_phy_pwr() 138 writel(rst, drv->reg_phy + S5PV210_UPHYRST); in s5pv210_phy_pwr() 141 writel(rst, drv->reg_phy + S5PV210_UPHYRST); in s5pv210_phy_pwr() 147 pwr = readl(drv->reg_phy + S5PV210_UPHYPWR); in s5pv210_phy_pwr() [all …]
|