/drivers/video/via/ |
H A D | via_aux.h | 47 void (*cleanup)(struct via_aux_drv *drv); 49 (struct via_aux_drv *drv); 58 static inline bool via_aux_add(struct via_aux_drv *drv) argument 65 *data = *drv; 70 static inline bool via_aux_read(struct via_aux_drv *drv, u8 start, u8 *buf, argument 74 {.addr = drv->addr, .flags = 0, .len = 1, .buf = &start}, 75 {.addr = drv->addr, .flags = I2C_M_RD, .len = len, .buf = buf} }; 77 return i2c_transfer(drv->bus->adap, msg, 2) == 2;
|
/drivers/zorro/ |
H A D | zorro-driver.c | 46 struct zorro_driver *drv = to_zorro_driver(dev->driver); local 49 if (!z->driver && drv->probe) { 52 id = zorro_match_device(drv->id_table, z); 54 error = drv->probe(z, id); 56 z->driver = drv; 67 struct zorro_driver *drv = to_zorro_driver(dev->driver); local 69 if (drv) { 70 if (drv->remove) 71 drv->remove(z); 80 * @drv 86 zorro_register_driver(struct zorro_driver *drv) argument 108 zorro_unregister_driver(struct zorro_driver *drv) argument 126 zorro_bus_match(struct device *dev, struct device_driver *drv) argument [all...] |
/drivers/base/ |
H A D | driver.c | 35 * @drv: Driver we're iterating. 40 * Iterate over the @drv's list of devices calling @fn for each one. 42 int driver_for_each_device(struct device_driver *drv, struct device *start, argument 49 if (!drv) 52 klist_iter_init_node(&drv->p->klist_devices, &i, 63 * @drv: The device's driver 76 struct device *driver_find_device(struct device_driver *drv, argument 83 if (!drv) 86 klist_iter_init_node(&drv->p->klist_devices, &i, 98 * @drv 101 driver_create_file(struct device_driver *drv, const struct driver_attribute *attr) argument 118 driver_remove_file(struct device_driver *drv, const struct driver_attribute *attr) argument 126 driver_add_groups(struct device_driver *drv, const struct attribute_group **groups) argument 146 driver_remove_groups(struct device_driver *drv, const struct attribute_group **groups) argument 164 driver_register(struct device_driver *drv) argument 200 driver_unregister(struct device_driver *drv) argument [all...] |
H A D | base.h | 108 extern int bus_add_driver(struct device_driver *drv); 109 extern void bus_remove_driver(struct device_driver *drv); 111 extern void driver_detach(struct device_driver *drv); 112 extern int driver_probe_device(struct device_driver *drv, struct device *dev); 114 static inline int driver_match_device(struct device_driver *drv, argument 117 return drv->bus->match ? drv->bus->match(dev, drv) : 1; 128 extern void module_add_driver(struct module *mod, struct device_driver *drv); 129 extern void module_remove_driver(struct device_driver *drv); 131 module_add_driver(struct module *mod, struct device_driver *drv) argument 133 module_remove_driver(struct device_driver *drv) argument [all...] |
/drivers/base/power/ |
H A D | generic_ops.c | 85 struct device_driver *drv = dev->driver; local 88 if (drv && drv->pm && drv->pm->prepare) 89 ret = drv->pm->prepare(dev); 318 struct device_driver *drv = dev->driver; local 320 if (drv && drv->pm && drv->pm->complete) 321 drv [all...] |
/drivers/ide/ |
H A D | ide-pm.c | 72 struct ide_driver *drv = to_ide_driver(dev->driver); local 74 if (drv->resume) 75 drv->resume(drive);
|
/drivers/input/joystick/ |
H A D | joydump.c | 50 static int joydump_connect(struct gameport *gameport, struct gameport_driver *drv) argument 63 if (gameport_open(gameport, drv, GAMEPORT_MODE_RAW)) { 67 if (gameport_open(gameport, drv, GAMEPORT_MODE_COOKED)) {
|
H A D | magellan.c | 148 static int magellan_connect(struct serio *serio, struct serio_driver *drv) argument 181 err = serio_open(serio, drv);
|
H A D | spaceorb.c | 163 static int spaceorb_connect(struct serio *serio, struct serio_driver *drv) argument 196 err = serio_open(serio, drv);
|
H A D | warrior.c | 141 static int warrior_connect(struct serio *serio, struct serio_driver *drv) argument 176 err = serio_open(serio, drv);
|
H A D | zhenhua.c | 154 static int zhenhua_connect(struct serio *serio, struct serio_driver *drv) argument 184 err = serio_open(serio, drv);
|
/drivers/input/keyboard/ |
H A D | newtonkbd.c | 84 static int nkbd_connect(struct serio *serio, struct serio_driver *drv) argument 119 err = serio_open(serio, drv);
|
H A D | stowaway.c | 88 static int skbd_connect(struct serio *serio, struct serio_driver *drv) argument 123 err = serio_open(serio, drv);
|
H A D | xtkbd.c | 86 static int xtkbd_connect(struct serio *serio, struct serio_driver *drv) argument 122 err = serio_open(serio, drv);
|
/drivers/input/mouse/ |
H A D | sermouse.c | 245 static int sermouse_connect(struct serio *serio, struct serio_driver *drv) argument 282 err = serio_open(serio, drv);
|
/drivers/input/touchscreen/ |
H A D | touchit213.c | 141 static int touchit213_connect(struct serio *serio, struct serio_driver *drv) argument 175 err = serio_open(serio, drv);
|
H A D | touchright.c | 104 static int tr_connect(struct serio *serio, struct serio_driver *drv) argument 135 err = serio_open(serio, drv);
|
H A D | touchwin.c | 111 static int tw_connect(struct serio *serio, struct serio_driver *drv) argument 142 err = serio_open(serio, drv);
|
H A D | tsc40.c | 81 static int tsc_connect(struct serio *serio, struct serio_driver *drv) argument 114 error = serio_open(serio, drv);
|
/drivers/mca/ |
H A D | mca-bus.c | 46 static int mca_bus_match (struct device *dev, struct device_driver *drv) argument 49 struct mca_driver *mca_drv = to_mca_driver (drv);
|
/drivers/media/video/cx18/ |
H A D | cx18-alsa-main.c | 281 struct device_driver *drv; local 286 drv = driver_find("cx18", &pci_bus_type); 287 ret = driver_for_each_device(drv, NULL, NULL, cx18_alsa_exit_callback);
|
/drivers/scsi/ |
H A D | scsi_pm.c | 21 struct device_driver *drv; local 26 drv = dev->driver; 27 if (drv && drv->suspend) 28 err = drv->suspend(dev, msg); 36 struct device_driver *drv; local 39 drv = dev->driver; 40 if (drv && drv->resume) 41 err = drv [all...] |
/drivers/sh/superhyway/ |
H A D | superhyway.c | 168 * @drv: SuperHyway driver to register. 170 * This registers the passed in @drv. Any devices matching the id table will 174 int superhyway_register_driver(struct superhyway_driver *drv) argument 176 drv->drv.name = drv->name; 177 drv->drv.bus = &superhyway_bus_type; 179 return driver_register(&drv->drv); 189 superhyway_unregister_driver(struct superhyway_driver *drv) argument 194 superhyway_bus_match(struct device *dev, struct device_driver *drv) argument [all...] |
/drivers/usb/host/ |
H A D | ehci-ps3.c | 260 static int __init ps3_ehci_driver_register(struct ps3_system_bus_driver *drv) argument 263 ? ps3_system_bus_driver_register(drv) 267 static void ps3_ehci_driver_unregister(struct ps3_system_bus_driver *drv) argument 270 ps3_system_bus_driver_unregister(drv);
|
/drivers/usb/serial/ |
H A D | bus.c | 20 struct device_driver *drv) 33 driver = to_usb_serial_driver(drv); 132 static void free_dynids(struct usb_serial_driver *drv) argument 136 spin_lock(&drv->dynids.lock); 137 list_for_each_entry_safe(dynid, n, &drv->dynids.list, node) { 141 spin_unlock(&drv->dynids.lock); 148 static inline void free_dynids(struct usb_serial_driver *drv) argument 19 usb_serial_device_match(struct device *dev, struct device_driver *drv) argument
|