Home
last modified time | relevance | path

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

/linux/arch/powerpc/include/asm/
H A Dplpar_wrappers.h104 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_pte_enter() local
106 rc = plpar_hcall(H_ENTER, retbuf, flags, hpte_group, hpte_v, hpte_r); in plpar_pte_enter()
108 *slot = retbuf[0]; in plpar_pte_enter()
118 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_pte_remove() local
120 rc = plpar_hcall(H_REMOVE, retbuf, flags, ptex, avpn); in plpar_pte_remove()
122 *old_pteh_ret = retbuf[0]; in plpar_pte_remove()
123 *old_ptel_ret = retbuf[1]; in plpar_pte_remove()
134 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_pte_remove_raw() local
136 rc = plpar_hcall_raw(H_REMOVE, retbuf, flags, ptex, avpn); in plpar_pte_remove_raw()
138 *old_pteh_ret = retbuf[0]; in plpar_pte_remove_raw()
[all …]
H A Dhvcall.h566 long plpar_hcall(unsigned long opcode, unsigned long retbuf[static PLPAR_HCALL_BUFSIZE], ...);
580 long plpar_hcall_raw(unsigned long opcode, unsigned long retbuf[static PLPAR_HCALL_BUFSIZE], ...);
591 long plpar_hcall9(unsigned long opcode, unsigned long retbuf[static PLPAR_HCALL9_BUFSIZE], ...);
592 long plpar_hcall9_raw(unsigned long opcode, unsigned long retbuf[static PLPAR_HCALL9_BUFSIZE], ...);
597 void __trace_hcall_exit(long opcode, long retval, unsigned long *retbuf);
H A Dtrace.h100 TP_PROTO(unsigned long opcode, long retval, unsigned long *retbuf),
102 TP_ARGS(opcode, retval, retbuf),
/linux/arch/powerpc/sysdev/xive/
H A Dspapr.c183 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_int_get_source_info() local
187 rc = plpar_hcall(H_INT_GET_SOURCE_INFO, retbuf, flags, lisn); in plpar_int_get_source_info()
195 *src_flags = retbuf[0]; in plpar_int_get_source_info()
196 *eoi_page = retbuf[1]; in plpar_int_get_source_info()
197 *trig_page = retbuf[2]; in plpar_int_get_source_info()
198 *esb_shift = retbuf[3]; in plpar_int_get_source_info()
201 lisn, retbuf[0], retbuf[1], retbuf[2], retbuf[3]); in plpar_int_get_source_info()
242 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_int_get_source_config() local
248 rc = plpar_hcall(H_INT_GET_SOURCE_CONFIG, retbuf, flags, lisn, in plpar_int_get_source_config()
258 *target = retbuf[0]; in plpar_int_get_source_config()
[all …]
/linux/arch/powerpc/platforms/pseries/
H A Dplpks.c160 unsigned long retbuf[PLPAR_HCALL_BUFSIZE] = { 0 }; in plpks_gen_password() local
175 rc = plpar_hcall(H_PKS_GEN_PASSWORD, retbuf, consumer, 0, in plpks_gen_password()
266 unsigned long retbuf[PLPAR_HCALL_BUFSIZE] = { 0 }; in _plpks_get_config() local
296 rc = plpar_hcall(H_PKS_GET_CONFIG, retbuf, virt_to_phys(config), size); in _plpks_get_config()
568 unsigned long retbuf[PLPAR_HCALL_BUFSIZE] = { 0 }; in plpks_confirm_object_flushed() local
575 rc = plpar_hcall(H_PKS_CONFIRM_OBJECT_FLUSHED, retbuf, in plpks_confirm_object_flushed()
579 status = retbuf[0]; in plpks_confirm_object_flushed()
633 unsigned long retbuf[PLPAR_HCALL9_BUFSIZE] = {0}; in plpks_signed_update_var() local
664 rc = plpar_hcall9(H_PKS_SIGNED_UPDATE, retbuf, in plpks_signed_update_var()
670 continuetoken = retbuf[0]; in plpks_signed_update_var()
[all …]
H A Dlparcfg.c117 unsigned long retbuf[PLPAR_HCALL9_BUFSIZE] = {0}; 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->active_procs_in_resource_group = (retbuf[2] >> 4 * 8) & 0xffff; in h_get_ppp()
126 ppp_data->group_num = (retbuf[2] >> 2 * 8) & 0xffff; in h_get_ppp()
127 ppp_data->pool_num = retbuf[2] & 0xffff; in h_get_ppp()
129 ppp_data->resource_group_index = (retbuf[3] >> 7 * 8) & 0xff; in h_get_ppp()
130 ppp_data->capped = (retbuf[3] >> 6 * 8) & 0x01; in h_get_ppp()
131 ppp_data->weight = (retbuf[3] >> 5 * 8) & 0xff; in h_get_ppp()
[all …]
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 Dlpar.c1093 unsigned long retbuf[PLPAR_HCALL9_BUFSIZE]; in call_block_remove() local
1107 rc = plpar_hcall9(H_BLOCK_REMOVE, retbuf, in call_block_remove()
1118 unsigned long ctrl = retbuf[i] & HBLKR_CTRL_MASK; in call_block_remove()
1864 notrace void __trace_hcall_exit(long opcode, long retval, unsigned long *retbuf) in __trace_hcall_exit() argument
1877 trace_hcall_exit(opcode, retval, retbuf); in __trace_hcall_exit()
1892 unsigned long retbuf[PLPAR_HCALL9_BUFSIZE] = {0}; in h_get_mpp() local
1895 rc = plpar_hcall9(H_GET_MPP, retbuf); in h_get_mpp()
1897 mpp_data->entitled_mem = retbuf[0]; in h_get_mpp()
1898 mpp_data->mapped_mem = retbuf[1]; in h_get_mpp()
1900 mpp_data->group_num = (retbuf[2] >> 2 * 8) & 0xffff; in h_get_mpp()
[all …]
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.c398 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in poll_vasi_state() local
402 hvrc = plpar_hcall(H_VASI_STATE, retbuf, handle); in poll_vasi_state()
406 *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.h60 unsigned long retbuf[PLPAR_HCALL9_BUFSIZE]; in h_add_logical_lan_buffers() local
63 retbuf, unit_address, in h_add_logical_lan_buffers()
77 unsigned long retbuf[PLPAR_HCALL9_BUFSIZE]; in h_send_logical_lan() local
80 rc = plpar_hcall9(H_SEND_LOGICAL_LAN, retbuf, unit_address, in h_send_logical_lan()
83 rc = plpar_hcall9(H_SEND_LOGICAL_LAN, retbuf, unit_address, in h_send_logical_lan()
86 *corellator_out = retbuf[0]; in h_send_logical_lan()
96 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in h_illan_attributes() local
98 rc = plpar_hcall(H_ILLAN_ATTRIBUTES, retbuf, unit_address, in h_illan_attributes()
101 *ret_attributes = retbuf[0]; in h_illan_attributes()
H A Dibmvnic.c376 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in h_reg_sub_crq() local
379 rc = plpar_hcall(H_REG_SUB_CRQ, retbuf, unit_address, token, length); in h_reg_sub_crq()
380 *number = retbuf[0]; in h_reg_sub_crq()
381 *irq = retbuf[1]; in h_reg_sub_crq()
6659 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in failover_store() local
6666 rc = plpar_hcall(H_VIOCTL, retbuf, adapter->vdev->unit_address, in failover_store()
6674 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/drivers/acpi/
H A Dbus.c241 struct acpi_buffer *cap, u32 *retbuf) in acpi_osc_error_check() argument
244 u32 errors = retbuf[OSC_QUERY_DWORD] & OSC_ERROR_MASK; in acpi_osc_error_check()
293 u32 *retbuf; in acpi_run_osc() local
307 retbuf = (u32 *)out_obj->buffer.pointer; in acpi_run_osc()
309 if (acpi_osc_error_check(handle, &guid, context->rev, &context->cap, retbuf)) { in acpi_run_osc()
315 context->ret.pointer = kmemdup(retbuf, context->ret.length, GFP_KERNEL); in acpi_run_osc()
338 u32 *retbuf, test; in acpi_osc_handshake() local
353 retbuf = (u32 *)out_obj->buffer.pointer; in acpi_osc_handshake()
355 if (acpi_osc_error_check(handle, &guid, rev, &cap, retbuf)) { in acpi_osc_handshake()
365 capbuf[i] &= retbuf[i]; in acpi_osc_handshake()
[all …]
/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/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/fs/smb/client/
H A Dsmb2ops.c2272 char *retbuf = NULL; in smb3_enum_snapshots() local
2305 (char **)&retbuf, in smb3_enum_snapshots()
2312 if (ret_data_len && (ioc_buf != NULL) && (retbuf != NULL)) { in smb3_enum_snapshots()
2317 kfree(retbuf); in smb3_enum_snapshots()
2342 if (copy_to_user(ioc_buf, retbuf, ret_data_len)) in smb3_enum_snapshots()
2346 kfree(retbuf); in smb3_enum_snapshots()
/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()