Lines Matching refs:svc
25 const struct tb_service *svc) in match_service_id() argument
28 if (strcmp(id->protocol_key, svc->key)) in match_service_id()
33 if (id->protocol_id != svc->prtcid) in match_service_id()
38 if (id->protocol_version != svc->prtcvers) in match_service_id()
43 if (id->protocol_revision != svc->prtcrevs) in match_service_id()
55 struct tb_service *svc; in __tb_service_match() local
57 svc = tb_to_service(dev); in __tb_service_match()
58 if (!svc) in __tb_service_match()
66 if (match_service_id(ids, svc)) in __tb_service_match()
80 struct tb_service *svc = tb_to_service(dev); in tb_service_probe() local
87 return driver->probe(svc, id); in tb_service_probe()
92 struct tb_service *svc = tb_to_service(dev); in tb_service_remove() local
97 driver->remove(svc); in tb_service_remove()
105 struct tb_service *svc; in tb_service_shutdown() local
107 svc = tb_to_service(dev); in tb_service_shutdown()
108 if (!svc || !dev->driver) in tb_service_shutdown()
113 driver->shutdown(svc); in tb_service_shutdown()