Home
last modified time | relevance | path

Searched refs:circbuffer (Results 1 – 6 of 6) sorted by relevance

/external/dropbear/
Dcircbuffer.h36 typedef struct circbuf circbuffer; typedef
38 circbuffer * cbuf_new(unsigned int size);
39 void cbuf_free(circbuffer * cbuf);
41 unsigned int cbuf_getused(circbuffer * cbuf); /* how much data stored */
42 unsigned int cbuf_getavail(circbuffer * cbuf); /* how much we can write */
43 unsigned int cbuf_readlen(circbuffer *cbuf); /* max linear read len */
44 unsigned int cbuf_writelen(circbuffer *cbuf); /* max linear write len */
46 unsigned char* cbuf_readptr(circbuffer *cbuf, unsigned int len);
47 unsigned char* cbuf_writeptr(circbuffer *cbuf, unsigned int len);
48 void cbuf_incrwrite(circbuffer *cbuf, unsigned int len);
[all …]
Dcircbuffer.c31 circbuffer * cbuf_new(unsigned int size) { in cbuf_new()
33 circbuffer *cbuf = NULL; in cbuf_new()
39 cbuf = (circbuffer*)m_malloc(sizeof(circbuffer)); in cbuf_new()
49 void cbuf_free(circbuffer * cbuf) { in cbuf_free()
55 unsigned int cbuf_getused(circbuffer * cbuf) { in cbuf_getused()
61 unsigned int cbuf_getavail(circbuffer * cbuf) { in cbuf_getavail()
67 unsigned int cbuf_readlen(circbuffer *cbuf) { in cbuf_readlen()
84 unsigned int cbuf_writelen(circbuffer *cbuf) { in cbuf_writelen()
102 unsigned char* cbuf_readptr(circbuffer *cbuf, unsigned int len) { in cbuf_readptr()
110 unsigned char* cbuf_writeptr(circbuffer *cbuf, unsigned int len) { in cbuf_writeptr()
[all …]
Dchannel.h72 circbuffer *writebuf; /* data from the wire, for local consumption */
73 circbuffer *extrabuf; /* extended-data for the program - used like writebuf
124 circbuffer * buf);
DAndroid.mk14 common-runopts.c circbuffer.c
Dcommon-channel.c43 static void writechannel(struct Channel* channel, int fd, circbuffer *cbuf);
393 static void writechannel(struct Channel* channel, int fd, circbuffer *cbuf) { in writechannel()
664 circbuffer * cbuf) { in common_recv_msg_channel_data()
DMakefile.in37 common-runopts.o circbuffer.o