Lines Matching defs:epdrv
62 * @epdrv: sh_early_platform driver structure
67 int __init sh_early_platform_driver_register(struct sh_early_platform_driver *epdrv,
76 if (!epdrv->list.next) {
77 INIT_LIST_HEAD(&epdrv->list);
78 list_add_tail(&epdrv->list, &sh_early_platform_driver_list);
85 n = strlen(epdrv->pdrv->driver.name);
86 if (buf && !strncmp(buf, epdrv->pdrv->driver.name, n)) {
87 list_move(&epdrv->list, &sh_early_platform_driver_list);
91 epdrv->requested_id = -1;
93 epdrv->requested_id = simple_strtoul(&buf[n + 1],
97 epdrv->requested_id = EARLY_PLATFORM_ID_ERROR;
106 if (epdrv->bufsize) {
107 memcpy(epdrv->buffer, &buf[n],
108 min_t(int, epdrv->bufsize, strlen(&buf[n]) + 1));
109 epdrv->buffer[epdrv->bufsize - 1] = '\0';
171 * @epdrv: early platform driver structure
175 sh_early_platform_match(struct sh_early_platform_driver *epdrv, int id)
180 if (platform_match(&pd->dev, &epdrv->pdrv->driver))
189 * @epdrv: early platform driver structure
192 static int __init sh_early_platform_left(struct sh_early_platform_driver *epdrv,
198 if (platform_match(&pd->dev, &epdrv->pdrv->driver))
215 struct sh_early_platform_driver *epdrv;
221 list_for_each_entry(epdrv, &sh_early_platform_driver_list, list) {
223 if (strcmp(class_str, epdrv->class_str))
227 match_id = epdrv->requested_id;
232 left += sh_early_platform_left(epdrv, id);
235 switch (epdrv->requested_id) {
240 if (epdrv->requested_id == id)
248 class_str, epdrv->pdrv->driver.name);
254 match = sh_early_platform_match(epdrv, match_id);
278 if (epdrv->pdrv->probe(match))