Lines Matching refs:epdrv

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