Lines Matching refs:instance
47 struct sta2x11_instance *instance;
49 instance = kzalloc(sizeof(*instance), GFP_ATOMIC);
50 if (!instance)
53 instance->bus0 = pdev->subordinate->number + 1;
57 /* First instance: register your own swiotlb area */
62 list_add(&instance->list, &sta2x11_instance_list);
71 struct sta2x11_instance *instance;
74 list_for_each_entry(instance, &sta2x11_instance_list, list) {
75 ep = pdev->bus->number - instance->bus0;
77 return instance;
84 struct sta2x11_instance *instance;
86 instance = sta2x11_pdev_to_instance(pdev);
87 if (!instance)
90 return pdev->bus->number - instance->bus0;
103 struct sta2x11_instance *instance = sta2x11_pdev_to_instance(pdev);
105 if (!instance) /* either a sta2x11 bridge or another ST device */
132 struct sta2x11_instance *instance = sta2x11_pdev_to_instance(pdev);
137 if (!instance)
171 struct sta2x11_instance *instance;
174 instance = sta2x11_pdev_to_instance(pdev);
175 if (!instance)
178 return instance->map + ep;