Lines Matching refs:svc
407 static inline struct tb_service *tb_service_get(struct tb_service *svc) in tb_service_get() argument
409 if (svc) in tb_service_get()
410 get_device(&svc->dev); in tb_service_get()
411 return svc; in tb_service_get()
414 static inline void tb_service_put(struct tb_service *svc) in tb_service_put() argument
416 if (svc) in tb_service_put()
417 put_device(&svc->dev); in tb_service_put()
442 int (*probe)(struct tb_service *svc, const struct tb_service_id *id);
443 void (*remove)(struct tb_service *svc);
444 void (*shutdown)(struct tb_service *svc);
457 static inline void *tb_service_get_drvdata(const struct tb_service *svc) in tb_service_get_drvdata() argument
459 return dev_get_drvdata(&svc->dev); in tb_service_get_drvdata()
462 static inline void tb_service_set_drvdata(struct tb_service *svc, void *data) in tb_service_set_drvdata() argument
464 dev_set_drvdata(&svc->dev, data); in tb_service_set_drvdata()
467 static inline struct tb_xdomain *tb_service_parent(struct tb_service *svc) in tb_service_parent() argument
469 return tb_to_xdomain(svc->dev.parent); in tb_service_parent()