Searched refs:spifi (Results 1 - 3 of 3) sorted by relevance
/kernel/linux/linux-5.10/drivers/mtd/spi-nor/controllers/ |
H A D | nxp-spifi.c | 64 static int nxp_spifi_wait_for_cmd(struct nxp_spifi *spifi) in nxp_spifi_wait_for_cmd() argument 69 ret = readb_poll_timeout(spifi->io_base + SPIFI_STAT, stat, in nxp_spifi_wait_for_cmd() 72 dev_warn(spifi->dev, "command timed out\n"); in nxp_spifi_wait_for_cmd() 77 static int nxp_spifi_reset(struct nxp_spifi *spifi) in nxp_spifi_reset() argument 82 writel(SPIFI_STAT_RESET, spifi->io_base + SPIFI_STAT); in nxp_spifi_reset() 83 ret = readb_poll_timeout(spifi->io_base + SPIFI_STAT, stat, in nxp_spifi_reset() 86 dev_warn(spifi->dev, "state reset timed out\n"); in nxp_spifi_reset() 91 static int nxp_spifi_set_memory_mode_off(struct nxp_spifi *spifi) in nxp_spifi_set_memory_mode_off() argument 95 if (!spifi->memory_mode) in nxp_spifi_set_memory_mode_off() 98 ret = nxp_spifi_reset(spifi); in nxp_spifi_set_memory_mode_off() 107 nxp_spifi_set_memory_mode_on(struct nxp_spifi *spifi) nxp_spifi_set_memory_mode_on() argument 129 struct nxp_spifi *spifi = nor->priv; nxp_spifi_read_reg() local 152 struct nxp_spifi *spifi = nor->priv; nxp_spifi_write_reg() local 176 struct nxp_spifi *spifi = nor->priv; nxp_spifi_read() local 191 struct nxp_spifi *spifi = nor->priv; nxp_spifi_write() local 221 struct nxp_spifi *spifi = nor->priv; nxp_spifi_erase() local 239 nxp_spifi_setup_memory_cmd(struct nxp_spifi *spifi) nxp_spifi_setup_memory_cmd() argument 280 nxp_spifi_setup_flash(struct nxp_spifi *spifi, struct device_node *np) nxp_spifi_setup_flash() argument 383 struct nxp_spifi *spifi; nxp_spifi_probe() local 459 struct nxp_spifi *spifi = platform_get_drvdata(pdev); nxp_spifi_remove() local [all...] |
/kernel/linux/linux-6.6/drivers/mtd/spi-nor/controllers/ |
H A D | nxp-spifi.c | 63 static int nxp_spifi_wait_for_cmd(struct nxp_spifi *spifi) in nxp_spifi_wait_for_cmd() argument 68 ret = readb_poll_timeout(spifi->io_base + SPIFI_STAT, stat, in nxp_spifi_wait_for_cmd() 71 dev_warn(spifi->dev, "command timed out\n"); in nxp_spifi_wait_for_cmd() 76 static int nxp_spifi_reset(struct nxp_spifi *spifi) in nxp_spifi_reset() argument 81 writel(SPIFI_STAT_RESET, spifi->io_base + SPIFI_STAT); in nxp_spifi_reset() 82 ret = readb_poll_timeout(spifi->io_base + SPIFI_STAT, stat, in nxp_spifi_reset() 85 dev_warn(spifi->dev, "state reset timed out\n"); in nxp_spifi_reset() 90 static int nxp_spifi_set_memory_mode_off(struct nxp_spifi *spifi) in nxp_spifi_set_memory_mode_off() argument 94 if (!spifi->memory_mode) in nxp_spifi_set_memory_mode_off() 97 ret = nxp_spifi_reset(spifi); in nxp_spifi_set_memory_mode_off() 106 nxp_spifi_set_memory_mode_on(struct nxp_spifi *spifi) nxp_spifi_set_memory_mode_on() argument 128 struct nxp_spifi *spifi = nor->priv; nxp_spifi_read_reg() local 151 struct nxp_spifi *spifi = nor->priv; nxp_spifi_write_reg() local 175 struct nxp_spifi *spifi = nor->priv; nxp_spifi_read() local 190 struct nxp_spifi *spifi = nor->priv; nxp_spifi_write() local 220 struct nxp_spifi *spifi = nor->priv; nxp_spifi_erase() local 238 nxp_spifi_setup_memory_cmd(struct nxp_spifi *spifi) nxp_spifi_setup_memory_cmd() argument 279 nxp_spifi_setup_flash(struct nxp_spifi *spifi, struct device_node *np) nxp_spifi_setup_flash() argument 382 struct nxp_spifi *spifi; nxp_spifi_probe() local 436 struct nxp_spifi *spifi = platform_get_drvdata(pdev); nxp_spifi_remove() local [all...] |
/kernel/linux/linux-6.6/drivers/spi/ |
H A D | spi-gxp.c | 32 struct gxp_spi *spifi; member 50 static void gxp_spi_set_mode(struct gxp_spi *spifi, int mode) in gxp_spi_set_mode() argument 53 void __iomem *reg_base = spifi->reg_base; in gxp_spi_set_mode() 70 struct gxp_spi *spifi = chip->spifi; in gxp_spi_read_reg() local 71 void __iomem *reg_base = spifi->reg_base; in gxp_spi_read_reg() 97 dev_warn(spifi->dev, "read reg busy time out\n"); in gxp_spi_read_reg() 101 memcpy_fromio(op->data.buf.in, spifi->dat_base, op->data.nbytes); in gxp_spi_read_reg() 108 struct gxp_spi *spifi = chip->spifi; in gxp_spi_write_reg() local 144 struct gxp_spi *spifi = chip->spifi; gxp_spi_read() local 157 struct gxp_spi *spifi = chip->spifi; gxp_spi_write() local 202 struct gxp_spi *spifi = spi_controller_get_devdata(mem->spi->controller); do_gxp_exec_mem_op() local 238 struct gxp_spi *spifi = spi_controller_get_devdata(spi->controller); gxp_spi_setup() local 255 struct gxp_spi *spifi; gxp_spifi_probe() local [all...] |
Completed in 2 milliseconds