Lines Matching refs:svc
22 const struct tb_service *svc) in match_service_id() argument
25 if (strcmp(id->protocol_key, svc->key)) in match_service_id()
30 if (id->protocol_id != svc->prtcid) in match_service_id()
35 if (id->protocol_version != svc->prtcvers) in match_service_id()
40 if (id->protocol_revision != svc->prtcrevs) in match_service_id()
52 struct tb_service *svc; in __tb_service_match() local
54 svc = tb_to_service(dev); in __tb_service_match()
55 if (!svc) in __tb_service_match()
63 if (match_service_id(ids, svc)) in __tb_service_match()
77 struct tb_service *svc = tb_to_service(dev); in tb_service_probe() local
84 return driver->probe(svc, id); in tb_service_probe()
89 struct tb_service *svc = tb_to_service(dev); in tb_service_remove() local
94 driver->remove(svc); in tb_service_remove()
100 struct tb_service *svc; in tb_service_shutdown() local
102 svc = tb_to_service(dev); in tb_service_shutdown()
103 if (!svc || !dev->driver) in tb_service_shutdown()
108 driver->shutdown(svc); in tb_service_shutdown()