Lines Matching refs:num_sources
97 num_irq_in_word = plic->num_sources - ((plic->bitfield_words - 1) << 5); in sifive_plic_claimed()
142 if (addr_between(addr, plic->priority_base, plic->num_sources << 2)) { in sifive_plic_read()
147 (plic->num_sources + 31) >> 3)) { in sifive_plic_read()
190 if (addr_between(addr, plic->priority_base, plic->num_sources << 2)) { in sifive_plic_write()
206 (plic->num_sources + 31) >> 3)) { in sifive_plic_write()
242 if (value < plic->num_sources) { in sifive_plic_write()
273 memset(s->source_priority, 0, sizeof(uint32_t) * s->num_sources); in sifive_plic_reset()
367 if (!s->num_sources) { in sifive_plic_realize()
372 s->bitfield_words = (s->num_sources + 31) >> 5; in sifive_plic_realize()
374 s->source_priority = g_new0(uint32_t, s->num_sources); in sifive_plic_realize()
380 qdev_init_gpio_in(dev, sifive_plic_irq_request, s->num_sources); in sifive_plic_realize()
411 num_sources, 0,
430 DEFINE_PROP_UINT32("num-sources", SiFivePLICState, num_sources, 1),
472 uint32_t hartid_base, uint32_t num_sources, in type_init()
486 qdev_prop_set_uint32(dev, "num-sources", num_sources); in type_init()