/linux-master/arch/mips/sgi-ip22/ |
H A D | ip22-gio.c | 114 static int gio_bus_match(struct device *dev, struct device_driver *drv) argument 117 struct gio_driver *gio_drv = to_gio_driver(drv); 125 struct gio_driver *drv; local 129 drv = to_gio_driver(dev->driver); 132 if (!drv->probe) 137 match = gio_match_device(drv->id_table, gio_dev); 139 error = drv->probe(gio_dev, match); 149 struct gio_driver *drv = to_gio_driver(dev->driver); local 151 if (drv->remove) 152 drv 158 struct gio_driver *drv = to_gio_driver(dev->driver); local 210 gio_register_driver(struct gio_driver *drv) argument 224 gio_unregister_driver(struct gio_driver *drv) argument [all...] |
/linux-master/drivers/mmc/core/ |
H A D | sdio_bus.c | 29 #define to_sdio_driver(d) container_of(d, struct sdio_driver, drv) 111 static int sdio_bus_match(struct device *dev, struct device_driver *drv) argument 114 struct sdio_driver *sdrv = to_sdio_driver(drv); 155 struct sdio_driver *drv = to_sdio_driver(dev->driver); local 160 id = sdio_match_device(func, drv); 193 ret = drv->probe(func, id); 209 struct sdio_driver *drv = to_sdio_driver(dev->driver); local 216 drv->remove(func); 221 drv->name); 269 * @drv 272 __sdio_register_driver(struct sdio_driver *drv, struct module *owner) argument 286 sdio_unregister_driver(struct sdio_driver *drv) argument [all...] |
H A D | bus.c | 29 #define to_mmc_driver(d) container_of(d, struct mmc_driver, drv) 128 struct mmc_driver *drv = to_mmc_driver(dev->driver); local 131 return drv->probe(card); 136 struct mmc_driver *drv = to_mmc_driver(dev->driver); local 139 drv->remove(card); 144 struct mmc_driver *drv = to_mmc_driver(dev->driver); local 149 if (dev->driver && drv->shutdown) 150 drv->shutdown(card); 239 * @drv: MMC media driver 241 int mmc_register_driver(struct mmc_driver *drv) argument 253 mmc_unregister_driver(struct mmc_driver *drv) argument [all...] |
/linux-master/drivers/input/gameport/ |
H A D | gameport.c | 44 static void gameport_attach_driver(struct gameport_driver *drv); 213 static int gameport_bind_driver(struct gameport *gameport, struct gameport_driver *drv) argument 217 gameport->dev.driver = &drv->driver; 218 if (drv->connect(gameport, drv)) { 228 drv->description, error); 229 drv->disconnect(gameport); 468 struct device_driver *drv; local 482 } else if ((drv = driver_find(buf, &gameport_bus)) != NULL) { 484 error = gameport_bind_driver(gameport, to_gameport_driver(drv)); 708 description_show(struct device_driver *drv, char *buf) argument 724 struct gameport_driver *drv = to_gameport_driver(dev->driver); local 733 struct gameport_driver *drv = to_gameport_driver(dev->driver); local 738 gameport_attach_driver(struct gameport_driver *drv) argument 748 __gameport_register_driver(struct gameport_driver *drv, struct module *owner, const char *mod_name) argument 784 gameport_unregister_driver(struct gameport_driver *drv) argument 809 gameport_bus_match(struct device *dev, struct device_driver *drv) argument 825 gameport_set_drv(struct gameport *gameport, struct gameport_driver *drv) argument 832 gameport_open(struct gameport *gameport, struct gameport_driver *drv, int mode) argument [all...] |
/linux-master/include/linux/ |
H A D | cpu_cooling.h | 66 void cpuidle_cooling_register(struct cpuidle_driver *drv); 68 static inline void cpuidle_cooling_register(struct cpuidle_driver *drv) argument
|
H A D | dfl.h | 59 * @drv: driver model structure. 66 struct device_driver drv; member in struct:dfl_driver 74 #define to_dfl_drv(d) container_of(d, struct dfl_driver, drv) 79 #define dfl_driver_register(drv) \ 80 __dfl_driver_register(drv, THIS_MODULE)
|
/linux-master/drivers/dma/idxd/ |
H A D | compat.c | 10 extern int device_driver_attach(struct device_driver *drv, struct device *dev); 17 static ssize_t unbind_store(struct device_driver *drv, const char *buf, size_t count) argument 19 const struct bus_type *bus = drv->bus; 33 static ssize_t bind_store(struct device_driver *drv, const char *buf, size_t count) argument 35 const struct bus_type *bus = drv->bus; 42 if (!dev || dev->driver || drv != &dsa_drv.drv) 100 .drv = {
|
/linux-master/drivers/cpuidle/ |
H A D | cpuidle-riscv-sbi.c | 77 struct cpuidle_driver *drv, int idx) 90 struct cpuidle_driver *drv, int idx, 133 struct cpuidle_driver *drv, int idx) 135 return __sbi_enter_domain_idle_state(dev, drv, idx, false); 139 struct cpuidle_driver *drv, 142 return __sbi_enter_domain_idle_state(dev, drv, idx, true); 206 static int sbi_dt_cpu_init_topology(struct cpuidle_driver *drv, argument 223 drv->states[state_count - 1].flags |= CPUIDLE_FLAG_RCU_IDLE; 224 drv->states[state_count - 1].enter = sbi_enter_domain_idle_state; 225 drv 76 sbi_cpuidle_enter_state(struct cpuidle_device *dev, struct cpuidle_driver *drv, int idx) argument 89 __sbi_enter_domain_idle_state(struct cpuidle_device *dev, struct cpuidle_driver *drv, int idx, bool s2idle) argument 132 sbi_enter_domain_idle_state(struct cpuidle_device *dev, struct cpuidle_driver *drv, int idx) argument 138 sbi_enter_s2idle_domain_idle_state(struct cpuidle_device *dev, struct cpuidle_driver *drv, int idx) argument 232 sbi_cpuidle_dt_init_states(struct device *dev, struct cpuidle_driver *drv, unsigned int cpu, unsigned int state_count) argument 296 struct cpuidle_driver *drv; local 511 struct cpuidle_driver *drv; local [all...] |
H A D | poll_state.c | 14 struct cpuidle_driver *drv, int index) 27 limit = cpuidle_poll_time(drv, dev); 48 void cpuidle_poll_state_init(struct cpuidle_driver *drv) argument 50 struct cpuidle_state *state = &drv->states[0]; 13 poll_idle(struct cpuidle_device *dev, struct cpuidle_driver *drv, int index) argument
|
H A D | cpuidle-haltpoll.c | 29 struct cpuidle_driver *drv, int index) 104 struct cpuidle_driver *drv = &haltpoll_driver; local 113 cpuidle_poll_state_init(drv); 115 ret = cpuidle_register_driver(drv); 121 cpuidle_unregister_driver(drv); 28 default_enter_idle(struct cpuidle_device *dev, struct cpuidle_driver *drv, int index) argument
|
H A D | cpuidle-powernv.c | 50 struct cpuidle_driver *drv, 58 for (i = index + 1; i < drv->state_count; i++) { 62 return drv->states[i].target_residency * tb_ticks_per_usec; 69 struct cpuidle_driver *drv, 78 snooze_exit_time = get_tb() + get_snooze_timeout(dev, drv, index); 106 struct cpuidle_driver *drv, 117 struct cpuidle_driver *drv, 143 struct cpuidle_driver *drv, 194 struct cpuidle_driver *drv = &powernv_idle_driver; local 196 drv 49 get_snooze_timeout(struct cpuidle_device *dev, struct cpuidle_driver *drv, int index) argument 68 snooze_loop(struct cpuidle_device *dev, struct cpuidle_driver *drv, int index) argument 105 nap_loop(struct cpuidle_device *dev, struct cpuidle_driver *drv, int index) argument 116 fastsleep_loop(struct cpuidle_device *dev, struct cpuidle_driver *drv, int index) argument 142 stop_loop(struct cpuidle_device *dev, struct cpuidle_driver *drv, int index) argument [all...] |
/linux-master/drivers/base/ |
H A D | dd.c | 229 const char *drv = dev_driver_string(dev); local 234 reason = kasprintf(GFP_KERNEL, "%s: %pV", drv, vaf); 469 struct device_driver *drv = dev->driver; local 471 if (drv) { 472 if (drv->coredump) 474 sysfs_remove_link(&drv->p->kobj, kobject_name(&dev->kobj)); 571 static int call_driver_probe(struct device *dev, struct device_driver *drv) argument 577 else if (drv->probe) 578 ret = drv->probe(dev); 585 dev_dbg(dev, "Driver %s requests probe deferral\n", drv 602 really_probe(struct device *dev, struct device_driver *drv) argument 730 really_probe_debug(struct device *dev, struct device_driver *drv) argument 777 __driver_probe_device(struct device_driver *drv, struct device *dev) argument 822 driver_probe_device(struct device_driver *drv, struct device *dev) argument 866 driver_allows_async_probing(struct device_driver *drv) argument 919 __device_attach_driver(struct device_driver *drv, void *_data) argument 1120 device_driver_attach(struct device_driver *drv, struct device *dev) argument 1140 struct device_driver *drv; local 1156 struct device_driver *drv = data; local 1229 driver_attach(struct device_driver *drv) argument 1241 struct device_driver *drv; local 1286 device_release_driver_internal(struct device *dev, struct device_driver *drv, struct device *parent) argument 1336 driver_detach(struct device_driver *drv) argument [all...] |
/linux-master/drivers/phy/samsung/ |
H A D | phy-exynos4210-usb2.c | 126 struct samsung_usb2_phy_driver *drv = inst->drv; local 143 regmap_update_bits(drv->reg_pmu, offset, mask, on ? 0 : mask); 148 struct samsung_usb2_phy_driver *drv = inst->drv; local 167 writel(on, drv->reg_phy + EXYNOS_4210_UPHY1CON); 182 clk = readl(drv->reg_phy + EXYNOS_4210_UPHYCLK); 184 clk |= drv->ref_reg_val << EXYNOS_4210_UPHYCLK_PHYFSEL_OFFSET; 185 writel(clk, drv->reg_phy + EXYNOS_4210_UPHYCLK); 187 pwr = readl(drv [all...] |
/linux-master/drivers/gpu/drm/ingenic/ |
H A D | Makefile | 2 ingenic-drm-y = ingenic-drm-drv.o
|
/linux-master/include/sound/ac97/ |
H A D | codec.h | 82 int snd_ac97_codec_driver_register(struct ac97_codec_driver *drv); 83 void snd_ac97_codec_driver_unregister(struct ac97_codec_driver *drv); 86 snd_ac97_codec_driver_register(struct ac97_codec_driver *drv) argument 91 snd_ac97_codec_driver_unregister(struct ac97_codec_driver *drv) argument
|
/linux-master/include/linux/ulpi/ |
H A D | driver.h | 54 #define ulpi_register_driver(drv) __ulpi_register_driver(drv, THIS_MODULE) 55 int __ulpi_register_driver(struct ulpi_driver *drv, struct module *module); 56 void ulpi_unregister_driver(struct ulpi_driver *drv);
|
/linux-master/include/kunit/ |
H A D | device.h | 53 * @drv: The struct device_driver to associate with the device. 65 const struct device_driver *drv);
|
/linux-master/lib/kunit/ |
H A D | device.c | 110 const struct device_driver *drv) 151 const struct device_driver *drv) 153 struct kunit_device *kunit_dev = kunit_device_register_internal(test, name, drv); 168 struct device_driver *drv; local 171 drv = kunit_driver_create(test, name); 172 if (IS_ERR(drv)) 173 return ERR_CAST(drv); 175 dev = kunit_device_register_internal(test, name, drv); 177 kunit_release_action(test, driver_unregister_wrapper, (void *)drv); 182 dev->driver = drv; 108 kunit_device_register_internal(struct kunit *test, const char *name, const struct device_driver *drv) argument 149 kunit_device_register_with_driver(struct kunit *test, const char *name, const struct device_driver *drv) argument [all...] |
/linux-master/arch/powerpc/platforms/ps3/ |
H A D | system-bus.c | 339 struct ps3_system_bus_driver *drv = ps3_drv_to_system_bus_drv(_drv); local 343 result = dev->match_id == drv->match_id; 345 result = dev->match_sub_id == drv->match_sub_id && 346 dev->match_id == drv->match_id; 349 pr_info("%s:%d: dev=%u.%u(%s), drv=%u.%u(%s): match\n", 352 drv->match_id, drv->match_sub_id, drv->core.name); 354 pr_debug("%s:%d: dev=%u.%u(%s), drv=%u.%u(%s): miss\n", 357 drv 366 struct ps3_system_bus_driver *drv; local 387 struct ps3_system_bus_driver *drv; local 407 struct ps3_system_bus_driver *drv; local 778 ps3_system_bus_driver_register(struct ps3_system_bus_driver *drv) argument 796 ps3_system_bus_driver_unregister(struct ps3_system_bus_driver *drv) argument [all...] |
/linux-master/drivers/input/serio/ |
H A D | serio.c | 37 static void serio_attach_driver(struct serio_driver *drv); 39 static int serio_connect_driver(struct serio *serio, struct serio_driver *drv) argument 44 retval = drv->connect(serio, drv); 55 if (serio->drv && serio->drv->reconnect) 56 retval = serio->drv->reconnect(serio); 65 if (serio->drv) 66 serio->drv->disconnect(serio); 87 static int serio_bind_driver(struct serio *serio, struct serio_driver *drv) argument 382 struct device_driver *drv; local 732 description_show(struct device_driver *drv, char *buf) argument 739 bind_mode_show(struct device_driver *drv, char *buf) argument 745 bind_mode_store(struct device_driver *drv, const char *buf, size_t count) argument 773 struct serio_driver *drv = to_serio_driver(dev->driver); local 800 serio_attach_driver(struct serio_driver *drv) argument 810 __serio_register_driver(struct serio_driver *drv, struct module *owner, const char *mod_name) argument 849 serio_unregister_driver(struct serio_driver *drv) argument 873 serio_set_drv(struct serio *serio, struct serio_driver *drv) argument 880 serio_bus_match(struct device *dev, struct device_driver *drv) argument 967 serio_open(struct serio *serio, struct serio_driver *drv) argument [all...] |
/linux-master/sound/soc/intel/atom/sst/ |
H A D | sst.c | 53 struct intel_sst_drv *drv = (struct intel_sst_drv *) context; local 57 isr.full = sst_shim_read64(drv->shim, SST_ISRX); 61 spin_lock(&drv->ipc_spin_lock); 62 header.full = sst_shim_read64(drv->shim, 63 drv->ipc_reg.ipcx); 65 sst_shim_write64(drv->shim, drv->ipc_reg.ipcx, header.full); 69 sst_shim_write64(drv->shim, SST_ISRX, isr.full); 70 spin_unlock(&drv->ipc_spin_lock); 73 queue_work(drv 117 struct intel_sst_drv *drv = (struct intel_sst_drv *) context; local [all...] |
/linux-master/drivers/cpuidle/governors/ |
H A D | menu.c | 163 static void menu_update(struct cpuidle_driver *drv, struct cpuidle_device *dev); 258 * @drv: cpuidle driver containing state data 262 static int menu_select(struct cpuidle_driver *drv, struct cpuidle_device *dev, argument 274 menu_update(drv, dev); 314 if (unlikely(drv->state_count <= 1 || latency_req == 0) || 315 ((data->next_timer_ns < drv->states[1].target_residency_ns || 316 latency_req < drv->states[1].exit_latency_ns) && 323 *stop_tick = !(drv->states[0].flags & CPUIDLE_FLAG_POLLING); 354 for (i = 0; i < drv->state_count; i++) { 355 struct cpuidle_state *s = &drv 461 menu_update(struct cpuidle_driver *drv, struct cpuidle_device *dev) argument 556 menu_enable_device(struct cpuidle_driver *drv, struct cpuidle_device *dev) argument [all...] |
/linux-master/drivers/misc/ |
H A D | tifm_core.c | 41 static int tifm_bus_match(struct device *dev, struct device_driver *drv) argument 44 struct tifm_driver *fm_drv = container_of(drv, struct tifm_driver, 71 struct tifm_driver *drv = container_of(dev->driver, struct tifm_driver, local 76 if (dev->driver && drv->probe) { 77 rc = drv->probe(sock); 93 struct tifm_driver *drv = container_of(dev->driver, struct tifm_driver, local 96 if (dev->driver && drv->remove) { 99 drv->remove(sock); 111 struct tifm_driver *drv = container_of(dev->driver, struct tifm_driver, local 114 if (dev->driver && drv 122 struct tifm_driver *drv = container_of(dev->driver, struct tifm_driver, local 313 tifm_register_driver(struct tifm_driver *drv) argument 321 tifm_unregister_driver(struct tifm_driver *drv) argument [all...] |
/linux-master/drivers/mfd/ |
H A D | mcp-core.c | 21 #define to_mcp_driver(d) container_of(d, struct mcp_driver, drv) 23 static int mcp_bus_match(struct device *dev, struct device_driver *drv) argument 31 struct mcp_driver *drv = to_mcp_driver(dev->driver); local 33 return drv->probe(mcp); 39 struct mcp_driver *drv = to_mcp_driver(dev->driver); local 41 drv->remove(mcp); 209 mcpdrv->drv.bus = &mcp_bus_type; 210 return driver_register(&mcpdrv->drv); 216 driver_unregister(&mcpdrv->drv);
|
/linux-master/sound/core/seq/ |
H A D | seq_midi_emul.c | 33 static void note_off(const struct snd_midi_op *ops, void *drv, 40 static void rpn(const struct snd_midi_op *ops, void *drv, 43 static void nrpn(const struct snd_midi_op *ops, void *drv, 77 void *drv; local 97 drv = chanset->private_data; 120 ops->note_off(drv, ev->data.note.note, 0, chan); 124 ops->note_on(drv, ev->data.note.note, ev->data.note.velocity, chan); 130 note_off(ops, drv, chan, ev->data.note.note, ev->data.note.velocity); 134 ops->key_press(drv, ev->data.note.note, ev->data.note.velocity, chan); 137 do_control(ops, drv, chanse 235 note_off(const struct snd_midi_op *ops, void *drv, struct snd_midi_channel *chan, int note, int vel) argument 258 do_control(const struct snd_midi_op *ops, void *drv, struct snd_midi_channel_set *chset, struct snd_midi_channel *chan, int control, int value) argument 410 rpn(const struct snd_midi_op *ops, void *drv, struct snd_midi_channel *chan, struct snd_midi_channel_set *chset) argument 450 nrpn(const struct snd_midi_op *ops, void *drv, struct snd_midi_channel *chan, struct snd_midi_channel_set *chset) argument 592 all_sounds_off(const struct snd_midi_op *ops, void *drv, struct snd_midi_channel *chan) argument 611 all_notes_off(const struct snd_midi_op *ops, void *drv, struct snd_midi_channel *chan) argument [all...] |