Lines Matching refs:ptemp
124 u32 *ptemp; in altr_sdr_mc_err_inject_write() local
128 ptemp = dma_alloc_coherent(mci->pdev, 16, &dma_handle, GFP_KERNEL); in altr_sdr_mc_err_inject_write()
129 if (!ptemp) { in altr_sdr_mc_err_inject_write()
130 dma_free_coherent(mci->pdev, 16, ptemp, dma_handle); in altr_sdr_mc_err_inject_write()
160 ptemp[0] = 0x5A5A5A5A; in altr_sdr_mc_err_inject_write()
161 ptemp[1] = 0xA5A5A5A5; in altr_sdr_mc_err_inject_write()
174 reg = READ_ONCE(ptemp[0]); in altr_sdr_mc_err_inject_write()
175 read_reg = READ_ONCE(ptemp[1]); in altr_sdr_mc_err_inject_write()
182 dma_free_coherent(mci->pdev, 16, ptemp, dma_handle); in altr_sdr_mc_err_inject_write()
585 u32 *ptemp, i, error_mask; in altr_edac_device_trig() local
604 ptemp = priv->alloc_mem(priv->trig_alloc_sz, &generic_ptr); in altr_edac_device_trig()
605 if (!ptemp) { in altr_edac_device_trig()
621 for (i = 0; i < (priv->trig_alloc_sz / sizeof(*ptemp)); i++) { in altr_edac_device_trig()
624 if (READ_ONCE(ptemp[i])) in altr_edac_device_trig()
630 ptemp[i] = i; in altr_edac_device_trig()
641 if (READ_ONCE(ptemp[i]) != i) in altr_edac_device_trig()
646 priv->free_mem(ptemp, priv->trig_alloc_sz, generic_ptr); in altr_edac_device_trig()
1243 void *ptemp = devm_kzalloc(dev, size, GFP_KERNEL); in l2_alloc_mem() local
1245 if (!ptemp) in l2_alloc_mem()
1258 return ptemp; in l2_alloc_mem()