Lines Matching refs:elm_cfg
24 struct elm *elm_cfg; variable
38 ptr = &elm_cfg->syndrome_fragments[poly].syndrome_fragment_x[0]; in elm_load_syndromes()
43 ptr = &elm_cfg->syndrome_fragments[poly].syndrome_fragment_x[1]; in elm_load_syndromes()
50 ptr = &elm_cfg->syndrome_fragments[poly].syndrome_fragment_x[2]; in elm_load_syndromes()
55 ptr = &elm_cfg->syndrome_fragments[poly].syndrome_fragment_x[3]; in elm_load_syndromes()
63 ptr = &elm_cfg->syndrome_fragments[poly].syndrome_fragment_x[4]; in elm_load_syndromes()
69 ptr = &elm_cfg->syndrome_fragments[poly].syndrome_fragment_x[5]; in elm_load_syndromes()
75 ptr = &elm_cfg->syndrome_fragments[poly].syndrome_fragment_x[6]; in elm_load_syndromes()
103 writel((readl(&elm_cfg->syndrome_fragments[poly].syndrome_fragment_x[6]) in elm_check_error()
105 &elm_cfg->syndrome_fragments[poly].syndrome_fragment_x[6]); in elm_check_error()
108 while ((readl(&elm_cfg->irqstatus) & (0x1 << poly)) != 0x1) in elm_check_error()
111 writel((readl(&elm_cfg->irqstatus) | (0x1 << poly)), in elm_check_error()
112 &elm_cfg->irqstatus); in elm_check_error()
115 location_status = readl(&elm_cfg->error_location[poly].location_status); in elm_check_error()
122 *error_count = readl(&elm_cfg->error_location[poly].location_status) & in elm_check_error()
127 readl(&elm_cfg->error_location[poly].error_location_x[i]); in elm_check_error()
153 writel(val, &elm_cfg->location_config); in elm_config()
157 writel((readl(&elm_cfg->irqenable) | (0x1 << poly)), in elm_config()
158 &elm_cfg->irqenable); in elm_config()
160 writel((readl(&elm_cfg->page_ctrl) & ~(0x1 << poly)), in elm_config()
161 &elm_cfg->page_ctrl); in elm_config()
174 writel((readl(&elm_cfg->sysconfig) | ELM_SYSCONFIG_SOFTRESET), in elm_reset()
175 &elm_cfg->sysconfig); in elm_reset()
178 while ((readl(&elm_cfg->sysstatus) & ELM_SYSSTATUS_RESETDONE) != in elm_reset()
191 elm_cfg = (struct elm *)ELM_BASE; in elm_init()