Lines Matching refs:epdrv

1130 int __init early_platform_driver_register(struct early_platform_driver *epdrv,  in early_platform_driver_register()  argument
1139 if (!epdrv->list.next) { in early_platform_driver_register()
1140 INIT_LIST_HEAD(&epdrv->list); in early_platform_driver_register()
1141 list_add_tail(&epdrv->list, &early_platform_driver_list); in early_platform_driver_register()
1148 n = strlen(epdrv->pdrv->driver.name); in early_platform_driver_register()
1149 if (buf && !strncmp(buf, epdrv->pdrv->driver.name, n)) { in early_platform_driver_register()
1150 list_move(&epdrv->list, &early_platform_driver_list); in early_platform_driver_register()
1154 epdrv->requested_id = -1; in early_platform_driver_register()
1156 epdrv->requested_id = simple_strtoul(&buf[n + 1], in early_platform_driver_register()
1160 epdrv->requested_id = EARLY_PLATFORM_ID_ERROR; in early_platform_driver_register()
1169 if (epdrv->bufsize) { in early_platform_driver_register()
1170 memcpy(epdrv->buffer, &buf[n], in early_platform_driver_register()
1171 min_t(int, epdrv->bufsize, strlen(&buf[n]) + 1)); in early_platform_driver_register()
1172 epdrv->buffer[epdrv->bufsize - 1] = '\0'; in early_platform_driver_register()
1238 early_platform_match(struct early_platform_driver *epdrv, int id) in early_platform_match() argument
1243 if (platform_match(&pd->dev, &epdrv->pdrv->driver)) in early_platform_match()
1255 static int __init early_platform_left(struct early_platform_driver *epdrv, in early_platform_left() argument
1261 if (platform_match(&pd->dev, &epdrv->pdrv->driver)) in early_platform_left()
1278 struct early_platform_driver *epdrv; in early_platform_driver_probe_id() local
1284 list_for_each_entry(epdrv, &early_platform_driver_list, list) { in early_platform_driver_probe_id()
1286 if (strcmp(class_str, epdrv->class_str)) in early_platform_driver_probe_id()
1290 match_id = epdrv->requested_id; in early_platform_driver_probe_id()
1295 left += early_platform_left(epdrv, id); in early_platform_driver_probe_id()
1298 switch (epdrv->requested_id) { in early_platform_driver_probe_id()
1303 if (epdrv->requested_id == id) in early_platform_driver_probe_id()
1311 class_str, epdrv->pdrv->driver.name); in early_platform_driver_probe_id()
1317 match = early_platform_match(epdrv, match_id); in early_platform_driver_probe_id()
1341 if (epdrv->pdrv->probe(match)) in early_platform_driver_probe_id()