Lines Matching refs:buf_num
115 int buf_num; member
338 while (dev->buf_num) { in hackrf_free_stream_bufs()
339 dev->buf_num--; in hackrf_free_stream_bufs()
340 dev_dbg(dev->dev, "free buf=%d\n", dev->buf_num); in hackrf_free_stream_bufs()
342 dev->buf_list[dev->buf_num], in hackrf_free_stream_bufs()
343 dev->dma_addr[dev->buf_num]); in hackrf_free_stream_bufs()
353 dev->buf_num = 0; in hackrf_alloc_stream_bufs()
359 for (dev->buf_num = 0; dev->buf_num < MAX_BULK_BUFS; dev->buf_num++) { in hackrf_alloc_stream_bufs()
360 dev->buf_list[dev->buf_num] = usb_alloc_coherent(dev->udev, in hackrf_alloc_stream_bufs()
362 &dev->dma_addr[dev->buf_num]); in hackrf_alloc_stream_bufs()
363 if (!dev->buf_list[dev->buf_num]) { in hackrf_alloc_stream_bufs()
365 dev->buf_num); in hackrf_alloc_stream_bufs()
370 dev_dbg(dev->dev, "alloc buf=%d %p (dma %llu)\n", dev->buf_num, in hackrf_alloc_stream_bufs()
371 dev->buf_list[dev->buf_num], in hackrf_alloc_stream_bufs()
372 (long long)dev->dma_addr[dev->buf_num]); in hackrf_alloc_stream_bufs()