Lines Matching refs:occ

52 static void pnv_occ_set_misc(PnvOCC *occ, uint64_t val)  in pnv_occ_set_misc()  argument
58 occ->occmisc = val; in pnv_occ_set_misc()
60 qemu_set_irq(occ->psi_irq, irq_state); in pnv_occ_set_misc()
66 PnvOCC *occ = PNV_OCC(opaque); in pnv_occ_power8_xscom_read() local
72 val = occ->occmisc; in pnv_occ_power8_xscom_read()
84 PnvOCC *occ = PNV_OCC(opaque); in pnv_occ_power8_xscom_write() local
89 pnv_occ_set_misc(occ, occ->occmisc & val); in pnv_occ_power8_xscom_write()
92 pnv_occ_set_misc(occ, occ->occmisc | val); in pnv_occ_power8_xscom_write()
95 pnv_occ_set_misc(occ, val); in pnv_occ_power8_xscom_write()
188 PnvOCC *occ = PNV_OCC(opaque); in pnv_occ_power9_xscom_read() local
194 val = occ->occmisc; in pnv_occ_power9_xscom_read()
206 PnvOCC *occ = PNV_OCC(opaque); in pnv_occ_power9_xscom_write() local
211 pnv_occ_set_misc(occ, 0); in pnv_occ_power9_xscom_write()
214 pnv_occ_set_misc(occ, occ->occmisc | val); in pnv_occ_power9_xscom_write()
217 pnv_occ_set_misc(occ, val); in pnv_occ_power9_xscom_write()
267 PnvOCC *occ = PNV_OCC(dev); in pnv_occ_realize() local
268 PnvOCCClass *poc = PNV_OCC_GET_CLASS(occ); in pnv_occ_realize()
270 occ->occmisc = 0; in pnv_occ_realize()
273 pnv_xscom_region_init(&occ->xscom_regs, OBJECT(dev), poc->xscom_ops, in pnv_occ_realize()
274 occ, "xscom-occ", poc->xscom_size); in pnv_occ_realize()
277 memory_region_init_io(&occ->sram_regs, OBJECT(dev), &pnv_occ_sram_ops, in pnv_occ_realize()
278 occ, "occ-common-area", in pnv_occ_realize()
281 qdev_init_gpio_out(dev, &occ->psi_irq, 1); in pnv_occ_realize()