Searched refs:BUFFER_MAX (Results 1 – 1 of 1) sorted by relevance
27 #define BUFFER_MAX (2) macro48 data_t buffer[BUFFER_MAX];93 b->free = create_semaphore(FREE_SEMAPHORE_NAME, BUFFER_MAX); in buffer_init()109 if (out >= BUFFER_MAX) in buffer_recv()111 fetch_and_add(&b->out, -BUFFER_MAX); in buffer_recv()112 out -= BUFFER_MAX; in buffer_recv()132 if (in >= BUFFER_MAX) in buffer_send()134 fetch_and_add(&b->in, -BUFFER_MAX); in buffer_send()135 in -= BUFFER_MAX; in buffer_send()