Lines Matching refs:umc
14 #include <linux/uwb/umc.h>
93 struct umc_dev *umc;
97 umc = umc_device_create(&card->pci->dev, n);
98 if (umc == NULL)
108 umc->version = UWBCAPDATA_TO_VERSION(capdata);
109 umc->cap_id = n == 0 ? 0 : UWBCAPDATA_TO_CAP_ID(capdata);
110 umc->bar = bar;
111 umc->resource.start = pci_resource_start(card->pci, bar)
113 umc->resource.end = umc->resource.start
115 umc->resource.name = dev_name(&umc->dev);
116 umc->resource.flags = card->pci->resource[bar].flags;
117 umc->resource.parent = &card->pci->resource[bar];
118 umc->irq = card->pci->irq;
120 err = umc_device_register(umc);
123 card->devs[n] = umc;
127 kfree(umc);
133 struct umc_dev *umc = card->devs[n];
135 if (umc != NULL)
136 umc_device_unregister(umc);