Lines Matching refs:bufs
329 char *bufs; /* virtual address of DMA buffer lists */ member
491 static int alloc_bufs(struct slgt_info *info, struct slgt_desc *bufs, int count);
492 static void free_bufs(struct slgt_info *info, struct slgt_desc *bufs, int count);
1861 struct slgt_desc *bufs = info->rbufs; in rx_async() local
1869 while(desc_complete(bufs[end])) { in rx_async()
1870 count = desc_count(bufs[end]) - info->rbuf_index; in rx_async()
1871 p = bufs[end].buf + info->rbuf_index; in rx_async()
3386 info->bufs = pci_zalloc_consistent(info->pdev, DESC_LIST_SIZE, in alloc_desc()
3388 if (info->bufs == NULL) in alloc_desc()
3391 info->rbufs = (struct slgt_desc*)info->bufs; in alloc_desc()
3392 info->tbufs = ((struct slgt_desc*)info->bufs) + info->rbuf_count; in alloc_desc()
3428 if (info->bufs != NULL) { in free_desc()
3429 pci_free_consistent(info->pdev, DESC_LIST_SIZE, info->bufs, info->bufs_dma_addr); in free_desc()
3430 info->bufs = NULL; in free_desc()
3436 static int alloc_bufs(struct slgt_info *info, struct slgt_desc *bufs, int count) in alloc_bufs() argument
3440 if ((bufs[i].buf = pci_alloc_consistent(info->pdev, DMABUFSIZE, &bufs[i].buf_dma_addr)) == NULL) in alloc_bufs()
3442 bufs[i].pbuf = cpu_to_le32((unsigned int)bufs[i].buf_dma_addr); in alloc_bufs()
3447 static void free_bufs(struct slgt_info *info, struct slgt_desc *bufs, int count) in free_bufs() argument
3451 if (bufs[i].buf == NULL) in free_bufs()
3453 pci_free_consistent(info->pdev, DMABUFSIZE, bufs[i].buf, bufs[i].buf_dma_addr); in free_bufs()
3454 bufs[i].buf = NULL; in free_bufs()
3476 if (info->bufs) { in free_dma_bufs()