Lines Matching refs:svc
24 const struct tb_service *svc) in match_service_id() argument
27 if (strcmp(id->protocol_key, svc->key)) in match_service_id()
32 if (id->protocol_id != svc->prtcid) in match_service_id()
37 if (id->protocol_version != svc->prtcvers) in match_service_id()
42 if (id->protocol_revision != svc->prtcrevs) in match_service_id()
54 struct tb_service *svc; in __tb_service_match() local
56 svc = tb_to_service(dev); in __tb_service_match()
57 if (!svc) in __tb_service_match()
65 if (match_service_id(ids, svc)) in __tb_service_match()
79 struct tb_service *svc = tb_to_service(dev); in tb_service_probe() local
86 return driver->probe(svc, id); in tb_service_probe()
91 struct tb_service *svc = tb_to_service(dev); in tb_service_remove() local
96 driver->remove(svc); in tb_service_remove()
102 struct tb_service *svc; in tb_service_shutdown() local
104 svc = tb_to_service(dev); in tb_service_shutdown()
105 if (!svc || !dev->driver) in tb_service_shutdown()
110 driver->shutdown(svc); in tb_service_shutdown()