Lines Matching refs:svc
391 static inline struct tb_service *tb_service_get(struct tb_service *svc) in tb_service_get() argument
393 if (svc) in tb_service_get()
394 get_device(&svc->dev); in tb_service_get()
395 return svc; in tb_service_get()
398 static inline void tb_service_put(struct tb_service *svc) in tb_service_put() argument
400 if (svc) in tb_service_put()
401 put_device(&svc->dev); in tb_service_put()
426 int (*probe)(struct tb_service *svc, const struct tb_service_id *id);
427 void (*remove)(struct tb_service *svc);
428 void (*shutdown)(struct tb_service *svc);
441 static inline void *tb_service_get_drvdata(const struct tb_service *svc) in tb_service_get_drvdata() argument
443 return dev_get_drvdata(&svc->dev); in tb_service_get_drvdata()
446 static inline void tb_service_set_drvdata(struct tb_service *svc, void *data) in tb_service_set_drvdata() argument
448 dev_set_drvdata(&svc->dev, data); in tb_service_set_drvdata()
451 static inline struct tb_xdomain *tb_service_parent(struct tb_service *svc) in tb_service_parent() argument
453 return tb_to_xdomain(svc->dev.parent); in tb_service_parent()