Home
last modified time | relevance | path

Searched refs:ssam_device (Results 1 – 13 of 13) sorted by relevance

/linux/include/linux/surface_aggregator/
H A Ddevice.h169 struct ssam_device { struct
190 int (*probe)(struct ssam_device *sdev); argument
191 void (*remove)(struct ssam_device *sdev);
231 #define to_ssam_device(d) container_of_const(d, struct ssam_device, dev)
250 const struct ssam_device_id *ssam_device_get_match(const struct ssam_device *dev);
252 const void *ssam_device_get_match_data(const struct ssam_device *dev);
254 struct ssam_device *ssam_device_alloc(struct ssam_controller *ctrl,
257 int ssam_device_add(struct ssam_device *sdev);
258 void ssam_device_remove(struct ssam_device *sdev);
268 static inline void ssam_device_mark_hot_removed(struct ssam_device *sdev) in ssam_device_mark_hot_removed()
[all …]
/linux/drivers/platform/surface/aggregator/
H A Dbus.c25 struct ssam_device *sdev = to_ssam_device(dev); in modalias_show()
37 ATTRIBUTE_GROUPS(ssam_device);
43 const struct ssam_device *sdev = to_ssam_device(dev); in ssam_device_uevent()
53 struct ssam_device *sdev = to_ssam_device(dev); in ssam_device_release()
81 struct ssam_device *ssam_device_alloc(struct ssam_controller *ctrl, in ssam_device_alloc()
84 struct ssam_device *sdev; in ssam_device_alloc()
130 int ssam_device_add(struct ssam_device *sdev) in ssam_device_add()
171 void ssam_device_remove(struct ssam_device *sdev) in ssam_device_remove()
265 const struct ssam_device_id *ssam_device_get_match(const struct ssam_device *dev) in ssam_device_get_match()
298 const void *ssam_device_get_match_data(const struct ssam_device *dev) in ssam_device_get_match_data()
[all …]
/linux/drivers/platform/surface/
H A Dsurface_platform_profile.c42 struct ssam_device *sdev;
64 static int ssam_tmp_profile_get(struct ssam_device *sdev, enum ssam_tmp_profile *p) in ssam_tmp_profile_get()
77 static int ssam_tmp_profile_set(struct ssam_device *sdev, enum ssam_tmp_profile p) in ssam_tmp_profile_set()
84 static int ssam_fan_profile_set(struct ssam_device *sdev, enum ssam_fan_profile p) in ssam_fan_profile_set()
91 static int convert_ssam_tmp_to_profile(struct ssam_device *sdev, enum ssam_tmp_profile p) in convert_ssam_tmp_to_profile()
113 static int convert_profile_to_ssam_tmp(struct ssam_device *sdev, enum platform_profile_option p) in convert_profile_to_ssam_tmp()
135 static int convert_profile_to_ssam_fan(struct ssam_device *sdev, enum platform_profile_option p) in convert_profile_to_ssam_fan()
204 static int surface_platform_profile_probe(struct ssam_device *sdev) in surface_platform_profile_probe()
227 static void surface_platform_profile_remove(struct ssam_device *sdev) in surface_platform_profile_remove()
H A Dsurface_aggregator_hub.c40 struct ssam_device *sdev;
119 struct ssam_device *sdev = to_ssam_device(dev); in ssam_hub_mark_hot_removed()
155 static int ssam_hub_probe(struct ssam_device *sdev) in ssam_hub_probe()
196 static void ssam_hub_remove(struct ssam_device *sdev) in ssam_hub_remove()
H A Dsurface_aggregator_tabletsw.c37 struct ssam_device *sdev;
117 static int ssam_tablet_sw_probe(struct ssam_device *sdev) in ssam_tablet_sw_probe()
192 static void ssam_tablet_sw_remove(struct ssam_device *sdev) in ssam_tablet_sw_remove()
/linux/drivers/hwmon/
H A Dsurface_temp.c55 static int ssam_tmp_get_available_sensors(struct ssam_device *sdev, s16 *sensors) in ssam_tmp_get_available_sensors()
68 static int ssam_tmp_get_temperature(struct ssam_device *sdev, u8 iid, long *temperature) in ssam_tmp_get_temperature()
82 static int ssam_tmp_get_name(struct ssam_device *sdev, u8 iid, char *buf, size_t buf_len) in ssam_tmp_get_name()
112 struct ssam_device *sdev;
182 static int ssam_temp_probe(struct ssam_device *sdev) in ssam_temp_probe()
H A Dsurface_fan.c33 struct ssam_device *sdev = dev_get_drvdata(dev); in surface_fan_hwmon_read()
61 static int surface_fan_probe(struct ssam_device *sdev) in surface_fan_probe()
/linux/drivers/power/supply/
H A Dsurface_charger.c51 struct ssam_device *sdev;
174 static void spwr_ac_init(struct spwr_ac_device *ac, struct ssam_device *sdev, in spwr_ac_init()
231 static int surface_ac_probe(struct ssam_device *sdev) in surface_ac_probe()
250 static void surface_ac_remove(struct ssam_device *sdev) in surface_ac_remove()
H A Dsurface_battery.c120 struct ssam_device *sdev;
721 static void spwr_battery_init(struct spwr_battery_device *bat, struct ssam_device *sdev, in spwr_battery_init()
817 static int surface_battery_probe(struct ssam_device *sdev) in surface_battery_probe()
836 static void surface_battery_remove(struct ssam_device *sdev) in surface_battery_remove()
/linux/Documentation/driver-api/surface_aggregator/
H A Dclient.rst4 .. |ssam_device| replace:: :c:type:`struct ssam_device <ssam_device>` substdef
94 means, it should be provided as |ssam_device| via the SSAM client device
122 |ssam_device| via its UID (:c:type:`struct ssam_device.uid <ssam_device>`)
148 :c:type:`struct ssam_device.ctrl <ssam_device>` member. This reference is
287 |ssam_device|, are also provided. These can, for example, be used as
301 static int ssam_bat_get_sta(struct ssam_device *sdev, __le32 *ret);
317 more. For |ssam_device| type clients, the |ssam_device_notifier_register| and
359 int setup_notifier(struct ssam_device *sdev,
H A Doverview.rst42 (:c:type:`struct ssam_device <ssam_device>`) has been implemented.
H A Dinternal.rst28 .. |ssam_device| replace:: :c:type:`struct ssam_device <ssam_device>` substdef
87 implemented as platform devices, via |ssam_device| and |ssam_device_driver|
/linux/drivers/hid/surface-hid/
H A Dsurface_hid.c198 static int surface_hid_probe(struct ssam_device *sdev) in surface_hid_probe()
227 static void surface_hid_remove(struct ssam_device *sdev) in surface_hid_remove()