Lines Matching full:mr
44 struct intc_mask_reg *mr = desc->hw.mask_regs; in _intc_mask_data() local
48 while (mr && enum_id && *reg_idx < desc->hw.nr_mask_regs) { in _intc_mask_data()
49 mr = desc->hw.mask_regs + *reg_idx; in _intc_mask_data()
51 for (; *fld_idx < ARRAY_SIZE(mr->enum_ids); (*fld_idx)++) { in _intc_mask_data()
52 if (mr->enum_ids[*fld_idx] != enum_id) in _intc_mask_data()
55 if (mr->set_reg && mr->clr_reg) { in _intc_mask_data()
58 reg_e = mr->clr_reg; in _intc_mask_data()
59 reg_d = mr->set_reg; in _intc_mask_data()
62 if (mr->set_reg) { in _intc_mask_data()
64 reg_e = mr->set_reg; in _intc_mask_data()
65 reg_d = mr->set_reg; in _intc_mask_data()
68 reg_e = mr->clr_reg; in _intc_mask_data()
69 reg_d = mr->clr_reg; in _intc_mask_data()
73 fn += (mr->reg_width >> 3) - 1; in _intc_mask_data()
78 (mr->reg_width - 1) - *fld_idx); in _intc_mask_data()
178 struct intc_mask_reg *mr = desc->hw.ack_regs; in intc_ack_data() local
182 for (i = 0; mr && enum_id && i < desc->hw.nr_ack_regs; i++) { in intc_ack_data()
183 mr = desc->hw.ack_regs + i; in intc_ack_data()
185 for (j = 0; j < ARRAY_SIZE(mr->enum_ids); j++) { in intc_ack_data()
186 if (mr->enum_ids[j] != enum_id) in intc_ack_data()
191 reg_e = mr->set_reg; in intc_ack_data()
192 reg_d = mr->set_reg; in intc_ack_data()
194 fn += (mr->reg_width >> 3) - 1; in intc_ack_data()
199 (mr->reg_width - 1) - j); in intc_ack_data()