Lines Matching refs:pr
112 struct intc_prio_reg *pr = desc->hw.prio_regs; in _intc_prio_data() local
116 while (pr && enum_id && *reg_idx < desc->hw.nr_prio_regs) { in _intc_prio_data()
117 pr = desc->hw.prio_regs + *reg_idx; in _intc_prio_data()
119 for (; *fld_idx < ARRAY_SIZE(pr->enum_ids); (*fld_idx)++) { in _intc_prio_data()
120 if (pr->enum_ids[*fld_idx] != enum_id) in _intc_prio_data()
123 if (pr->set_reg && pr->clr_reg) { in _intc_prio_data()
126 reg_e = pr->set_reg; in _intc_prio_data()
127 reg_d = pr->clr_reg; in _intc_prio_data()
131 if (!pr->set_reg) in _intc_prio_data()
133 reg_e = pr->set_reg; in _intc_prio_data()
134 reg_d = pr->set_reg; in _intc_prio_data()
137 fn += (pr->reg_width >> 3) - 1; in _intc_prio_data()
140 BUG_ON(n * pr->field_width > pr->reg_width); in _intc_prio_data()
142 bit = pr->reg_width - (n * pr->field_width); in _intc_prio_data()
147 pr->field_width, bit); in _intc_prio_data()