Home
last modified time | relevance | path

Searched refs:ssam_controller (Results 1 – 12 of 12) sorted by relevance

/linux/drivers/platform/surface/aggregator/
H A Dcontroller.h198 struct ssam_controller { struct
221 container_of(ptr, struct ssam_controller, member) argument
241 ssize_t ssam_controller_receive_buf(struct ssam_controller *ctrl, const u8 *buf, in ssam_controller_receive_buf()
252 static inline void ssam_controller_write_wakeup(struct ssam_controller *ctrl) in ssam_controller_write_wakeup()
257 int ssam_controller_init(struct ssam_controller *ctrl, struct serdev_device *s);
258 int ssam_controller_start(struct ssam_controller *ctrl);
259 void ssam_controller_shutdown(struct ssam_controller *ctrl);
260 void ssam_controller_destroy(struct ssam_controller *ctrl);
262 int ssam_notifier_disable_registered(struct ssam_controller *ctrl);
263 void ssam_notifier_restore_registered(struct ssam_controller *ctrl);
[all …]
H A Dcore.c43 static struct ssam_controller *__ssam_controller;
55 struct ssam_controller *ssam_get_controller(void) in ssam_get_controller()
57 struct ssam_controller *ctrl; in ssam_get_controller()
84 static int ssam_try_set_controller(struct ssam_controller *ctrl) in ssam_try_set_controller()
130 int ssam_client_link(struct ssam_controller *c, struct device *client) in ssam_client_link()
206 struct ssam_controller *ssam_client_bind(struct device *client) in ssam_client_bind()
208 struct ssam_controller *c; in ssam_client_bind()
236 struct ssam_controller *ctrl; in ssam_receive_buf()
258 static int ssam_log_firmware_version(struct ssam_controller *ctrl) in ssam_log_firmware_version()
278 struct ssam_controller *ctrl = dev_get_drvdata(dev); in firmware_version_show()
[all …]
H A Dcontroller.c876 struct device *ssam_controller_device(struct ssam_controller *c) in ssam_controller_device()
884 struct ssam_controller *ctrl = to_ssam_controller(kref, kref); in __ssam_controller_release()
904 struct ssam_controller *ssam_controller_get(struct ssam_controller *c) in ssam_controller_get()
916 void ssam_controller_put(struct ssam_controller *c) in ssam_controller_put()
940 void ssam_controller_statelock(struct ssam_controller *c) in ssam_controller_statelock()
952 void ssam_controller_stateunlock(struct ssam_controller *c) in ssam_controller_stateunlock()
968 void ssam_controller_lock(struct ssam_controller *c) in ssam_controller_lock()
979 void ssam_controller_unlock(struct ssam_controller *c) in ssam_controller_unlock()
988 struct ssam_controller *ctrl = to_ssam_controller(rtl, rtl); in ssam_handle_event()
1010 static bool ssam_notifier_is_empty(struct ssam_controller *ctrl);
[all …]
H A Dbus.c81 struct ssam_device *ssam_device_alloc(struct ssam_controller *ctrl, in ssam_device_alloc()
428 static int ssam_add_client_device(struct device *parent, struct ssam_controller *ctrl, in ssam_add_client_device()
478 int __ssam_register_clients(struct device *parent, struct ssam_controller *ctrl, in __ssam_register_clients()
/linux/include/linux/surface_aggregator/
H A Dcontroller.h106 struct ssam_controller;
108 struct ssam_controller *ssam_get_controller(void);
109 struct ssam_controller *ssam_client_bind(struct device *client);
110 int ssam_client_link(struct ssam_controller *ctrl, struct device *client);
112 struct device *ssam_controller_device(struct ssam_controller *c);
114 struct ssam_controller *ssam_controller_get(struct ssam_controller *c);
115 void ssam_controller_put(struct ssam_controller *c);
117 void ssam_controller_statelock(struct ssam_controller *c);
118 void ssam_controller_stateunlock(struct ssam_controller *c);
121 struct ssam_controller *ctrl,
[all …]
H A Ddevice.h171 struct ssam_controller *ctrl;
254 struct ssam_device *ssam_device_alloc(struct ssam_controller *ctrl,
372 int __ssam_register_clients(struct device *parent, struct ssam_controller *ctrl,
378 static inline int __ssam_register_clients(struct device *parent, struct ssam_controller *ctrl, in __ssam_register_clients()
403 static inline int ssam_register_clients(struct device *dev, struct ssam_controller *ctrl) in ssam_register_clients()
/linux/Documentation/driver-api/surface_aggregator/
H A Dclient.rst3 .. |ssam_controller| replace:: :c:type:`struct ssam_controller <ssam_controller>` substdef
52 All communication with the SAM EC is handled via the |ssam_controller|
71 struct ssam_controller *ctrl;
175 int perform_request(struct ssam_controller *ctrl, u32 arg, u32 *ret)
253 static int __ssam_tmp_perf_mode_set(struct ssam_controller *ctrl, const __le32 *arg);
H A Dinternal.rst27 .. |ssam_controller| replace:: :c:type:`struct ssam_controller <ssam_controller>` substdef
468 |ssam_controller| and the SSH driver. While the lower level transport layers
/linux/drivers/hid/surface-hid/
H A Dsurface_hid_core.h60 struct ssam_controller *ctrl;
H A Dsurface_kbd.c236 struct ssam_controller *ctrl; in surface_kbd_probe()
/linux/drivers/platform/surface/
H A Dsurface_aggregator_registry.c476 struct ssam_controller *ctrl; in ssam_platform_hub_probe()
H A Dsurface_acpi_notify.c29 struct ssam_controller *ctrl;
781 struct ssam_controller *ctrl; in san_probe()