Lines Matching refs:tmp_ctx
346 struct xgene_edac_mc_ctx tmp_ctx;
351 memset(&tmp_ctx, 0, sizeof(tmp_ctx));
352 tmp_ctx.edac = edac;
362 tmp_ctx.mcu_csr = devm_ioremap_resource(edac->dev, &res);
363 if (IS_ERR(tmp_ctx.mcu_csr)) {
365 rc = PTR_ERR(tmp_ctx.mcu_csr);
370 if (of_property_read_u32(np, "memory-controller", &tmp_ctx.mcu_id)) {
375 if (!xgene_edac_mc_is_active(&tmp_ctx, tmp_ctx.mcu_id)) {
386 mci = edac_mc_alloc(tmp_ctx.mcu_id, ARRAY_SIZE(layers), layers,
394 *ctx = tmp_ctx; /* Copy over resource value */