Lines Matching refs:quirk
46 static inline void register_quirk(struct xen_pcibk_config_quirk *quirk) in register_quirk() argument
48 list_add_tail(&quirk->quirks_list, &xen_pcibk_quirks); in register_quirk()
97 struct xen_pcibk_config_quirk *quirk; in xen_pcibk_config_quirks_init() local
100 quirk = kzalloc(sizeof(*quirk), GFP_KERNEL); in xen_pcibk_config_quirks_init()
101 if (!quirk) { in xen_pcibk_config_quirks_init()
106 quirk->devid.vendor = dev->vendor; in xen_pcibk_config_quirks_init()
107 quirk->devid.device = dev->device; in xen_pcibk_config_quirks_init()
108 quirk->devid.subvendor = dev->subsystem_vendor; in xen_pcibk_config_quirks_init()
109 quirk->devid.subdevice = dev->subsystem_device; in xen_pcibk_config_quirks_init()
110 quirk->devid.class = 0; in xen_pcibk_config_quirks_init()
111 quirk->devid.class_mask = 0; in xen_pcibk_config_quirks_init()
112 quirk->devid.driver_data = 0UL; in xen_pcibk_config_quirks_init()
114 quirk->pdev = dev; in xen_pcibk_config_quirks_init()
116 register_quirk(quirk); in xen_pcibk_config_quirks_init()
128 struct xen_pcibk_config_quirk *quirk; in xen_pcibk_config_quirk_release() local
131 quirk = xen_pcibk_find_quirk(dev); in xen_pcibk_config_quirk_release()
132 if (!quirk) { in xen_pcibk_config_quirk_release()
137 list_del(&quirk->quirks_list); in xen_pcibk_config_quirk_release()
138 kfree(quirk); in xen_pcibk_config_quirk_release()