Home | History | Annotate | Download | only in hw

Lines Matching defs:val

122     uint32_t val;
129 val = s->systick.control;
131 return val;
142 val = ((s->systick.tick - (t + 1)) / systick_scale(s)) + 1;
146 if (val > s->systick.reload)
147 val = 0;
148 return val;
156 val = s->gic.running_irq[0];
157 if (val == 1023) {
158 val = 0;
159 } else if (val >= 32) {
160 val -= 16;
165 val |= (1 << 11);
169 val |= (s->gic.current_pending[0] << 12);
173 val |= (1 << 22);
179 val |= (1 << 26);
182 val |= (1 << 28);
185 val |= (1 << 31);
186 return val;
199 val = 0;
200 val = s->gic.priority1[irq++][0];
201 val = s->gic.priority1[irq++][0] << 8;
202 val = s->gic.priority1[irq++][0] << 16;
203 val = s->gic.priority1[irq][0] << 24;
204 return val;
206 val = 0;
207 if (s->gic.irq_state[ARMV7M_EXCP_MEM].active) val |= (1 << 0);
208 if (s->gic.irq_state[ARMV7M_EXCP_BUS].active) val |= (1 << 1);
209 if (s->gic.irq_state[ARMV7M_EXCP_USAGE].active) val |= (1 << 3);
210 if (s->gic.irq_state[ARMV7M_EXCP_SVC].active) val |= (1 << 7);
211 if (s->gic.irq_state[ARMV7M_EXCP_DEBUG].active) val |= (1 << 8);
212 if (s->gic.irq_state[ARMV7M_EXCP_PENDSV].active) val |= (1 << 10);
213 if (s->gic.irq_state[ARMV7M_EXCP_SYSTICK].active) val |= (1 << 11);
214 if (s->gic.irq_state[ARMV7M_EXCP_USAGE].pending) val |= (1 << 12);
215 if (s->gic.irq_state[ARMV7M_EXCP_MEM].pending) val |= (1 << 13);
216 if (s->gic.irq_state[ARMV7M_EXCP_BUS].pending) val |= (1 << 14);
217 if (s->gic.irq_state[ARMV7M_EXCP_SVC].pending) val |= (1 << 15);
218 if (s->gic.irq_state[ARMV7M_EXCP_MEM].enabled) val |= (1 << 16);
219 if (s->gic.irq_state[ARMV7M_EXCP_BUS].enabled) val |= (1 << 17);
220 if (s->gic.irq_state[ARMV7M_EXCP_USAGE].enabled) val |= (1 << 18);
221 return val;