/arch/powerpc/include/asm/ |
D | plpar_wrappers.h | 98 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_pte_enter() local 100 rc = plpar_hcall(H_ENTER, retbuf, flags, hpte_group, hpte_v, hpte_r); in plpar_pte_enter() 102 *slot = retbuf[0]; in plpar_pte_enter() 112 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_pte_remove() local 114 rc = plpar_hcall(H_REMOVE, retbuf, flags, ptex, avpn); in plpar_pte_remove() 116 *old_pteh_ret = retbuf[0]; in plpar_pte_remove() 117 *old_ptel_ret = retbuf[1]; in plpar_pte_remove() 128 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_pte_remove_raw() local 130 rc = plpar_hcall_raw(H_REMOVE, retbuf, flags, ptex, avpn); in plpar_pte_remove_raw() 132 *old_pteh_ret = retbuf[0]; in plpar_pte_remove_raw() [all …]
|
D | hvcall.h | 406 long plpar_hcall(unsigned long opcode, unsigned long *retbuf, ...); 420 long plpar_hcall_raw(unsigned long opcode, unsigned long *retbuf, ...); 431 long plpar_hcall9(unsigned long opcode, unsigned long *retbuf, ...); 432 long plpar_hcall9_raw(unsigned long opcode, unsigned long *retbuf, ...);
|
D | trace.h | 100 TP_PROTO(unsigned long opcode, long retval, unsigned long *retbuf), 102 TP_ARGS(opcode, retval, retbuf),
|
D | asm-prototypes.h | 36 void __trace_hcall_exit(long opcode, long retval, unsigned long *retbuf);
|
/arch/powerpc/platforms/pseries/ |
D | hvconsole.c | 31 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in hvc_get_chars() local 34 ret = plpar_hcall(H_GET_TERM_CHAR, retbuf, vtermno); in hvc_get_chars() 35 lbuf[0] = be64_to_cpu(retbuf[1]); in hvc_get_chars() 36 lbuf[1] = be64_to_cpu(retbuf[2]); in hvc_get_chars() 39 return retbuf[0]; in hvc_get_chars()
|
D | lparcfg.c | 116 unsigned long retbuf[PLPAR_HCALL9_BUFSIZE]; in h_get_ppp() local 118 rc = plpar_hcall9(H_GET_PPP, retbuf); in h_get_ppp() 120 ppp_data->entitlement = retbuf[0]; in h_get_ppp() 121 ppp_data->unallocated_entitlement = retbuf[1]; in h_get_ppp() 123 ppp_data->group_num = (retbuf[2] >> 2 * 8) & 0xffff; in h_get_ppp() 124 ppp_data->pool_num = retbuf[2] & 0xffff; in h_get_ppp() 126 ppp_data->capped = (retbuf[3] >> 6 * 8) & 0x01; in h_get_ppp() 127 ppp_data->weight = (retbuf[3] >> 5 * 8) & 0xff; in h_get_ppp() 128 ppp_data->unallocated_weight = (retbuf[3] >> 4 * 8) & 0xff; in h_get_ppp() 129 ppp_data->active_procs_in_pool = (retbuf[3] >> 2 * 8) & 0xffff; in h_get_ppp() [all …]
|
D | rng.c | 18 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in pseries_get_random_long() local 20 if (plpar_hcall(H_RANDOM, retbuf) == H_SUCCESS) { in pseries_get_random_long() 21 *v = retbuf[0]; in pseries_get_random_long()
|
D | vphn.c | 82 long retbuf[PLPAR_HCALL9_BUFSIZE] = {0}; in hcall_vphn() local 84 rc = plpar_hcall9(H_HOME_NODE_ASSOCIATIVITY, retbuf, flags, cpu); in hcall_vphn() 85 vphn_unpack_associativity(retbuf, associativity); in hcall_vphn()
|
D | pseries_energy.c | 194 unsigned long retbuf[PLPAR_HCALL9_BUFSIZE]; in get_best_energy_list() local 207 rc = plpar_hcall9(H_BEST_ENERGY, retbuf, flags, 0, __pa(buf_page), in get_best_energy_list() 214 cnt = retbuf[0]; in get_best_energy_list() 234 unsigned long retbuf[PLPAR_HCALL9_BUFSIZE]; in get_best_energy_data() local 241 rc = plpar_hcall9(H_BEST_ENERGY, retbuf, flags, in get_best_energy_data() 248 return sprintf(page, "%lu\n", retbuf[1] >> 32); in get_best_energy_data()
|
D | suspend.c | 34 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in pseries_suspend_begin() local 37 rc = plpar_hcall(H_VASI_STATE, retbuf, stream_id); in pseries_suspend_begin() 39 vasi_state = retbuf[0]; in pseries_suspend_begin()
|
D | lpar.c | 1029 unsigned long retbuf[PLPAR_HCALL9_BUFSIZE]; in call_block_remove() local 1043 rc = plpar_hcall9(H_BLOCK_REMOVE, retbuf, in call_block_remove() 1054 unsigned long ctrl = retbuf[i] & HBLKR_CTRL_MASK; in call_block_remove() 1845 void __trace_hcall_exit(long opcode, long retval, unsigned long *retbuf) in __trace_hcall_exit() argument 1861 trace_hcall_exit(opcode, retval, retbuf); in __trace_hcall_exit() 1877 unsigned long retbuf[PLPAR_HCALL9_BUFSIZE]; in h_get_mpp() local 1879 rc = plpar_hcall9(H_GET_MPP, retbuf); in h_get_mpp() 1881 mpp_data->entitled_mem = retbuf[0]; in h_get_mpp() 1882 mpp_data->mapped_mem = retbuf[1]; in h_get_mpp() 1884 mpp_data->group_num = (retbuf[2] >> 2 * 8) & 0xffff; in h_get_mpp() [all …]
|
D | hvCall_inst.c | 116 unsigned long *retbuf) in probe_hcall_exit() argument
|
/arch/powerpc/sysdev/xive/ |
D | spapr.c | 165 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_int_get_source_info() local 169 rc = plpar_hcall(H_INT_GET_SOURCE_INFO, retbuf, flags, lisn); in plpar_int_get_source_info() 177 *src_flags = retbuf[0]; in plpar_int_get_source_info() 178 *eoi_page = retbuf[1]; in plpar_int_get_source_info() 179 *trig_page = retbuf[2]; in plpar_int_get_source_info() 180 *esb_shift = retbuf[3]; in plpar_int_get_source_info() 183 retbuf[0], retbuf[1], retbuf[2], retbuf[3]); in plpar_int_get_source_info() 224 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_int_get_source_config() local 230 rc = plpar_hcall(H_INT_GET_SOURCE_CONFIG, retbuf, flags, lisn, in plpar_int_get_source_config() 240 *target = retbuf[0]; in plpar_int_get_source_config() [all …]
|
/arch/powerpc/sysdev/xics/ |
D | icp-hv.c | 22 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in icp_hv_get_xirr() local 26 rc = plpar_hcall(H_XIRR, retbuf, cppr); in icp_hv_get_xirr() 28 ret = (unsigned int)retbuf[0]; in icp_hv_get_xirr()
|
/arch/powerpc/kvm/ |
D | book3s_hv_builtin.c | 233 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in kvmhv_rm_send_ipi() local 235 plpar_hcall_raw(H_IPI, retbuf, get_hard_smp_processor_id(cpu), in kvmhv_rm_send_ipi() 470 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in kvmppc_read_one_intr() local 472 rc = plpar_hcall_raw(H_XIRR, retbuf, 0xFF); in kvmppc_read_one_intr() 473 xirr = cpu_to_be32(retbuf[0]); in kvmppc_read_one_intr() 511 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in kvmppc_read_one_intr() local 513 plpar_hcall_raw(H_IPI, retbuf, in kvmppc_read_one_intr() 515 plpar_hcall_raw(H_EOI, retbuf, h_xirr); in kvmppc_read_one_intr() 543 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in kvmppc_read_one_intr() local 545 plpar_hcall_raw(H_IPI, retbuf, in kvmppc_read_one_intr()
|
D | book3s_hv_rm_xics.c | 775 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in icp_eoi() local 778 plpar_hcall_raw(H_EOI, retbuf, hwirq); in icp_eoi()
|
/arch/powerpc/kernel/ |
D | rtas.c | 854 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in rtas_ibm_suspend_me() local 862 rc = plpar_hcall(H_VASI_STATE, retbuf, handle); in rtas_ibm_suspend_me() 864 state = retbuf[0]; in rtas_ibm_suspend_me()
|