id
stringlengths
4
63
text
stringlengths
153
8.81M
ssam_clear_controller(9)
NAME ssam_clear_controller - Remove/clear the main controller reference. SYNOPSIS void ssam_clear_controller (void ); ARGUMENTS void no arguments DESCRIPTION Clears the main controller reference, i.e. sets it to NULL. This function should be called before the controller is shut down. SEE ALSO Kernel file ./d...
ssam_client_bind(9)
NAME ssam_client_bind - Bind an arbitrary client device to the controller. SYNOPSIS struct ssam_controller * ssam_client_bind (struct device *client ); ARGUMENTS client The client device. DESCRIPTION Link an arbitrary client device to the controller by creating a device link between it as consumer and the ...
ssam_client_link(9)
NAME ssam_client_link - Link an arbitrary client device to the controller. SYNOPSIS int ssam_client_link (struct ssam_controller *c , struct device *client ); ARGUMENTS c The controller to link to. client The client device. DESCRIPTION Link an arbitrary client device to the controller by cre...
ssam_controller_caps_load(9)
NAME ssam_controller_caps_load - Load controller capabilities SYNOPSIS int ssam_controller_caps_load (struct device *dev , struct ssam_controller_caps *caps ); ARGUMENTS dev A pointer to the controller device caps Where to store the capabilities in. RETURN Returns zero on success, a negative e...
ssam_controller_caps_load_from_acpi(9)
NAME ssam_controller_caps_load_from_acpi - Load controller capabilities from ACPI _DSM. SYNOPSIS int ssam_controller_caps_load_from_acpi (acpi_handle handle , struct ssam_controller_caps *caps ); ARGUMENTS handle The handle of the ACPI controller/SSH device. caps Where to store the capabilities in...
ssam_controller_caps_load_from_of(9)
NAME ssam_controller_caps_load_from_of - Load controller capabilities from OF/DT. SYNOPSIS int ssam_controller_caps_load_from_of (struct device *dev , struct ssam_controller_caps *caps ); ARGUMENTS dev A pointer to the controller device caps Where to store the capabilities in. RETURN Returns z...
ssam_controller_destroy(9)
NAME ssam_controller_destroy - Destroy the controller and free its resources. SYNOPSIS void ssam_controller_destroy (struct ssam_controller *ctrl ); ARGUMENTS ctrl The controller. DESCRIPTION Ensures that all resources associated with the controller get freed. This function should only be called after the c...
ssam_controller_device(9)
NAME ssam_controller_device - Get the &struct device associated with this controller. SYNOPSIS struct device * ssam_controller_device (struct ssam_controller *c ); ARGUMENTS c The controller for which to get the device. RETURN Returns the struct device associated with this controller, providing its lower-l...
ssam_controller_event_disable(9)
NAME ssam_controller_event_disable - Disable the specified event. SYNOPSIS int ssam_controller_event_disable (struct ssam_controller *ctrl , struct ssam_event_registry reg , struct ssam_event_id id , u8 flags ); ARGUMENTS ctrl The controller to disable the event for. reg The event registry to u...
ssam_controller_event_enable(9)
NAME ssam_controller_event_enable - Enable the specified event. SYNOPSIS int ssam_controller_event_enable (struct ssam_controller *ctrl , struct ssam_event_registry reg , struct ssam_event_id id , u8 flags ); ARGUMENTS ctrl The controller to enable the event for. reg The event registry to use f...
ssam_controller_get(9)
NAME ssam_controller_get - Increment reference count of controller. SYNOPSIS struct ssam_controller * ssam_controller_get (struct ssam_controller *c ); ARGUMENTS c The controller. RETURN Returns the controller provided as input. SEE ALSO Kernel file ./drivers/platform/surface/aggregator/controller.c ss...
ssam_controller_init(9)
NAME ssam_controller_init - Initialize SSAM controller. SYNOPSIS int ssam_controller_init (struct ssam_controller *ctrl , struct serdev_device *serdev ); ARGUMENTS ctrl The controller to initialize. serdev The serial device representing the underlying data transport. DESCRIPTION Initializes the ...
ssam_controller_lock(9)
NAME ssam_controller_lock - Acquire the main controller lock. SYNOPSIS void ssam_controller_lock (struct ssam_controller *c ); ARGUMENTS c The controller to lock. DESCRIPTION This lock must be held for any state transitions, including transition to suspend/resumed states and during shutdown. See ssam_con...
ssam_controller_put(9)
NAME ssam_controller_put - Decrement reference count of controller. SYNOPSIS void ssam_controller_put (struct ssam_controller *c ); ARGUMENTS c The controller. SEE ALSO Kernel file ./drivers/platform/surface/aggregator/controller.c ssh_seq_reset(9), ssh_seq_next(9), ssh_rqid_reset(9), ssh_rqid_next(9...
ssam_controller_receive_buf(9)
NAME ssam_controller_receive_buf - Provide input-data to the controller. SYNOPSIS ssize_t ssam_controller_receive_buf (struct ssam_controller *ctrl , const u8 *buf , size_t n ); ARGUMENTS ctrl The controller. buf The input buffer. n The number of bytes in the input buffer. DE...
ssam_controller_resume(9)
NAME ssam_controller_resume - Resume the controller from suspend. SYNOPSIS int ssam_controller_resume (struct ssam_controller *ctrl ); ARGUMENTS ctrl The controller to resume. DESCRIPTION Resume the controller from the suspended state it was put into via ssam_controller_suspend. This function does not issue d...
ssam_controller_shutdown(9)
NAME ssam_controller_shutdown - Shut down the controller. SYNOPSIS void ssam_controller_shutdown (struct ssam_controller *ctrl ); ARGUMENTS ctrl The controller. DESCRIPTION Shuts down the controller by flushing all pending requests and stopping the transmitter and receiver threads. All requests submitted aft...
ssam_controller_start(9)
NAME ssam_controller_start - Start the receiver and transmitter threads of the controller. SYNOPSIS int ssam_controller_start (struct ssam_controller *ctrl ); ARGUMENTS ctrl The controller. NOTE When this function is called, the controller should be properly hooked up to the serdev core via struct serdev_devi...
ssam_controller_statelock(9)
NAME ssam_controller_statelock - Lock the controller against state transitions. SYNOPSIS void ssam_controller_statelock (struct ssam_controller *c ); ARGUMENTS c The controller to lock. DESCRIPTION Lock the controller against state transitions. Holding this lock guarantees that the controller will not tr...
ssam_controller_stateunlock(9)
NAME ssam_controller_stateunlock - Unlock controller state transitions. SYNOPSIS void ssam_controller_stateunlock (struct ssam_controller *c ); ARGUMENTS c The controller to unlock. DESCRIPTION See ssam_controller_statelock for the corresponding lock function. SEE ALSO Kernel file ./drivers/platform/sur...
ssam_controller_suspend(9)
NAME ssam_controller_suspend - Suspend the controller. SYNOPSIS int ssam_controller_suspend (struct ssam_controller *ctrl ); ARGUMENTS ctrl The controller to suspend. DESCRIPTION Marks the controller as suspended. Note that display-off and D0-exit notifications have to be sent manually before transitioning ...
ssam_controller_write_wakeup(9)
NAME ssam_controller_write_wakeup - Notify the controller that the underlying device has space available for data to be written. SYNOPSIS void ssam_controller_write_wakeup (struct ssam_controller *ctrl ); ARGUMENTS ctrl The controller. SEE ALSO Kernel file ./drivers/platform/surface/aggregator/controller.h ...
ssam_cplt_destroy(9)
NAME ssam_cplt_destroy - Deinitialize the completion system. SYNOPSIS void ssam_cplt_destroy (struct ssam_cplt *cplt ); ARGUMENTS cplt The completion system to deinitialize. DESCRIPTION Deinitialize the given completion system and ensure that all pending, i.e. yet-to-be-completed, event items and requests ha...
ssam_cplt_flush(9)
NAME ssam_cplt_flush - Flush the completion system. SYNOPSIS void ssam_cplt_flush (struct ssam_cplt *cplt ); ARGUMENTS cplt The completion system. DESCRIPTION Flush the completion system by waiting until all currently submitted work items have been completed. NOTE This function does not guarantee that all ...
ssam_cplt_get_event_queue(9)
NAME ssam_cplt_get_event_queue - Get the event queue for the given parameters. SYNOPSIS struct ssam_event_queue * ssam_cplt_get_event_queue (struct ssam_cplt *cplt , u8 tid , u16 rqid ); ARGUMENTS cplt The completion system on which to look for the queue. tid The target ID of the queue. ...
ssam_cplt_init(9)
NAME ssam_cplt_init - Initialize completion system. SYNOPSIS int ssam_cplt_init (struct ssam_cplt *cplt , struct device *dev ); ARGUMENTS cplt The completion system to initialize. dev The device used for logging. SEE ALSO Kernel file ./drivers/platform/surface/aggregator/controller.c ssh_se...
ssam_cplt_submit(9)
NAME ssam_cplt_submit - Submit a work item to the completion system workqueue. SYNOPSIS bool ssam_cplt_submit (struct ssam_cplt *cplt , struct work_struct *work ); ARGUMENTS cplt The completion system. work The work item to submit. SEE ALSO Kernel file ./drivers/platform/surface/aggregator/co...
ssam_cplt_submit_event(9)
NAME ssam_cplt_submit_event - Submit an event to the completion system. SYNOPSIS int ssam_cplt_submit_event (struct ssam_cplt *cplt , struct ssam_event_item *item ); ARGUMENTS cplt The completion system. item The event item to submit. DESCRIPTION Submits the event to the completion system by qu...
ssam_ctrl_notif_d0_entry(9)
NAME ssam_ctrl_notif_d0_entry - Notify EC that the driver/device enters the D0 power state. SYNOPSIS int ssam_ctrl_notif_d0_entry (struct ssam_controller *ctrl ); ARGUMENTS ctrl The controller DESCRIPTION Notifies the EC that the driver has exited a lower-power state and entered the D0 power state. Exact ef...
ssam_ctrl_notif_d0_exit(9)
NAME ssam_ctrl_notif_d0_exit - Notify EC that the driver/device exits the D0 power state. SYNOPSIS int ssam_ctrl_notif_d0_exit (struct ssam_controller *ctrl ); ARGUMENTS ctrl The controller DESCRIPTION Notifies the EC that the driver prepares to exit the D0 power state in favor of a lower-power state. Exact ...
ssam_ctrl_notif_display_off(9)
NAME ssam_ctrl_notif_display_off - Notify EC that the display has been turned off. SYNOPSIS int ssam_ctrl_notif_display_off (struct ssam_controller *ctrl ); ARGUMENTS ctrl The controller. DESCRIPTION Notify the EC that the display has been turned off and the driver may enter a lower-power state. This will p...
ssam_ctrl_notif_display_on(9)
NAME ssam_ctrl_notif_display_on - Notify EC that the display has been turned on. SYNOPSIS int ssam_ctrl_notif_display_on (struct ssam_controller *ctrl ); ARGUMENTS ctrl The controller. DESCRIPTION Notify the EC that the display has been turned back on and the driver has exited its lower-power state. This n...
ssam_device_add(9)
NAME ssam_device_add - Add a SSAM client device. SYNOPSIS int ssam_device_add (struct ssam_device *sdev ); ARGUMENTS sdev The SSAM client device to be added. DESCRIPTION Added client devices must be guaranteed to always have a valid and active controller. Thus, this function will fail with -ENODEV if the ...
ssam_device_alloc(9)
NAME ssam_device_alloc - Allocate and initialize a SSAM client device. SYNOPSIS struct ssam_device * ssam_device_alloc (struct ssam_controller *ctrl , struct ssam_device_uid uid ); ARGUMENTS ctrl The controller under which the device should be added. uid The UID of the device to be added. DESC...
ssam_device_driver_register(9)
NAME ssam_device_driver_register - Register a SSAM client device driver. SYNOPSIS ssam_device_driver_register (drv ); ARGUMENTS drv The driver to register. SEE ALSO Kernel file ./include/linux/surface_aggregator/device.h enum ssam_device_domain(9), enum ssam_virtual_tc(9), struct ssam_device_uid(9), SSAM_...
ssam_device_driver_unregister(9)
NAME ssam_device_driver_unregister - Unregister a SSAM device driver. SYNOPSIS void ssam_device_driver_unregister (struct ssam_device_driver *sdrv ); ARGUMENTS sdrv The driver to unregister. SEE ALSO Kernel file ./drivers/platform/surface/aggregator/bus.c ssam_device_alloc(9), ssam_device_add(9), ssam_d...
ssam_device_get(9)
NAME ssam_device_get - Increment reference count of SSAM client device. SYNOPSIS struct ssam_device * ssam_device_get (struct ssam_device *sdev ); ARGUMENTS sdev The device to increment the reference count of. DESCRIPTION Increments the reference count of the given SSAM client device by incrementing the refer...
ssam_device_get_drvdata(9)
NAME ssam_device_get_drvdata - Get driver-data of SSAM client device. SYNOPSIS void * ssam_device_get_drvdata (struct ssam_device *sdev ); ARGUMENTS sdev The device to get the driver-data from. RETURN Returns the driver-data of the given device, previously set via ssam_device_set_drvdata. SEE ALSO Kernel fi...
ssam_device_get_match(9)
NAME ssam_device_get_match - Find and return the ID matching the device in the ID table of the bound driver. SYNOPSIS const struct ssam_device_id * ssam_device_get_match (const struct ssam_device *dev ); ARGUMENTS dev The device for which to get the matching ID table entry. DESCRIPTION Find the fist match...
ssam_device_get_match_data(9)
NAME ssam_device_get_match_data - Find the ID matching the device in the ID table of the bound driver and return its “driver_data“ member. SYNOPSIS const void * ssam_device_get_match_data (const struct ssam_device *dev ); ARGUMENTS dev The device for which to get the match data. DESCRIPTION Find the fist ...
ssam_device_id_compatible(9)
NAME ssam_device_id_compatible - Check if a device ID matches a UID. SYNOPSIS bool ssam_device_id_compatible (const struct ssam_device_id *id , struct ssam_device_uid uid ); ARGUMENTS id The device ID as potential match. uid The device UID matching against. DESCRIPTION Check if the given ID ...
ssam_device_id_is_null(9)
NAME ssam_device_id_is_null - Check if a device ID is null. SYNOPSIS bool ssam_device_id_is_null (const struct ssam_device_id *id ); ARGUMENTS id The device ID to check. DESCRIPTION Check if a given device ID is null, i.e. all zeros. Used to check for the end of “MODULE_DEVICE_TABLE(ssam, ...)“ or similar l...
ssam_device_id_match(9)
NAME ssam_device_id_match - Find the matching ID table entry for the given UID. SYNOPSIS const struct ssam_device_id * ssam_device_id_match (const struct ssam_device_id *table , const struct ssam_device_uid uid ); ARGUMENTS table The table to search in. uid The UID to matched against the individ...
ssam_device_is_hot_removed(9)
NAME ssam_device_is_hot_removed - Check if the given device has been hot-removed. SYNOPSIS bool ssam_device_is_hot_removed (struct ssam_device *sdev ); ARGUMENTS sdev The device to check. DESCRIPTION Checks if the given device has been marked as hot-removed. See ssam_device_mark_hot_removed for more details. ...
ssam_device_mark_hot_removed(9)
NAME ssam_device_mark_hot_removed - Mark the given device as hot-removed. SYNOPSIS void ssam_device_mark_hot_removed (struct ssam_device *sdev ); ARGUMENTS sdev The device to mark as hot-removed. DESCRIPTION Mark the device as having been hot-removed. This signals drivers using the device that communication w...
ssam_device_notifier_register(9)
NAME ssam_device_notifier_register - Register an event notifier for the specified client device. SYNOPSIS int ssam_device_notifier_register (struct ssam_device *sdev , struct ssam_event_notifier *n ); ARGUMENTS sdev The device the notifier should be registered on. n The event notifier to regi...
ssam_device_notifier_unregister(9)
NAME ssam_device_notifier_unregister - Unregister an event notifier for the specified client device. SYNOPSIS int ssam_device_notifier_unregister (struct ssam_device *sdev , struct ssam_event_notifier *n ); ARGUMENTS sdev The device the notifier has been registered on. n The event notifier to...
ssam_device_put(9)
NAME ssam_device_put - Decrement reference count of SSAM client device. SYNOPSIS void ssam_device_put (struct ssam_device *sdev ); ARGUMENTS sdev The device to decrement the reference count of. DESCRIPTION Decrements the reference count of the given SSAM client device by decrementing the reference count of th...
ssam_device_register_clients(9)
NAME ssam_device_register_clients - Register all client devices defined under the given SSAM parent device. SYNOPSIS int ssam_device_register_clients (struct ssam_device *sdev ); ARGUMENTS sdev The parent device under which clients should be registered. DESCRIPTION Register all clients that have via firmw...
ssam_device_remove(9)
NAME ssam_device_remove - Remove a SSAM client device. SYNOPSIS void ssam_device_remove (struct ssam_device *sdev ); ARGUMENTS sdev The device to remove. DESCRIPTION Removes and unregisters the provided SSAM client device. SEE ALSO Kernel file ./drivers/platform/surface/aggregator/bus.c ssam_device_alloc(...
ssam_device_set_drvdata(9)
NAME ssam_device_set_drvdata - Set driver-data of SSAM client device. SYNOPSIS void ssam_device_set_drvdata (struct ssam_device *sdev , void *data ); ARGUMENTS sdev The device to set the driver-data of. data The data to set the device's driver-data pointer to. SEE ALSO Kernel file ./include/l...
ssam_event_item_alloc(9)
NAME ssam_event_item_alloc - Allocate an event item with the given payload size. SYNOPSIS struct ssam_event_item * ssam_event_item_alloc (size_t len , gfp_t flags ); ARGUMENTS len The event payload length. flags The flags used for allocation. DESCRIPTION Allocate an event item with the given ...
ssam_event_item_cache_destroy(9)
NAME ssam_event_item_cache_destroy - Deinitialize the event item cache. SYNOPSIS void ssam_event_item_cache_destroy (void ); ARGUMENTS void no arguments SEE ALSO Kernel file ./drivers/platform/surface/aggregator/controller.c ssh_seq_reset(9), ssh_seq_next(9), ssh_rqid_reset(9), ssh_rqid_next(9), ssam_e...
ssam_event_item_cache_init(9)
NAME ssam_event_item_cache_init - Initialize the event item cache. SYNOPSIS int ssam_event_item_cache_init (void ); ARGUMENTS void no arguments SEE ALSO Kernel file ./drivers/platform/surface/aggregator/controller.c ssh_seq_reset(9), ssh_seq_next(9), ssh_rqid_reset(9), ssh_rqid_next(9), ssam_event_matc...
ssam_event_item_free(9)
NAME ssam_event_item_free - Free the provided event item. SYNOPSIS void ssam_event_item_free (struct ssam_event_item *item ); ARGUMENTS item The event item to free. SEE ALSO Kernel file ./drivers/platform/surface/aggregator/controller.c ssh_seq_reset(9), ssh_seq_next(9), ssh_rqid_reset(9), ssh_rqid_next...
ssam_event_matches_notifier(9)
NAME ssam_event_matches_notifier - Test if an event matches a notifier. SYNOPSIS bool ssam_event_matches_notifier (const struct ssam_event_notifier *n , const struct ssam_event *event ); ARGUMENTS n The event notifier to test against. event The event to test. RETURN Returns true if the given ...
ssam_event_queue_init(9)
NAME ssam_event_queue_init - Initialize an event queue. SYNOPSIS void ssam_event_queue_init (struct ssam_cplt *cplt , struct ssam_event_queue *evq ); ARGUMENTS cplt The completion system on which the queue resides. evq The event queue to initialize. SEE ALSO Kernel file ./drivers/platform/su...
ssam_event_queue_is_empty(9)
NAME ssam_event_queue_is_empty - Check if the event queue is empty. SYNOPSIS bool ssam_event_queue_is_empty (struct ssam_event_queue *q ); ARGUMENTS q The event queue. SEE ALSO Kernel file ./drivers/platform/surface/aggregator/controller.c ssh_seq_reset(9), ssh_seq_next(9), ssh_rqid_reset(9), ssh_rqi...
ssam_event_queue_pop(9)
NAME ssam_event_queue_pop - Pop the next event item from the event queue. SYNOPSIS struct ssam_event_item * ssam_event_queue_pop (struct ssam_event_queue *q ); ARGUMENTS q The event queue. DESCRIPTION Returns and removes the next event item from the queue. Returns NULL If there is no event item left. SEE ...
ssam_event_queue_push(9)
NAME ssam_event_queue_push - Push an event item to the event queue. SYNOPSIS void ssam_event_queue_push (struct ssam_event_queue *q , struct ssam_event_item *item ); ARGUMENTS q The event queue. item The item to add. SEE ALSO Kernel file ./drivers/platform/surface/aggregator/controller.c ...
ssam_get_controller(9)
NAME ssam_get_controller - Get reference to SSAM controller. SYNOPSIS struct ssam_controller * ssam_get_controller (void ); ARGUMENTS void no arguments DESCRIPTION Returns a reference to the SSAM controller of the system or NULL if there is none, it hasn't been set up yet, or it has already been unregister...
ssam_get_firmware_version(9)
NAME ssam_get_firmware_version - Get the SAM/EC firmware version. SYNOPSIS int ssam_get_firmware_version (struct ssam_controller *ctrl , u32 *version ); ARGUMENTS ctrl The controller. version Where to store the version number. RETURN Returns zero on success or the status of the executed SAM reques...
ssam_irq_arm_for_wakeup(9)
NAME ssam_irq_arm_for_wakeup - Arm the EC IRQ for wakeup, if enabled. SYNOPSIS int ssam_irq_arm_for_wakeup (struct ssam_controller *ctrl ); ARGUMENTS ctrl The controller for which the IRQ should be armed. DESCRIPTION Sets up the IRQ so that it can be used to wake the device. Specifically, this function ena...
ssam_irq_disarm_wakeup(9)
NAME ssam_irq_disarm_wakeup - Disarm the wakeup IRQ. SYNOPSIS void ssam_irq_disarm_wakeup (struct ssam_controller *ctrl ); ARGUMENTS ctrl The controller for which the IRQ should be disarmed. DESCRIPTION Disarm the IRQ previously set up for wake via ssam_irq_arm_for_wakeup. This function is intended to disarm...
ssam_irq_free(9)
NAME ssam_irq_free - Free SAM EC wakeup-GPIO interrupt. SYNOPSIS void ssam_irq_free (struct ssam_controller *ctrl ); ARGUMENTS ctrl The controller for which the IRQ should be freed. DESCRIPTION Free the wakeup-GPIO IRQ previously set-up via ssam_irq_setup. SEE ALSO Kernel file ./drivers/platform/surface/ag...
ssam_irq_setup(9)
NAME ssam_irq_setup - Set up SAM EC wakeup-GPIO interrupt. SYNOPSIS int ssam_irq_setup (struct ssam_controller *ctrl ); ARGUMENTS ctrl The controller for which the IRQ should be set up. DESCRIPTION Set up an IRQ for the wakeup-GPIO pin of the SAM EC. This IRQ can be used to wake the device from a low po...
ssam_nf_call(9)
NAME ssam_nf_call - Call notification callbacks for the provided event. SYNOPSIS void ssam_nf_call (struct ssam_nf *nf , struct device *dev , u16 rqid , struct ssam_event *event ); ARGUMENTS nf The notifier system dev The associated device, only used for logging. rqid The reque...
ssam_nf_destroy(9)
NAME ssam_nf_destroy - Deinitialize the notifier system. SYNOPSIS void ssam_nf_destroy (struct ssam_nf *nf ); ARGUMENTS nf The notifier system to deinitialize. SEE ALSO Kernel file ./drivers/platform/surface/aggregator/controller.c ssh_seq_reset(9), ssh_seq_next(9), ssh_rqid_reset(9), ssh_rqid_next(9)...
ssam_nf_head_destroy(9)
NAME ssam_nf_head_destroy - Deinitialize the given notifier head. SYNOPSIS void ssam_nf_head_destroy (struct ssam_nf_head *nh ); ARGUMENTS nh The notifier head to deinitialize. SEE ALSO Kernel file ./drivers/platform/surface/aggregator/controller.c ssh_seq_reset(9), ssh_seq_next(9), ssh_rqid_reset(9), ...
ssam_nf_head_init(9)
NAME ssam_nf_head_init - Initialize the given notifier head. SYNOPSIS int ssam_nf_head_init (struct ssam_nf_head *nh ); ARGUMENTS nh The notifier head to initialize. SEE ALSO Kernel file ./drivers/platform/surface/aggregator/controller.c ssh_seq_reset(9), ssh_seq_next(9), ssh_rqid_reset(9), ssh_rqid_n...
ssam_nf_init(9)
NAME ssam_nf_init - Initialize the notifier system. SYNOPSIS int ssam_nf_init (struct ssam_nf *nf ); ARGUMENTS nf The notifier system to initialize. SEE ALSO Kernel file ./drivers/platform/surface/aggregator/controller.c ssh_seq_reset(9), ssh_seq_next(9), ssh_rqid_reset(9), ssh_rqid_next(9), ssam_eve...
ssam_nf_refcount_dec(9)
NAME ssam_nf_refcount_dec - Decrement reference-/activation-count of the given event. SYNOPSIS struct ssam_nf_refcount_entry * ssam_nf_refcount_dec (struct ssam_nf *nf , struct ssam_event_registry reg , struct ssam_event_id id ); ARGUMENTS nf The notifier system reference. reg The registry us...
ssam_nf_refcount_dec_free(9)
NAME ssam_nf_refcount_dec_free - Decrement reference-/activation-count of the given event and free its entry if the reference count reaches zero. SYNOPSIS void ssam_nf_refcount_dec_free (struct ssam_nf *nf , struct ssam_event_registry reg , struct ssam_event_id id ); ARGUMENTS nf The notifier system referenc...
ssam_nf_refcount_disable_free(9)
NAME ssam_nf_refcount_disable_free - Disable event for reference count entry if it is no longer in use and free the corresponding entry. SYNOPSIS int ssam_nf_refcount_disable_free (struct ssam_controller *ctrl , struct ssam_nf_refcount_entry *entry , u8 flags , bool ec ); ARGUMENTS ctrl The controller to disab...
ssam_nf_refcount_empty(9)
NAME ssam_nf_refcount_empty - Test if the notification system has any enabled/active events. SYNOPSIS bool ssam_nf_refcount_empty (struct ssam_nf *nf ); ARGUMENTS nf The notification system. SEE ALSO Kernel file ./drivers/platform/surface/aggregator/controller.c ssh_seq_reset(9), ssh_seq_next(9), ssh_rqid...
ssam_nf_refcount_enable(9)
NAME ssam_nf_refcount_enable - Enable event for reference count entry if it has not already been enabled. SYNOPSIS int ssam_nf_refcount_enable (struct ssam_controller *ctrl , struct ssam_nf_refcount_entry *entry , u8 flags ); ARGUMENTS ctrl The controller to enable the event on. entry The referen...
ssam_nf_refcount_inc(9)
NAME ssam_nf_refcount_inc - Increment reference-/activation-count of the given event. SYNOPSIS struct ssam_nf_refcount_entry * ssam_nf_refcount_inc (struct ssam_nf *nf , struct ssam_event_registry reg , struct ssam_event_id id ); ARGUMENTS nf The notifier system reference. reg The registry us...
ssam_nfblk_call_chain(9)
NAME ssam_nfblk_call_chain - Call event notifier callbacks of the given chain. SYNOPSIS int ssam_nfblk_call_chain (struct ssam_nf_head *nh , struct ssam_event *event ); ARGUMENTS nh The notifier head for which the notifier callbacks should be called. event The event data provided to the callbac...
ssam_nfblk_find(9)
NAME ssam_nfblk_find - Check if a notifier block is registered on the given notifier head. list. SYNOPSIS bool ssam_nfblk_find (struct ssam_nf_head *nh , struct ssam_notifier_block *nb ); ARGUMENTS nh The notifier head on which to search. nb The notifier block to search for. NOTE This funct...
ssam_nfblk_insert(9)
NAME ssam_nfblk_insert - Insert a new notifier block into the given notifier list. SYNOPSIS int ssam_nfblk_insert (struct ssam_nf_head *nh , struct ssam_notifier_block *nb ); ARGUMENTS nh The notifier head into which the block should be inserted. nb The notifier block to add. NOTE This func...
ssam_nfblk_remove(9)
NAME ssam_nfblk_remove - Remove a notifier block from its notifier list. SYNOPSIS void ssam_nfblk_remove (struct ssam_notifier_block *nb ); ARGUMENTS nb The notifier block to be removed. NOTE This function must be synchronized by the caller with respect to other insert, find, and/or remove calls by holdi...
ssam_notifier_disable_registered(9)
NAME ssam_notifier_disable_registered - Disable events for all registered notifiers. SYNOPSIS int ssam_notifier_disable_registered (struct ssam_controller *ctrl ); ARGUMENTS ctrl The controller for which to disable the notifiers/events. DESCRIPTION Disables events for all currently registered notifiers. ...
ssam_notifier_from_errno(9)
NAME ssam_notifier_from_errno - Convert standard error value to notifier return code. SYNOPSIS u32 ssam_notifier_from_errno (int err ); ARGUMENTS err The error code to convert, must be negative (in case of failure) or zero (in case of success). RETURN Returns the notifier return value obtained by converting ...
ssam_notifier_is_empty(9)
NAME ssam_notifier_is_empty - Check if there are any registered notifiers. SYNOPSIS bool ssam_notifier_is_empty (struct ssam_controller *ctrl ); ARGUMENTS ctrl The controller to check on. RETURN Returns true if there are currently no notifiers registered on the controller, false otherwise. SEE ALSO Kernel f...
ssam_notifier_register(9)
NAME ssam_notifier_register - Register an event notifier. SYNOPSIS int ssam_notifier_register (struct ssam_controller *ctrl , struct ssam_event_notifier *n ); ARGUMENTS ctrl The controller to register the notifier on. n The event notifier to register. DESCRIPTION Register an event notifier....
ssam_notifier_restore_registered(9)
NAME ssam_notifier_restore_registered - Restore/re-enable events for all registered notifiers. SYNOPSIS void ssam_notifier_restore_registered (struct ssam_controller *ctrl ); ARGUMENTS ctrl The controller for which to restore the notifiers/events. DESCRIPTION Restores/re-enables all events for which notifier...
ssam_notifier_to_errno(9)
NAME ssam_notifier_to_errno - Convert notifier return code to standard error value. SYNOPSIS int ssam_notifier_to_errno (u32 ret ); ARGUMENTS ret The notifier return value to convert. RETURN Returns the negative error value encoded in ret or zero if ret indicates success. SEE ALSO Kernel file ./include/li...
ssam_notifier_unregister(9)
NAME ssam_notifier_unregister - Unregister an event notifier. SYNOPSIS int ssam_notifier_unregister (struct ssam_controller *ctrl , struct ssam_event_notifier *n ); ARGUMENTS ctrl The controller the notifier has been registered on. n The event notifier to unregister. DESCRIPTION Unregister a...
ssam_notifier_unregister_all(9)
NAME ssam_notifier_unregister_all - Unregister all currently registered notifiers. SYNOPSIS void ssam_notifier_unregister_all (struct ssam_controller *ctrl ); ARGUMENTS ctrl The controller to unregister the notifiers on. DESCRIPTION Unregisters all currently registered notifiers. This function is used to ensu...
ssam_register_clients(9)
NAME ssam_register_clients - Register all client devices defined under the given parent device. SYNOPSIS int ssam_register_clients (struct device *dev , struct ssam_controller *ctrl ); ARGUMENTS dev The parent device under which clients should be registered. ctrl The controller with which clien...
ssam_remove_clients(9)
NAME ssam_remove_clients - Remove SSAM client devices registered as direct children under the given parent device. SYNOPSIS void ssam_remove_clients (struct device *dev ); ARGUMENTS dev The (parent) device to remove all direct clients for. DESCRIPTION Remove all SSAM client devices registered as direct child...
ssam_request_do_sync(9)
NAME ssam_request_do_sync - Execute a synchronous request. SYNOPSIS int ssam_request_do_sync (struct ssam_controller *ctrl , const struct ssam_request *spec , struct ssam_response *rsp ); ARGUMENTS ctrl The controller via which the request will be submitted. spec The request specification and pa...
ssam_request_do_sync_onstack(9)
NAME ssam_request_do_sync_onstack - Execute a synchronous request on the stack. SYNOPSIS ssam_request_do_sync_onstack (ctrl , rqst , rsp , payload_len ); ARGUMENTS ctrl The controller via which the request is submitted. rqst The request specification. rsp The response buffer. ...
ssam_request_do_sync_with_buffer(9)
NAME ssam_request_do_sync_with_buffer - Execute a synchronous request with the provided buffer as back-end for the message buffer. SYNOPSIS int ssam_request_do_sync_with_buffer (struct ssam_controller *ctrl , const struct ssam_request *spec , struct ssam_response *rsp , struct ssam_span *buf ); ARGUMENTS ctrl ...
ssam_request_sync_alloc(9)
NAME ssam_request_sync_alloc - Allocate a synchronous request. SYNOPSIS int ssam_request_sync_alloc (size_t payload_len , gfp_t flags , struct ssam_request_sync **rqst , struct ssam_span *buffer ); ARGUMENTS payload_len The length of the request payload. flags Flags used for allocation. rqst ...
ssam_request_sync_free(9)
NAME ssam_request_sync_free - Free a synchronous request. SYNOPSIS void ssam_request_sync_free (struct ssam_request_sync *rqst ); ARGUMENTS rqst The request to be freed. DESCRIPTION Free a synchronous request and its corresponding buffer allocated with ssam_request_sync_alloc. Do not use for requests alloca...
ssam_request_sync_init(9)
NAME ssam_request_sync_init - Initialize a synchronous request struct. SYNOPSIS int ssam_request_sync_init (struct ssam_request_sync *rqst , enum ssam_request_flags flags ); ARGUMENTS rqst The request to initialize. flags The request flags. DESCRIPTION Initializes the given request struct. Does...
ssam_request_sync_set_data(9)
NAME ssam_request_sync_set_data - Set message data of a synchronous request. SYNOPSIS void ssam_request_sync_set_data (struct ssam_request_sync *rqst , u8 *ptr , size_t len ); ARGUMENTS rqst The request. ptr Pointer to the request message data. len Length of the request message ...
ssam_request_sync_set_resp(9)
NAME ssam_request_sync_set_resp - Set response buffer of a synchronous request. SYNOPSIS void ssam_request_sync_set_resp (struct ssam_request_sync *rqst , struct ssam_response *resp ); ARGUMENTS rqst The request. resp The response buffer. DESCRIPTION Sets the response buffer of a synchronous re...
ssam_request_sync_submit(9)
NAME ssam_request_sync_submit - Submit a synchronous request. SYNOPSIS int ssam_request_sync_submit (struct ssam_controller *ctrl , struct ssam_request_sync *rqst ); ARGUMENTS ctrl The controller with which to submit the request. rqst The request to submit. DESCRIPTION Submit a synchronous requ...