Lines Matching refs:pdata
110 struct altera_qspi_plat *pdata = dev_get_plat(dev); in write_buff() local
111 ulong base = (ulong)pdata->base; in write_buff()
139 struct altera_qspi_plat *pdata = dev_get_plat(dev); in altera_qspi_erase() local
140 struct altera_qspi_regs *regs = pdata->regs; in altera_qspi_erase()
159 flash = pdata->base + addr; in altera_qspi_erase()
160 last = pdata->base + addr + mtd->erasesize; in altera_qspi_erase()
201 struct altera_qspi_plat *pdata = dev_get_plat(dev); in altera_qspi_read() local
203 memcpy_fromio(buf, pdata->base + from, len); in altera_qspi_read()
213 struct altera_qspi_plat *pdata = dev_get_plat(dev); in altera_qspi_write() local
214 struct altera_qspi_regs *regs = pdata->regs; in altera_qspi_write()
217 memcpy_toio(pdata->base + to, buf, len); in altera_qspi_write()
239 struct altera_qspi_plat *pdata = dev_get_plat(dev); in altera_qspi_get_locked_range() local
240 struct altera_qspi_regs *regs = pdata->regs; in altera_qspi_get_locked_range()
261 struct altera_qspi_plat *pdata = dev_get_plat(dev); in altera_qspi_lock() local
262 struct altera_qspi_regs *regs = pdata->regs; in altera_qspi_lock()
295 struct altera_qspi_plat *pdata = dev_get_plat(dev); in altera_qspi_unlock() local
296 struct altera_qspi_regs *regs = pdata->regs; in altera_qspi_unlock()
308 struct altera_qspi_plat *pdata = dev_get_plat(dev); in altera_qspi_probe() local
309 struct altera_qspi_regs *regs = pdata->regs; in altera_qspi_probe()
310 unsigned long base = (unsigned long)pdata->base; in altera_qspi_probe()
352 struct altera_qspi_plat *pdata = dev_get_plat(dev); in altera_qspi_of_to_plat() local
383 pdata->regs = base; in altera_qspi_of_to_plat()
385 pdata->base = base; in altera_qspi_of_to_plat()
386 pdata->size = size; in altera_qspi_of_to_plat()