Lines Matching refs:attributes

978 	struct vme_dma_attr *attributes;  in vme_dma_pattern_attribute()  local
981 attributes = kmalloc(sizeof(*attributes), GFP_KERNEL); in vme_dma_pattern_attribute()
982 if (!attributes) in vme_dma_pattern_attribute()
989 attributes->type = VME_DMA_PATTERN; in vme_dma_pattern_attribute()
990 attributes->private = (void *)pattern_attr; in vme_dma_pattern_attribute()
995 return attributes; in vme_dma_pattern_attribute()
998 kfree(attributes); in vme_dma_pattern_attribute()
1016 struct vme_dma_attr *attributes; in vme_dma_pci_attribute() local
1021 attributes = kmalloc(sizeof(*attributes), GFP_KERNEL); in vme_dma_pci_attribute()
1022 if (!attributes) in vme_dma_pci_attribute()
1029 attributes->type = VME_DMA_PCI; in vme_dma_pci_attribute()
1030 attributes->private = (void *)pci_attr; in vme_dma_pci_attribute()
1034 return attributes; in vme_dma_pci_attribute()
1037 kfree(attributes); in vme_dma_pci_attribute()
1059 struct vme_dma_attr *attributes; in vme_dma_vme_attribute() local
1062 attributes = kmalloc(sizeof(*attributes), GFP_KERNEL); in vme_dma_vme_attribute()
1063 if (!attributes) in vme_dma_vme_attribute()
1070 attributes->type = VME_DMA_VME; in vme_dma_vme_attribute()
1071 attributes->private = (void *)vme_attr; in vme_dma_vme_attribute()
1078 return attributes; in vme_dma_vme_attribute()
1081 kfree(attributes); in vme_dma_vme_attribute()
1094 void vme_dma_free_attribute(struct vme_dma_attr *attributes) in vme_dma_free_attribute() argument
1096 kfree(attributes->private); in vme_dma_free_attribute()
1097 kfree(attributes); in vme_dma_free_attribute()