Searched defs:drv (Results 51 - 75 of 211) sorted by relevance

123456789

/drivers/base/
H A Ddd.c214 struct device_driver *drv = dev->driver; local
216 if (drv) {
217 sysfs_remove_link(&drv->p->kobj, kobject_name(&dev->kobj));
250 static int really_probe(struct device *dev, struct device_driver *drv) argument
256 drv->bus->name, __func__, drv->name, dev_name(dev));
259 dev->driver = drv;
270 } else if (drv->probe) {
271 ret = drv->probe(dev);
279 drv
349 driver_probe_device(struct device_driver *drv, struct device *dev) argument
367 __device_attach(struct device_driver *drv, void *data) argument
421 struct device_driver *drv = data; local
457 driver_attach(struct device_driver *drv) argument
469 struct device_driver *drv; local
523 driver_detach(struct device_driver *drv) argument
[all...]
/drivers/cpuidle/governors/
H A Dladder.c63 * @drv: cpuidle driver
66 static int ladder_select_state(struct cpuidle_driver *drv, argument
82 if (drv->states[last_idx].flags & CPUIDLE_FLAG_TIME_VALID) {
84 drv->states[last_idx].exit_latency;
90 if (last_idx < drv->state_count - 1 &&
92 drv->states[last_idx + 1].exit_latency <= latency_req) {
103 drv->states[last_idx].exit_latency > latency_req) {
107 if (drv->states[i].exit_latency <= latency_req)
130 * @drv: cpuidle driver
133 static int ladder_enable_device(struct cpuidle_driver *drv, argument
[all...]
/drivers/input/joystick/
H A Dcobra.c156 static int cobra_connect(struct gameport *gameport, struct gameport_driver *drv) argument
172 err = gameport_open(gameport, drv, GAMEPORT_MODE_RAW);
H A Dspaceball.c203 static int spaceball_connect(struct serio *serio, struct serio_driver *drv) argument
255 err = serio_open(serio, drv);
H A Dtwidjoy.c182 static int twidjoy_connect(struct serio *serio, struct serio_driver *drv) argument
216 err = serio_open(serio, drv);
/drivers/input/touchscreen/
H A Ddynapro.c113 static int dynapro_connect(struct serio *serio, struct serio_driver *drv) argument
147 err = serio_open(serio, drv);
H A Dhampshire.c112 static int hampshire_connect(struct serio *serio, struct serio_driver *drv) argument
146 err = serio_open(serio, drv);
H A Dinexio.c117 static int inexio_connect(struct serio *serio, struct serio_driver *drv) argument
148 err = serio_open(serio, drv);
H A Dmtouch.c130 static int mtouch_connect(struct serio *serio, struct serio_driver *drv) argument
161 err = serio_open(serio, drv);
/drivers/isdn/capi/
H A Dkcapi_proc.c269 struct capi_driver *drv = list_entry(v, struct capi_driver, list); local
271 seq_printf(seq, "%-32s %s\n", drv->name, drv->revision);
/drivers/media/radio/
H A Dradio-isa.c50 strlcpy(v->driver, isa->drv->driver.driver.name, sizeof(v->driver));
51 strlcpy(v->card, isa->drv->card, sizeof(v->card));
63 const struct radio_isa_ops *ops = isa->drv->ops;
73 if (isa->drv->has_stereo)
93 const struct radio_isa_ops *ops = isa->drv->ops;
113 res = isa->drv->ops->s_frequency(isa, f->frequency);
138 return isa->drv->ops->s_mute_volume(isa, ctrl->val,
186 struct radio_isa_driver *drv = pdev->platform_data; local
188 return drv->probe || drv
192 radio_isa_valid_io(const struct radio_isa_driver *drv, int io) argument
204 struct radio_isa_driver *drv = pdev->platform_data; local
[all...]
H A Dradio-isa.h36 const struct radio_isa_driver *drv; member in struct:radio_isa_card
/drivers/media/rc/
H A Dir-lirc-codec.c41 if (!dev->raw->lirc.drv || !dev->raw->lirc.drv->rbuf)
84 lirc_buffer_write(dev->raw->lirc.drv->rbuf,
95 lirc_buffer_write(dev->raw->lirc.drv->rbuf,
97 wake_up(&dev->raw->lirc.drv->rbuf->wait_poll);
301 struct lirc_driver *drv; local
306 drv = kzalloc(sizeof(struct lirc_driver), GFP_KERNEL);
307 if (!drv)
342 snprintf(drv->name, sizeof(drv
[all...]
/drivers/media/video/bt8xx/
H A Dbttv-gpio.c43 static int bttv_sub_bus_match(struct device *dev, struct device_driver *drv) argument
45 struct bttv_sub_driver *sub = to_bttv_sub_drv(drv);
125 sub->drv.bus = &bttv_sub_bus_type;
127 return driver_register(&sub->drv);
133 driver_unregister(&sub->drv);
/drivers/message/i2o/
H A Ddriver.c39 * @drv: the driver to match against
46 static int i2o_bus_match(struct device *dev, struct device_driver *drv) argument
49 struct i2o_driver *i2o_drv = to_i2o_driver(drv);
70 * @drv: I2O driver which should be registered
72 * Registers the OSM drv in the I2O core and creates an event queues if
77 int i2o_driver_register(struct i2o_driver *drv) argument
84 osm_debug("Register driver %s\n", drv->name);
86 if (drv->event) {
87 drv->event_queue = alloc_workqueue(drv
144 i2o_driver_unregister(struct i2o_driver *drv) argument
187 struct i2o_driver *drv; local
261 struct i2o_driver *drv; local
281 struct i2o_driver *drv; local
300 struct i2o_driver *drv; local
319 struct i2o_driver *drv; local
[all...]
/drivers/mfd/
H A Dmcp-core.c24 #define to_mcp_driver(d) container_of(d, struct mcp_driver, drv)
26 static int mcp_bus_match(struct device *dev, struct device_driver *drv) argument
34 struct mcp_driver *drv = to_mcp_driver(dev->driver); local
36 return drv->probe(mcp);
42 struct mcp_driver *drv = to_mcp_driver(dev->driver); local
44 drv->remove(mcp);
212 mcpdrv->drv.bus = &mcp_bus_type;
213 return driver_register(&mcpdrv->drv);
219 driver_unregister(&mcpdrv->drv);
/drivers/mmc/core/
H A Dbus.c28 #define to_mmc_driver(d) container_of(d, struct mmc_driver, drv)
59 static int mmc_bus_match(struct device *dev, struct device_driver *drv) argument
109 struct mmc_driver *drv = to_mmc_driver(dev->driver); local
112 return drv->probe(card);
117 struct mmc_driver *drv = to_mmc_driver(dev->driver); local
120 drv->remove(card);
127 struct mmc_driver *drv = to_mmc_driver(dev->driver); local
131 if (dev->driver && drv->suspend)
132 ret = drv->suspend(card);
138 struct mmc_driver *drv local
200 mmc_register_driver(struct mmc_driver *drv) argument
212 mmc_unregister_driver(struct mmc_driver *drv) argument
[all...]
H A Dsdio_bus.c92 static int sdio_bus_match(struct device *dev, struct device_driver *drv) argument
95 struct sdio_driver *sdrv = to_sdio_driver(drv);
126 struct sdio_driver *drv = to_sdio_driver(dev->driver); local
131 id = sdio_match_device(func, drv);
155 ret = drv->probe(func, id);
170 struct sdio_driver *drv = to_sdio_driver(dev->driver); local
178 drv->remove(func);
182 "its interrupt handler!\n", drv->name);
245 * @drv: SDIO function driver
247 int sdio_register_driver(struct sdio_driver *drv) argument
259 sdio_unregister_driver(struct sdio_driver *drv) argument
[all...]
/drivers/net/phy/
H A Dmdio_bus.c266 * @drv: given PHY driver
271 static int mdio_bus_match(struct device *dev, struct device_driver *drv) argument
274 struct phy_driver *phydrv = to_phy_driver(drv);
284 struct device_driver *drv = phydev->dev.driver; local
285 struct phy_driver *phydrv = to_phy_driver(drv);
288 if (!drv || !phydrv->suspend)
/drivers/pnp/
H A Ddriver.c43 static const struct pnp_device_id *match_device(struct pnp_driver *drv, argument
46 const struct pnp_device_id *drv_id = drv->id_table;
127 struct pnp_driver *drv = pnp_dev->driver; local
129 if (drv) {
130 if (drv->remove)
131 drv->remove(pnp_dev);
141 struct pnp_driver *drv = pnp_dev->driver; local
143 if (drv && drv->shutdown)
144 drv
147 pnp_bus_match(struct device *dev, struct device_driver *drv) argument
224 pnp_register_driver(struct pnp_driver *drv) argument
232 pnp_unregister_driver(struct pnp_driver *drv) argument
[all...]
/drivers/staging/usbip/
H A Dstub_main.c136 static ssize_t show_match_busid(struct device_driver *drv, char *buf) argument
/drivers/tty/serial/
H A Dsuncore.c28 int sunserial_register_minors(struct uart_driver *drv, int count) argument
32 drv->minor = sunserial_current_minor;
33 drv->nr += count;
35 if (drv->nr == count)
36 err = uart_register_driver(drv);
39 drv->tty_driver->name_base = drv->minor - 64;
45 void sunserial_unregister_minors(struct uart_driver *drv, int count) argument
47 drv->nr -= count;
50 if (drv
55 sunserial_console_match(struct console *con, struct device_node *dp, struct uart_driver *drv, int line, bool ignore_line) argument
[all...]
/drivers/usb/core/
H A Dfile.c71 struct usb_class_driver *drv; local
73 drv = dev_get_drvdata(dev);
74 if (!drv || !drv->devnode)
76 return drv->devnode(dev, mode);
/drivers/uwb/
H A Dumc-bus.c120 static int umc_bus_match(struct device *dev, struct device_driver *drv) argument
123 struct umc_driver *umc_driver = to_umc_driver(drv);
/drivers/virtio/
H A Dvirtio.c100 struct virtio_driver *drv = container_of(vdev->dev.driver, local
103 for (i = 0; i < drv->feature_table_size; i++)
104 if (drv->feature_table[i] == fbit)
114 struct virtio_driver *drv = container_of(dev->dev.driver, local
126 for (i = 0; i < drv->feature_table_size; i++) {
127 unsigned int f = drv->feature_table[i];
140 err = drv->probe(dev);
152 struct virtio_driver *drv = container_of(dev->dev.driver, local
155 drv->remove(dev);

Completed in 2529 milliseconds

123456789