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