Lines Matching refs:svc
394 static inline struct tb_service *tb_service_get(struct tb_service *svc) in tb_service_get() argument
396 if (svc) in tb_service_get()
397 get_device(&svc->dev); in tb_service_get()
398 return svc; in tb_service_get()
401 static inline void tb_service_put(struct tb_service *svc) in tb_service_put() argument
403 if (svc) in tb_service_put()
404 put_device(&svc->dev); in tb_service_put()
429 int (*probe)(struct tb_service *svc, const struct tb_service_id *id);
430 void (*remove)(struct tb_service *svc);
431 void (*shutdown)(struct tb_service *svc);
444 static inline void *tb_service_get_drvdata(const struct tb_service *svc) in tb_service_get_drvdata() argument
446 return dev_get_drvdata(&svc->dev); in tb_service_get_drvdata()
449 static inline void tb_service_set_drvdata(struct tb_service *svc, void *data) in tb_service_set_drvdata() argument
451 dev_set_drvdata(&svc->dev, data); in tb_service_set_drvdata()
454 static inline struct tb_xdomain *tb_service_parent(struct tb_service *svc) in tb_service_parent() argument
456 return tb_to_xdomain(svc->dev.parent); in tb_service_parent()