Home
last modified time | relevance | path

Searched refs:esb_shift (Results 1 – 13 of 13) sorted by relevance

/openbmc/qemu/include/hw/ppc/
H A Dxive.h194 uint32_t esb_shift; member
217 return xsrc->esb_shift == XIVE_ESB_64K_2PAGE || in xive_source_esb_has_2page()
218 xsrc->esb_shift == XIVE_ESB_4K_2PAGE; in xive_source_esb_has_2page()
223 return (1ull << xsrc->esb_shift) * xsrc->nr_irqs; in xive_source_esb_len()
230 return (1ull << xsrc->esb_shift) * srcno; in xive_source_esb_page()
239 addr += (1 << (xsrc->esb_shift - 1)); in xive_source_esb_mgmt()
489 uint32_t esb_shift; member
H A Dpnv_xive.h125 uint32_t esb_shift; member
H A Dxive2.h96 uint32_t esb_shift; member
/openbmc/linux/arch/powerpc/sysdev/xive/
H A Dspapr.c180 unsigned long *esb_shift) in plpar_int_get_source_info() argument
197 *esb_shift = retbuf[3]; in plpar_int_get_source_info()
393 unsigned long esb_shift; in xive_spapr_populate_irq_data() local
398 &esb_shift); in xive_spapr_populate_irq_data()
409 data->esb_shift = esb_shift; in xive_spapr_populate_irq_data()
428 data->eoi_mmio = ioremap(data->eoi_page, 1u << data->esb_shift); in xive_spapr_populate_irq_data()
440 data->trig_mmio = ioremap(data->trig_page, 1u << data->esb_shift); in xive_spapr_populate_irq_data()
H A Dnative.c49 __be32 esb_shift, src_chip; in xive_native_populate_irq_data() local
56 &esb_shift, &src_chip); in xive_native_populate_irq_data()
72 data->esb_shift = be32_to_cpu(esb_shift); in xive_native_populate_irq_data()
75 data->eoi_mmio = ioremap(data->eoi_page, 1u << data->esb_shift); in xive_native_populate_irq_data()
90 data->trig_mmio = ioremap(data->trig_page, 1u << data->esb_shift); in xive_native_populate_irq_data()
/openbmc/qemu/hw/intc/
H A Dxive2.c859 end_idx = addr >> (xsrc->esb_shift + 1); in xive2_end_source_read()
873 end_esmask = addr_is_even(addr, xsrc->esb_shift) ? END2_W1_ESn : in xive2_end_source_read()
925 end_idx = addr >> (xsrc->esb_shift + 1); in xive2_end_source_write()
939 end_esmask = addr_is_even(addr, xsrc->esb_shift) ? END2_W1_ESn : in xive2_end_source_write()
1005 if (xsrc->esb_shift != XIVE_ESB_4K && in xive2_end_source_realize()
1006 xsrc->esb_shift != XIVE_ESB_64K) { in xive2_end_source_realize()
1017 (1ull << (xsrc->esb_shift + 1)) * xsrc->nr_ends); in xive2_end_source_realize()
1022 DEFINE_PROP_UINT32("shift", Xive2EndSource, esb_shift, XIVE_ESB_64K),
H A Dxive.c1043 addr_is_even(addr, xsrc->esb_shift - 1); in xive_source_is_trigger_page()
1064 uint32_t srcno = addr >> xsrc->esb_shift; in xive_source_esb_read()
1124 uint32_t srcno = addr >> xsrc->esb_shift; in xive_source_esb_write()
1254 if (xsrc->esb_shift != XIVE_ESB_4K && in xive_source_realize()
1255 xsrc->esb_shift != XIVE_ESB_4K_2PAGE && in xive_source_realize()
1256 xsrc->esb_shift != XIVE_ESB_64K && in xive_source_realize()
1257 xsrc->esb_shift != XIVE_ESB_64K_2PAGE) { in xive_source_realize()
1956 end_idx = addr >> (xsrc->esb_shift + 1); in xive_end_source_read()
2041 if (xsrc->esb_shift != XIVE_ESB_4K && in xive_end_source_realize()
2042 xsrc->esb_shift != XIVE_ESB_64K) { in xive_end_source_realize()
[all …]
H A Dspapr_xive.c1001 args[3] = xsrc->esb_shift - 1; in h_int_get_source_info()
1003 args[3] = xsrc->esb_shift; in h_int_get_source_info()
1277 args[0] = xive->end_base + (1ull << (end_xsrc->esb_shift + 1)) * end_idx; in h_int_get_queue_info()
1716 if (offset > (1ull << xsrc->esb_shift)) { in h_int_esb()
H A Dpnv_xive2.c796 * (1ull << xsrc->esb_shift)); in pnv_xive2_vst_set_exclusive()
814 * (1ull << end_xsrc->esb_shift)); in pnv_xive2_vst_set_exclusive()
1027 xive->esb_shift = val & CQ_BAR_64K ? 16 : 12; in pnv_xive2_ic_cq_write()
2229 xive->ic_shift = xive->esb_shift = xive->end_shift = 16; in pnv_xive2_reset()
2314 xive->esb_shift = 16; in pnv_xive2_realize()
H A Dpnv_xive.c817 * (1ull << xsrc->esb_shift)); in pnv_xive_vst_set_exclusive()
835 * (1ull << xsrc->esb_shift)); in pnv_xive_vst_set_exclusive()
/openbmc/linux/arch/powerpc/include/asm/
H A Dxive.h45 u32 esb_shift; member
/openbmc/qemu/hw/pci-host/
H A Dpnv_phb4.c479 phb->xsrc.esb_shift = shift; in pnv_phb4_update_xsrc()
1624 int esb_shift; in pnv_phb4_xive_notify_abt() local
1627 esb_shift = 16; in pnv_phb4_xive_notify_abt()
1629 esb_shift = 12; in pnv_phb4_xive_notify_abt()
1634 addr |= (1ull << (esb_shift + 1)) * srcno; in pnv_phb4_xive_notify_abt()
1635 addr |= (1ull << esb_shift); in pnv_phb4_xive_notify_abt()
/openbmc/qemu/hw/ppc/
H A Dpnv_psi.c730 psi9->source.esb_shift = XIVE_ESB_64K; in pnv_psi_p9_mmio_write()
732 psi9->source.esb_shift = XIVE_ESB_4K; in pnv_psi_p9_mmio_write()