Lines Matching refs:svc
357 static inline struct tb_service *tb_service_get(struct tb_service *svc) in tb_service_get() argument
359 if (svc) in tb_service_get()
360 get_device(&svc->dev); in tb_service_get()
361 return svc; in tb_service_get()
364 static inline void tb_service_put(struct tb_service *svc) in tb_service_put() argument
366 if (svc) in tb_service_put()
367 put_device(&svc->dev); in tb_service_put()
392 int (*probe)(struct tb_service *svc, const struct tb_service_id *id);
393 void (*remove)(struct tb_service *svc);
394 void (*shutdown)(struct tb_service *svc);
407 static inline void *tb_service_get_drvdata(const struct tb_service *svc) in tb_service_get_drvdata() argument
409 return dev_get_drvdata(&svc->dev); in tb_service_get_drvdata()
412 static inline void tb_service_set_drvdata(struct tb_service *svc, void *data) in tb_service_set_drvdata() argument
414 dev_set_drvdata(&svc->dev, data); in tb_service_set_drvdata()
417 static inline struct tb_xdomain *tb_service_parent(struct tb_service *svc) in tb_service_parent() argument
419 return tb_to_xdomain(svc->dev.parent); in tb_service_parent()