Lines Matching refs:sdev
176 int (*probe)(struct ssam_device *sdev);
177 void (*remove)(struct ssam_device *sdev);
240 int ssam_device_add(struct ssam_device *sdev);
241 void ssam_device_remove(struct ssam_device *sdev);
255 static inline struct ssam_device *ssam_device_get(struct ssam_device *sdev) in ssam_device_get() argument
257 return sdev ? to_ssam_device(get_device(&sdev->dev)) : NULL; in ssam_device_get()
270 static inline void ssam_device_put(struct ssam_device *sdev) in ssam_device_put() argument
272 if (sdev) in ssam_device_put()
273 put_device(&sdev->dev); in ssam_device_put()
283 static inline void *ssam_device_get_drvdata(struct ssam_device *sdev) in ssam_device_get_drvdata() argument
285 return dev_get_drvdata(&sdev->dev); in ssam_device_get_drvdata()
293 static inline void ssam_device_set_drvdata(struct ssam_device *sdev, void *data) in ssam_device_set_drvdata() argument
295 dev_set_drvdata(&sdev->dev, data); in ssam_device_set_drvdata()
350 static int name(struct ssam_device *sdev) \
352 return __raw_##name(sdev->ctrl, sdev->uid.target, \
353 sdev->uid.instance); \
384 static int name(struct ssam_device *sdev, const atype *arg) \
386 return __raw_##name(sdev->ctrl, sdev->uid.target, \
387 sdev->uid.instance, arg); \
418 static int name(struct ssam_device *sdev, rtype *ret) \
420 return __raw_##name(sdev->ctrl, sdev->uid.target, \
421 sdev->uid.instance, ret); \