Lines Matching refs:epdrv
1052 int __init early_platform_driver_register(struct early_platform_driver *epdrv, in early_platform_driver_register() argument
1061 if (!epdrv->list.next) { in early_platform_driver_register()
1062 INIT_LIST_HEAD(&epdrv->list); in early_platform_driver_register()
1063 list_add_tail(&epdrv->list, &early_platform_driver_list); in early_platform_driver_register()
1070 n = strlen(epdrv->pdrv->driver.name); in early_platform_driver_register()
1071 if (buf && !strncmp(buf, epdrv->pdrv->driver.name, n)) { in early_platform_driver_register()
1072 list_move(&epdrv->list, &early_platform_driver_list); in early_platform_driver_register()
1076 epdrv->requested_id = -1; in early_platform_driver_register()
1078 epdrv->requested_id = simple_strtoul(&buf[n + 1], in early_platform_driver_register()
1082 epdrv->requested_id = EARLY_PLATFORM_ID_ERROR; in early_platform_driver_register()
1091 if (epdrv->bufsize) { in early_platform_driver_register()
1092 memcpy(epdrv->buffer, &buf[n], in early_platform_driver_register()
1093 min_t(int, epdrv->bufsize, strlen(&buf[n]) + 1)); in early_platform_driver_register()
1094 epdrv->buffer[epdrv->bufsize - 1] = '\0'; in early_platform_driver_register()
1160 early_platform_match(struct early_platform_driver *epdrv, int id) in early_platform_match() argument
1165 if (platform_match(&pd->dev, &epdrv->pdrv->driver)) in early_platform_match()
1177 static int __init early_platform_left(struct early_platform_driver *epdrv, in early_platform_left() argument
1183 if (platform_match(&pd->dev, &epdrv->pdrv->driver)) in early_platform_left()
1200 struct early_platform_driver *epdrv; in early_platform_driver_probe_id() local
1206 list_for_each_entry(epdrv, &early_platform_driver_list, list) { in early_platform_driver_probe_id()
1208 if (strcmp(class_str, epdrv->class_str)) in early_platform_driver_probe_id()
1212 match_id = epdrv->requested_id; in early_platform_driver_probe_id()
1217 left += early_platform_left(epdrv, id); in early_platform_driver_probe_id()
1220 switch (epdrv->requested_id) { in early_platform_driver_probe_id()
1225 if (epdrv->requested_id == id) in early_platform_driver_probe_id()
1233 class_str, epdrv->pdrv->driver.name); in early_platform_driver_probe_id()
1239 match = early_platform_match(epdrv, match_id); in early_platform_driver_probe_id()
1263 if (epdrv->pdrv->probe(match)) in early_platform_driver_probe_id()