Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/spi/
Dspi-ljca.c80 static int ljca_spi_read_write(struct ljca_spi_dev *ljca_spi, const u8 *w_data, in ljca_spi_read_write() argument
85 (struct ljca_spi_xfer_packet *)ljca_spi->obuf; in ljca_spi_read_write()
87 (struct ljca_spi_xfer_packet *)ljca_spi->ibuf; in ljca_spi_read_write()
93 ljca_spi->spi_info->id); in ljca_spi_read_write()
103 ret = ljca_transfer(ljca_spi->ljca, cmd, (u8 *)w_packet, in ljca_spi_read_write()
117 static int ljca_spi_init(struct ljca_spi_dev *ljca_spi, u8 div, u8 mode) in ljca_spi_init() argument
122 if (ljca_spi->mode == mode && ljca_spi->speed == div) in ljca_spi_init()
125 w_packet.index = ljca_spi->spi_info->id; in ljca_spi_init()
134 ret = ljca_transfer(ljca_spi->ljca, LJCA_SPI_INIT, (u8 *)&w_packet, in ljca_spi_init()
139 ljca_spi->mode = mode; in ljca_spi_init()
[all …]