Home
last modified time | relevance | path

Searched refs:bytes_per_datum (Results 1 – 4 of 4) sorted by relevance

/drivers/staging/iio/
Dring_sw.c45 int bytes_per_datum, int length) in __iio_allocate_sw_ring_buffer() argument
47 if ((length == 0) || (bytes_per_datum == 0)) in __iio_allocate_sw_ring_buffer()
49 __iio_update_buffer(&ring->buf, bytes_per_datum, length); in __iio_allocate_sw_ring_buffer()
50 ring->data = kmalloc(length*ring->buf.bytes_per_datum, GFP_ATOMIC); in __iio_allocate_sw_ring_buffer()
80 ring->half_p = ring->data - ring->buf.length*ring->buf.bytes_per_datum/2; in iio_store_to_sw_ring()
83 memcpy(ring->write_p, data, ring->buf.bytes_per_datum); in iio_store_to_sw_ring()
93 temp_ptr = ring->write_p + ring->buf.bytes_per_datum; in iio_store_to_sw_ring()
95 if (temp_ptr == ring->data + ring->buf.length*ring->buf.bytes_per_datum) in iio_store_to_sw_ring()
114 temp_ptr = change_test_ptr + ring->buf.bytes_per_datum; in iio_store_to_sw_ring()
116 == ring->data + ring->buf.length*ring->buf.bytes_per_datum) { in iio_store_to_sw_ring()
[all …]
Dkfifo_buf.c20 int bytes_per_datum, int length) in __iio_allocate_kfifo() argument
22 if ((length == 0) || (bytes_per_datum == 0)) in __iio_allocate_kfifo()
25 __iio_update_buffer(&buf->buffer, bytes_per_datum, length); in __iio_allocate_kfifo()
26 return kfifo_alloc(&buf->kf, bytes_per_datum*length, GFP_KERNEL); in __iio_allocate_kfifo()
37 ret = __iio_allocate_kfifo(buf, buf->buffer.bytes_per_datum, in iio_request_update_kfifo()
64 return r->bytes_per_datum; in iio_get_bytes_per_datum_kfifo()
76 if (r->bytes_per_datum != bpd) { in iio_set_bytes_per_datum_kfifo()
77 r->bytes_per_datum = bpd; in iio_set_bytes_per_datum_kfifo()
98 ret = kfifo_in(&kf->kf, data, r->bytes_per_datum); in iio_store_to_kfifo()
99 if (ret != r->bytes_per_datum) in iio_store_to_kfifo()
[all …]
Dbuffer.h73 int bytes_per_datum; member
101 int bytes_per_datum, int length) in __iio_update_buffer() argument
103 buffer->bytes_per_datum = bytes_per_datum; in __iio_update_buffer()
/drivers/staging/iio/Documentation/
Dsysfs-bus-iio611 What: /sys/bus/iio/devices/iio:deviceX/buffer/bytes_per_datum