Home
last modified time | relevance | path

Searched refs:context_stride (Results 1 – 2 of 2) sorted by relevance

/openbmc/qemu/hw/intc/
H A Dsifive_plic.c160 plic->num_addrs * plic->context_stride)) { in sifive_plic_read()
161 uint32_t addrid = (addr - plic->context_base) / plic->context_stride; in sifive_plic_read()
162 uint32_t contextid = (addr & (plic->context_stride - 1)); in sifive_plic_read()
228 plic->num_addrs * plic->context_stride)) { in sifive_plic_write()
229 uint32_t addrid = (addr - plic->context_base) / plic->context_stride; in sifive_plic_write()
230 uint32_t contextid = (addr & (plic->context_stride - 1)); in sifive_plic_write()
445 DEFINE_PROP_UINT32("context-stride", SiFivePLICState, context_stride, 0),
483 uint32_t context_stride, uint32_t aperture_size) in type_init()
490 assert(context_stride == (context_stride & -context_stride)); in type_init()
500 qdev_prop_set_uint32(dev, "context-stride", context_stride); in type_init()
/openbmc/qemu/include/hw/intc/
H A Dsifive_plic.h72 uint32_t context_stride; member
85 uint32_t context_stride, uint32_t aperture_size);