Lines Matching refs:svc
362 static inline struct tb_service *tb_service_get(struct tb_service *svc) in tb_service_get() argument
364 if (svc) in tb_service_get()
365 get_device(&svc->dev); in tb_service_get()
366 return svc; in tb_service_get()
369 static inline void tb_service_put(struct tb_service *svc) in tb_service_put() argument
371 if (svc) in tb_service_put()
372 put_device(&svc->dev); in tb_service_put()
397 int (*probe)(struct tb_service *svc, const struct tb_service_id *id);
398 void (*remove)(struct tb_service *svc);
399 void (*shutdown)(struct tb_service *svc);
412 static inline void *tb_service_get_drvdata(const struct tb_service *svc) in tb_service_get_drvdata() argument
414 return dev_get_drvdata(&svc->dev); in tb_service_get_drvdata()
417 static inline void tb_service_set_drvdata(struct tb_service *svc, void *data) in tb_service_set_drvdata() argument
419 dev_set_drvdata(&svc->dev, data); in tb_service_set_drvdata()
422 static inline struct tb_xdomain *tb_service_parent(struct tb_service *svc) in tb_service_parent() argument
424 return tb_to_xdomain(svc->dev.parent); in tb_service_parent()