Lines Matching refs:pq
982 uint8_t xive_esb_set(uint8_t *pq, uint8_t value) in xive_esb_set() argument
984 uint8_t old_pq = *pq & 0x3; in xive_esb_set()
986 *pq &= ~0x3; in xive_esb_set()
987 *pq |= value & 0x3; in xive_esb_set()
992 bool xive_esb_trigger(uint8_t *pq) in xive_esb_trigger() argument
994 uint8_t old_pq = *pq & 0x3; in xive_esb_trigger()
998 xive_esb_set(pq, XIVE_ESB_PENDING); in xive_esb_trigger()
1002 xive_esb_set(pq, XIVE_ESB_QUEUED); in xive_esb_trigger()
1005 xive_esb_set(pq, XIVE_ESB_OFF); in xive_esb_trigger()
1012 bool xive_esb_eoi(uint8_t *pq) in xive_esb_eoi() argument
1014 uint8_t old_pq = *pq & 0x3; in xive_esb_eoi()
1019 xive_esb_set(pq, XIVE_ESB_RESET); in xive_esb_eoi()
1022 xive_esb_set(pq, XIVE_ESB_PENDING); in xive_esb_eoi()
1025 xive_esb_set(pq, XIVE_ESB_OFF); in xive_esb_eoi()
1043 uint8_t xive_source_esb_set(XiveSource *xsrc, uint32_t srcno, uint8_t pq) in xive_source_esb_set() argument
1047 return xive_esb_set(&xsrc->status[srcno], pq); in xive_source_esb_set()
1332 uint8_t pq = xive_source_esb_get(xsrc, i); in xive_source_pic_print_info() local
1334 if (pq == XIVE_ESB_OFF) { in xive_source_pic_print_info()
1340 pq & XIVE_ESB_VAL_P ? 'P' : '-', in xive_source_pic_print_info()
1341 pq & XIVE_ESB_VAL_Q ? 'Q' : '-', in xive_source_pic_print_info()
1482 uint8_t pq; in xive_end_pic_print_info() local
1488 pq = xive_get_field32(END_W1_ESn, end->w1); in xive_end_pic_print_info()
1493 pq & XIVE_ESB_VAL_P ? 'P' : '-', in xive_end_pic_print_info()
1494 pq & XIVE_ESB_VAL_Q ? 'Q' : '-', in xive_end_pic_print_info()
1542 uint8_t pq; in xive_end_eas_pic_print_info() local
1548 pq = xive_get_field32(END_W1_ESe, end->w1); in xive_end_eas_pic_print_info()
1552 pq & XIVE_ESB_VAL_P ? 'P' : '-', in xive_end_eas_pic_print_info()
1553 pq & XIVE_ESB_VAL_Q ? 'Q' : '-', in xive_end_eas_pic_print_info()
1575 uint8_t *pq) in xive_router_get_pq() argument
1579 return xrc->get_pq(xrtr, eas_blk, eas_idx, pq); in xive_router_get_pq()
1584 uint8_t *pq) in xive_router_set_pq() argument
1588 return xrc->set_pq(xrtr, eas_blk, eas_idx, pq); in xive_router_set_pq()
1854 uint8_t pq = xive_get_field32(end_esmask, end->w1); in xive_router_end_es_notify() local
1855 bool notify = xive_esb_trigger(&pq); in xive_router_end_es_notify()
1857 if (pq != xive_get_field32(end_esmask, end->w1)) { in xive_router_end_es_notify()
1858 end->w1 = xive_set_field32(end_esmask, end->w1, pq); in xive_router_end_es_notify()
2047 uint8_t pq; in xive_router_notify() local
2050 if (xive_router_get_pq(xrtr, eas_blk, eas_idx, &pq)) { in xive_router_notify()
2055 notify = xive_esb_trigger(&pq); in xive_router_notify()
2057 if (xive_router_set_pq(xrtr, eas_blk, eas_idx, &pq)) { in xive_router_notify()
2142 uint8_t pq; in xive_end_source_read() local
2167 pq = xive_get_field32(end_esmask, end.w1); in xive_end_source_read()
2171 ret = xive_esb_eoi(&pq); in xive_end_source_read()
2177 ret = pq; in xive_end_source_read()
2184 ret = xive_esb_set(&pq, (offset >> 8) & 0x3); in xive_end_source_read()
2192 if (pq != xive_get_field32(end_esmask, end.w1)) { in xive_end_source_read()
2193 end.w1 = xive_set_field32(end_esmask, end.w1, pq); in xive_end_source_read()