id
stringlengths
4
63
text
stringlengths
153
8.81M
ih_v6_0_self_irq(9)
NAME ih_v6_0_self_irq - dispatch work for ring 1 SYNOPSIS int ih_v6_0_self_irq (struct amdgpu_device *adev , struct amdgpu_irq_src *source , struct amdgpu_iv_entry *entry ); ARGUMENTS adev amdgpu_device pointer source irq source entry IV with WPTR update DESCRIPTION Update the WPTR ...
ih_v6_0_set_rptr(9)
NAME ih_v6_0_set_rptr - set the IH ring buffer rptr SYNOPSIS void ih_v6_0_set_rptr (struct amdgpu_device *adev , struct amdgpu_ih_ring *ih ); ARGUMENTS adev amdgpu_device pointer ih amdgpu_ih_ring pointer DESCRIPTION Set the IH ring buffer rptr. SEE ALSO Kernel file ./drivers/gpu/drm/amd...
ih_v6_0_toggle_interrupts(9)
NAME ih_v6_0_toggle_interrupts - Toggle all the available interrupt ring buffers SYNOPSIS int ih_v6_0_toggle_interrupts (struct amdgpu_device *adev , bool enable ); ARGUMENTS adev amdgpu_device pointer enable enable or disable interrupt ring buffers DESCRIPTION Toggle all the available interrupt ...
ih_v6_0_toggle_ring_interrupts(9)
NAME ih_v6_0_toggle_ring_interrupts - toggle the interrupt ring buffer SYNOPSIS int ih_v6_0_toggle_ring_interrupts (struct amdgpu_device *adev , struct amdgpu_ih_ring *ih , bool enable ); ARGUMENTS adev amdgpu_device pointer ih amdgpu_ih_ring pointer enable true - enable the inter...
ih_v6_1_enable_ring(9)
NAME ih_v6_1_enable_ring - enable an ih ring buffer SYNOPSIS int ih_v6_1_enable_ring (struct amdgpu_device *adev , struct amdgpu_ih_ring *ih ); ARGUMENTS adev amdgpu_device pointer ih amdgpu_ih_ring pointer DESCRIPTION Enable an ih ring buffer (IH_V6_0) SEE ALSO Kernel file ./drivers/gpu/drm...
ih_v6_1_get_wptr(9)
NAME ih_v6_1_get_wptr - get the IH ring buffer wptr SYNOPSIS u32 ih_v6_1_get_wptr (struct amdgpu_device *adev , struct amdgpu_ih_ring *ih ); ARGUMENTS adev amdgpu_device pointer ih amdgpu_ih_ring pointer DESCRIPTION Get the IH ring buffer wptr from either the register or the writeback memory ...
ih_v6_1_init_register_offset(9)
NAME ih_v6_1_init_register_offset - Initialize register offset for ih rings SYNOPSIS void ih_v6_1_init_register_offset (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Initialize register offset ih rings (IH_V6_0). SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/ih_v6_1.c f...
ih_v6_1_irq_disable(9)
NAME ih_v6_1_irq_disable - disable interrupts SYNOPSIS void ih_v6_1_irq_disable (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Disable interrupts on the hw. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/ih_v6_1.c ih_v6_1_init_register_offset(9), force_update_wptr_for_...
ih_v6_1_irq_init(9)
NAME ih_v6_1_irq_init - init and enable the interrupt ring SYNOPSIS int ih_v6_1_irq_init (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Allocate a ring buffer for the interrupt controller, enable the RLC, disable interrupts, enable the IH ring buffer and enable it. Called at ...
ih_v6_1_irq_rearm(9)
NAME ih_v6_1_irq_rearm - rearm IRQ if lost SYNOPSIS void ih_v6_1_irq_rearm (struct amdgpu_device *adev , struct amdgpu_ih_ring *ih ); ARGUMENTS adev amdgpu_device pointer ih amdgpu_ih_ring pointer SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/ih_v6_1.c ih_v6_1_init_register_offset(9...
ih_v6_1_self_irq(9)
NAME ih_v6_1_self_irq - dispatch work for ring 1 SYNOPSIS int ih_v6_1_self_irq (struct amdgpu_device *adev , struct amdgpu_irq_src *source , struct amdgpu_iv_entry *entry ); ARGUMENTS adev amdgpu_device pointer source irq source entry IV with WPTR update DESCRIPTION Update the WPTR ...
ih_v6_1_set_rptr(9)
NAME ih_v6_1_set_rptr - set the IH ring buffer rptr SYNOPSIS void ih_v6_1_set_rptr (struct amdgpu_device *adev , struct amdgpu_ih_ring *ih ); ARGUMENTS adev amdgpu_device pointer ih amdgpu_ih_ring pointer DESCRIPTION Set the IH ring buffer rptr. SEE ALSO Kernel file ./drivers/gpu/drm/amd...
ih_v6_1_toggle_interrupts(9)
NAME ih_v6_1_toggle_interrupts - Toggle all the available interrupt ring buffers SYNOPSIS int ih_v6_1_toggle_interrupts (struct amdgpu_device *adev , bool enable ); ARGUMENTS adev amdgpu_device pointer enable enable or disable interrupt ring buffers DESCRIPTION Toggle all the available interrupt ...
ih_v6_1_toggle_ring_interrupts(9)
NAME ih_v6_1_toggle_ring_interrupts - toggle the interrupt ring buffer SYNOPSIS int ih_v6_1_toggle_ring_interrupts (struct amdgpu_device *adev , struct amdgpu_ih_ring *ih , bool enable ); ARGUMENTS adev amdgpu_device pointer ih amdgpu_ih_ring pointer enable true - enable the inter...
ih_v7_0_enable_ring(9)
NAME ih_v7_0_enable_ring - enable an ih ring buffer SYNOPSIS int ih_v7_0_enable_ring (struct amdgpu_device *adev , struct amdgpu_ih_ring *ih ); ARGUMENTS adev amdgpu_device pointer ih amdgpu_ih_ring pointer DESCRIPTION Enable an ih ring buffer (IH_V7_0) SEE ALSO Kernel file ./drivers/gpu/d...
ih_v7_0_get_wptr(9)
NAME ih_v7_0_get_wptr - get the IH ring buffer wptr SYNOPSIS u32 ih_v7_0_get_wptr (struct amdgpu_device *adev , struct amdgpu_ih_ring *ih ); ARGUMENTS adev amdgpu_device pointer ih IH ring buffer to fetch wptr DESCRIPTION Get the IH ring buffer wptr from either the register or the writeback m...
ih_v7_0_init_register_offset(9)
NAME ih_v7_0_init_register_offset - Initialize register offset for ih rings SYNOPSIS void ih_v7_0_init_register_offset (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Initialize register offset ih rings (IH_V7_0). SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/ih_v7_0.c f...
ih_v7_0_irq_disable(9)
NAME ih_v7_0_irq_disable - disable interrupts SYNOPSIS void ih_v7_0_irq_disable (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Disable interrupts on the hw. SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/ih_v7_0.c ih_v7_0_init_register_offset(9), force_update_wptr_...
ih_v7_0_irq_init(9)
NAME ih_v7_0_irq_init - init and enable the interrupt ring SYNOPSIS int ih_v7_0_irq_init (struct amdgpu_device *adev ); ARGUMENTS adev amdgpu_device pointer DESCRIPTION Allocate a ring buffer for the interrupt controller, enable the RLC, disable interrupts, enable the IH ring buffer and enable it. Called at ...
ih_v7_0_irq_rearm(9)
NAME ih_v7_0_irq_rearm - rearm IRQ if lost SYNOPSIS void ih_v7_0_irq_rearm (struct amdgpu_device *adev , struct amdgpu_ih_ring *ih ); ARGUMENTS adev amdgpu_device pointer ih IH ring to match SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/ih_v7_0.c ih_v7_0_init_register_offset(9), f...
ih_v7_0_self_irq(9)
NAME ih_v7_0_self_irq - dispatch work for ring 1 SYNOPSIS int ih_v7_0_self_irq (struct amdgpu_device *adev , struct amdgpu_irq_src *source , struct amdgpu_iv_entry *entry ); ARGUMENTS adev amdgpu_device pointer source irq source entry IV with WPTR update DESCRIPTION Update the WPTR ...
ih_v7_0_set_rptr(9)
NAME ih_v7_0_set_rptr - set the IH ring buffer rptr SYNOPSIS void ih_v7_0_set_rptr (struct amdgpu_device *adev , struct amdgpu_ih_ring *ih ); ARGUMENTS adev amdgpu_device pointer ih IH ring buffer to set rptr SEE ALSO Kernel file ./drivers/gpu/drm/amd/amdgpu/ih_v7_0.c ih_v7_0_init_regis...
ih_v7_0_toggle_interrupts(9)
NAME ih_v7_0_toggle_interrupts - Toggle all the available interrupt ring buffers SYNOPSIS int ih_v7_0_toggle_interrupts (struct amdgpu_device *adev , bool enable ); ARGUMENTS adev amdgpu_device pointer enable enable or disable interrupt ring buffers DESCRIPTION Toggle all the available interrupt ...
ih_v7_0_toggle_ring_interrupts(9)
NAME ih_v7_0_toggle_ring_interrupts - toggle the interrupt ring buffer SYNOPSIS int ih_v7_0_toggle_ring_interrupts (struct amdgpu_device *adev , struct amdgpu_ih_ring *ih , bool enable ); ARGUMENTS adev amdgpu_device pointer ih amdgpu_ih_ring pointet enable true - enable the inter...
iio_active_scan_mask_index(9)
NAME iio_active_scan_mask_index - Get index of the active scan mask inside the available scan masks array SYNOPSIS int iio_active_scan_mask_index (struct iio_dev *indio_dev ); ARGUMENTS indio_dev the IIO device containing the active and available scan masks RETURN the index or -EINVAL if active_scan_mask is not s...
iio_backend_chan_disable(9)
NAME iio_backend_chan_disable - Disable a backend channel SYNOPSIS int iio_backend_chan_disable (struct iio_backend *back , unsigned int chan ); ARGUMENTS back Backend device chan Channel number RETURN 0 on success, negative error number on failure. SEE ALSO Kernel file ./drivers/iio/industria...
iio_backend_chan_enable(9)
NAME iio_backend_chan_enable - Enable a backend channel SYNOPSIS int iio_backend_chan_enable (struct iio_backend *back , unsigned int chan ); ARGUMENTS back Backend device chan Channel number RETURN 0 on success, negative error number on failure. SEE ALSO Kernel file ./drivers/iio/industrial...
iio_backend_chan_status(9)
NAME iio_backend_chan_status - Get the channel status SYNOPSIS int iio_backend_chan_status (struct iio_backend *back , unsigned int chan , bool *error ); ARGUMENTS back Backend device chan Channel number error Error indication DESCRIPTION Get the current state of the backend chann...
iio_backend_data_format_set(9)
NAME iio_backend_data_format_set - Configure the channel data format SYNOPSIS int iio_backend_data_format_set (struct iio_backend *back , unsigned int chan , const struct iio_backend_data_fmt *data ); ARGUMENTS back Backend device chan Channel number data Data format DESCRIPTION ...
iio_backend_data_sample_trigger(9)
NAME iio_backend_data_sample_trigger - Control when to sample data SYNOPSIS int iio_backend_data_sample_trigger (struct iio_backend *back , enum iio_backend_sample_trigger trigger ); ARGUMENTS back Backend device trigger Data trigger DESCRIPTION Mostly useful for input backends. Configures the bac...
iio_backend_data_size_set(9)
NAME iio_backend_data_size_set - set the data width/size in the data bus. SYNOPSIS int iio_backend_data_size_set (struct iio_backend *back , unsigned int size ); ARGUMENTS back Backend device size Size in bits DESCRIPTION Some frontend devices can dynamically control the word/data size on the i...
iio_backend_data_source_get(9)
NAME iio_backend_data_source_get - Get current data source SYNOPSIS int iio_backend_data_source_get (struct iio_backend *back , unsigned int chan , enum iio_backend_data_source *data ); ARGUMENTS back Backend device chan Channel number data Pointer to receive the current source va...
iio_backend_data_source_set(9)
NAME iio_backend_data_source_set - Select data source SYNOPSIS int iio_backend_data_source_set (struct iio_backend *back , unsigned int chan , enum iio_backend_data_source data ); ARGUMENTS back Backend device chan Channel number data Data source DESCRIPTION A given backend may h...
iio_backend_data_stream_disable(9)
NAME iio_backend_data_stream_disable - Disable data stream SYNOPSIS int iio_backend_data_stream_disable (struct iio_backend *back ); ARGUMENTS back Backend device DESCRIPTION Disable data stream over the bus interface. RETURN 0 on success, negative error number on failure. SEE ALSO Kernel file ./drivers/i...
iio_backend_data_stream_enable(9)
NAME iio_backend_data_stream_enable - Enable data stream SYNOPSIS int iio_backend_data_stream_enable (struct iio_backend *back ); ARGUMENTS back Backend device DESCRIPTION Enable data stream over the bus interface. RETURN 0 on success, negative error number on failure. SEE ALSO Kernel file ./drivers/iio/i...
iio_backend_data_transfer_addr(9)
NAME iio_backend_data_transfer_addr - Set data address. SYNOPSIS int iio_backend_data_transfer_addr (struct iio_backend *back , u32 address ); ARGUMENTS back Backend device address Data register address DESCRIPTION Some devices may need to inform the backend about an address where to read or write...
iio_backend_ddr_disable(9)
NAME iio_backend_ddr_disable - Disable interface DDR (Double Data Rate) mode SYNOPSIS int iio_backend_ddr_disable (struct iio_backend *back ); ARGUMENTS back Backend device DESCRIPTION Disable DDR, setting into SDR mode (Single Data Rate). RETURN 0 on success, negative error number on failure. SEE ALSO Kern...
iio_backend_ddr_enable(9)
NAME iio_backend_ddr_enable - Enable interface DDR (Double Data Rate) mode SYNOPSIS int iio_backend_ddr_enable (struct iio_backend *back ); ARGUMENTS back Backend device DESCRIPTION Enable DDR, data is generated by the IP at each front (raising and falling) of the bus clock signal. RETURN 0 on success, negat...
iio_backend_debugfs_add(9)
NAME iio_backend_debugfs_add - Add debugfs interfaces for Backends SYNOPSIS void iio_backend_debugfs_add (struct iio_backend *back , struct iio_dev *indio_dev ); ARGUMENTS back Backend device indio_dev IIO device SEE ALSO Kernel file ./drivers/iio/industrialio-backend.c iio_backend_debugfs_print_...
iio_backend_debugfs_print_chan_status(9)
NAME iio_backend_debugfs_print_chan_status - Print channel status SYNOPSIS ssize_t iio_backend_debugfs_print_chan_status (struct iio_backend *back , unsigned int chan , char *buf , size_t len ); ARGUMENTS back Backend device chan Channel number buf Buffer where to print the statu...
iio_backend_disable(9)
NAME iio_backend_disable - Backend disable SYNOPSIS void iio_backend_disable (struct iio_backend *back ); ARGUMENTS back Backend device SEE ALSO Kernel file ./drivers/iio/industrialio-backend.c iio_backend_debugfs_add(9), iio_backend_debugfs_print_chan_status(9), iio_backend_chan_enable(9), iio_backend_chan...
iio_backend_enable(9)
NAME iio_backend_enable - Backend enable SYNOPSIS int iio_backend_enable (struct iio_backend *back ); ARGUMENTS back Backend device RETURN 0 on success, negative error number on failure. SEE ALSO Kernel file ./drivers/iio/industrialio-backend.c iio_backend_debugfs_add(9), iio_backend_debugfs_print_chan_stat...
iio_backend_ext_info_get(9)
NAME iio_backend_ext_info_get - IIO ext_info read callback SYNOPSIS ssize_t iio_backend_ext_info_get (struct iio_dev *indio_dev , uintptr_t private , const struct iio_chan_spec *chan , char *buf ); ARGUMENTS indio_dev IIO device private Data private to the driver chan IIO channel ...
iio_backend_ext_info_set(9)
NAME iio_backend_ext_info_set - IIO ext_info write callback SYNOPSIS ssize_t iio_backend_ext_info_set (struct iio_dev *indio_dev , uintptr_t private , const struct iio_chan_spec *chan , const char *buf , size_t len ); ARGUMENTS indio_dev IIO device private Data private to the driver chan ...
iio_backend_extend_chan_spec(9)
NAME iio_backend_extend_chan_spec - Extend an IIO channel SYNOPSIS int iio_backend_extend_chan_spec (struct iio_backend *back , struct iio_chan_spec *chan ); ARGUMENTS back Backend device chan IIO channel DESCRIPTION Some backends may have their own functionalities and hence capable of extendin...
iio_backend_filter_type_set(9)
NAME iio_backend_filter_type_set - Set filter type SYNOPSIS int iio_backend_filter_type_set (struct iio_backend *back , enum iio_backend_filter_type type ); ARGUMENTS back Backend device type Filter type. RETURN 0 on success, negative error number on failure. SEE ALSO Kernel file ./drivers/i...
iio_backend_get_priv(9)
NAME iio_backend_get_priv - Get driver private data SYNOPSIS void * iio_backend_get_priv (const struct iio_backend *back ); ARGUMENTS back Backend device RETURN Pointer to the driver private data associated with the backend. SEE ALSO Kernel file ./drivers/iio/industrialio-backend.c iio_backend_debugfs_add...
iio_backend_interface_data_align(9)
NAME iio_backend_interface_data_align - Perform the data alignment process. SYNOPSIS int iio_backend_interface_data_align (struct iio_backend *back , u32 timeout_us ); ARGUMENTS back Backend device timeout_us Timeout value in us. DESCRIPTION When activated, it initates a proccess that aligns the samp...
iio_backend_interface_type_get(9)
NAME iio_backend_interface_type_get - get the interface type used. SYNOPSIS int iio_backend_interface_type_get (struct iio_backend *back , enum iio_backend_interface_type *type ); ARGUMENTS back Backend device type Interface type RETURN 0 on success, negative error number on failure. SEE ALSO ...
iio_backend_iodelay_set(9)
NAME iio_backend_iodelay_set - Set digital I/O delay SYNOPSIS int iio_backend_iodelay_set (struct iio_backend *back , unsigned int lane , unsigned int taps ); ARGUMENTS back Backend device lane Lane number taps Number of taps DESCRIPTION Controls delays on sending/receiving da...
iio_backend_num_lanes_set(9)
NAME iio_backend_num_lanes_set - Number of lanes enabled. SYNOPSIS int iio_backend_num_lanes_set (struct iio_backend *back , unsigned int num_lanes ); ARGUMENTS back Backend device num_lanes Number of lanes. RETURN 0 on success, negative error number on failure. SEE ALSO Kernel file ./drivers/iio...
iio_backend_oversampling_ratio_set(9)
NAME iio_backend_oversampling_ratio_set - set the oversampling ratio SYNOPSIS int iio_backend_oversampling_ratio_set (struct iio_backend *back , unsigned int chan , unsigned int ratio ); ARGUMENTS back Backend device chan Channel number ratio The oversampling ratio - value 1 corres...
iio_backend_read_raw(9)
NAME iio_backend_read_raw - Read a channel attribute from a backend device. SYNOPSIS int iio_backend_read_raw (struct iio_backend *back , struct iio_chan_spec const *chan , int *val , int *val2 , long mask ); ARGUMENTS back Backend device chan IIO channel reference val First retu...
iio_backend_set_sampling_freq(9)
NAME iio_backend_set_sampling_freq - Set channel sampling rate SYNOPSIS int iio_backend_set_sampling_freq (struct iio_backend *back , unsigned int chan , u64 sample_rate_hz ); ARGUMENTS back Backend device chan Channel number sample_rate_hz Sample rate RETURN 0 on suc...
iio_backend_test_pattern_set(9)
NAME iio_backend_test_pattern_set - Configure a test pattern SYNOPSIS int iio_backend_test_pattern_set (struct iio_backend *back , unsigned int chan , enum iio_backend_test_pattern pattern ); ARGUMENTS back Backend device chan Channel number pattern Test pattern DESCRIPTION Configur...
iio_buffer_enabled(9)
NAME iio_buffer_enabled - helper function to test if the buffer is enabled SYNOPSIS bool iio_buffer_enabled (struct iio_dev *indio_dev ); ARGUMENTS indio_dev IIO device structure for device RETURN True, if the buffer is enabled. SEE ALSO Kernel file ./drivers/iio/industrialio-core.c iio_device_id(9), iio_f...
iio_buffer_get(9)
NAME iio_buffer_get - Grab a reference to the buffer SYNOPSIS struct iio_buffer * iio_buffer_get (struct iio_buffer *buffer ); ARGUMENTS buffer The buffer to grab a reference for, may be NULL DESCRIPTION Returns the pointer to the buffer that was passed into the function. SEE ALSO Kernel file ./drivers/iio/ind...
iio_buffer_init(9)
NAME iio_buffer_init - Initialize the buffer structure SYNOPSIS void iio_buffer_init (struct iio_buffer *buffer ); ARGUMENTS buffer buffer to be initialized SEE ALSO Kernel file ./include/linux/iio/buffer_impl.h INDIO_BUFFER_FLAG_FIXED_WATERMARK(9), struct iio_buffer_access_funcs(9), struct iio_buffer(9), iio_u...
iio_buffer_poll(9)
NAME iio_buffer_poll - poll the buffer to find out if it has data SYNOPSIS __poll_t iio_buffer_poll (struct file *filp , struct poll_table_struct *wait ); ARGUMENTS filp File structure pointer for device access wait Poll table structure pointer for which the driver adds a wait queue RETURN (EPO...
iio_buffer_put(9)
NAME iio_buffer_put - Release the reference to the buffer SYNOPSIS void iio_buffer_put (struct iio_buffer *buffer ); ARGUMENTS buffer The buffer to release the reference for, may be NULL SEE ALSO Kernel file ./drivers/iio/industrialio-buffer.c iio_buffer_read(9), iio_buffer_poll(9), iio_buffer_wakeup_poll(9), i...
iio_buffer_read(9)
NAME iio_buffer_read - chrdev read for buffer access SYNOPSIS ssize_t iio_buffer_read (struct file *filp , char __user *buf , size_t n , loff_t *f_ps ); ARGUMENTS filp File structure pointer for the char device buf Destination buffer for iio buffer read n First n bytes to read...
iio_buffer_release(9)
NAME iio_buffer_release - Free a buffer's resources SYNOPSIS void iio_buffer_release (struct kref *ref ); ARGUMENTS ref Pointer to the kref embedded in the iio_buffer struct DESCRIPTION This function is called when the last reference to the buffer has been dropped. It will typically free all resources alloca...
iio_buffer_wakeup_poll(9)
NAME iio_buffer_wakeup_poll - Wakes up the buffer waitqueue SYNOPSIS void iio_buffer_wakeup_poll (struct iio_dev *indio_dev ); ARGUMENTS indio_dev The IIO device DESCRIPTION Wakes up the event waitqueue used for poll. Should usually be called when the device is unregistered. SEE ALSO Kernel file ./drivers/i...
iio_channel_cb_get_channels(9)
NAME iio_channel_cb_get_channels - get access to the underlying channels. SYNOPSIS struct iio_channel * iio_channel_cb_get_channels (const struct iio_cb_buffer *cb_buffer ); ARGUMENTS cb_buffer The callback buffer from whom we want the channel information. DESCRIPTION This function allows one to obtain informati...
iio_channel_cb_get_iio_dev(9)
NAME iio_channel_cb_get_iio_dev - get access to the underlying device. SYNOPSIS struct iio_dev * iio_channel_cb_get_iio_dev (const struct iio_cb_buffer *cb_buffer ); ARGUMENTS cb_buffer The callback buffer from whom we want the device information. DESCRIPTION This function allows one to obtain information about th...
iio_channel_cb_set_buffer_watermark(9)
NAME iio_channel_cb_set_buffer_watermark - set the buffer watermark. SYNOPSIS int iio_channel_cb_set_buffer_watermark (struct iio_cb_buffer *cb_buffer , size_t watermark ); ARGUMENTS cb_buffer The callback buffer from whom we want the channel information. watermark buffer watermark in bytes. DESCRIPTION ...
iio_channel_get(9)
NAME iio_channel_get - get description of all that is needed to access channel. SYNOPSIS struct iio_channel * iio_channel_get (struct device *dev , const char *consumer_channel ); ARGUMENTS dev Pointer to consumer device. Device name must match the name of the device as provided in the iio_map with which the ...
iio_channel_get_all(9)
NAME iio_channel_get_all - get all channels associated with a client SYNOPSIS struct iio_channel * iio_channel_get_all (struct device *dev ); ARGUMENTS dev Pointer to consumer device. DESCRIPTION Returns an array of iio_channel structures terminated with one with null iio_dev pointer. This function is used ...
iio_channel_get_all_cb(9)
NAME iio_channel_get_all_cb - register callback for triggered capture SYNOPSIS struct iio_cb_buffer * iio_channel_get_all_cb (struct device *dev , int (*cb)(const void *data, void *private) , void *private ); ARGUMENTS dev Pointer to client device. cb Callback function. Must be safe to call f...
iio_channel_has_available(9)
NAME iio_channel_has_available - Checks if a channel has an available attribute SYNOPSIS bool iio_channel_has_available (const struct iio_chan_spec *chan , enum iio_chan_info_enum type ); ARGUMENTS chan The channel to be queried type Type of the available attribute to be checked DESCRIPTION Ret...
iio_channel_has_info(9)
NAME iio_channel_has_info - Checks whether a channel supports a info attribute SYNOPSIS bool iio_channel_has_info (const struct iio_chan_spec *chan , enum iio_chan_info_enum type ); ARGUMENTS chan The channel to be queried type Type of the info attribute to be checked DESCRIPTION Returns true i...
iio_channel_release(9)
NAME iio_channel_release - release channels obtained via iio_channel_get SYNOPSIS void iio_channel_release (struct iio_channel *chan ); ARGUMENTS chan The channel to be released. SEE ALSO Kernel file ./include/linux/iio/consumer.h struct iio_channel(9), iio_channel_get(9), devm_iio_channel_get(9), i...
iio_channel_release_all(9)
NAME iio_channel_release_all - reverse iio_channel_get_all SYNOPSIS void iio_channel_release_all (struct iio_channel *chan ); ARGUMENTS chan Array of channels to be released. SEE ALSO Kernel file ./include/linux/iio/consumer.h struct iio_channel(9), iio_channel_get(9), iio_channel_release(9), de...
iio_channel_release_all_cb(9)
NAME iio_channel_release_all_cb - release and unregister the callback. SYNOPSIS void iio_channel_release_all_cb (struct iio_cb_buffer *cb_buffer ); ARGUMENTS cb_buffer The callback buffer that was allocated. SEE ALSO Kernel file ./include/linux/iio/consumer.h struct iio_channel(9), iio_channel_get(9), iio_chan...
iio_channel_start_all_cb(9)
NAME iio_channel_start_all_cb - start the flow of data through callback. SYNOPSIS int iio_channel_start_all_cb (struct iio_cb_buffer *cb_buff ); ARGUMENTS cb_buff The callback buffer we are starting. SEE ALSO Kernel file ./include/linux/iio/consumer.h struct iio_channel(9), iio_channel_get(9), iio_channel_relea...
iio_channel_stop_all_cb(9)
NAME iio_channel_stop_all_cb - stop the flow of data through the callback. SYNOPSIS void iio_channel_stop_all_cb (struct iio_cb_buffer *cb_buff ); ARGUMENTS cb_buff The callback buffer we are stopping. SEE ALSO Kernel file ./include/linux/iio/consumer.h struct iio_channel(9), iio_channel_get(9), iio_channel_rel...
iio_chrdev_open(9)
NAME iio_chrdev_open - chrdev file open for buffer access and ioctls SYNOPSIS int iio_chrdev_open (struct inode *inode , struct file *filp ); ARGUMENTS inode Inode structure for identifying the device in the file system filp File structure for iio device used to keep and later access private data...
iio_chrdev_release(9)
NAME iio_chrdev_release - chrdev file close buffer access and ioctls SYNOPSIS int iio_chrdev_release (struct inode *inode , struct file *filp ); ARGUMENTS inode Inode structure pointer for the char device filp File structure pointer for the char device RETURN 0 for successful release. SEE ALSO ...
iio_convert_raw_to_processed(9)
NAME iio_convert_raw_to_processed - Converts a raw value to a processed value SYNOPSIS int iio_convert_raw_to_processed (struct iio_channel *chan , int raw , int *processed , unsigned int scale ); ARGUMENTS chan The channel being queried raw The raw IIO to convert processed The result...
iio_device_alloc(9)
NAME iio_device_alloc - allocate an iio_dev from a driver SYNOPSIS struct iio_dev * iio_device_alloc (struct device *parent , int sizeof_priv ); ARGUMENTS parent Parent device. sizeof_priv Space to allocate for private structure. RETURN Pointer to allocated iio_dev on success, NULL on failure. SEE ALSO...
iio_device_attach_buffer(9)
NAME iio_device_attach_buffer - Attach a buffer to a IIO device SYNOPSIS int iio_device_attach_buffer (struct iio_dev *indio_dev , struct iio_buffer *buffer ); ARGUMENTS indio_dev The device the buffer should be attached to buffer The buffer to attach to the device DESCRIPTION Return 0 if successfu...
iio_device_claim_direct(9)
NAME iio_device_claim_direct - Keep device in direct mode SYNOPSIS bool iio_device_claim_direct (struct iio_dev *indio_dev ); ARGUMENTS indio_dev the iio_dev associated with the device DESCRIPTION If the device is in direct mode it is guaranteed to stay that way until iio_device_release_direct is called. Use with...
iio_device_free(9)
NAME iio_device_free - free an iio_dev from a driver SYNOPSIS void iio_device_free (struct iio_dev *dev ); ARGUMENTS dev the iio_dev associated with the device SEE ALSO Kernel file ./drivers/iio/industrialio-core.c iio_device_id(9), iio_buffer_enabled(9), iio_find_channel_from_si(9), iio_device_set_clock(9)...
iio_device_get(9)
NAME iio_device_get - increment reference count for the device SYNOPSIS struct iio_dev * iio_device_get (struct iio_dev *indio_dev ); ARGUMENTS indio_dev IIO device structure RETURN The passed IIO device SEE ALSO Kernel file ./include/linux/iio/iio.h struct iio_chan_spec_ext_info(9), struct iio_enum(9), II...
iio_device_get_clock(9)
NAME iio_device_get_clock - Retrieve current timestamping clock for the device SYNOPSIS clockid_t iio_device_get_clock (const struct iio_dev *indio_dev ); ARGUMENTS indio_dev IIO device structure containing the device RETURN Clock ID of the current timestamping clock for the device. SEE ALSO Kernel file ./dri...
iio_device_get_current_mode(9)
NAME iio_device_get_current_mode - helper function providing read-only access to the opaque @currentmode variable SYNOPSIS int iio_device_get_current_mode (struct iio_dev *indio_dev ); ARGUMENTS indio_dev IIO device structure for device SEE ALSO Kernel file ./drivers/iio/industrialio-core.c iio_device_id(9), i...
iio_device_get_drvdata(9)
NAME iio_device_get_drvdata - Get device driver data SYNOPSIS void * iio_device_get_drvdata (const struct iio_dev *indio_dev ); ARGUMENTS indio_dev IIO device structure DESCRIPTION Returns the data previously set with iio_device_set_drvdata SEE ALSO Kernel file ./include/linux/iio/iio.h struct iio_chan_spec_ext...
iio_device_id(9)
NAME iio_device_id - query the unique ID for the device SYNOPSIS int iio_device_id (struct iio_dev *indio_dev ); ARGUMENTS indio_dev Device structure whose ID is being queried DESCRIPTION The IIO device ID is a unique index used for example for the naming of the character device /dev/iiodevice[ID]. RETURN Unique ...
iio_device_put(9)
NAME iio_device_put - reference counted deallocation of struct device SYNOPSIS void iio_device_put (struct iio_dev *indio_dev ); ARGUMENTS indio_dev IIO device structure containing the device SEE ALSO Kernel file ./include/linux/iio/iio.h struct iio_chan_spec_ext_info(9), struct iio_enum(9), IIO_ENUM(9), I...
iio_device_register(9)
NAME iio_device_register - register a device with the IIO subsystem SYNOPSIS iio_device_register (indio_dev ); ARGUMENTS indio_dev Device structure filled by the device driver SEE ALSO Kernel file ./include/linux/iio/iio.h struct iio_chan_spec_ext_info(9), struct iio_enum(9), IIO_ENUM(9), IIO_ENUM_AVAILABL...
iio_device_register_trigger_consumer(9)
NAME iio_device_register_trigger_consumer - set up an iio_dev to use triggers SYNOPSIS int iio_device_register_trigger_consumer (struct iio_dev *indio_dev ); ARGUMENTS indio_dev iio_dev associated with the device that will consume the trigger SEE ALSO Kernel file ./drivers/iio/iio_core_trigger.h iio_device_unregis...
iio_device_release_buffer_mode(9)
NAME iio_device_release_buffer_mode - releases claim on buffer mode SYNOPSIS iio_device_release_buffer_mode (indio_dev ); ARGUMENTS indio_dev the iio_dev associated with the device DESCRIPTION Release the claim. Device is no longer guaranteed to stay in buffer mode. Use with iio_device_try_claim_buffer_mode. SEE...
iio_device_release_direct(9)
NAME iio_device_release_direct - Releases claim on direct mode SYNOPSIS iio_device_release_direct (indio_dev ); ARGUMENTS indio_dev the iio_dev associated with the device DESCRIPTION Release the claim. Device is no longer guaranteed to stay in direct mode. Use with iio_device_claim_direct. SEE ALSO Kernel file ...
iio_device_resume_triggering(9)
NAME iio_device_resume_triggering - resume trigger attached to an iio_dev that was previously suspended with iio_device_suspend_triggering() SYNOPSIS int iio_device_resume_triggering (struct iio_dev *indio_dev ); ARGUMENTS indio_dev iio_dev associated with the device that will have triggers resumed DESCRIPTION Ret...
iio_device_set_clock(9)
NAME iio_device_set_clock - Set current timestamping clock for the device SYNOPSIS int iio_device_set_clock (struct iio_dev *indio_dev , clockid_t clock_id ); ARGUMENTS indio_dev IIO device structure containing the device clock_id timestamping clock POSIX identifier to set. RETURN 0 on success, or a neg...
iio_device_set_drvdata(9)
NAME iio_device_set_drvdata - Set device driver data SYNOPSIS void iio_device_set_drvdata (struct iio_dev *indio_dev , void *data ); ARGUMENTS indio_dev IIO device structure data Driver specific data DESCRIPTION Allows to attach an arbitrary pointer to an IIO device, which can later be retrieved by ...
iio_device_set_parent(9)
NAME iio_device_set_parent - assign parent device to the IIO device object SYNOPSIS void iio_device_set_parent (struct iio_dev *indio_dev , struct device *parent ); ARGUMENTS indio_dev IIO device structure parent reference to parent device object DESCRIPTION This utility must be called between IIO de...
iio_device_suspend_triggering(9)
NAME iio_device_suspend_triggering - suspend trigger attached to an iio_dev SYNOPSIS int iio_device_suspend_triggering (struct iio_dev *indio_dev ); ARGUMENTS indio_dev iio_dev associated with the device that will have triggers suspended DESCRIPTION Return 0 if successful, negative otherwise SEE ALSO Kernel file...
iio_device_try_claim_buffer_mode(9)
NAME iio_device_try_claim_buffer_mode - Keep device in buffer mode SYNOPSIS bool iio_device_try_claim_buffer_mode (struct iio_dev *indio_dev ); ARGUMENTS indio_dev the iio_dev associated with the device DESCRIPTION If the device is in buffer mode it is guaranteed to stay that way until iio_device_release_buffer_mo...
iio_device_unregister(9)
NAME iio_device_unregister - unregister a device from the IIO subsystem SYNOPSIS void iio_device_unregister (struct iio_dev *indio_dev ); ARGUMENTS indio_dev Device structure representing the device. SEE ALSO Kernel file ./drivers/iio/industrialio-core.c iio_device_id(9), iio_buffer_enabled(9), iio_find_channel_f...