id
stringlengths
4
63
text
stringlengths
153
8.81M
iio_device_unregister_trigger_consumer(9)
NAME iio_device_unregister_trigger_consumer - reverse the registration process SYNOPSIS void iio_device_unregister_trigger_consumer (struct iio_dev *indio_dev ); ARGUMENTS indio_dev iio_dev associated with the device that consumed the trigger SEE ALSO Kernel file ./drivers/iio/iio_core_trigger.h iio_device_registe...
iio_device_wakeup_eventset(9)
NAME iio_device_wakeup_eventset - Wakes up the event waitqueue SYNOPSIS void iio_device_wakeup_eventset (struct iio_dev *indio_dev ); ARGUMENTS indio_dev The IIO device DESCRIPTION Wakes up the event waitqueue used for poll and blocking read. Should usually be called when the device is unregistered. SEE ALSO Ker...
iio_dma_buffer_block_done(9)
NAME iio_dma_buffer_block_done - Indicate that a block has been completed SYNOPSIS void iio_dma_buffer_block_done (struct iio_dma_buffer_block *block ); ARGUMENTS block The completed block DESCRIPTION Should be called when the DMA controller has finished handling the block to pass back ownership of the block t...
iio_dma_buffer_block_list_abort(9)
NAME iio_dma_buffer_block_list_abort - Indicate that a list block has been aborted SYNOPSIS void iio_dma_buffer_block_list_abort (struct iio_dma_buffer_queue *queue , struct list_head *list ); ARGUMENTS queue Queue for which to complete blocks. list List of aborted blocks. All blocks in this list...
iio_dma_buffer_disable(9)
NAME iio_dma_buffer_disable - Disable DMA buffer SYNOPSIS int iio_dma_buffer_disable (struct iio_buffer *buffer , struct iio_dev *indio_dev ); ARGUMENTS buffer IIO DMA buffer to disable indio_dev IIO device the buffer is attached to DESCRIPTION Needs to be called when the device that the buffer is att...
iio_dma_buffer_enable(9)
NAME iio_dma_buffer_enable - Enable DMA buffer SYNOPSIS int iio_dma_buffer_enable (struct iio_buffer *buffer , struct iio_dev *indio_dev ); ARGUMENTS buffer IIO buffer to enable indio_dev IIO device the buffer is attached to DESCRIPTION Needs to be called when the device that the buffer is attached to...
iio_dma_buffer_exit(9)
NAME iio_dma_buffer_exit - Cleanup DMA buffer queue SYNOPSIS void iio_dma_buffer_exit (struct iio_dma_buffer_queue *queue ); ARGUMENTS queue Buffer to cleanup DESCRIPTION After this function has completed it is safe to free any resources that are associated with the buffer and are accessed inside the callback ...
iio_dma_buffer_init(9)
NAME iio_dma_buffer_init - Initialize DMA buffer queue SYNOPSIS void iio_dma_buffer_init (struct iio_dma_buffer_queue *queue , struct device *dev , const struct iio_dma_buffer_ops *ops ); ARGUMENTS queue Buffer to initialize dev DMA device ops DMA buffer queue callback operations...
iio_dma_buffer_read(9)
NAME iio_dma_buffer_read - DMA buffer read callback SYNOPSIS int iio_dma_buffer_read (struct iio_buffer *buffer , size_t n , char __user *user_buffer ); ARGUMENTS buffer Buffer to read from n Number of bytes to read user_buffer Userspace buffer to copy the data to DESCRIPTION Should be...
iio_dma_buffer_release(9)
NAME iio_dma_buffer_release - Release final buffer resources SYNOPSIS void iio_dma_buffer_release (struct iio_dma_buffer_queue *queue ); ARGUMENTS queue Buffer to release DESCRIPTION Frees resources that can't yet be freed in iio_dma_buffer_exit. Should be called in the buffers release callback implementation ...
iio_dma_buffer_request_update(9)
NAME iio_dma_buffer_request_update - DMA buffer request_update callback SYNOPSIS int iio_dma_buffer_request_update (struct iio_buffer *buffer ); ARGUMENTS buffer The buffer which to request an update DESCRIPTION Should be used as the iio_dma_buffer_request_update callback for iio_buffer_access_ops struct for DM...
iio_dma_buffer_set_bytes_per_datum(9)
NAME iio_dma_buffer_set_bytes_per_datum - DMA buffer set_bytes_per_datum callback SYNOPSIS int iio_dma_buffer_set_bytes_per_datum (struct iio_buffer *buffer , size_t bpd ); ARGUMENTS buffer Buffer to set the bytes-per-datum for bpd The new bytes-per-datum value DESCRIPTION Should be used as the ...
iio_dma_buffer_set_length(9)
NAME iio_dma_buffer_set_length - DMA buffer set_length callback SYNOPSIS int iio_dma_buffer_set_length (struct iio_buffer *buffer , unsigned int length ); ARGUMENTS buffer Buffer to set the length for length The new buffer length DESCRIPTION Should be used as the set_length callback for iio_buffer_...
iio_dma_buffer_usage(9)
NAME iio_dma_buffer_usage - DMA buffer data_available and space_available callback SYNOPSIS size_t iio_dma_buffer_usage (struct iio_buffer *buf ); ARGUMENTS buf Buffer to check for data availability DESCRIPTION Should be used as the data_available and space_available callbacks for iio_buffer_access_ops struc...
iio_dma_buffer_write(9)
NAME iio_dma_buffer_write - DMA buffer write callback SYNOPSIS int iio_dma_buffer_write (struct iio_buffer *buffer , size_t n , const char __user *user_buffer ); ARGUMENTS buffer Buffer to write to n Number of bytes to read user_buffer Userspace buffer to copy the data from DESCRIPTION...
iio_dmaengine_buffer_alloc(9)
NAME iio_dmaengine_buffer_alloc - Allocate new buffer which uses DMAengine SYNOPSIS struct iio_buffer * iio_dmaengine_buffer_alloc (struct dma_chan *chan ); ARGUMENTS chan DMA channel. DESCRIPTION This allocates a new IIO buffer which internally uses the DMAengine framework to perform its transfers. Once don...
iio_dmaengine_buffer_free(9)
NAME iio_dmaengine_buffer_free - Free dmaengine buffer SYNOPSIS void iio_dmaengine_buffer_free (struct iio_buffer *buffer ); ARGUMENTS buffer Buffer to free DESCRIPTION Frees a buffer previously allocated with iio_dmaengine_buffer_alloc. SEE ALSO Kernel file ./drivers/iio/buffer/industrialio-buffer-dmaen...
iio_dmaengine_buffer_setup_ext(9)
NAME iio_dmaengine_buffer_setup_ext - Setup a DMA buffer for an IIO device SYNOPSIS struct iio_buffer * iio_dmaengine_buffer_setup_ext (struct device *dev , struct iio_dev *indio_dev , const char *channel , enum iio_buffer_direction dir ); ARGUMENTS dev DMA channel consumer device indio_dev IIO devi...
iio_dmaengine_buffer_teardown(9)
NAME iio_dmaengine_buffer_teardown - Releases DMA channel and frees buffer SYNOPSIS void iio_dmaengine_buffer_teardown (struct iio_buffer *buffer ); ARGUMENTS buffer Buffer to free DESCRIPTION Releases the DMA channel and frees the buffer previously setup with iio_dmaengine_buffer_setup_ext. SEE ALSO Kernel ...
iio_dummy_evgen_get_irq(9)
NAME iio_dummy_evgen_get_irq - get an evgen provided irq for a device SYNOPSIS int iio_dummy_evgen_get_irq (void ); ARGUMENTS void no arguments DESCRIPTION This function will give a free allocated irq to a client device. That irq can then be caused to 'fire' by using the associated sysfs file. SEE ALSO Kern...
iio_dummy_evgen_release_irq(9)
NAME iio_dummy_evgen_release_irq - give the irq back. SYNOPSIS void iio_dummy_evgen_release_irq (int irq ); ARGUMENTS irq irq being returned to the pool DESCRIPTION Used by client driver instances to give the irqs back when they disconnect SEE ALSO Kernel file ./drivers/iio/dummy/iio_dummy_evgen.c struct ii...
iio_dummy_init_device(9)
NAME iio_dummy_init_device - device instance specific init SYNOPSIS int iio_dummy_init_device (struct iio_dev *indio_dev ); ARGUMENTS indio_dev the iio device structure DESCRIPTION Most drivers have one of these to set up default values, reset the device to known state etc. SEE ALSO Kernel file ./drivers/iio/dumm...
iio_dummy_probe(9)
NAME iio_dummy_probe - device instance probe SYNOPSIS struct iio_sw_device * iio_dummy_probe (const char *name ); ARGUMENTS name name of this instance. DESCRIPTION Arguments are bus type specific. I2C: iio_dummy_probe(struct i2c_client *client, const struct i2c_device_id *id) SPI: iio_dummy_probe(struct spi_...
iio_dummy_read_raw(9)
NAME iio_dummy_read_raw - data read function. SYNOPSIS int iio_dummy_read_raw (struct iio_dev *indio_dev , struct iio_chan_spec const *chan , int *val , int *val2 , long mask ); ARGUMENTS indio_dev the struct iio_dev associated with this device instance chan the channel whose data is to be read ...
iio_dummy_remove(9)
NAME iio_dummy_remove - device instance removal function SYNOPSIS int iio_dummy_remove (struct iio_sw_device *swd ); ARGUMENTS swd pointer to software IIO device abstraction DESCRIPTION Parameters follow those of iio_dummy_probe for buses. SEE ALSO Kernel file ./drivers/iio/dummy/iio_simple_dummy.c struct i...
iio_dummy_write_raw(9)
NAME iio_dummy_write_raw - data write function. SYNOPSIS int iio_dummy_write_raw (struct iio_dev *indio_dev , struct iio_chan_spec const *chan , int val , int val2 , long mask ); ARGUMENTS indio_dev the struct iio_dev associated with this device instance chan the channel whose data is to be written ...
iio_event_poll(9)
NAME iio_event_poll - poll the event queue to find out if it has data SYNOPSIS __poll_t iio_event_poll (struct file *filep , struct poll_table_struct *wait ); ARGUMENTS filep File structure pointer to identify the device wait Poll table pointer to add the wait queue on RETURN (EPOLLIN | EPOLLRDN...
iio_find_channel_from_si(9)
NAME iio_find_channel_from_si - get channel from its scan index SYNOPSIS const struct iio_chan_spec * iio_find_channel_from_si (struct iio_dev *indio_dev , int si ); ARGUMENTS indio_dev device si scan index to match RETURN Constant pointer to iio_chan_spec, if scan index matches, NULL on failure. ...
iio_find_closest_gain_low(9)
NAME iio_find_closest_gain_low - Find the closest lower matching gain SYNOPSIS int iio_find_closest_gain_low (struct iio_gts *gts , int gain , bool *in_range ); ARGUMENTS gts Gain time scale descriptor gain HW-gain for which the closest match is searched in_range indicate if the gain...
iio_for_each_active_channel(9)
NAME iio_for_each_active_channel - Iterated over active channels SYNOPSIS iio_for_each_active_channel (indio_dev , chan ); ARGUMENTS indio_dev the IIO device chan Holds the index of the enabled channel SEE ALSO Kernel file ./include/linux/iio/iio.h struct iio_chan_spec_ext_info(9), struct iio_...
iio_format_value(9)
NAME iio_format_value - Formats a IIO value into its string representation SYNOPSIS ssize_t iio_format_value (char *buf , unsigned int type , int size , int *vals ); ARGUMENTS buf The buffer to which the formatted value gets written which is assumed to be big enough (i.e. PAGE_SIZE). type One o...
iio_free_chan_devattr_list(9)
NAME iio_free_chan_devattr_list - Free a list of IIO device attributes SYNOPSIS void iio_free_chan_devattr_list (struct list_head *attr_list ); ARGUMENTS attr_list List of IIO device attributes DESCRIPTION This function frees the memory allocated for each of the IIO device attributes in the list. SEE ALSO Kernel ...
iio_get_acpi_device_name_and_data(9)
NAME iio_get_acpi_device_name_and_data - Return ACPI device instance name and driver data SYNOPSIS const char * iio_get_acpi_device_name_and_data (struct device *dev , const void **data ); ARGUMENTS dev Device structure data Optional pointer to return driver data DESCRIPTION When device was en...
iio_get_channel_ext_info_count(9)
NAME iio_get_channel_ext_info_count - get number of ext_info attributes connected to the channel. SYNOPSIS unsigned int iio_get_channel_ext_info_count (struct iio_channel *chan ); ARGUMENTS chan The channel being queried DESCRIPTION Returns the number of ext_info attributes SEE ALSO Kernel file ./include/l...
iio_get_channel_type(9)
NAME iio_get_channel_type - get the type of a channel SYNOPSIS int iio_get_channel_type (struct iio_channel *channel , enum iio_chan_type *type ); ARGUMENTS channel The channel being queried. type The type of the channel. DESCRIPTION returns the enum iio_chan_type of the channel SEE ALSO Kernel ...
iio_get_current_scan_type(9)
NAME iio_get_current_scan_type - Get the current scan type for a channel SYNOPSIS const struct iio_scan_type * iio_get_current_scan_type (const struct iio_dev *indio_dev , const struct iio_chan_spec *chan ); ARGUMENTS indio_dev the IIO device to get the scan type for chan the channel to get the scan ...
iio_get_debugfs_dentry(9)
NAME iio_get_debugfs_dentry - helper function to get the debugfs_dentry SYNOPSIS struct dentry * iio_get_debugfs_dentry (struct iio_dev *indio_dev ); ARGUMENTS indio_dev IIO device structure for device SEE ALSO Kernel file ./include/linux/iio/iio.h struct iio_chan_spec_ext_info(9), struct iio_enum(9), IIO_E...
iio_get_masklength(9)
NAME iio_get_masklength - Get length of the channels mask SYNOPSIS unsigned int iio_get_masklength (const struct iio_dev *indio_dev ); ARGUMENTS indio_dev the IIO device to get the masklength for SEE ALSO Kernel file ./include/linux/iio/iio.h struct iio_chan_spec_ext_info(9), struct iio_enum(9), IIO_ENUM(9)...
iio_get_time_ns(9)
NAME iio_get_time_ns - utility function to get a time stamp for events etc SYNOPSIS s64 iio_get_time_ns (const struct iio_dev *indio_dev ); ARGUMENTS indio_dev device RETURN Timestamp of the event in nanoseconds. SEE ALSO Kernel file ./drivers/iio/industrialio-core.c iio_device_id(9), iio_buffer_enabled(9), ...
iio_gts_all_avail_scales(9)
NAME iio_gts_all_avail_scales - helper for listing all available scales SYNOPSIS int iio_gts_all_avail_scales (struct iio_gts *gts , const int **vals , int *type , int *length ); ARGUMENTS gts Gain time scale descriptor vals Returned array of supported scales type Type of returne...
iio_gts_avail_scales_for_time(9)
NAME iio_gts_avail_scales_for_time - list scales for integration time SYNOPSIS int iio_gts_avail_scales_for_time (struct iio_gts *gts , int time , const int **vals , int *type , int *length ); ARGUMENTS gts Gain time scale descriptor time Integration time for which the scales are listed ...
iio_gts_avail_times(9)
NAME iio_gts_avail_times - helper for listing available integration times SYNOPSIS int iio_gts_avail_times (struct iio_gts *gts , const int **vals , int *type , int *length ); ARGUMENTS gts Gain time scale descriptor vals Returned array of supported times type Type of returned sc...
iio_gts_build_avail_scale_table(9)
NAME iio_gts_build_avail_scale_table - create tables of available scales SYNOPSIS int iio_gts_build_avail_scale_table (struct iio_gts *gts ); ARGUMENTS gts Gain time scale descriptor DESCRIPTION Build the tables which can represent the available scales based on the originally given gain and time tables. ...
iio_gts_build_avail_tables(9)
NAME iio_gts_build_avail_tables - create tables of available scales and int times SYNOPSIS int iio_gts_build_avail_tables (struct iio_gts *gts ); ARGUMENTS gts Gain time scale descriptor DESCRIPTION Build the tables which can represent the available scales and available integration times. Availability table...
iio_gts_build_avail_time_table(9)
NAME iio_gts_build_avail_time_table - build table of available integration times SYNOPSIS int iio_gts_build_avail_time_table (struct iio_gts *gts ); ARGUMENTS gts Gain time scale descriptor DESCRIPTION Build the table which can represent the available times to be returned to users using the read_avail-callba...
iio_gts_find_gain_by_sel(9)
NAME iio_gts_find_gain_by_sel - find HW-gain corresponding to a selector SYNOPSIS int iio_gts_find_gain_by_sel (struct iio_gts *gts , int sel ); ARGUMENTS gts Gain time scale descriptor sel selector for which matching HW-gain is searched for RETURN a HW-gain matching given selector or -EINVAL...
iio_gts_find_gain_for_scale_using_time(9)
NAME iio_gts_find_gain_for_scale_using_time - Find gain by time and scale SYNOPSIS int iio_gts_find_gain_for_scale_using_time (struct iio_gts *gts , int time_sel , int scale_int , int scale_nano , int *gain ); ARGUMENTS gts Gain time scale descriptor time_sel Integration time selector corresponding...
iio_gts_find_gain_sel_for_scale_using_time(9)
NAME iio_gts_find_gain_sel_for_scale_using_time - Fetch gain selector. SYNOPSIS int iio_gts_find_gain_sel_for_scale_using_time (struct iio_gts *gts , int time_sel , int scale_int , int scale_nano , int *gain_sel ); ARGUMENTS gts Gain time scale descriptor time_sel Integration time selector correspo...
iio_gts_find_gain_time_sel_for_scale(9)
NAME iio_gts_find_gain_time_sel_for_scale - Fetch gain and time selectors for scale SYNOPSIS int iio_gts_find_gain_time_sel_for_scale (struct iio_gts *gts , int scale_int , int scale_nano , int *gain_sel , int *time_sel ); ARGUMENTS gts Gain time scale descriptor scale_int Integral part of the scale...
iio_gts_find_int_time_by_sel(9)
NAME iio_gts_find_int_time_by_sel - find integration time matching a selector SYNOPSIS int iio_gts_find_int_time_by_sel (struct iio_gts *gts , int sel ); ARGUMENTS gts Gain time scale descriptor sel selector for which matching integration time is searched for RETURN integration time matching ...
iio_gts_find_new_gain_by_gain_time_min(9)
NAME iio_gts_find_new_gain_by_gain_time_min - compensate for time change SYNOPSIS int iio_gts_find_new_gain_by_gain_time_min (struct iio_gts *gts , int old_gain , int old_time , int new_time , int *new_gain , bool *in_range ); ARGUMENTS gts Gain time scale descriptor old_gain Previously set gain ...
iio_gts_find_new_gain_by_old_gain_time(9)
NAME iio_gts_find_new_gain_by_old_gain_time - compensate for time change SYNOPSIS int iio_gts_find_new_gain_by_old_gain_time (struct iio_gts *gts , int old_gain , int old_time , int new_time , int *new_gain ); ARGUMENTS gts Gain time scale descriptor old_gain Previously set gain old_time ...
iio_gts_find_new_gain_sel_by_old_gain_time(9)
NAME iio_gts_find_new_gain_sel_by_old_gain_time - compensate for time change SYNOPSIS int iio_gts_find_new_gain_sel_by_old_gain_time (struct iio_gts *gts , int old_gain , int old_time_sel , int new_time_sel , int *new_gain ); ARGUMENTS gts Gain time scale descriptor old_gain Previously set gain ...
iio_gts_find_sel_by_gain(9)
NAME iio_gts_find_sel_by_gain - find selector corresponding to a HW-gain SYNOPSIS int iio_gts_find_sel_by_gain (struct iio_gts *gts , int gain ); ARGUMENTS gts Gain time scale descriptor gain HW-gain for which matching selector is searched for RETURN a selector matching given HW-gain or -EINVA...
iio_gts_find_sel_by_int_time(9)
NAME iio_gts_find_sel_by_int_time - find selector matching integration time SYNOPSIS int iio_gts_find_sel_by_int_time (struct iio_gts *gts , int time ); ARGUMENTS gts Gain time scale descriptor time Integration time for which matching selector is searched for RETURN a selector matching given i...
iio_gts_get_gain(9)
NAME iio_gts_get_gain - Convert scale to total gain SYNOPSIS int iio_gts_get_gain (const u64 max , const u64 scale ); ARGUMENTS max Maximum linearized scale. As an example, when scale is created in magnitude of NANOs and max scale is 64.1 - The linearized scale is 64 100 000 000. scale Linearize...
iio_gts_get_min_gain(9)
NAME iio_gts_get_min_gain - find smallest valid HW-gain SYNOPSIS int iio_gts_get_min_gain (struct iio_gts *gts ); ARGUMENTS gts Gain time scale descriptor RETURN The smallest HW-gain -EINVAL if no HW-gains were in the tables. SEE ALSO Kernel file ./drivers/iio/industrialio-gts-helper.c iio_gts_get_...
iio_gts_get_scale(9)
NAME iio_gts_get_scale - get scale based on integration time and HW-gain SYNOPSIS int iio_gts_get_scale (struct iio_gts *gts , int gain , int time , int *scale_int , int *scale_nano ); ARGUMENTS gts Gain time scale descriptor gain HW-gain for which the scale is computed time Inte...
iio_gts_get_total_gain(9)
NAME iio_gts_get_total_gain - Fetch total gain for given HW-gain and time SYNOPSIS int iio_gts_get_total_gain (struct iio_gts *gts , int gain , int time ); ARGUMENTS gts Gain time scale descriptor gain HW-gain for which the total gain is searched for time Integration time for whi...
iio_gts_purge_avail_scale_table(9)
NAME iio_gts_purge_avail_scale_table - free-up the available scale tables SYNOPSIS void iio_gts_purge_avail_scale_table (struct iio_gts *gts ); ARGUMENTS gts Gain time scale descriptor DESCRIPTION Free the space reserved by iio_gts_build_avail_scale_table. SEE ALSO Kernel file ./drivers/iio/industrial...
iio_gts_purge_avail_tables(9)
NAME iio_gts_purge_avail_tables - free-up the availability tables SYNOPSIS void iio_gts_purge_avail_tables (struct iio_gts *gts ); ARGUMENTS gts Gain time scale descriptor DESCRIPTION Free the space reserved by iio_gts_build_avail_tables. Frees both the integration time and scale tables. SEE ALSO Kernel ...
iio_gts_purge_avail_time_table(9)
NAME iio_gts_purge_avail_time_table - free-up the available integration time table SYNOPSIS void iio_gts_purge_avail_time_table (struct iio_gts *gts ); ARGUMENTS gts Gain time scale descriptor DESCRIPTION Free the space reserved by iio_gts_build_avail_time_table. SEE ALSO Kernel file ./drivers/iio/industr...
iio_gts_total_gain_to_scale(9)
NAME iio_gts_total_gain_to_scale - convert gain to scale SYNOPSIS int iio_gts_total_gain_to_scale (struct iio_gts *gts , int total_gain , int *scale_int , int *scale_nano ); ARGUMENTS gts Gain time scale descriptor total_gain the gain to be converted scale_int Pointer to integral part of th...
iio_gts_valid_gain(9)
NAME iio_gts_valid_gain - check if given HW-gain is valid SYNOPSIS bool iio_gts_valid_gain (struct iio_gts *gts , int gain ); ARGUMENTS gts Gain time scale descriptor gain HW-gain to check RETURN True if given time is supported by device. False if not. SEE ALSO Kernel file ./include/linux/iio...
iio_gts_valid_time(9)
NAME iio_gts_valid_time - check if given integration time is valid SYNOPSIS bool iio_gts_valid_time (struct iio_gts *gts , int time_us ); ARGUMENTS gts Gain time scale descriptor time_us Integration time to check RETURN True if given time is supported by device. False if not. SEE ALSO Kernel fil...
iio_hw_consumer_alloc(9)
NAME iio_hw_consumer_alloc - Allocate IIO hardware consumer SYNOPSIS struct iio_hw_consumer * iio_hw_consumer_alloc (struct device *dev ); ARGUMENTS dev Pointer to consumer device. DESCRIPTION Returns a valid iio_hw_consumer on success or a ERR_PTR on failure. SEE ALSO Kernel file ./drivers/iio/buffer/indus...
iio_hw_consumer_disable(9)
NAME iio_hw_consumer_disable - Disable IIO hardware consumer SYNOPSIS void iio_hw_consumer_disable (struct iio_hw_consumer *hwc ); ARGUMENTS hwc iio_hw_consumer to disable. SEE ALSO Kernel file ./drivers/iio/buffer/industrialio-hw-consumer.c struct iio_hw_consumer(9), iio_hw_consumer_alloc(9), iio_hw_consume...
iio_hw_consumer_enable(9)
NAME iio_hw_consumer_enable - Enable IIO hardware consumer SYNOPSIS int iio_hw_consumer_enable (struct iio_hw_consumer *hwc ); ARGUMENTS hwc iio_hw_consumer to enable. DESCRIPTION Returns 0 on success. SEE ALSO Kernel file ./drivers/iio/buffer/industrialio-hw-consumer.c struct iio_hw_consumer(9), iio_hw_con...
iio_hw_consumer_free(9)
NAME iio_hw_consumer_free - Free IIO hardware consumer SYNOPSIS void iio_hw_consumer_free (struct iio_hw_consumer *hwc ); ARGUMENTS hwc hw consumer to free. SEE ALSO Kernel file ./drivers/iio/buffer/industrialio-hw-consumer.c struct iio_hw_consumer(9), iio_hw_consumer_alloc(9), devm_iio_hw_consumer_alloc(9),...
iio_map_array_register(9)
NAME iio_map_array_register - tell the core about inkernel consumers SYNOPSIS int iio_map_array_register (struct iio_dev *indio_dev , const struct iio_map *map ); ARGUMENTS indio_dev provider device map array of mappings specifying association of channel with client SEE ALSO Kernel file ./include/l...
iio_map_array_unregister(9)
NAME iio_map_array_unregister - tell the core to remove consumer mappings for the given provider device SYNOPSIS int iio_map_array_unregister (struct iio_dev *indio_dev ); ARGUMENTS indio_dev provider device SEE ALSO Kernel file ./include/linux/iio/driver.h iio_map_array_register(9), devm_iio_map_array_register(9)...
iio_multiply_value(9)
NAME iio_multiply_value - Multiply an IIO value SYNOPSIS int iio_multiply_value (int *result , s64 multiplier , unsigned int type , int val , int val2 ); ARGUMENTS result Destination pointer for the multiplication result multiplier Multiplier. type One of the IIO_VAL_* constants. This dec...
iio_push_event(9)
NAME iio_push_event - try to add event to the list for userspace reading SYNOPSIS int iio_push_event (struct iio_dev *indio_dev , u64 ev_code , s64 timestamp ); ARGUMENTS indio_dev IIO device structure ev_code What event timestamp When the event occurred NOTE The caller must make sure th...
iio_push_to_buffers(9)
NAME iio_push_to_buffers - push to a registered buffer. SYNOPSIS int iio_push_to_buffers (struct iio_dev *indio_dev , const void *data ); ARGUMENTS indio_dev iio_dev structure for device. data Full scan. CONTEXT Any context. RETURN 0 on success, negative error code on failure. SEE ALSO Kernel f...
iio_push_to_buffers_with_timestamp(9)
NAME iio_push_to_buffers_with_timestamp - push data and timestamp to buffers SYNOPSIS int iio_push_to_buffers_with_timestamp (struct iio_dev *indio_dev , void *data , int64_t timestamp ); ARGUMENTS indio_dev iio_dev structure for device. data sample data timestamp timestamp for the sample d...
iio_push_to_buffers_with_ts(9)
NAME iio_push_to_buffers_with_ts - push data and timestamp to buffers SYNOPSIS int iio_push_to_buffers_with_ts (struct iio_dev *indio_dev , void *data , size_t data_total_len , s64 timestamp ); ARGUMENTS indio_dev iio_dev structure for device. data Pointer to sample data buffer. data_total_le...
iio_push_to_buffers_with_ts_unaligned(9)
NAME iio_push_to_buffers_with_ts_unaligned - push to registered buffer, no alignment or space requirements. SYNOPSIS int iio_push_to_buffers_with_ts_unaligned (struct iio_dev *indio_dev , const void *data , size_t data_sz , int64_t timestamp ); ARGUMENTS indio_dev iio_dev structure for device. data c...
iio_read_acpi_mount_matrix(9)
NAME iio_read_acpi_mount_matrix - Read accelerometer mount matrix info from ACPI SYNOPSIS bool iio_read_acpi_mount_matrix (struct device *dev , struct iio_mount_matrix *orientation , char *acpi_method ); ARGUMENTS dev Device structure orientation iio_mount_matrix struct to fill acpi_method ACP...
iio_read_avail_channel_attribute(9)
NAME iio_read_avail_channel_attribute - read available channel attribute values SYNOPSIS int iio_read_avail_channel_attribute (struct iio_channel *chan , const int **vals , int *type , int *length , enum iio_chan_info_enum attribute ); ARGUMENTS chan The channel being queried. vals Available val...
iio_read_avail_channel_raw(9)
NAME iio_read_avail_channel_raw - read available raw values from a given channel SYNOPSIS int iio_read_avail_channel_raw (struct iio_channel *chan , const int **vals , int *length ); ARGUMENTS chan The channel being queried. vals Available values read back. length Number of entries ...
iio_read_channel_attribute(9)
NAME iio_read_channel_attribute - Read values from the device attribute. SYNOPSIS int iio_read_channel_attribute (struct iio_channel *chan , int *val , int *val2 , enum iio_chan_info_enum attribute ); ARGUMENTS chan The channel being queried. val Value being written. val2 Value b...
iio_read_channel_average_raw(9)
NAME iio_read_channel_average_raw - read from a given channel SYNOPSIS int iio_read_channel_average_raw (struct iio_channel *chan , int *val ); ARGUMENTS chan The channel being queried. val Value read back. DESCRIPTION Note, if standard units are required, raw reads from iio channels need the ...
iio_read_channel_ext_info(9)
NAME iio_read_channel_ext_info - read ext_info attribute from a given channel SYNOPSIS ssize_t iio_read_channel_ext_info (struct iio_channel *chan , const char *attr , char *buf ); ARGUMENTS chan The channel being queried. attr The ext_info attribute to read. buf Where to store t...
iio_read_channel_label(9)
NAME iio_read_channel_label - read label for a given channel SYNOPSIS ssize_t iio_read_channel_label (struct iio_channel *chan , char *buf ); ARGUMENTS chan The channel being queried. buf Where to store the attribute value. Assumed to hold at least PAGE_SIZE bytes and to be aligned at PAGE_SIZE...
iio_read_channel_offset(9)
NAME iio_read_channel_offset - read the offset value for a channel SYNOPSIS int iio_read_channel_offset (struct iio_channel *chan , int *val , int *val2 ); ARGUMENTS chan The channel being queried. val First part of value read back. val2 Second part of value read back. DESCRIPTI...
iio_read_channel_processed(9)
NAME iio_read_channel_processed - read processed value from a given channel SYNOPSIS int iio_read_channel_processed (struct iio_channel *chan , int *val ); ARGUMENTS chan The channel being queried. val Value read back. DESCRIPTION Returns an error code or 0. This function will read a proce...
iio_read_channel_processed_scale(9)
NAME iio_read_channel_processed_scale - read and scale a processed value SYNOPSIS int iio_read_channel_processed_scale (struct iio_channel *chan , int *val , unsigned int scale ); ARGUMENTS chan The channel being queried. val Value read back. scale Scale factor to apply during the...
iio_read_channel_raw(9)
NAME iio_read_channel_raw - read from a given channel SYNOPSIS int iio_read_channel_raw (struct iio_channel *chan , int *val ); ARGUMENTS chan The channel being queried. val Value read back. DESCRIPTION Note, if standard units are required, raw reads from iio channels need the offset (default ...
iio_read_channel_scale(9)
NAME iio_read_channel_scale - read the scale value for a channel SYNOPSIS int iio_read_channel_scale (struct iio_channel *chan , int *val , int *val2 ); ARGUMENTS chan The channel being queried. val First part of value read back. val2 Second part of value read back. DESCRIPTION ...
iio_read_max_channel_raw(9)
NAME iio_read_max_channel_raw - read maximum available raw value from a given channel, i.e. the maximum possible value. SYNOPSIS int iio_read_max_channel_raw (struct iio_channel *chan , int *val ); ARGUMENTS chan The channel being queried. val Value read back. DESCRIPTION Note, if standard uni...
iio_read_min_channel_raw(9)
NAME iio_read_min_channel_raw - read minimum available raw value from a given channel, i.e. the minimum possible value. SYNOPSIS int iio_read_min_channel_raw (struct iio_channel *chan , int *val ); ARGUMENTS chan The channel being queried. val Value read back. DESCRIPTION Note, if standard uni...
iio_read_mount_matrix(9)
NAME iio_read_mount_matrix - retrieve iio device mounting matrix from device "mount-matrix" property SYNOPSIS int iio_read_mount_matrix (struct device *dev , struct iio_mount_matrix *matrix ); ARGUMENTS dev device the mounting matrix property is assigned to matrix where to store retrieved matrix ...
iio_scan_mask_set(9)
NAME iio_scan_mask_set - set particular bit in the scan mask SYNOPSIS int iio_scan_mask_set (struct iio_dev *indio_dev , struct iio_buffer *buffer , int bit ); ARGUMENTS indio_dev the iio device buffer the buffer whose scan mask we are interested in bit the bit to be set. DESCRIPTION N...
iio_simple_dummy_event_handler(9)
NAME iio_simple_dummy_event_handler - identify and pass on event SYNOPSIS irqreturn_t iio_simple_dummy_event_handler (int irq , void *private ); ARGUMENTS irq irq of event line private pointer to device instance state. DESCRIPTION This handler is responsible for querying the device to find ou...
iio_simple_dummy_events_register(9)
NAME iio_simple_dummy_events_register - setup interrupt handling for events SYNOPSIS int iio_simple_dummy_events_register (struct iio_dev *indio_dev ); ARGUMENTS indio_dev device instance data DESCRIPTION This function requests the threaded interrupt to handle the events. Normally the irq is a hardware interrupt ...
iio_simple_dummy_events_unregister(9)
NAME iio_simple_dummy_events_unregister - tidy up interrupt handling on remove SYNOPSIS void iio_simple_dummy_events_unregister (struct iio_dev *indio_dev ); ARGUMENTS indio_dev device instance data SEE ALSO Kernel file ./drivers/iio/dummy/iio_simple_dummy_events.c iio_simple_dummy_read_event_config(9), iio_...
iio_simple_dummy_read_event_config(9)
NAME iio_simple_dummy_read_event_config - is event enabled? SYNOPSIS int iio_simple_dummy_read_event_config (struct iio_dev *indio_dev , const struct iio_chan_spec *chan , enum iio_event_type type , enum iio_event_direction dir ); ARGUMENTS indio_dev the device instance data chan channel for the even...
iio_simple_dummy_read_event_value(9)
NAME iio_simple_dummy_read_event_value - get value associated with event SYNOPSIS int iio_simple_dummy_read_event_value (struct iio_dev *indio_dev , const struct iio_chan_spec *chan , enum iio_event_type type , enum iio_event_direction dir , enum iio_event_info info , int *val , int *val2 ); ARGUMENTS indio_dev dev...
iio_simple_dummy_trigger_h(9)
NAME iio_simple_dummy_trigger_h - the trigger handler function SYNOPSIS irqreturn_t iio_simple_dummy_trigger_h (int irq , void *p ); ARGUMENTS irq the interrupt number p private data - always a pointer to the poll func. DESCRIPTION This is the guts of buffered capture. On a trigger event ...
iio_simple_dummy_unconfigure_buffer(9)
NAME iio_simple_dummy_unconfigure_buffer - release buffer resources SYNOPSIS void iio_simple_dummy_unconfigure_buffer (struct iio_dev *indio_dev ); ARGUMENTS indio_dev device instance state SEE ALSO Kernel file ./drivers/iio/dummy/iio_simple_dummy_buffer.c iio_simple_dummy_trigger_h(9) April 2026 ...