Lines Matching +full:mem +full:- +full:io
1 /* SPDX-License-Identifier: GPL-2.0+ */
61 * enum spi_mem_data_dir - describes the direction of a SPI memory data
72 * struct spi_mem_op - describes a SPI memory operation
73 * @cmd.buswidth: number of IO lines used to transmit the command
77 * @addr.buswidth: number of IO lines used to transmit the address cycles
84 * @dummy.buswidth: number of IO lanes used to transmit the dummy bytes
85 * @data.buswidth: number of IO lanes used to send/receive the data
111 /* buf.{in,out} must be DMA-able. */
129 * struct spi_mem - describes a SPI memory device
137 * mem devices through a io-mapped region.
145 * struct spi_mem_set_drvdata() - attach driver private data to a SPI mem
147 * @mem: memory device
150 static inline void spi_mem_set_drvdata(struct spi_mem *mem, void *data) in spi_mem_set_drvdata() argument
152 mem->drvpriv = data; in spi_mem_set_drvdata()
156 * struct spi_mem_get_drvdata() - get driver private data attached to a SPI mem
158 * @mem: memory device
160 * Return: the data attached to the mem device.
162 static inline void *spi_mem_get_drvdata(struct spi_mem *mem) in spi_mem_get_drvdata() argument
164 return mem->drvpriv; in spi_mem_get_drvdata()
169 * struct spi_controller_mem_ops - SPI memory operations
177 * high-level interface to execute SPI memory operation, which is usually the
190 * struct spi_mem_driver - SPI memory driver
207 int (*probe)(struct spi_mem *mem);
208 int (*remove)(struct spi_mem *mem);
209 void (*shutdown)(struct spi_mem *mem);
226 return -ENOTSUPP; in spi_controller_dma_map_mem_op_data()