Lines Matching refs:id
23 unsigned int gicd_read_igroupr(uintptr_t base, unsigned int id) in gicd_read_igroupr() argument
25 unsigned int n = id >> IGROUPR_SHIFT; in gicd_read_igroupr()
34 unsigned int gicd_read_isenabler(uintptr_t base, unsigned int id) in gicd_read_isenabler() argument
36 unsigned int n = id >> ISENABLER_SHIFT; in gicd_read_isenabler()
45 unsigned int gicd_read_icenabler(uintptr_t base, unsigned int id) in gicd_read_icenabler() argument
47 unsigned int n = id >> ICENABLER_SHIFT; in gicd_read_icenabler()
56 unsigned int gicd_read_ispendr(uintptr_t base, unsigned int id) in gicd_read_ispendr() argument
58 unsigned int n = id >> ISPENDR_SHIFT; in gicd_read_ispendr()
67 unsigned int gicd_read_icpendr(uintptr_t base, unsigned int id) in gicd_read_icpendr() argument
69 unsigned int n = id >> ICPENDR_SHIFT; in gicd_read_icpendr()
78 unsigned int gicd_read_isactiver(uintptr_t base, unsigned int id) in gicd_read_isactiver() argument
80 unsigned int n = id >> ISACTIVER_SHIFT; in gicd_read_isactiver()
89 unsigned int gicd_read_icactiver(uintptr_t base, unsigned int id) in gicd_read_icactiver() argument
91 unsigned int n = id >> ICACTIVER_SHIFT; in gicd_read_icactiver()
100 unsigned int gicd_read_ipriorityr(uintptr_t base, unsigned int id) in gicd_read_ipriorityr() argument
102 unsigned int n = id >> IPRIORITYR_SHIFT; in gicd_read_ipriorityr()
111 unsigned int gicd_read_icfgr(uintptr_t base, unsigned int id) in gicd_read_icfgr() argument
113 unsigned int n = id >> ICFGR_SHIFT; in gicd_read_icfgr()
122 unsigned int gicd_read_nsacr(uintptr_t base, unsigned int id) in gicd_read_nsacr() argument
124 unsigned int n = id >> NSACR_SHIFT; in gicd_read_nsacr()
136 void gicd_write_igroupr(uintptr_t base, unsigned int id, unsigned int val) in gicd_write_igroupr() argument
138 unsigned int n = id >> IGROUPR_SHIFT; in gicd_write_igroupr()
147 void gicd_write_isenabler(uintptr_t base, unsigned int id, unsigned int val) in gicd_write_isenabler() argument
149 unsigned int n = id >> ISENABLER_SHIFT; in gicd_write_isenabler()
158 void gicd_write_icenabler(uintptr_t base, unsigned int id, unsigned int val) in gicd_write_icenabler() argument
160 unsigned int n = id >> ICENABLER_SHIFT; in gicd_write_icenabler()
169 void gicd_write_ispendr(uintptr_t base, unsigned int id, unsigned int val) in gicd_write_ispendr() argument
171 unsigned int n = id >> ISPENDR_SHIFT; in gicd_write_ispendr()
180 void gicd_write_icpendr(uintptr_t base, unsigned int id, unsigned int val) in gicd_write_icpendr() argument
182 unsigned int n = id >> ICPENDR_SHIFT; in gicd_write_icpendr()
191 void gicd_write_isactiver(uintptr_t base, unsigned int id, unsigned int val) in gicd_write_isactiver() argument
193 unsigned int n = id >> ISACTIVER_SHIFT; in gicd_write_isactiver()
202 void gicd_write_icactiver(uintptr_t base, unsigned int id, unsigned int val) in gicd_write_icactiver() argument
204 unsigned int n = id >> ICACTIVER_SHIFT; in gicd_write_icactiver()
213 void gicd_write_ipriorityr(uintptr_t base, unsigned int id, unsigned int val) in gicd_write_ipriorityr() argument
215 unsigned int n = id >> IPRIORITYR_SHIFT; in gicd_write_ipriorityr()
224 void gicd_write_icfgr(uintptr_t base, unsigned int id, unsigned int val) in gicd_write_icfgr() argument
226 unsigned int n = id >> ICFGR_SHIFT; in gicd_write_icfgr()
235 void gicd_write_nsacr(uintptr_t base, unsigned int id, unsigned int val) in gicd_write_nsacr() argument
237 unsigned int n = id >> NSACR_SHIFT; in gicd_write_nsacr()
248 unsigned int gicd_get_igroupr(uintptr_t base, unsigned int id) in gicd_get_igroupr() argument
250 unsigned int bit_num = id & ((1U << IGROUPR_SHIFT) - 1U); in gicd_get_igroupr()
251 unsigned int reg_val = gicd_read_igroupr(base, id); in gicd_get_igroupr()
256 void gicd_set_igroupr(uintptr_t base, unsigned int id) in gicd_set_igroupr() argument
258 unsigned int bit_num = id & ((1U << IGROUPR_SHIFT) - 1U); in gicd_set_igroupr()
259 unsigned int reg_val = gicd_read_igroupr(base, id); in gicd_set_igroupr()
261 gicd_write_igroupr(base, id, reg_val | (1U << bit_num)); in gicd_set_igroupr()
264 void gicd_clr_igroupr(uintptr_t base, unsigned int id) in gicd_clr_igroupr() argument
266 unsigned int bit_num = id & ((1U << IGROUPR_SHIFT) - 1U); in gicd_clr_igroupr()
267 unsigned int reg_val = gicd_read_igroupr(base, id); in gicd_clr_igroupr()
269 gicd_write_igroupr(base, id, reg_val & ~(1U << bit_num)); in gicd_clr_igroupr()
272 void gicd_set_isenabler(uintptr_t base, unsigned int id) in gicd_set_isenabler() argument
274 unsigned int bit_num = id & ((1U << ISENABLER_SHIFT) - 1U); in gicd_set_isenabler()
276 gicd_write_isenabler(base, id, (1U << bit_num)); in gicd_set_isenabler()
279 void gicd_set_icenabler(uintptr_t base, unsigned int id) in gicd_set_icenabler() argument
281 unsigned int bit_num = id & ((1U << ICENABLER_SHIFT) - 1U); in gicd_set_icenabler()
283 gicd_write_icenabler(base, id, (1U << bit_num)); in gicd_set_icenabler()
286 void gicd_set_ispendr(uintptr_t base, unsigned int id) in gicd_set_ispendr() argument
288 unsigned int bit_num = id & ((1U << ISPENDR_SHIFT) - 1U); in gicd_set_ispendr()
290 gicd_write_ispendr(base, id, (1U << bit_num)); in gicd_set_ispendr()
293 void gicd_set_icpendr(uintptr_t base, unsigned int id) in gicd_set_icpendr() argument
295 unsigned int bit_num = id & ((1U << ICPENDR_SHIFT) - 1U); in gicd_set_icpendr()
297 gicd_write_icpendr(base, id, (1U << bit_num)); in gicd_set_icpendr()
300 unsigned int gicd_get_isactiver(uintptr_t base, unsigned int id) in gicd_get_isactiver() argument
302 unsigned int bit_num = id & ((1U << ISACTIVER_SHIFT) - 1U); in gicd_get_isactiver()
303 unsigned int reg_val = gicd_read_isactiver(base, id); in gicd_get_isactiver()
308 void gicd_set_isactiver(uintptr_t base, unsigned int id) in gicd_set_isactiver() argument
310 unsigned int bit_num = id & ((1U << ISACTIVER_SHIFT) - 1U); in gicd_set_isactiver()
312 gicd_write_isactiver(base, id, (1U << bit_num)); in gicd_set_isactiver()
315 void gicd_set_icactiver(uintptr_t base, unsigned int id) in gicd_set_icactiver() argument
317 unsigned int bit_num = id & ((1U << ICACTIVER_SHIFT) - 1U); in gicd_set_icactiver()
319 gicd_write_icactiver(base, id, (1U << bit_num)); in gicd_set_icactiver()
322 void gicd_set_ipriorityr(uintptr_t base, unsigned int id, unsigned int pri) in gicd_set_ipriorityr() argument
326 mmio_write_8(base + GICD_IPRIORITYR + id, val); in gicd_set_ipriorityr()
329 void gicd_set_icfgr(uintptr_t base, unsigned int id, unsigned int cfg) in gicd_set_icfgr() argument
332 unsigned int bit_num = id & ((1U << ICFGR_SHIFT) - 1U); in gicd_set_icfgr()
335 uint32_t reg_val = gicd_read_icfgr(base, id); in gicd_set_icfgr()
341 gicd_write_icfgr(base, id, reg_val); in gicd_set_icfgr()