Home
last modified time | relevance | path

Searched refs:res (Results 1 – 4 of 4) sorted by relevance

/bootable/recovery/minui/
Dgraphics_drm.cpp350 drmModeRes *res = NULL; in drm_init() local
376 res = drmModeGetResources(drm_fd); in drm_init()
377 if (!res) { in drm_init()
383 if (res->count_crtcs > 0 && res->count_connectors > 0) in drm_init()
384 if (find_first_connected_connector(drm_fd, res)) in drm_init()
387 drmModeFreeResources(res); in drm_init()
389 res = NULL; in drm_init()
392 if (drm_fd < 0 || res == NULL) { in drm_init()
398 res, &selected_mode); in drm_init()
402 drmModeFreeResources(res); in drm_init()
[all …]
Dgraphics.cpp274 int res = res_create_alpha_surface("font", &(gr_font->texture)); in gr_init_font() local
275 if (res == 0) { in gr_init_font()
282 printf("failed to read font: res=%d\n", res); in gr_init_font()
/bootable/recovery/updater/
Dblockimg.c405 int res; in GetStashFileName() local
427 res = snprintf(fn, len, STASH_DIRECTORY_BASE "/%s/%s%s", base, id, postfix); in GetStashFileName()
429 if (res < 0 || res >= len) { in GetStashFileName()
430 fprintf(stderr, "failed to format file name (return value %d)\n", res); in GetStashFileName()
449 int res; in EnumerateStash() local
478 res = snprintf(fn, len, "%s/%s", dirname, item->d_name); in EnumerateStash()
480 if (res < 0 || res >= len) { in EnumerateStash()
481 fprintf(stderr, "failed to format file name (return value %d)\n", res); in EnumerateStash()
562 int res; in LoadStash() local
579 res = stat(fn, &st); in LoadStash()
[all …]
/bootable/recovery/
Dfuse_sideload.c101 int res; in fuse_reply() local
112 res = writev(fd->ffd, vec, 2); in fuse_reply()
113 if (res < 0) { in fuse_reply()