Lines Matching refs:cpu_addr
558 unsigned long *cpu_addr = NULL; in tw_allocate_memory() local
568 cpu_addr = pci_alloc_consistent(tw_dev->tw_pci_dev, size*imax, &dma_handle); in tw_allocate_memory()
569 if (cpu_addr == NULL) { in tw_allocate_memory()
574 …if ((unsigned long)cpu_addr % (tw_dev->tw_pci_dev->device == TW_DEVICE_ID ? TW_ALIGNMENT_6000 : TW… in tw_allocate_memory()
576 pci_free_consistent(tw_dev->tw_pci_dev, size*imax, cpu_addr, dma_handle); in tw_allocate_memory()
580 memset(cpu_addr, 0, size*imax); in tw_allocate_memory()
586 …tw_dev->command_packet_virtual_address[i] = (unsigned long *)((unsigned char *)cpu_addr + (i*size)… in tw_allocate_memory()
590 tw_dev->alignment_virtual_address[i] = (unsigned long *)((unsigned char *)cpu_addr + (i*size)); in tw_allocate_memory()
594 tw_dev->bounce_buffer[i] = (unsigned long *)((unsigned char *)cpu_addr + (i*size)); in tw_allocate_memory()
645 unsigned long *cpu_addr; in tw_chrdev_ioctl() local
673 …cpu_addr = pci_alloc_consistent(tw_dev->tw_pci_dev, data_buffer_length_adjusted+sizeof(TW_New_Ioct… in tw_chrdev_ioctl()
674 if (cpu_addr == NULL) { in tw_chrdev_ioctl()
679 tw_ioctl = (TW_New_Ioctl *)cpu_addr; in tw_chrdev_ioctl()
793 …nt(tw_dev->tw_pci_dev, data_buffer_length_adjusted+sizeof(TW_New_Ioctl) - 1, cpu_addr, dma_handle); in tw_chrdev_ioctl()