Lines Matching refs:attributes

801 	struct vme_dma_attr *attributes;  in vme_dma_pattern_attribute()  local
804 attributes = kmalloc(sizeof(struct vme_dma_attr), GFP_KERNEL); in vme_dma_pattern_attribute()
805 if (attributes == NULL) { in vme_dma_pattern_attribute()
816 attributes->type = VME_DMA_PATTERN; in vme_dma_pattern_attribute()
817 attributes->private = (void *)pattern_attr; in vme_dma_pattern_attribute()
822 return attributes; in vme_dma_pattern_attribute()
825 kfree(attributes); in vme_dma_pattern_attribute()
836 struct vme_dma_attr *attributes; in vme_dma_pci_attribute() local
841 attributes = kmalloc(sizeof(struct vme_dma_attr), GFP_KERNEL); in vme_dma_pci_attribute()
842 if (attributes == NULL) { in vme_dma_pci_attribute()
855 attributes->type = VME_DMA_PCI; in vme_dma_pci_attribute()
856 attributes->private = (void *)pci_attr; in vme_dma_pci_attribute()
860 return attributes; in vme_dma_pci_attribute()
863 kfree(attributes); in vme_dma_pci_attribute()
875 struct vme_dma_attr *attributes; in vme_dma_vme_attribute() local
878 attributes = kmalloc( in vme_dma_vme_attribute()
880 if (attributes == NULL) { in vme_dma_vme_attribute()
891 attributes->type = VME_DMA_VME; in vme_dma_vme_attribute()
892 attributes->private = (void *)vme_attr; in vme_dma_vme_attribute()
899 return attributes; in vme_dma_vme_attribute()
902 kfree(attributes); in vme_dma_vme_attribute()
911 void vme_dma_free_attribute(struct vme_dma_attr *attributes) in vme_dma_free_attribute() argument
913 kfree(attributes->private); in vme_dma_free_attribute()
914 kfree(attributes); in vme_dma_free_attribute()