Home
last modified time | relevance | path

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

/linux/arch/powerpc/include/asm/
H A Dplpar_wrappers.h75 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_pte_enter() local
77 rc = plpar_hcall(H_ENTER, retbuf, flags, hpte_group, hpte_v, hpte_r); in plpar_pte_enter()
79 *slot = retbuf[0]; in plpar_pte_enter()
89 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_pte_remove() local
91 rc = plpar_hcall(H_REMOVE, retbuf, flags, ptex, avpn); in plpar_pte_remove()
93 *old_pteh_ret = retbuf[0]; in plpar_pte_remove()
94 *old_ptel_ret = retbuf[1]; in plpar_pte_remove()
105 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_pte_remove_raw() local
107 rc = plpar_hcall_raw(H_REMOVE, retbuf, flags, ptex, avpn); in plpar_pte_remove_raw()
109 *old_pteh_ret = retbuf[0]; in plpar_pte_remove_raw()
[all …]
/linux/drivers/misc/cxl/
H A Dhcalls.c49 #define _CXL_LOOP_HCALL(call, rc, retbuf, fn, ...) \ argument
54 memset(retbuf, 0, sizeof(retbuf)); \
56 rc = call(fn, retbuf, __VA_ARGS__, token); \
57 token = retbuf[0]; \
135 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in cxl_h_attach_process() local
138 CXL_H_WAIT_UNTIL_DONE(rc, retbuf, H_ATTACH_CA_PROCESS, unit_address, virt_to_phys(element)); in cxl_h_attach_process()
141 trace_cxl_hcall_attach(unit_address, virt_to_phys(element), retbuf[0], retbuf[1], retbuf[2], rc); in cxl_h_attach_process()
144 retbuf[0], retbuf[1], retbuf[2]); in cxl_h_attach_process()
149 *process_token = retbuf[0]; in cxl_h_attach_process()
151 *mmio_addr = retbuf[1]; in cxl_h_attach_process()
[all …]
/linux/arch/powerpc/platforms/pseries/
H A 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()
H A 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()
H A 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()
H A 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()
H A Dsuspend.c31 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in pseries_suspend_begin() local
34 rc = plpar_hcall(H_VASI_STATE, retbuf, stream_id); in pseries_suspend_begin()
36 vasi_state = retbuf[0]; in pseries_suspend_begin()
H A Dvas.c76 long retbuf[PLPAR_HCALL9_BUFSIZE] = {0}; in h_allocate_vas_window() local
80 rc = plpar_hcall9(H_ALLOCATE_VAS_WINDOW, retbuf, wintype, in h_allocate_vas_window()
92 win->vas_win.winid = retbuf[0]; in h_allocate_vas_window()
93 win->win_addr = retbuf[1]; in h_allocate_vas_window()
94 win->complete_irq = retbuf[2]; in h_allocate_vas_window()
95 win->fault_irq = retbuf[3]; in h_allocate_vas_window()
H A Dmobility.c397 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in poll_vasi_state() local
401 hvrc = plpar_hcall(H_VASI_STATE, retbuf, handle); in poll_vasi_state()
405 *res = retbuf[0]; in poll_vasi_state()
H A DhvCall_inst.c99 unsigned long *retbuf) in probe_hcall_exit() argument
/linux/drivers/net/ethernet/ibm/
H A Dibmveth.h58 unsigned long retbuf[PLPAR_HCALL9_BUFSIZE]; in h_send_logical_lan() local
61 rc = plpar_hcall9(H_SEND_LOGICAL_LAN, retbuf, unit_address, in h_send_logical_lan()
64 rc = plpar_hcall9(H_SEND_LOGICAL_LAN, retbuf, unit_address, in h_send_logical_lan()
67 *corellator_out = retbuf[0]; in h_send_logical_lan()
77 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in h_illan_attributes() local
79 rc = plpar_hcall(H_ILLAN_ATTRIBUTES, retbuf, unit_address, in h_illan_attributes()
82 *ret_attributes = retbuf[0]; in h_illan_attributes()
H A Dibmvnic.c372 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in h_reg_sub_crq() local
375 rc = plpar_hcall(H_REG_SUB_CRQ, retbuf, unit_address, token, length); in h_reg_sub_crq()
376 *number = retbuf[0]; in h_reg_sub_crq()
377 *irq = retbuf[1]; in h_reg_sub_crq()
6602 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in failover_store() local
6609 rc = plpar_hcall(H_VIOCTL, retbuf, adapter->vdev->unit_address, in failover_store()
6617 session_token = (__be64)retbuf[0]; in failover_store()
/linux/tools/testing/selftests/powerpc/vphn/
H A 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()
/linux/arch/powerpc/sysdev/xics/
H A 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()
/linux/fs/smb/client/
H A Dsmb2ops.c1795 struct copychunk_ioctl_rsp *retbuf = NULL; in smb2_copychunk_range() local
1833 kfree(retbuf); in smb2_copychunk_range()
1834 retbuf = NULL; in smb2_copychunk_range()
1838 CIFSMaxBufSize, (char **)&retbuf, &ret_data_len); in smb2_copychunk_range()
1846 if (retbuf->TotalBytesWritten == 0) { in smb2_copychunk_range()
1854 if (le32_to_cpu(retbuf->TotalBytesWritten) > in smb2_copychunk_range()
1860 if (le32_to_cpu(retbuf->ChunksWritten) != 1) { in smb2_copychunk_range()
1867 bytes_written = le32_to_cpu(retbuf->TotalBytesWritten); in smb2_copychunk_range()
1874 le32_to_cpu(retbuf->ChunksWritten), in smb2_copychunk_range()
1875 le32_to_cpu(retbuf->ChunkBytesWritten), in smb2_copychunk_range()
[all …]
/linux/drivers/misc/
H A 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()
/linux/drivers/scsi/ibmvscsi/
H A Dibmvfc.c179 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in h_reg_sub_crq() local
182 rc = plpar_hcall(H_REG_SUB_CRQ, retbuf, unit_address, ioba, length); in h_reg_sub_crq()
183 *cookie = retbuf[0]; in h_reg_sub_crq()
184 *irq = retbuf[1]; in h_reg_sub_crq()