Lines Matching full:spi
3 * Common SPI Interface: Controller-specific definitions
14 /* SPI mode flags */
46 * struct dm_spi_platdata - platform data for all SPI slaves
48 * This describes a SPI slave, a child device of the SPI bus. To obtain this
57 * @mode: SPI mode to use for this device (see SPI mode flags)
68 * struct spi_slave - Representation of a SPI slave
70 * For driver model this is the per-child data used by the SPI bus. It can
71 * be accessed using dev_get_parent_priv() on the slave device. The SPI uclass
80 * @dev: SPI slave device
85 * driver model this is the sequence number of the SPI
88 * @mode: SPI mode to use for this slave (see SPI mode flags)
89 * @wordlen: Size of SPI word in number of bits
94 * @memory_map: Address of read-only SPI flash access.
95 * @flags: Indication of SPI flags.
121 * spi_do_alloc_slave - Allocate a new SPI slave (internal)
123 * Allocate and zero all fields in the spi slave, and set the bus/chip
135 * spi_alloc_slave - Allocate a new SPI slave
137 * Allocate and zero all fields in the spi slave, and set the bus/chip
150 * spi_alloc_slave_base - Allocate a new SPI slave with no private data
152 * Allocate and zero all fields in the spi slave, and set the bus/chip
162 * Set up communications parameters for a SPI slave.
174 * Returns: A spi_slave reference that can be used in subsequent SPI
181 * Free any memory associated with a SPI slave.
183 * @slave: The SPI slave
190 * This must be called before doing any transfers with a SPI slave. It
191 * will enable and initialize any SPI hardware as necessary, and make
196 * @slave: The SPI slave
204 * Release the SPI bus
207 * all transfers have finished. It may disable any SPI hardware as
210 * @slave: The SPI slave
215 * Set the word length for SPI transactions
217 * Set the word length (number of bits per word) for SPI transactions.
219 * @slave: The SPI slave
227 * SPI transfer
229 * This writes "bitlen" bits out the SPI MOSI port and simultaneously clocks
230 * "bitlen" bits in the SPI MISO port. That's just the way SPI works.
239 * @slave: The SPI slave which will be sending/receiving the data.
255 * Determine if a SPI chipselect is valid.
256 * This function is provided by the board if the low-level SPI driver
266 * Activate a SPI chipselect.
275 * Deactivate a SPI chipselect.
286 * @slave: The SPI slave
294 * @slave: The SPI slave we're communicating with
326 * struct struct dm_spi_ops - Driver model SPI operations
328 * The uclass interface is implemented by all SPI devices which use
338 * This must be called before doing any transfers with a SPI slave. It
339 * will enable and initialize any SPI hardware as necessary, and make
344 * @dev: The SPI slave
352 * Release the SPI bus
355 * all transfers have finished. It may disable any SPI hardware as
358 * @dev: The SPI slave
363 * Set the word length for SPI transactions
365 * Set the word length (number of bits per word) for SPI transactions.
367 * @bus: The SPI slave
375 * SPI transfer
377 * This writes "bitlen" bits out the SPI MOSI port and simultaneously
378 * clocks "bitlen" bits in the SPI MISO port. That's just the way SPI
401 * Optimized handlers for SPI memory-like operations.
403 * Optimized/dedicated operations for interactions with SPI memory. This
412 * @bus: The SPI bus
419 * Set the SPI mode/flags
424 * @bus: The SPI bus
425 * @mode: Requested SPI mode (SPI_... flags)
433 * This is only called when the SPI uclass does not know about a
437 * @bus: The SPI bus
452 * SPI transfer
454 * This writes "bitlen" bits out the SPI MOSI port and simultaneously
455 * clocks "bitlen" bits in the SPI MISO port. That's just the way SPI
465 * @slave: The SPI slave which will be sending/receiving the data.
486 * @busnum: SPI bus number
506 * @busnum: SPI bus number
508 * @speed: SPI speed to use for this slave
509 * @mode: SPI mode to use for this slave
530 * @bus: SPI bus to search
538 * spi_slave_ofdata_to_platdata() - decode standard SPI platform data
555 * @bus: The SPI bus
566 * sandbox_spi_get_emul() - get an emulator for a SPI slave
568 * This provides a way to attach an emulated SPI device to a particular SPI
574 * @bus: SPI bus requesting the emulator
575 * @slave: SPI slave device requesting the emulator
586 * This must be called before doing any transfers with a SPI slave. It
587 * will enable and initialize any SPI hardware as necessary, and make
592 * @dev: The SPI slave device
600 * Release the SPI bus
603 * all transfers have finished. It may disable any SPI hardware as
606 * @slave: The SPI slave device
611 * SPI transfer
613 * This writes "bitlen" bits out the SPI MOSI port and simultaneously clocks
614 * "bitlen" bits in the SPI MISO port. That's just the way SPI works.
623 * @dev: The SPI slave device which will be sending/receiving the data.
635 /* Access the operations for a SPI device */