• Home
  • Raw
  • Download

Lines Matching refs:spi

75 static inline int dataflash_status(struct spi_slave *spi)  in dataflash_status()  argument
83 ret = spi_flash_cmd(spi, OP_READ_STATUS, &status, 1); in dataflash_status()
92 static int dataflash_waitready(struct spi_slave *spi) in dataflash_waitready() argument
100 status = dataflash_status(spi); in dataflash_waitready()
118 struct spi_slave *spi; in spi_dataflash_erase() local
126 spi = spi_flash->spi; in spi_dataflash_erase()
148 status = spi_claim_bus(spi); in spi_dataflash_erase()
175 status = spi_flash_cmd_write(spi, command, 4, NULL, 0); in spi_dataflash_erase()
181 status = dataflash_waitready(spi); in spi_dataflash_erase()
196 spi_release_bus(spi); in spi_dataflash_erase()
212 struct spi_slave *spi; in spi_dataflash_read() local
219 spi = spi_flash->spi; in spi_dataflash_read()
233 status = spi_claim_bus(spi); in spi_dataflash_read()
250 status = spi_flash_cmd_read(spi, command, 8, buf, len); in spi_dataflash_read()
252 spi_release_bus(spi); in spi_dataflash_read()
268 struct spi_slave *spi; in spi_dataflash_write() local
277 spi = spi_flash->spi; in spi_dataflash_write()
291 status = spi_claim_bus(spi); in spi_dataflash_write()
329 status = spi_flash_cmd_write(spi, command, 4, NULL, 0); in spi_dataflash_write()
336 status = dataflash_waitready(spi); in spi_dataflash_write()
354 status = spi_flash_cmd_write(spi, command, in spi_dataflash_write()
361 status = dataflash_waitready(spi); in spi_dataflash_write()
378 status = spi_flash_cmd_write(spi, command, in spi_dataflash_write()
386 status = dataflash_waitready(spi); in spi_dataflash_write()
411 spi_release_bus(spi); in spi_dataflash_write()
504 static struct flash_info *jedec_probe(struct spi_slave *spi) in jedec_probe() argument
521 tmp = spi_flash_cmd(spi, CMD_READ_ID, id, sizeof(id)); in jedec_probe()
540 status = dataflash_status(spi); in jedec_probe()
584 struct spi_slave *spi = dev_get_parent_priv(dev); in spi_dataflash_probe() local
590 spi_flash->spi = spi; in spi_dataflash_probe()
593 status = spi_claim_bus(spi); in spi_dataflash_probe()
604 info = jedec_probe(spi); in spi_dataflash_probe()
619 status = dataflash_status(spi); in spi_dataflash_probe()
665 spi_free_slave(spi); in spi_dataflash_probe()
667 spi_release_bus(spi); in spi_dataflash_probe()