Lines Matching refs:br
43 struct buf_ring *br;
47 br = malloc(sizeof(struct buf_ring) + count*sizeof(caddr_t),
49 if (br == NULL)
52 br->br_lock = lock;
54 br->br_prod_size = br->br_cons_size = count;
55 br->br_prod_mask = br->br_cons_mask = count-1;
56 br->br_prod_head = br->br_cons_head = 0;
57 br->br_prod_tail = br->br_cons_tail = 0;
59 return (br);
63 buf_ring_free(struct buf_ring *br, struct malloc_type *type)
65 free(br, type);