Lines Matching full:server
29 static int ics_opal_mangle_server(int server) in ics_opal_mangle_server() argument
32 return server << 2; in ics_opal_mangle_server()
35 static int ics_opal_unmangle_server(int server) in ics_opal_unmangle_server() argument
38 return server >> 2; in ics_opal_unmangle_server()
45 int server; in ics_opal_unmask_irq() local
52 server = xics_get_irq_server(d->irq, irq_data_get_affinity_mask(d), 0); in ics_opal_unmask_irq()
53 server = ics_opal_mangle_server(server); in ics_opal_unmask_irq()
55 rc = opal_set_xive(hw_irq, server, DEFAULT_PRIORITY); in ics_opal_unmask_irq()
57 pr_err("%s: opal_set_xive(irq=%d [hw 0x%x] server=%x)" in ics_opal_unmask_irq()
59 __func__, d->irq, hw_irq, server, rc); in ics_opal_unmask_irq()
70 int server = ics_opal_mangle_server(xics_default_server); in ics_opal_mask_real_irq() local
77 rc = opal_set_xive(hw_irq, server, 0xff); in ics_opal_mask_real_irq()
100 int16_t server; in ics_opal_set_affinity() local
121 server = ics_opal_mangle_server(wanted_server); in ics_opal_set_affinity()
123 pr_debug("ics-hal: set-affinity irq %d [hw 0x%x] server: 0x%x/0x%x\n", in ics_opal_set_affinity()
124 d->irq, hw_irq, wanted_server, server); in ics_opal_set_affinity()
126 rc = opal_set_xive(hw_irq, server, priority); in ics_opal_set_affinity()
128 pr_err("%s: opal_set_xive(irq=%d [hw 0x%x] server=%x)" in ics_opal_set_affinity()
130 __func__, d->irq, hw_irq, server, rc); in ics_opal_set_affinity()
155 __be16 server; in ics_opal_check() local
162 rc = opal_get_xive(hw_irq, &server, &priority); in ics_opal_check()
172 __be16 server; in ics_opal_mask_unknown() local
176 rc = opal_get_xive(vec, &server, &priority); in ics_opal_mask_unknown()
186 __be16 server; in ics_opal_get_server() local
190 rc = opal_get_xive(vec, &server, &priority); in ics_opal_get_server()
193 return ics_opal_unmangle_server(be16_to_cpu(server)); in ics_opal_get_server()