Lines Matching defs:svc
362 static inline struct tb_service *tb_service_get(struct tb_service *svc)
364 if (svc)
365 get_device(&svc->dev);
366 return svc;
369 static inline void tb_service_put(struct tb_service *svc)
371 if (svc)
372 put_device(&svc->dev);
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)
414 return dev_get_drvdata(&svc->dev);
417 static inline void tb_service_set_drvdata(struct tb_service *svc, void *data)
419 dev_set_drvdata(&svc->dev, data);
422 static inline struct tb_xdomain *tb_service_parent(struct tb_service *svc)
424 return tb_to_xdomain(svc->dev.parent);