Home
last modified time | relevance | path

Searched refs:retbuf (Results 1 – 16 of 16) sorted by relevance

/arch/powerpc/include/asm/
Dplpar_wrappers.h103 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_pte_enter() local
105 rc = plpar_hcall(H_ENTER, retbuf, flags, hpte_group, hpte_v, hpte_r); in plpar_pte_enter()
107 *slot = retbuf[0]; in plpar_pte_enter()
117 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_pte_remove() local
119 rc = plpar_hcall(H_REMOVE, retbuf, flags, ptex, avpn); in plpar_pte_remove()
121 *old_pteh_ret = retbuf[0]; in plpar_pte_remove()
122 *old_ptel_ret = retbuf[1]; in plpar_pte_remove()
133 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_pte_remove_raw() local
135 rc = plpar_hcall_raw(H_REMOVE, retbuf, flags, ptex, avpn); in plpar_pte_remove_raw()
137 *old_pteh_ret = retbuf[0]; in plpar_pte_remove_raw()
[all …]
Dhvcall.h475 long plpar_hcall(unsigned long opcode, unsigned long *retbuf, ...);
489 long plpar_hcall_raw(unsigned long opcode, unsigned long *retbuf, ...);
500 long plpar_hcall9(unsigned long opcode, unsigned long *retbuf, ...);
501 long plpar_hcall9_raw(unsigned long opcode, unsigned long *retbuf, ...);
Dtrace.h100 TP_PROTO(unsigned long opcode, long retval, unsigned long *retbuf),
102 TP_ARGS(opcode, retval, retbuf),
Dasm-prototypes.h36 void __trace_hcall_exit(long opcode, long retval, unsigned long *retbuf);
/arch/powerpc/platforms/pseries/
Dhvconsole.c31 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()
Dlparcfg.c116 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 …]
Drng.c18 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()
Dvphn.c82 long retbuf[PLPAR_HCALL9_BUFSIZE] = {0}; in hcall_vphn() local
84 rc = plpar_hcall9(H_HOME_NODE_ASSOCIATIVITY, retbuf, flags, cpu); in hcall_vphn()
86 vphn_unpack_associativity(retbuf, associativity); in hcall_vphn()
Dsuspend.c30 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in pseries_suspend_begin() local
33 rc = plpar_hcall(H_VASI_STATE, retbuf, stream_id); in pseries_suspend_begin()
35 vasi_state = retbuf[0]; in pseries_suspend_begin()
Dpseries_energy.c191 unsigned long retbuf[PLPAR_HCALL9_BUFSIZE]; in get_best_energy_list() local
204 rc = plpar_hcall9(H_BEST_ENERGY, retbuf, flags, 0, __pa(buf_page), in get_best_energy_list()
211 cnt = retbuf[0]; in get_best_energy_list()
231 unsigned long retbuf[PLPAR_HCALL9_BUFSIZE]; in get_best_energy_data() local
238 rc = plpar_hcall9(H_BEST_ENERGY, retbuf, flags, in get_best_energy_data()
245 return sprintf(page, "%lu\n", retbuf[1] >> 32); in get_best_energy_data()
Dlpar.c1045 unsigned long retbuf[PLPAR_HCALL9_BUFSIZE]; in call_block_remove() local
1059 rc = plpar_hcall9(H_BLOCK_REMOVE, retbuf, in call_block_remove()
1070 unsigned long ctrl = retbuf[i] & HBLKR_CTRL_MASK; in call_block_remove()
1863 notrace void __trace_hcall_exit(long opcode, long retval, unsigned long *retbuf) in __trace_hcall_exit() argument
1876 trace_hcall_exit(opcode, retval, retbuf); in __trace_hcall_exit()
1892 unsigned long retbuf[PLPAR_HCALL9_BUFSIZE]; in h_get_mpp() local
1894 rc = plpar_hcall9(H_GET_MPP, retbuf); in h_get_mpp()
1896 mpp_data->entitled_mem = retbuf[0]; in h_get_mpp()
1897 mpp_data->mapped_mem = retbuf[1]; in h_get_mpp()
1899 mpp_data->group_num = (retbuf[2] >> 2 * 8) & 0xffff; in h_get_mpp()
[all …]
Dvas.c52 long retbuf[PLPAR_HCALL9_BUFSIZE] = {0}; in h_allocate_vas_window() local
56 rc = plpar_hcall9(H_ALLOCATE_VAS_WINDOW, retbuf, wintype, in h_allocate_vas_window()
68 win->vas_win.winid = retbuf[0]; in h_allocate_vas_window()
69 win->win_addr = retbuf[1]; in h_allocate_vas_window()
70 win->complete_irq = retbuf[2]; in h_allocate_vas_window()
71 win->fault_irq = retbuf[3]; in h_allocate_vas_window()
Dmobility.c371 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in poll_vasi_state() local
375 hvrc = plpar_hcall(H_VASI_STATE, retbuf, handle); in poll_vasi_state()
379 *res = retbuf[0]; in poll_vasi_state()
DhvCall_inst.c99 unsigned long *retbuf) in probe_hcall_exit() argument
/arch/powerpc/sysdev/xive/
Dspapr.c180 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_int_get_source_info() local
184 rc = plpar_hcall(H_INT_GET_SOURCE_INFO, retbuf, flags, lisn); in plpar_int_get_source_info()
192 *src_flags = retbuf[0]; in plpar_int_get_source_info()
193 *eoi_page = retbuf[1]; in plpar_int_get_source_info()
194 *trig_page = retbuf[2]; in plpar_int_get_source_info()
195 *esb_shift = retbuf[3]; in plpar_int_get_source_info()
198 retbuf[0], retbuf[1], retbuf[2], retbuf[3]); in plpar_int_get_source_info()
239 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_int_get_source_config() local
245 rc = plpar_hcall(H_INT_GET_SOURCE_CONFIG, retbuf, flags, lisn, in plpar_int_get_source_config()
255 *target = retbuf[0]; in plpar_int_get_source_config()
[all …]
/arch/powerpc/sysdev/xics/
Dicp-hv.c23 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in icp_hv_get_xirr() local
27 rc = plpar_hcall(H_XIRR, retbuf, cppr); in icp_hv_get_xirr()
29 ret = (unsigned int)retbuf[0]; in icp_hv_get_xirr()