Lines Matching refs:id

16  * Note: The raw register values correspond to multiple interrupt `id`s and
17 * the number of interrupt `id`s involved depends on the register accessed.
22 * register corresponding to the interrupt `id`, 4 interrupts IDs at a time.
24 unsigned int gicr_read_ipriorityr(uintptr_t base, unsigned int id)
26 return GICR_READ(IPRIORITY, base, id);
29 void gicr_write_ipriorityr(uintptr_t base, unsigned int id, unsigned int val)
31 GICR_WRITE(IPRIORITY, base, id, val);
35 * Accessor to set the byte corresponding to interrupt `id`
38 void gicr_set_ipriorityr(uintptr_t base, unsigned int id, unsigned int pri)
40 GICR_WRITE_8(IPRIORITY, base, id, (uint8_t)(pri & GIC_PRI_MASK));
44 * Accessors to get/set/clear the bit corresponding to interrupt `id`
47 unsigned int gicr_get_igroupr(uintptr_t base, unsigned int id)
49 return GICR_GET_BIT(IGROUP, base, id);
52 void gicr_set_igroupr(uintptr_t base, unsigned int id)
54 GICR_SET_BIT(IGROUP, base, id);
57 void gicr_clr_igroupr(uintptr_t base, unsigned int id)
59 GICR_CLR_BIT(IGROUP, base, id);
63 * Accessors to get/set/clear the bit corresponding to interrupt `id`
66 unsigned int gicr_get_igrpmodr(uintptr_t base, unsigned int id)
68 return GICR_GET_BIT(IGRPMOD, base, id);
71 void gicr_set_igrpmodr(uintptr_t base, unsigned int id)
73 GICR_SET_BIT(IGRPMOD, base, id);
76 void gicr_clr_igrpmodr(uintptr_t base, unsigned int id)
78 GICR_CLR_BIT(IGRPMOD, base, id);
82 * Accessor to write the bit corresponding to interrupt `id`
85 void gicr_set_isenabler(uintptr_t base, unsigned int id)
87 GICR_WRITE_BIT(ISENABLE, base, id);
91 * Accessor to write the bit corresponding to interrupt `id`
94 void gicr_set_icenabler(uintptr_t base, unsigned int id)
96 GICR_WRITE_BIT(ICENABLE, base, id);
100 * Accessor to get the bit corresponding to interrupt `id`
103 unsigned int gicr_get_isactiver(uintptr_t base, unsigned int id)
105 return GICR_GET_BIT(ISACTIVE, base, id);
109 * Accessor to clear the bit corresponding to interrupt `id`
112 void gicr_set_icpendr(uintptr_t base, unsigned int id)
114 GICR_WRITE_BIT(ICPEND, base, id);
118 * Accessor to write the bit corresponding to interrupt `id`
121 void gicr_set_ispendr(uintptr_t base, unsigned int id)
123 GICR_WRITE_BIT(ISPEND, base, id);
127 * Accessor to set the bit fields corresponding to interrupt `id`
130 void gicr_set_icfgr(uintptr_t base, unsigned int id, unsigned int cfg)
133 unsigned int bit_shift = BIT_NUM(ICFG, id) << 1U;
136 mmio_clrsetbits_32(base + GICR_OFFSET(ICFG, id),