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);
1855 struct slgt_desc *bufs = info->rbufs; in rx_async() local
1863 while(desc_complete(bufs[end])) { in rx_async()
1864 count = desc_count(bufs[end]) - info->rbuf_index; in rx_async()
1865 p = bufs[end].buf + info->rbuf_index; in rx_async()
3380 info->bufs = pci_zalloc_consistent(info->pdev, DESC_LIST_SIZE, in alloc_desc()
3382 if (info->bufs == NULL) in alloc_desc()
3385 info->rbufs = (struct slgt_desc*)info->bufs; in alloc_desc()
3386 info->tbufs = ((struct slgt_desc*)info->bufs) + info->rbuf_count; in alloc_desc()
3422 if (info->bufs != NULL) { in free_desc()
3423 pci_free_consistent(info->pdev, DESC_LIST_SIZE, info->bufs, info->bufs_dma_addr); in free_desc()
3424 info->bufs = NULL; in free_desc()
3430 static int alloc_bufs(struct slgt_info *info, struct slgt_desc *bufs, int count) in alloc_bufs() argument
3434 if ((bufs[i].buf = pci_alloc_consistent(info->pdev, DMABUFSIZE, &bufs[i].buf_dma_addr)) == NULL) in alloc_bufs()
3436 bufs[i].pbuf = cpu_to_le32((unsigned int)bufs[i].buf_dma_addr); in alloc_bufs()
3441 static void free_bufs(struct slgt_info *info, struct slgt_desc *bufs, int count) in free_bufs() argument
3445 if (bufs[i].buf == NULL) in free_bufs()
3447 pci_free_consistent(info->pdev, DMABUFSIZE, bufs[i].buf, bufs[i].buf_dma_addr); in free_bufs()
3448 bufs[i].buf = NULL; in free_bufs()
3470 if (info->bufs) { in free_dma_bufs()