Lines Matching defs:instance
48 struct sta2x11_instance *instance;
50 instance = kzalloc(sizeof(*instance), GFP_ATOMIC);
51 if (!instance)
54 instance->bus0 = pdev->subordinate->number + 1;
58 /* First instance: register your own swiotlb area */
63 list_add(&instance->list, &sta2x11_instance_list);
72 struct sta2x11_instance *instance;
75 list_for_each_entry(instance, &sta2x11_instance_list, list) {
76 ep = pdev->bus->number - instance->bus0;
78 return instance;
85 struct sta2x11_instance *instance;
87 instance = sta2x11_pdev_to_instance(pdev);
88 if (!instance)
91 return pdev->bus->number - instance->bus0;
104 struct sta2x11_instance *instance = sta2x11_pdev_to_instance(pdev);
106 if (!instance) /* either a sta2x11 bridge or another ST device */
133 struct sta2x11_instance *instance = sta2x11_pdev_to_instance(pdev);
138 if (!instance)
171 struct sta2x11_instance *instance;
174 instance = sta2x11_pdev_to_instance(pdev);
175 if (!instance)
178 return instance->map + ep;