Lines Matching refs:attributes
769 struct vme_dma_attr *attributes; in vme_dma_pattern_attribute() local
772 attributes = kmalloc(sizeof(struct vme_dma_attr), GFP_KERNEL); in vme_dma_pattern_attribute()
773 if (attributes == NULL) { in vme_dma_pattern_attribute()
784 attributes->type = VME_DMA_PATTERN; in vme_dma_pattern_attribute()
785 attributes->private = (void *)pattern_attr; in vme_dma_pattern_attribute()
790 return attributes; in vme_dma_pattern_attribute()
793 kfree(attributes); in vme_dma_pattern_attribute()
804 struct vme_dma_attr *attributes; in vme_dma_pci_attribute() local
809 attributes = kmalloc(sizeof(struct vme_dma_attr), GFP_KERNEL); in vme_dma_pci_attribute()
810 if (attributes == NULL) { in vme_dma_pci_attribute()
823 attributes->type = VME_DMA_PCI; in vme_dma_pci_attribute()
824 attributes->private = (void *)pci_attr; in vme_dma_pci_attribute()
828 return attributes; in vme_dma_pci_attribute()
831 kfree(attributes); in vme_dma_pci_attribute()
843 struct vme_dma_attr *attributes; in vme_dma_vme_attribute() local
846 attributes = kmalloc( in vme_dma_vme_attribute()
848 if (attributes == NULL) { in vme_dma_vme_attribute()
859 attributes->type = VME_DMA_VME; in vme_dma_vme_attribute()
860 attributes->private = (void *)vme_attr; in vme_dma_vme_attribute()
867 return attributes; in vme_dma_vme_attribute()
870 kfree(attributes); in vme_dma_vme_attribute()
879 void vme_dma_free_attribute(struct vme_dma_attr *attributes) in vme_dma_free_attribute() argument
881 kfree(attributes->private); in vme_dma_free_attribute()
882 kfree(attributes); in vme_dma_free_attribute()