aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/industrialio-buffer.c
AgeCommit message (Expand)AuthorFilesLines
2024-04-29iio: buffer: initialize masklength accumulator to 0David Lechner1-1/+1
2024-03-25iio: buffer: iio: core: move to the cleanup.h magicNuno Sa1-73/+47
2023-12-21iio: buffer: Use IIO_SEPARATE instead of a hard-coded 0Christophe JAILLET1-3/+3
2023-11-16iio: buffer: document known issueMatti Vaittinen1-0/+16
2023-05-13iio: buffer: fix coding style warningsNuno Sá1-49/+49
2023-02-18iio: buffer: make sure O_NONBLOCK is respectedNuno Sá1-8/+11
2023-02-18iio: buffer: correctly return bytes written in output buffersNuno Sá1-1/+1
2022-11-23iio: Don't silently expect attribute typesMatti Vaittinen1-4/+7
2022-11-23iio: core: move 'mlock' to 'struct iio_dev_opaque'Nuno Sá1-12/+17
2022-08-15iio: Fix indentation for multiline conditional.Joe Simmons-Talbott1-2/+2
2022-08-15iio: Add blank lines after declarations.Joe Simmons-Talbott1-0/+1
2022-07-01iio: Don't use bare "unsigned"Joe Simmons-Talbott1-5/+5
2022-06-15iio: Use octal permissions and DEVICE_ATTR_{RO,RW}.Joe Simmons-Talbott1-35/+21
2022-04-28iio: Replace strtobool() with kstrtobool()Lars-Peter Clausen1-3/+3
2022-04-10iio: core: Move the currentmode entry to the opaque structureMiquel Raynal1-6/+6
2022-04-04iio: core: Print error and fail iio_device_register() in case sample bits do ...Marek Vasut1-0/+13
2022-04-04iio: buffer: remove usage of list iterator variable for list_for_each_entry_c...Jakob Koschel1-2/+5
2022-04-04iio: core: fix a few code style issuesAlexander Vorwerk1-2/+2
2022-03-18Merge tag 'iio-for-5.18a' of https://git.kernel.org/pub/scm/linux/kernel/git/...Greg Kroah-Hartman1-2/+2
2022-02-11iio: buffer: Fix file related error handling in IIO_BUFFER_GET_FD_IOCTLMathias Krause1-3/+11
2022-01-23iio: core: Use sysfs_emit()Lars-Peter Clausen1-2/+2
2021-11-20iio: buffer: Use dedicated variable in iio_buffers_alloc_sysfs_and_mask()Andy Shevchenko1-12/+8
2021-10-24Merge tag 'iio-for-5.16b' of https://git.kernel.org/pub/scm/linux/kernel/git/...Greg Kroah-Hartman1-1/+1
2021-10-24Merge tag 'iio-fixes-for-5.16a' of https://git.kernel.org/pub/scm/linux/kerne...Greg Kroah-Hartman1-11/+17
2021-10-21iio: buffer: Fix memory leak in iio_buffers_alloc_sysfs_and_mask()Yang Yingliang1-5/+7
2021-10-20iio: buffer: Fix uninitialized variable retColin Ian King1-1/+1
2021-10-19iio: Add output buffer supportMihail Chindris1-2/+125
2021-10-19iio: core: Introduce iio_push_to_buffers_with_ts_unaligned()Jonathan Cameron1-0/+46
2021-10-17iio: buffer: Fix memory leak in iio_buffer_register_legacy_sysfs_groups()Yang Yingliang1-2/+2
2021-10-17iio: buffer: Fix double-free in iio_buffers_alloc_sysfs_and_mask()Yang Yingliang1-1/+1
2021-10-17iio: buffer: Fix memory leak in __iio_buffer_alloc_sysfs_and_mask()Yang Yingliang1-3/+2
2021-10-17iio: buffer: check return value of kstrdup_const()Yang Yingliang1-0/+5
2021-07-17iio: buffer: Move a sanity check at the beginning of 'iio_scan_mask_set()'Christophe JAILLET1-4/+5
2021-07-17iio: buffer: Save a few cycles in 'iio_scan_mask_set()'Christophe JAILLET1-2/+2
2021-06-03iio: buffer: Remove redundant assignment to in_locJiapeng Chong1-1/+0
2021-05-17iio: core: move @info_exist_lock to struct iio_dev_opaqueJonathan Cameron1-2/+3
2021-05-17iio: core: move @scan_index_timestamp to struct iio_dev_opaqueJonathan Cameron1-2/+5
2021-04-07iio: buffer: use sysfs_attr_init() on allocated attrsAlexandru Ardelean1-0/+1
2021-04-07iio: buffer: return 0 for buffer getfd ioctl handlerAlexandru Ardelean1-1/+1
2021-03-29iio: core: Use sysfs_emit() (trivial bits)Lars-Peter Clausen1-10/+10
2021-03-25iio: buffer: fix use-after-free for attached_buffers arrayAlexandru Ardelean1-4/+5
2021-03-11iio: buffer: add ioctl() to support opening extra buffers for IIO deviceAlexandru Ardelean1-5/+139
2021-03-11iio: buffer: introduce support for attaching more IIO buffersAlexandru Ardelean1-19/+81
2021-03-11iio: buffer: move __iio_buffer_free_sysfs_and_mask() before allocAlexandru Ardelean1-8/+8
2021-03-11iio: core: wrap iio device & buffer into struct for character devicesAlexandru Ardelean1-4/+6
2021-03-11iio: buffer: wrap all buffer attributes into iio_dev_attrAlexandru Ardelean1-26/+51
2021-03-11iio: add reference to iio buffer on iio_dev_attrAlexandru Ardelean1-0/+4
2021-03-11iio: core: merge buffer/ & scan_elements/ attributesAlexandru Ardelean1-27/+88
2021-03-11iio: buffer: group attr count and attr allocAlexandru Ardelean1-34/+37
2021-03-11iio: core: rework iio device group creationAlexandru Ardelean1-2/+10
2020-12-03iio: buffer: Fix demux updateNuno Sá1-3/+3
2020-11-21iio: buffer: remove iio_buffer_set_attrs() helperAlexandru Ardelean1-12/+0
2020-09-17iio: buffer: split buffer sysfs creation to take buffer as primary argAlexandru Ardelean1-16/+30
2020-07-15iio: buffer: fix attach/detach pollfunc orderAlexandru Ardelean1-13/+18
2020-07-07iio: core: move iio_dev's buffer_list to the private iio device objectAlexandru Ardelean1-14/+24
2020-06-20iio: Move attach/detach of the poll func to the coreLars-Peter Clausen1-0/+13
2020-05-16iio: buffer: remove attrcount_orig var from sysfs creationAlexandru Ardelean1-3/+3
2020-05-16iio: __iio_update_buffers: Update mode before preenable/after postdisableLars-Peter Clausen1-5/+3
2020-05-03iio: buffer: extend short-hand use for 'indio_dev->buffer'Alexandru Ardelean1-27/+34
2020-04-19iio: buffer: remove 'scan_el_attrs' attribute group from buffer structAlexandru Ardelean1-8/+0
2020-04-19iio: buffer: Don't allow buffers without any channels enabled to be activatedLars-Peter Clausen1-0/+7
2020-04-19iio: buffer: re-introduce bitmap_zalloc() for trialmaskAlexandru Ardelean1-2/+1
2020-01-22Merge 5.5-rc7 into staging-nextGreg Kroah-Hartman1-1/+5
2020-01-13iio: buffer: align the size of scan bytes to size of the largest elementLars Möllendorf1-1/+5
2019-12-29iio: buffer: rename 'read_first_n' callback to 'read'Lars-Peter Clausen1-5/+5
2019-06-19treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500Thomas Gleixner1-5/+1
2019-04-21Merge 5.1-rc6 into staging-nextGreg Kroah-Hartman1-1/+2
2019-04-04iio: buffer: Switch to bitmap_zalloc()Andy Shevchenko1-14/+10
2019-03-09iio: Fix scan mask selectionLars-Peter Clausen1-3/+2
2018-02-20Merge tag 'iio-fixes-for-4.16a' of git://git.kernel.org/pub/scm/linux/kernel/...Greg Kroah-Hartman1-1/+1
2018-02-17iio: buffer: check if a buffer has been set up when poll is calledStefan Windfeldt-Prytz1-1/+1
2018-02-11vfs: do bulk POLL* -> EPOLL* replacementLinus Torvalds1-3/+3
2018-02-01Merge tag 'staging-4.16-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-0/+15
2018-01-08iio: buffer: Expose data availableMatt Fornero1-0/+15
2017-11-28the rest of drivers/*: annotate ->poll() instancesAl Viro1-1/+1
2017-03-02sched/headers: Prepare to move signal wakeup & sigpending methods from <linux...Ingo Molnar1-1/+1
2017-01-10iio:buffer.h - split into buffer.h and buffer_impl.hJonathan Cameron1-0/+1
2017-01-10iio:buffer: Push implementation of iio_device_attach_buffer into .c fileJonathan Cameron1-0/+16
2017-01-10iio:buffers: Push some docs down into the .c file.Jonathan Cameron1-0/+5
2017-01-10iio:buffer: Stop exporting iio_scan_mask_queryJonathan Cameron1-14/+13
2017-01-10iio:buffer: Introduced a function to assign the buffer specific attrs.Jonathan Cameron1-0/+12
2017-01-10iio:buffer: Stop exporting iio_update_demuxJonathan Cameron1-131/+129
2016-09-24iio: Use kmalloc_array() in iio_scan_mask_set()Markus Elfring1-4/+3
2016-09-05iio: ensure ret is initialized to zero before entering do loopColin Ian King1-2/+2
2016-08-21iio: fix sched WARNING "do not call blocking ops when !TASK_RUNNING"Brian Norris1-6/+17
2016-03-28iio: fix config watermark initial valueIrina Tirdea1-0/+1
2016-02-06iio: Add helper function for calculating scan index storage sizeLars-Peter Clausen1-34/+25
2015-12-13Merge 4.4-rc5 into staging-nextGreg Kroah-Hartman1-1/+1
2015-11-21iio: fix some warning messagesDan Carpenter1-1/+1
2015-10-25iio: Add buffer enable/disable callbacksLars-Peter Clausen1-1/+35
2015-10-25iio: Add support for indicating fixed watermarksLars-Peter Clausen1-0/+5
2015-10-25iio:iio_buffer_init(): Only set watermark if not already setLars-Peter Clausen1-1/+2
2015-10-25iio: Set device watermark based on watermark of all attached buffersLars-Peter Clausen1-4/+10
2015-08-12iio: industrialio-buffer: Fix iio_buffer_poll return valueCristina Opriceana1-1/+1
2015-08-02iio: buffer: Fix kernel docs warningsCristina Opriceana1-1/+14
2015-06-21iio: allow userspace to flush the hwfifo with non-blocking readsOctavian Purdila1-9/+9
2015-06-01iio: Require strict scan mask matching in hardware modeLars-Peter Clausen1-5/+20
2015-06-01iio: Specify supported modes for buffersLars-Peter Clausen1-3/+15
2015-06-01iio: Always compute masklengthLars-Peter Clausen1-6/+9
2015-06-01iio: buffer: remove unneeded testLaurent Navet1-2/+0
2015-05-23iio: __iio_update_buffers: Leave device in sane state on errorLars-Peter Clausen1-36/+46
2015-05-23iio: __iio_update_buffers: Split enable and disable path into helper functionsLars-Peter Clausen1-88/+103
2015-05-23iio: __iio_update_buffers: Verify configuration before starting to apply itLars-Peter Clausen1-63/+101
2015-05-17iio: __iio_update_buffers: Perform request_update() only for new buffersLars-Peter Clausen1-11/+25
2015-05-17iio: __iio_update_buffers: Slightly refactor scan mask memory managementLars-Peter Clausen1-10/+13
2015-05-17iio: Replace printk in __iio_update_buffers with dev_dbgLars-Peter Clausen1-5/+7
2015-03-29iio: add support for hardware fifoOctavian Purdila1-13/+45
2015-03-29iio: add watermark logic to iio read and pollJosselin Costanzi1-15/+105
2015-02-04iio: buffer: refactor buffer attributes setupOctavian Purdila1-12/+19
2015-01-25iio: Add new operating mode for non triggered sw buffersKarol Wrona1-0/+2
2015-01-05iio: buffer: fix custom buffer attributes copyOctavian Purdila1-1/+1
2014-12-12iio: buffer: Drop get_length callbackLars-Peter Clausen1-8/+3
2014-12-12iio: buffer: Make length attribute read only for buffers without set_lengthLars-Peter Clausen1-3/+7
2014-12-12iio: buffer: Allocate standard attributes in the coreLars-Peter Clausen1-18/+41
2014-12-12iio: buffer: Move iio_buffer_alloc_sysfs and iio_buffer_free_sysfsLars-Peter Clausen1-94/+91
2014-12-12iio: Move buffer registration to the coreLars-Peter Clausen1-7/+11
2014-12-12iio: Unexport iio_scan_mask_set()Lars-Peter Clausen1-75/+74
2014-08-25Merge tag 'iio-for-3.18a' of git://git.kernel.org/pub/scm/linux/kernel/git/ji...Greg Kroah-Hartman1-30/+33
2014-08-08iio:buffer: Wrong sized allocation of demux table elements.Jonathan Cameron1-1/+1
2014-08-04Merge tag 'staging-3.17-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git...Linus Torvalds1-4/+1
2014-08-01iio: buffer: Coalesce adjacent demux table entriesLars-Peter Clausen1-19/+28
2014-07-27iio: buffer: Use roundup() instead of open-coding itLars-Peter Clausen1-11/+5
2014-07-20iio: buffer: Fix demux table creationLars-Peter Clausen1-1/+1
2014-06-29iio: staging: sca3000: hide stufftoread logicJosselin Costanzi1-4/+1
2014-04-29IIO: core: Modify scan element typeSrinivas Pandruvada1-6/+35
2014-04-22Merge tag 'iio-fixes-for-3.15a' of git://git.kernel.org/pub/scm/linux/kernel/...Greg Kroah-Hartman1-2/+4
2014-03-22iio: querying buffer scan_mask should return 0/1Alec Berg1-2/+4
2014-02-18iio get rid of unneccessary error_retHartmut Knaack1-10/+6
2013-12-03iio: Add support for blocking IO on buffersLars-Peter Clausen1-1/+22
2013-12-03iio: Add data_available callback for buffersLars-Peter Clausen1-1/+9
2013-10-19Merge 3.12-rc6 into staging-next.Greg Kroah-Hartman1-0/+3
2013-10-16iio: Remove unused iio_sw_buffer_preenable()Lars-Peter Clausen1-18/+0
2013-10-16iio: Update buffer's bytes per datum after updating the scan maskLars-Peter Clausen1-1/+17
2013-10-15iio:buffer: Free active scan mask in iio_disable_all_buffers()Lars-Peter Clausen1-0/+3
2013-10-12iio:buffer: Ignore noop requests for iio_update_buffers()Lars-Peter Clausen1-0/+14
2013-10-12iio: Add a helper to free a list of IIO device attributesLars-Peter Clausen1-19/+2
2013-10-12iio:buffer: Add proper locking for iio_update_buffers()Lars-Peter Clausen1-3/+26
2013-10-12iio: Wakeup poll and blocking reads when the device is unregisteredLars-Peter Clausen1-0/+16
2013-10-12iio: Return -ENODEV for file operations if the device has been unregisteredLars-Peter Clausen1-0/+6
2013-10-12iio: Add reference counting for buffersLars-Peter Clausen1-5/+61
2013-09-25Merge 3.12-rc2 into staging-next.Greg Kroah-Hartman1-2/+28
2013-09-21iio: Pass scan mask as unsigned longPeter Meerwald1-2/+2
2013-09-21iio: Stop sampling when the device is removedLars-Peter Clausen1-0/+19
2013-09-21iio: Fix crash when scan_bytes is computed with active_scan_mask == NULLPeter Meerwald1-2/+9
2013-09-18iio: Minor cleanups of industrialio-bufferPeter Meerwald1-5/+8
2013-09-15iio: iio_push_to_buffers(): Change type of 'data' to const void *Lars-Peter Clausen1-5/+5
2013-09-15iio: refactor info mask and ext_info attribute creation.Jonathan Cameron1-1/+1
2013-09-15iio:buffer: Simplify iio_buffer_is_active()Lars-Peter Clausen1-20/+11
2013-05-22iio: buffer: cleanup messages in iio_update_buffers()Michał Mirosław1-6/+4
2012-11-10staging:iio: Add support for multiple buffersJonathan Cameron1-117/+263
2012-10-19iio: Use strict_strtouint instead of kstrtoulLars-Peter Clausen1-3/+3
2012-09-08iio: Drop timestamp parameter from buffer store_to callbackLars-Peter Clausen1-3/+2
2012-09-03iio: whitespace cleanup and removal of semicolon after functionsPeter Meerwald1-5/+5
2012-07-12Merge tag 'togreg-3.6a' of git://git.kernel.org/pub/scm/linux/kernel/git/jic2...Greg Kroah-Hartman1-7/+36
2012-07-09iio: Introduce iio_validate_scan_mask_onehotLars-Peter Clausen1-0/+16
2012-07-09iio: Add callback to check whether a scan mask is validLars-Peter Clausen1-7/+20
2012-07-08iio: iio_buffer_register: Use correct channel when calculating masklengthLars-Peter Clausen1-1/+1
2012-06-18iio: iio_buffer_register: Skip channels with negative scan indexLars-Peter Clausen1-0/+3
2012-06-15iio: buffer: Fix NULL pointer deref caused by empty scan maskLars-Peter Clausen1-0/+4
2012-05-14iio: Use dev_to_iio_dev()Lars-Peter Clausen1-8/+8
2012-04-25IIO: Move the core files to drivers/iioJonathan Cameron1-0/+755