• Home
  • Raw
  • Download

Lines Matching refs:r

148         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()
283 D(" closing after write because r=%d and errno is %d\n", r, errno); in local_socket_event_func()
317 int r; in local_socket_event_func() local
321 r = adb_read(fd, x, avail); in local_socket_event_func()
322 …D("LS(%d): post adb_read(fd=%d,...) r=%d (errno=%d) avail=%d\n", s->id, s->fd, r, r<0?errno:0, ava… in local_socket_event_func()
323 if(r > 0) { in local_socket_event_func()
324 avail -= r; in local_socket_event_func()
325 x += r; in local_socket_event_func()
328 if(r < 0) { in local_socket_event_func()
338 s->id, s->fd, r, is_eof, s->fde.force_eof); in local_socket_event_func()
344 r = s->peer->enqueue(s->peer, p); in local_socket_event_func()
345 D("LS(%d): fd=%d post peer->enqueue(). r=%d\n", s->id, s->fd, r); in local_socket_event_func()
347 if(r < 0) { in local_socket_event_func()
359 if(r > 0) { in local_socket_event_func()
368 if((s->fde.force_eof && !r) || is_eof) { in local_socket_event_func()
369 D(" closing because is_eof=%d r=%d s->fde.force_eof=%d\n", is_eof, r, s->fde.force_eof); in local_socket_event_func()