Lines Matching refs:attributes
982 struct vme_dma_attr *attributes; in vme_dma_pattern_attribute() local
985 attributes = kmalloc(sizeof(*attributes), GFP_KERNEL); in vme_dma_pattern_attribute()
986 if (!attributes) in vme_dma_pattern_attribute()
993 attributes->type = VME_DMA_PATTERN; in vme_dma_pattern_attribute()
994 attributes->private = (void *)pattern_attr; in vme_dma_pattern_attribute()
999 return attributes; in vme_dma_pattern_attribute()
1002 kfree(attributes); in vme_dma_pattern_attribute()
1020 struct vme_dma_attr *attributes; in vme_dma_pci_attribute() local
1025 attributes = kmalloc(sizeof(*attributes), GFP_KERNEL); in vme_dma_pci_attribute()
1026 if (!attributes) in vme_dma_pci_attribute()
1033 attributes->type = VME_DMA_PCI; in vme_dma_pci_attribute()
1034 attributes->private = (void *)pci_attr; in vme_dma_pci_attribute()
1038 return attributes; in vme_dma_pci_attribute()
1041 kfree(attributes); in vme_dma_pci_attribute()
1063 struct vme_dma_attr *attributes; in vme_dma_vme_attribute() local
1066 attributes = kmalloc(sizeof(*attributes), GFP_KERNEL); in vme_dma_vme_attribute()
1067 if (!attributes) in vme_dma_vme_attribute()
1074 attributes->type = VME_DMA_VME; in vme_dma_vme_attribute()
1075 attributes->private = (void *)vme_attr; in vme_dma_vme_attribute()
1082 return attributes; in vme_dma_vme_attribute()
1085 kfree(attributes); in vme_dma_vme_attribute()
1098 void vme_dma_free_attribute(struct vme_dma_attr *attributes) in vme_dma_free_attribute() argument
1100 kfree(attributes->private); in vme_dma_free_attribute()
1101 kfree(attributes); in vme_dma_free_attribute()