Lines Matching defs:buf_cnt
1043 for (i = 0; i < bufgrp->buf_cnt; i++) {
2804 strm_if->buf_read.buf_cnt = strm_if->buf_read_num;
2806 "read_bufs: %d bufs allocated", strm_if->buf_read.buf_cnt);
2907 strm_if->buf_read.buf_cnt = 0;
2919 int buf_cnt, int buf_len)
2926 "usbvc_alloc_map_bufs: bufcnt=%d, buflen=%d", buf_cnt, buf_len);
2927 if (buf_len <= 0 || buf_cnt <= 0) {
2935 bufs = (usbvc_buf_t *) kmem_zalloc(sizeof (usbvc_buf_t) * buf_cnt,
2943 bufs[0].data = ddi_umem_alloc(buf_len * buf_cnt, DDI_UMEM_SLEEP,
2947 for (i = 0; i < buf_cnt; i++) {
2965 buf_cnt, bufs[i].len);
2967 strm_if->buf_map.buf_cnt = buf_cnt;
2970 return (buf_cnt);
3004 kmem_free(buf, sizeof (usbvc_buf_t) * strm_if->buf_map.buf_cnt);
3005 strm_if->buf_map.buf_cnt = 0;