Lines Matching refs:instance
49 struct sta2x11_instance *instance; in sta2x11_new_instance() local
51 instance = kzalloc(sizeof(*instance), GFP_ATOMIC); in sta2x11_new_instance()
52 if (!instance) in sta2x11_new_instance()
55 instance->bus0 = pdev->subordinate->number + 1; in sta2x11_new_instance()
64 list_add(&instance->list, &sta2x11_instance_list); in sta2x11_new_instance()
73 struct sta2x11_instance *instance; in sta2x11_pdev_to_instance() local
76 list_for_each_entry(instance, &sta2x11_instance_list, list) { in sta2x11_pdev_to_instance()
77 ep = pdev->bus->number - instance->bus0; in sta2x11_pdev_to_instance()
79 return instance; in sta2x11_pdev_to_instance()
86 struct sta2x11_instance *instance; in sta2x11_pdev_to_ep() local
88 instance = sta2x11_pdev_to_instance(pdev); in sta2x11_pdev_to_ep()
89 if (!instance) in sta2x11_pdev_to_ep()
92 return pdev->bus->number - instance->bus0; in sta2x11_pdev_to_ep()
105 struct sta2x11_instance *instance = sta2x11_pdev_to_instance(pdev); in sta2x11_setup_pdev() local
107 if (!instance) /* either a sta2x11 bridge or another ST device */ in sta2x11_setup_pdev()
134 struct sta2x11_instance *instance = sta2x11_pdev_to_instance(pdev); in sta2x11_map_ep() local
139 if (!instance) in sta2x11_map_ep()
172 struct sta2x11_instance *instance; in sta2x11_pdev_to_mapping() local
175 instance = sta2x11_pdev_to_instance(pdev); in sta2x11_pdev_to_mapping()
176 if (!instance) in sta2x11_pdev_to_mapping()
179 return instance->map + ep; in sta2x11_pdev_to_mapping()