Home
last modified time | relevance | path

Searched refs:snb (Results 1 – 2 of 2) sorted by relevance

/haiku/src/add-ons/kernel/drivers/bluetooth/h2/h2generic/
H A Dsnet_buffer.cpp37 snet_buffer* snb = (snet_buffer*) malloc(sizeof(snet_buffer) + size); in snb_create() local
38 snb->buffer = ((uint8*)snb) + sizeof(snet_buffer); in snb_create()
40 snet_buffer* snb = malloc(sizeof (snet_buffer)); in snb_create()
41 snb->buffer = malloc(size); in snb_create()
44 snb->pullingSize = snb->puttingSize = 0; in snb_create()
45 snb->expectedSize = snb->allocatedSize = size; in snb_create()
47 return snb; in snb_create()
52 snb_put(snet_buffer* snb, void* data, uint16 size) in snb_put() argument
55 memcpy( &snb->buffer[snb->puttingSize], data, size); in snb_put()
56 snb->puttingSize+=size; in snb_put()
[all …]
H A Dsnet_buffer.h36 void snb_free(snet_buffer* snb);
38 void* snb_get(snet_buffer* snb);
40 uint16 snb_size(snet_buffer* snb);
43 void* snb_cookie(snet_buffer* snb);
45 void snb_set_cookie(snet_buffer* snb, void* cookie);
48 void snb_put(snet_buffer* snb, void* data, uint16 size);
50 void* snb_pull(snet_buffer* snb, uint16 size);
52 void snb_reset(snet_buffer* snb);
55 bool snb_completed(snet_buffer* snb);
57 bool snb_finished(snet_buffer* snb);
[all …]