• Home
  • Raw
  • Download

Lines Matching refs:len

39 static void  dump_hex( const unsigned char*  ptr, size_t  len )  in dump_hex()  argument
41 int nn, len2 = len; in dump_hex()
101 int len = p->msg.data_length; in dump_packet() local
131 name, func, cmd, arg0, arg1, len); in dump_packet()
132 dump_hex(p->data, len); in dump_packet()
141 int len = sizeof(*ppacket); in read_packet() local
147 while(len > 0) { in read_packet()
148 r = adb_read(fd, p, len); in read_packet()
150 len -= r; in read_packet()
171 int r, len = sizeof(ppacket); in write_packet() local
183 len = sizeof(ppacket); in write_packet()
184 while(len > 0) { in write_packet()
185 r = adb_write(fd, p, len); in write_packet()
187 len -= r; in write_packet()
382 int len = sizeof(*m); in transport_read_action() local
385 while(len > 0) { in transport_read_action()
386 r = adb_read(fd, p, len); in transport_read_action()
388 len -= r; in transport_read_action()
404 int len = sizeof(*m); in transport_write_action() local
407 while(len > 0) { in transport_write_action()
408 r = adb_write(fd, p, len); in transport_write_action()
410 len -= r; in transport_write_action()
732 int readx(int fd, void *ptr, size_t len) in readx() argument
737 int len0 = len; in readx()
739 D("readx: fd=%d wanted=%d\n", fd, (int)len); in readx()
740 while(len > 0) { in readx()
741 r = adb_read(fd, p, len); in readx()
743 len -= r; in readx()
758 D("readx: fd=%d wanted=%d got=%d\n", fd, len0, len0 - len); in readx()
764 int writex(int fd, const void *ptr, size_t len) in writex() argument
770 D("writex: fd=%d len=%d: ", fd, (int)len); in writex()
771 dump_hex( ptr, len ); in writex()
773 while(len > 0) { in writex()
774 r = adb_write(fd, p, len); in writex()
776 len -= r; in writex()