Home
last modified time | relevance | path

Searched refs:r (Results 1 – 11 of 11) sorted by relevance

/bootable/recovery/minadbd/
Dservices.c88 int r;
93 r = read(fd, buf, 4096);
94 if(r == 0) goto done;
95 if(r < 0) {
100 c = r;
103 r = write(fd, p, c);
104 if(r > 0) {
105 c -= r;
106 p += r;
109 if((r < 0) && (errno == EINTR)) continue;
Dtransport.c140 int r; in read_packet() local
148 r = adb_read(fd, p, len); in read_packet()
149 if(r > 0) { in read_packet()
150 len -= r; in read_packet()
151 p += r; in read_packet()
153 … D("%s: read_packet (fd=%d), error ret=%d errno=%d: %s\n", name, fd, r, errno, strerror(errno)); in read_packet()
154 if((r < 0) && (errno == EINTR)) continue; in read_packet()
171 int r, len = sizeof(ppacket); in write_packet() local
185 r = adb_write(fd, p, len); in write_packet()
186 if(r > 0) { in write_packet()
[all …]
Dsockets.c148 int r = adb_write(s->fd, p->ptr, p->len); in local_socket_enqueue() local
149 if(r > 0) { in local_socket_enqueue()
150 p->len -= r; in local_socket_enqueue()
151 p->ptr += r; in local_socket_enqueue()
154 if((r == 0) || (errno != EAGAIN)) { in local_socket_enqueue()
270 int r = adb_write(fd, p->ptr, p->len); in local_socket_event_func() local
271 if(r > 0) { in local_socket_event_func()
272 p->ptr += r; in local_socket_event_func()
273 p->len -= r; in local_socket_event_func()
276 if(r < 0) { in local_socket_event_func()
[all …]
/bootable/recovery/minui/
Devents.c115 int r; in ev_wait() local
117 r = poll(ev_fds, ev_count, timeout); in ev_wait()
118 if (r <= 0) in ev_wait()
137 int r; in ev_get_input() local
140 r = read(fd, ev, sizeof(*ev)); in ev_get_input()
141 if (r == sizeof(*ev)) in ev_get_input()
Dminui.h38 void gr_color(unsigned char r, unsigned char g, unsigned char b, unsigned char a);
Dgraphics.c204 void gr_color(unsigned char r, unsigned char g, unsigned char b, unsigned char a) in gr_color() argument
208 color[0] = ((r << 8) | r) + 1; in gr_color()
Dresources.c149 unsigned char r = pRow[sx]; in res_create_surface() local
153 pRow[dx ] = r; // r in res_create_surface()
/bootable/recovery/
Dbootloader.cpp89 ssize_t r = mtd_read_data(read, data, size); in get_bootloader_message_mtd() local
90 if (r != size) LOGE("Can't read %s\n(%s)\n", v->blk_device, strerror(errno)); in get_bootloader_message_mtd()
92 if (r != size) return -1; in get_bootloader_message_mtd()
115 ssize_t r = mtd_read_data(read, data, size); in set_bootloader_message_mtd() local
116 if (r != size) LOGE("Can't read %s\n(%s)\n", v->blk_device, strerror(errno)); in set_bootloader_message_mtd()
118 if (r != size) return -1; in set_bootloader_message_mtd()
/bootable/recovery/mtdutils/
Dmtdutils.c548 int r = 0; in mtd_write_close() local
550 if (mtd_erase_blocks(ctx, 0) == (off_t) -1) r = -1; in mtd_write_close()
551 if (close(ctx->fd)) r = -1; in mtd_write_close()
555 return r; in mtd_write_close()
/bootable/recovery/applypatch/
Dimgdiff.c619 int r = bsdiff(src->data, src->len, &(src->I), tgt->data, tgt->len, ptemp); in MakePatch() local
620 if (r != 0) { in MakePatch()
621 printf("bsdiff() failed: %d\n", r); in MakePatch()
/bootable/recovery/updater/
Dinstall.c721 int r = mtd_write_data((MtdWriteContext*)ctx, (const char *)data, data_len); in write_raw_image_cb() local
722 if (r == data_len) return true; in write_raw_image_cb()