Home
last modified time | relevance | path

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

/linux-4.4.14/arch/powerpc/include/asm/
Dplpar_wrappers.h135 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_pte_enter() local
137 rc = plpar_hcall(H_ENTER, retbuf, flags, hpte_group, hpte_v, hpte_r); in plpar_pte_enter()
139 *slot = retbuf[0]; in plpar_pte_enter()
149 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_pte_remove() local
151 rc = plpar_hcall(H_REMOVE, retbuf, flags, ptex, avpn); in plpar_pte_remove()
153 *old_pteh_ret = retbuf[0]; in plpar_pte_remove()
154 *old_ptel_ret = retbuf[1]; in plpar_pte_remove()
165 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_pte_remove_raw() local
167 rc = plpar_hcall_raw(H_REMOVE, retbuf, flags, ptex, avpn); in plpar_pte_remove_raw()
169 *old_pteh_ret = retbuf[0]; in plpar_pte_remove_raw()
[all …]
Dhvcall.h311 long plpar_hcall(unsigned long opcode, unsigned long *retbuf, ...);
325 long plpar_hcall_raw(unsigned long opcode, unsigned long *retbuf, ...);
336 long plpar_hcall9(unsigned long opcode, unsigned long *retbuf, ...);
337 long plpar_hcall9_raw(unsigned long opcode, unsigned long *retbuf, ...);
Dtrace.h82 unsigned long *retbuf),
84 TP_ARGS(opcode, retval, retbuf),
/linux-4.4.14/arch/powerpc/platforms/pseries/
Dlparcfg.c115 unsigned long retbuf[PLPAR_HCALL9_BUFSIZE]; in h_get_ppp() local
117 rc = plpar_hcall9(H_GET_PPP, retbuf); in h_get_ppp()
119 ppp_data->entitlement = retbuf[0]; in h_get_ppp()
120 ppp_data->unallocated_entitlement = retbuf[1]; in h_get_ppp()
122 ppp_data->group_num = (retbuf[2] >> 2 * 8) & 0xffff; in h_get_ppp()
123 ppp_data->pool_num = retbuf[2] & 0xffff; in h_get_ppp()
125 ppp_data->capped = (retbuf[3] >> 6 * 8) & 0x01; in h_get_ppp()
126 ppp_data->weight = (retbuf[3] >> 5 * 8) & 0xff; in h_get_ppp()
127 ppp_data->unallocated_weight = (retbuf[3] >> 4 * 8) & 0xff; in h_get_ppp()
128 ppp_data->active_procs_in_pool = (retbuf[3] >> 2 * 8) & 0xffff; in h_get_ppp()
[all …]
Dhvconsole.c44 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in hvc_get_chars() local
47 ret = plpar_hcall(H_GET_TERM_CHAR, retbuf, vtermno); in hvc_get_chars()
48 lbuf[0] = be64_to_cpu(retbuf[1]); in hvc_get_chars()
49 lbuf[1] = be64_to_cpu(retbuf[2]); in hvc_get_chars()
52 return retbuf[0]; in hvc_get_chars()
Dlpar.c729 unsigned long *retbuf) in __trace_hcall_exit() argument
745 trace_hcall_exit(opcode, retval, retbuf); in __trace_hcall_exit()
761 unsigned long retbuf[PLPAR_HCALL9_BUFSIZE]; in h_get_mpp() local
763 rc = plpar_hcall9(H_GET_MPP, retbuf); in h_get_mpp()
765 mpp_data->entitled_mem = retbuf[0]; in h_get_mpp()
766 mpp_data->mapped_mem = retbuf[1]; in h_get_mpp()
768 mpp_data->group_num = (retbuf[2] >> 2 * 8) & 0xffff; in h_get_mpp()
769 mpp_data->pool_num = retbuf[2] & 0xffff; in h_get_mpp()
771 mpp_data->mem_weight = (retbuf[3] >> 7 * 8) & 0xff; in h_get_mpp()
772 mpp_data->unallocated_mem_weight = (retbuf[3] >> 6 * 8) & 0xff; in h_get_mpp()
[all …]
Drng.c21 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in pseries_get_random_long() local
23 if (plpar_hcall(H_RANDOM, retbuf) == H_SUCCESS) { in pseries_get_random_long()
24 *v = retbuf[0]; in pseries_get_random_long()
Dpseries_energy.c118 unsigned long retbuf[PLPAR_HCALL9_BUFSIZE]; in get_best_energy_list() local
131 rc = plpar_hcall9(H_BEST_ENERGY, retbuf, flags, 0, __pa(buf_page), in get_best_energy_list()
138 cnt = retbuf[0]; in get_best_energy_list()
158 unsigned long retbuf[PLPAR_HCALL9_BUFSIZE]; in get_best_energy_data() local
165 rc = plpar_hcall9(H_BEST_ENERGY, retbuf, flags, in get_best_energy_data()
172 return sprintf(page, "%lu\n", retbuf[1] >> 32); in get_best_energy_data()
Dsuspend.c48 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in pseries_suspend_begin() local
51 rc = plpar_hcall(H_VASI_STATE, retbuf, stream_id); in pseries_suspend_begin()
53 vasi_state = retbuf[0]; in pseries_suspend_begin()
DhvCall_inst.c119 unsigned long *retbuf) in probe_hcall_exit() argument
/linux-4.4.14/drivers/net/ethernet/ibm/
Dibmveth.h68 unsigned long retbuf[PLPAR_HCALL9_BUFSIZE]; in h_send_logical_lan() local
71 rc = plpar_hcall9(H_SEND_LOGICAL_LAN, retbuf, unit_address, in h_send_logical_lan()
75 rc = plpar_hcall9(H_SEND_LOGICAL_LAN, retbuf, unit_address, in h_send_logical_lan()
79 *corellator_out = retbuf[0]; in h_send_logical_lan()
89 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in h_illan_attributes() local
91 rc = plpar_hcall(H_ILLAN_ATTRIBUTES, retbuf, unit_address, in h_illan_attributes()
94 *ret_attributes = retbuf[0]; in h_illan_attributes()
/linux-4.4.14/arch/powerpc/sysdev/xics/
Dicp-hv.c27 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in icp_hv_get_xirr() local
31 rc = plpar_hcall(H_XIRR, retbuf, cppr); in icp_hv_get_xirr()
33 ret = (unsigned int)retbuf[0]; in icp_hv_get_xirr()
/linux-4.4.14/fs/cifs/
Dsmb2ops.c587 struct copychunk_ioctl_rsp *retbuf = NULL; in smb2_clone_range() local
624 sizeof(struct copychunk_ioctl), (char **)&retbuf, in smb2_clone_range()
633 if (retbuf->TotalBytesWritten == 0) { in smb2_clone_range()
641 if (le32_to_cpu(retbuf->TotalBytesWritten) > in smb2_clone_range()
647 if (le32_to_cpu(retbuf->ChunksWritten) != 1) { in smb2_clone_range()
654 src_off += le32_to_cpu(retbuf->TotalBytesWritten); in smb2_clone_range()
655 dest_off += le32_to_cpu(retbuf->TotalBytesWritten); in smb2_clone_range()
656 len -= le32_to_cpu(retbuf->TotalBytesWritten); in smb2_clone_range()
659 le32_to_cpu(retbuf->ChunksWritten), in smb2_clone_range()
660 le32_to_cpu(retbuf->ChunkBytesWritten), in smb2_clone_range()
[all …]
/linux-4.4.14/arch/powerpc/kernel/
Drtas.c923 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in rtas_ibm_suspend_me() local
933 rc = plpar_hcall(H_VASI_STATE, retbuf, handle); in rtas_ibm_suspend_me()
935 state = retbuf[0]; in rtas_ibm_suspend_me()
/linux-4.4.14/arch/powerpc/mm/
Dnuma.c1274 long retbuf[PLPAR_HCALL9_BUFSIZE] = {0}; in hcall_vphn() local
1278 rc = plpar_hcall9(H_HOME_NODE_ASSOCIATIVITY, retbuf, flags, hwcpu); in hcall_vphn()
1279 vphn_unpack_associativity(retbuf, associativity); in hcall_vphn()