Lines Matching +full:device +full:- +full:id

7  *	Loosely based on drivers/dio/dio-driver.c and
8 * drivers/pci/pci-driver.c.
20 * tc_register_driver - register a new TC driver
26 * no device was claimed during registration.
30 return driver_register(&tdrv->driver); in tc_register_driver()
35 * tc_unregister_driver - unregister a TC driver
40 * each device it was responsible for, and marks those devices as
45 driver_unregister(&tdrv->driver); in tc_unregister_driver()
50 * tc_match_device - tell if a TC device structure has a matching
51 * TC device ID structure
52 * @tdrv: the TC driver to earch for matching TC device ID strings
53 * @tdev: the TC device structure to match against
55 * Used by a driver to check whether a TC device present in the
62 const struct tc_device_id *id = tdrv->id_table; in tc_match_device() local
64 if (id) { in tc_match_device()
65 while (id->name[0] || id->vendor[0]) { in tc_match_device()
66 if (strcmp(tdev->name, id->name) == 0 && in tc_match_device()
67 strcmp(tdev->vendor, id->vendor) == 0) in tc_match_device()
68 return id; in tc_match_device()
69 id++; in tc_match_device()
76 * tc_bus_match - Tell if a device structure has a matching
77 * TC device ID structure
78 * @dev: the device structure to match against
79 * @drv: the device driver to search for matching TC device ID strings
81 * Used by a driver to check whether a TC device present in the
85 static int tc_bus_match(struct device *dev, struct device_driver *drv) in tc_bus_match()
89 const struct tc_device_id *id; in tc_bus_match() local
91 id = tc_match_device(tdrv, tdev); in tc_bus_match()
92 if (id) in tc_bus_match()