Lines Matching +full:buffered +full:- +full:negative
2 * Common SPI Interface: Controller-specific definitions
7 * SPDX-License-Identifier: GPL-2.0+
23 #define SPI_LSB_FIRST BIT(3) /* per-word bits-on-wire */
44 * struct dm_spi_bus - SPI bus info
62 * struct dm_spi_platdata - platform data for all SPI slaves
66 * dev_get_parent_platdata(slave->dev).
71 * @cs: Chip select number (0..n-1)
82 * struct spi_slave - Representation of a SPI slave
84 * For driver model this is the per-child data used by the SPI bus. It can
92 * controller-specific data.
98 * bus (bus->seq) so does not need to be stored
102 * @max_read_size: If non-zero, the maximum number of bytes which can
104 * @max_write_size: If non-zero, the maximum number of bytes which can
106 * @memory_map: Address of read-only SPI flash access.
111 struct udevice *dev; /* struct spi_slave is dev->parentdata */
141 * spi_do_alloc_slave - Allocate a new SPI slave (internal)
155 * spi_alloc_slave - Allocate a new SPI slave
170 * spi_alloc_slave_base - Allocate a new SPI slave with no private data
218 * Returns: 0 if the bus was claimed successfully, or a negative value
242 * Returns: 0 on success, -1 on failure.
255 * input data overwrites the output data (since both are buffered by
272 * spi_write_then_read - SPI synchronous write followed by read
275 * is to send the opcode and if the length of buf is non-zero then it start
296 * This function is provided by the board if the low-level SPI driver
337 * Returns: The value that was read, or a negative value on error.
357 * struct spi_cs_info - Information about a bus chip select
366 * struct struct dm_spi_ops - Driver model SPI operations
386 * Returns: 0 if the bus was claimed successfully, or a negative value
410 * Returns: 0 on success, -ve on failure.
425 * buffered by temporary variables, this is OK).
435 * Returns: 0 on success, not -1 on failure
441 * Optimized handlers for SPI memory-like operations.
454 * @return 0 if OK, -ve on error
466 * @return 0 if OK, -ve on error
478 * @cs: The chip select (0..n-1)
480 * On entry info->dev is NULL
481 * @return 0 if OK (and @info is set up), -ENODEV if the chip select
482 * is invalid, other -ve value on error
487 * get_mmap() - Get memory-mapped SPI
494 * @return 0 if OK, -EFAULT if memory mapping is not available
512 * buffered by temporary variables, this is OK).
523 * Returns: 0 on success, not -1 on failure
530 * spi_find_bus_and_cs() - Find bus and slave devices by number
540 * @return 0 if found, -ENODEV on error
546 * spi_get_bus_and_cs() - Find and activate bus and slave devices by number
565 * @return 0 if found, -ve on error
572 * spi_chip_select() - Get the chip select for a slave
579 * spi_find_chip_select() - Find the slave attached to chip select
584 * @return 0 if found, -EINVAL if cs is invalid, -ENODEV if no device attached,
585 * other -ve value on error
590 * spi_slave_ofdata_to_platdata() - decode standard SPI platform data
602 * spi_cs_info() - Check information on a chip select
608 * @cs: The chip select (0..n-1)
610 * @return 0 if OK (and @info is set up), -ENODEV if the chip select
611 * is invalid, other -ve value on error
618 * sandbox_spi_get_emul() - get an emulator for a SPI slave
629 * @return 0 if OK, -ve on error
646 * Returns: 0 if the bus was claimed successfully, or a negative value
671 * input data overwrites the output data (since both are buffered by
688 * spi_get_mmap() - Get memory-mapped SPI
695 * @return 0 if OK, -ENOSYS if no operation, -EFAULT if memory mapping is not
702 #define spi_get_ops(dev) ((struct dm_spi_ops *)(dev)->driver->ops)
703 #define spi_emul_get_ops(dev) ((struct dm_spi_emul_ops *)(dev)->driver->ops)