Home
last modified time | relevance | path

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

/Linux-v4.19/arch/powerpc/include/asm/
Dplpar_wrappers.h98 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 …]
Dhvcall.h386 long plpar_hcall(unsigned long opcode, unsigned long *retbuf, ...);
400 long plpar_hcall_raw(unsigned long opcode, unsigned long *retbuf, ...);
411 long plpar_hcall9(unsigned long opcode, unsigned long *retbuf, ...);
412 long plpar_hcall9_raw(unsigned long opcode, unsigned long *retbuf, ...);
Dtrace.h84 TP_PROTO(unsigned long opcode, long retval, unsigned long *retbuf),
86 TP_ARGS(opcode, retval, retbuf),
Dasm-prototypes.h39 void __trace_hcall_exit(long opcode, long retval, unsigned long *retbuf);
/Linux-v4.19/drivers/misc/cxl/
Dhcalls.c53 #define _CXL_LOOP_HCALL(call, rc, retbuf, fn, ...) \ argument
58 memset(retbuf, 0, sizeof(retbuf)); \
60 rc = call(fn, retbuf, __VA_ARGS__, token); \
61 token = retbuf[0]; \
139 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in cxl_h_attach_process() local
142 CXL_H_WAIT_UNTIL_DONE(rc, retbuf, H_ATTACH_CA_PROCESS, unit_address, virt_to_phys(element)); in cxl_h_attach_process()
145 trace_cxl_hcall_attach(unit_address, virt_to_phys(element), retbuf[0], retbuf[1], retbuf[2], rc); in cxl_h_attach_process()
148 retbuf[0], retbuf[1], retbuf[2]); in cxl_h_attach_process()
153 *process_token = retbuf[0]; in cxl_h_attach_process()
155 *mmio_addr = retbuf[1]; in cxl_h_attach_process()
[all …]
/Linux-v4.19/arch/powerpc/platforms/pseries/
Dlparcfg.c118 unsigned long retbuf[PLPAR_HCALL9_BUFSIZE]; in h_get_ppp() local
120 rc = plpar_hcall9(H_GET_PPP, retbuf); in h_get_ppp()
122 ppp_data->entitlement = retbuf[0]; in h_get_ppp()
123 ppp_data->unallocated_entitlement = retbuf[1]; in h_get_ppp()
125 ppp_data->group_num = (retbuf[2] >> 2 * 8) & 0xffff; in h_get_ppp()
126 ppp_data->pool_num = retbuf[2] & 0xffff; in h_get_ppp()
128 ppp_data->capped = (retbuf[3] >> 6 * 8) & 0x01; in h_get_ppp()
129 ppp_data->weight = (retbuf[3] >> 5 * 8) & 0xff; in h_get_ppp()
130 ppp_data->unallocated_weight = (retbuf[3] >> 4 * 8) & 0xff; in h_get_ppp()
131 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.c902 void __trace_hcall_exit(long opcode, long retval, unsigned long *retbuf) in __trace_hcall_exit() argument
918 trace_hcall_exit(opcode, retval, retbuf); in __trace_hcall_exit()
934 unsigned long retbuf[PLPAR_HCALL9_BUFSIZE]; in h_get_mpp() local
936 rc = plpar_hcall9(H_GET_MPP, retbuf); in h_get_mpp()
938 mpp_data->entitled_mem = retbuf[0]; in h_get_mpp()
939 mpp_data->mapped_mem = retbuf[1]; in h_get_mpp()
941 mpp_data->group_num = (retbuf[2] >> 2 * 8) & 0xffff; in h_get_mpp()
942 mpp_data->pool_num = retbuf[2] & 0xffff; in h_get_mpp()
944 mpp_data->mem_weight = (retbuf[3] >> 7 * 8) & 0xff; in h_get_mpp()
945 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.c188 unsigned long retbuf[PLPAR_HCALL9_BUFSIZE]; in get_best_energy_list() local
201 rc = plpar_hcall9(H_BEST_ENERGY, retbuf, flags, 0, __pa(buf_page), in get_best_energy_list()
208 cnt = retbuf[0]; in get_best_energy_list()
228 unsigned long retbuf[PLPAR_HCALL9_BUFSIZE]; in get_best_energy_data() local
235 rc = plpar_hcall9(H_BEST_ENERGY, retbuf, flags, in get_best_energy_data()
242 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.c129 unsigned long *retbuf) in probe_hcall_exit() argument
/Linux-v4.19/arch/powerpc/sysdev/xive/
Dspapr.c164 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_int_get_source_info() local
168 rc = plpar_hcall(H_INT_GET_SOURCE_INFO, retbuf, flags, lisn); in plpar_int_get_source_info()
176 *src_flags = retbuf[0]; in plpar_int_get_source_info()
177 *eoi_page = retbuf[1]; in plpar_int_get_source_info()
178 *trig_page = retbuf[2]; in plpar_int_get_source_info()
179 *esb_shift = retbuf[3]; in plpar_int_get_source_info()
182 retbuf[0], retbuf[1], retbuf[2], retbuf[3]); in plpar_int_get_source_info()
223 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_int_get_queue_info() local
227 rc = plpar_hcall(H_INT_GET_QUEUE_INFO, retbuf, flags, target, in plpar_int_get_queue_info()
237 *esn_page = retbuf[0]; in plpar_int_get_queue_info()
[all …]
/Linux-v4.19/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()
Dibmvnic.c162 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in h_reg_sub_crq() local
165 rc = plpar_hcall(H_REG_SUB_CRQ, retbuf, unit_address, token, length); in h_reg_sub_crq()
166 *number = retbuf[0]; in h_reg_sub_crq()
167 *irq = retbuf[1]; in h_reg_sub_crq()
4809 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in failover_store() local
4816 rc = plpar_hcall(H_VIOCTL, retbuf, adapter->vdev->unit_address, in failover_store()
4824 session_token = (__be64)retbuf[0]; in failover_store()
/Linux-v4.19/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-v4.19/fs/cifs/
Dsmb2ops.c1069 struct copychunk_ioctl_rsp *retbuf = NULL; in smb2_copychunk_range() local
1107 sizeof(struct copychunk_ioctl), (char **)&retbuf, in smb2_copychunk_range()
1116 if (retbuf->TotalBytesWritten == 0) { in smb2_copychunk_range()
1124 if (le32_to_cpu(retbuf->TotalBytesWritten) > in smb2_copychunk_range()
1130 if (le32_to_cpu(retbuf->ChunksWritten) != 1) { in smb2_copychunk_range()
1137 bytes_written = le32_to_cpu(retbuf->TotalBytesWritten); in smb2_copychunk_range()
1144 le32_to_cpu(retbuf->ChunksWritten), in smb2_copychunk_range()
1145 le32_to_cpu(retbuf->ChunkBytesWritten), in smb2_copychunk_range()
1152 le32_to_cpu(retbuf->ChunksWritten), in smb2_copychunk_range()
1153 le32_to_cpu(retbuf->ChunkBytesWritten), in smb2_copychunk_range()
[all …]
/Linux-v4.19/arch/powerpc/kernel/
Drtas.c941 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in rtas_ibm_suspend_me() local
951 rc = plpar_hcall(H_VASI_STATE, retbuf, handle); in rtas_ibm_suspend_me()
953 state = retbuf[0]; in rtas_ibm_suspend_me()
/Linux-v4.19/arch/powerpc/mm/
Dnuma.c1163 long retbuf[PLPAR_HCALL9_BUFSIZE] = {0}; in hcall_vphn() local
1167 rc = plpar_hcall9(H_HOME_NODE_ASSOCIATIVITY, retbuf, flags, hwcpu); in hcall_vphn()
1168 vphn_unpack_associativity(retbuf, associativity); in hcall_vphn()
/Linux-v4.19/drivers/misc/
Dibmvmc.c97 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in h_request_vmc() local
104 rc = plpar_hcall(H_REQUEST_VMC, retbuf); in h_request_vmc()
106 *vmc_index = retbuf[0]; in h_request_vmc()