Lines Matching refs:buf_num
128 int buf_num; member
362 while (s->buf_num) { in airspy_free_stream_bufs()
363 s->buf_num--; in airspy_free_stream_bufs()
364 dev_dbg(s->dev, "free buf=%d\n", s->buf_num); in airspy_free_stream_bufs()
366 s->buf_list[s->buf_num], in airspy_free_stream_bufs()
367 s->dma_addr[s->buf_num]); in airspy_free_stream_bufs()
377 s->buf_num = 0; in airspy_alloc_stream_bufs()
383 for (s->buf_num = 0; s->buf_num < MAX_BULK_BUFS; s->buf_num++) { in airspy_alloc_stream_bufs()
384 s->buf_list[s->buf_num] = usb_alloc_coherent(s->udev, in airspy_alloc_stream_bufs()
386 &s->dma_addr[s->buf_num]); in airspy_alloc_stream_bufs()
387 if (!s->buf_list[s->buf_num]) { in airspy_alloc_stream_bufs()
388 dev_dbg(s->dev, "alloc buf=%d failed\n", s->buf_num); in airspy_alloc_stream_bufs()
393 dev_dbg(s->dev, "alloc buf=%d %p (dma %llu)\n", s->buf_num, in airspy_alloc_stream_bufs()
394 s->buf_list[s->buf_num], in airspy_alloc_stream_bufs()
395 (long long)s->dma_addr[s->buf_num]); in airspy_alloc_stream_bufs()