Lines Matching refs:ptemp
133 u32 *ptemp; in altr_sdr_mc_err_inject_write() local
137 ptemp = dma_alloc_coherent(mci->pdev, 16, &dma_handle, GFP_KERNEL); in altr_sdr_mc_err_inject_write()
138 if (!ptemp) { in altr_sdr_mc_err_inject_write()
139 dma_free_coherent(mci->pdev, 16, ptemp, dma_handle); in altr_sdr_mc_err_inject_write()
165 ptemp[0] = 0x5A5A5A5A; in altr_sdr_mc_err_inject_write()
166 ptemp[1] = 0xA5A5A5A5; in altr_sdr_mc_err_inject_write()
179 reg = ACCESS_ONCE(ptemp[0]); in altr_sdr_mc_err_inject_write()
180 read_reg = ACCESS_ONCE(ptemp[1]); in altr_sdr_mc_err_inject_write()
187 dma_free_coherent(mci->pdev, 16, ptemp, dma_handle); in altr_sdr_mc_err_inject_write()
589 u32 *ptemp, i, error_mask; in altr_edac_device_trig() local
608 ptemp = priv->alloc_mem(priv->trig_alloc_sz, &generic_ptr); in altr_edac_device_trig()
609 if (!ptemp) { in altr_edac_device_trig()
625 for (i = 0; i < (priv->trig_alloc_sz / sizeof(*ptemp)); i++) { in altr_edac_device_trig()
628 if (ACCESS_ONCE(ptemp[i])) in altr_edac_device_trig()
634 ptemp[i] = i; in altr_edac_device_trig()
645 if (ACCESS_ONCE(ptemp[i]) != i) in altr_edac_device_trig()
650 priv->free_mem(ptemp, priv->trig_alloc_sz, generic_ptr); in altr_edac_device_trig()
1161 void *ptemp = devm_kzalloc(dev, size, GFP_KERNEL); in l2_alloc_mem() local
1163 if (!ptemp) in l2_alloc_mem()
1176 return ptemp; in l2_alloc_mem()