Lines Matching refs:br
42 struct buf_ring *br;
46 br = malloc(sizeof(struct buf_ring) + count*sizeof(caddr_t),
48 if (br == NULL)
51 br->br_lock = lock;
53 br->br_prod_size = br->br_cons_size = count;
54 br->br_prod_mask = br->br_cons_mask = count-1;
55 br->br_prod_head = br->br_cons_head = 0;
56 br->br_prod_tail = br->br_cons_tail = 0;
58 return (br);
62 buf_ring_free(struct buf_ring *br, struct malloc_type *type)
64 free(br, type);