Lines Matching refs:pram
59 iowrite32be(0, &mspi->pram->rstate);
60 iowrite16be(ioread16be(&mspi->pram->rbase),
61 &mspi->pram->rbptr);
62 iowrite32be(0, &mspi->pram->tstate);
63 iowrite16be(ioread16be(&mspi->pram->tbase),
64 &mspi->pram->tbptr);
273 /* QE with a fixed pram location? */
277 /* QE but with a dynamic pram location? */
331 void __iomem *pram;
333 pram = devm_platform_ioremap_resource(to_platform_device(dev),
335 if (IS_ERR(pram))
336 mspi->pram = NULL;
338 mspi->pram = pram;
343 mspi->pram = NULL;
345 mspi->pram = cpm_muram_addr(pram_ofs);
347 if (mspi->pram == NULL) {
377 iowrite16be(cpm_muram_offset(mspi->tx_bd), &mspi->pram->tbase);
378 iowrite16be(cpm_muram_offset(mspi->rx_bd), &mspi->pram->rbase);
379 iowrite8(CPMFCR_EB | CPMFCR_GBL, &mspi->pram->tfcr);
380 iowrite8(CPMFCR_EB | CPMFCR_GBL, &mspi->pram->rfcr);
381 iowrite16be(SPI_MRBLR, &mspi->pram->mrblr);
382 iowrite32be(0, &mspi->pram->rstate);
383 iowrite32be(0, &mspi->pram->rdp);
384 iowrite16be(0, &mspi->pram->rbptr);
385 iowrite16be(0, &mspi->pram->rbc);
386 iowrite32be(0, &mspi->pram->rxtmp);
387 iowrite32be(0, &mspi->pram->tstate);
388 iowrite32be(0, &mspi->pram->tdp);
389 iowrite16be(0, &mspi->pram->tbptr);
390 iowrite16be(0, &mspi->pram->tbc);
391 iowrite32be(0, &mspi->pram->txtmp);
401 cpm_muram_free(cpm_muram_offset(mspi->pram));
419 cpm_muram_free(cpm_muram_offset(mspi->pram));