Lines Matching refs:buf_num
132 int buf_num; member
607 while (dev->buf_num) { in hackrf_free_stream_bufs()
608 dev->buf_num--; in hackrf_free_stream_bufs()
609 dev_dbg(dev->dev, "free buf=%d\n", dev->buf_num); in hackrf_free_stream_bufs()
611 dev->buf_list[dev->buf_num], in hackrf_free_stream_bufs()
612 dev->dma_addr[dev->buf_num]); in hackrf_free_stream_bufs()
622 dev->buf_num = 0; in hackrf_alloc_stream_bufs()
628 for (dev->buf_num = 0; dev->buf_num < MAX_BULK_BUFS; dev->buf_num++) { in hackrf_alloc_stream_bufs()
629 dev->buf_list[dev->buf_num] = usb_alloc_coherent(dev->udev, in hackrf_alloc_stream_bufs()
631 &dev->dma_addr[dev->buf_num]); in hackrf_alloc_stream_bufs()
632 if (!dev->buf_list[dev->buf_num]) { in hackrf_alloc_stream_bufs()
634 dev->buf_num); in hackrf_alloc_stream_bufs()
639 dev_dbg(dev->dev, "alloc buf=%d %p (dma %llu)\n", dev->buf_num, in hackrf_alloc_stream_bufs()
640 dev->buf_list[dev->buf_num], in hackrf_alloc_stream_bufs()
641 (long long)dev->dma_addr[dev->buf_num]); in hackrf_alloc_stream_bufs()