Lines Matching refs:buf_cpu
2529 length = (cond_le32_to_cpu(d->buf_cpu[(idx + 1) % d->num_desc] in packet_length()
2564 buf_ptr = d->buf_cpu[idx] + offset/4; in dma_rcv_tasklet()
2618 buf_ptr = d->buf_cpu[idx]; in dma_rcv_tasklet()
2627 buf_ptr = d->buf_cpu[idx]; in dma_rcv_tasklet()
2643 buf_ptr = d->buf_cpu[idx]; in dma_rcv_tasklet()
2843 if (d->buf_cpu) { in free_dma_rcv_ctx()
2845 if (d->buf_cpu[i] && d->buf_bus[i]) { in free_dma_rcv_ctx()
2848 d->buf_cpu[i], d->buf_bus[i]); in free_dma_rcv_ctx()
2851 kfree(d->buf_cpu); in free_dma_rcv_ctx()
2890 d->buf_cpu = kmalloc(d->num_desc * sizeof(quadlet_t*), GFP_KERNEL); in alloc_dma_rcv_ctx()
2893 if (d->buf_cpu == NULL || d->buf_bus == NULL) { in alloc_dma_rcv_ctx()
2898 memset(d->buf_cpu, 0, d->num_desc * sizeof(quadlet_t*)); in alloc_dma_rcv_ctx()
2926 d->buf_cpu[i] = pci_alloc_consistent(ohci->dev, in alloc_dma_rcv_ctx()
2931 if (d->buf_cpu[i] != NULL) { in alloc_dma_rcv_ctx()
2932 memset(d->buf_cpu[i], 0, d->buf_size); in alloc_dma_rcv_ctx()