Lines Matching refs:br
39 struct buf_ring *br;
43 br = malloc(sizeof(struct buf_ring) + count*sizeof(caddr_t),
45 if (br == NULL)
48 br->br_lock = lock;
50 br->br_prod_size = br->br_cons_size = count;
51 br->br_prod_mask = br->br_cons_mask = count-1;
52 br->br_prod_head = br->br_cons_head = 0;
53 br->br_prod_tail = br->br_cons_tail = 0;
55 return (br);
59 buf_ring_free(struct buf_ring *br, struct malloc_type *type)
61 free(br, type);