| /Linux-v6.1/arch/powerpc/include/asm/ |
| D | plpar_wrappers.h | 101 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_pte_enter() local 103 rc = plpar_hcall(H_ENTER, retbuf, flags, hpte_group, hpte_v, hpte_r); in plpar_pte_enter() 105 *slot = retbuf[0]; in plpar_pte_enter() 115 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_pte_remove() local 117 rc = plpar_hcall(H_REMOVE, retbuf, flags, ptex, avpn); in plpar_pte_remove() 119 *old_pteh_ret = retbuf[0]; in plpar_pte_remove() 120 *old_ptel_ret = retbuf[1]; in plpar_pte_remove() 131 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_pte_remove_raw() local 133 rc = plpar_hcall_raw(H_REMOVE, retbuf, flags, ptex, avpn); in plpar_pte_remove_raw() 135 *old_pteh_ret = retbuf[0]; in plpar_pte_remove_raw() [all …]
|
| D | hvcall.h | 497 long plpar_hcall(unsigned long opcode, unsigned long *retbuf, ...); 511 long plpar_hcall_raw(unsigned long opcode, unsigned long *retbuf, ...); 522 long plpar_hcall9(unsigned long opcode, unsigned long *retbuf, ...); 523 long plpar_hcall9_raw(unsigned long opcode, unsigned long *retbuf, ...); 528 void __trace_hcall_exit(long opcode, long retval, unsigned long *retbuf);
|
| D | trace.h | 100 TP_PROTO(unsigned long opcode, long retval, unsigned long *retbuf), 102 TP_ARGS(opcode, retval, retbuf),
|
| /Linux-v6.1/drivers/misc/cxl/ |
| D | hcalls.c | 49 #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-v6.1/arch/powerpc/sysdev/xive/ |
| D | spapr.c | 182 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_int_get_source_info() local 186 rc = plpar_hcall(H_INT_GET_SOURCE_INFO, retbuf, flags, lisn); in plpar_int_get_source_info() 194 *src_flags = retbuf[0]; in plpar_int_get_source_info() 195 *eoi_page = retbuf[1]; in plpar_int_get_source_info() 196 *trig_page = retbuf[2]; in plpar_int_get_source_info() 197 *esb_shift = retbuf[3]; in plpar_int_get_source_info() 200 lisn, retbuf[0], retbuf[1], retbuf[2], retbuf[3]); in plpar_int_get_source_info() 241 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_int_get_source_config() local 247 rc = plpar_hcall(H_INT_GET_SOURCE_CONFIG, retbuf, flags, lisn, in plpar_int_get_source_config() 257 *target = retbuf[0]; in plpar_int_get_source_config() [all …]
|
| /Linux-v6.1/arch/powerpc/platforms/pseries/ |
| D | plpks.c | 125 unsigned long retbuf[PLPAR_HCALL_BUFSIZE] = { 0 }; in plpks_gen_password() local 133 rc = plpar_hcall(H_PKS_GEN_PASSWORD, retbuf, consumer, 0, in plpks_gen_password() 222 unsigned long retbuf[PLPAR_HCALL_BUFSIZE] = { 0 }; in _plpks_get_config() local 240 rc = plpar_hcall(H_PKS_GET_CONFIG, retbuf, virt_to_phys(&config), size); in _plpks_get_config() 254 unsigned long retbuf[PLPAR_HCALL_BUFSIZE] = { 0 }; in plpks_confirm_object_flushed() local 260 rc = plpar_hcall(H_PKS_CONFIRM_OBJECT_FLUSHED, retbuf, in plpks_confirm_object_flushed() 264 status = retbuf[0]; in plpks_confirm_object_flushed() 286 unsigned long retbuf[PLPAR_HCALL_BUFSIZE] = { 0 }; in plpks_write_var() local 308 rc = plpar_hcall(H_PKS_WRITE_OBJECT, retbuf, virt_to_phys(auth), in plpks_write_var() 329 unsigned long retbuf[PLPAR_HCALL_BUFSIZE] = { 0 }; in plpks_remove_var() local [all …]
|
| D | hvconsole.c | 31 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()
|
| D | lparcfg.c | 116 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 …]
|
| D | rng.c | 18 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()
|
| D | vphn.c | 82 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()
|
| D | pseries_energy.c | 191 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()
|
| D | lpar.c | 1092 unsigned long retbuf[PLPAR_HCALL9_BUFSIZE]; in call_block_remove() local 1106 rc = plpar_hcall9(H_BLOCK_REMOVE, retbuf, in call_block_remove() 1117 unsigned long ctrl = retbuf[i] & HBLKR_CTRL_MASK; in call_block_remove() 1883 notrace void __trace_hcall_exit(long opcode, long retval, unsigned long *retbuf) in __trace_hcall_exit() argument 1896 trace_hcall_exit(opcode, retval, retbuf); in __trace_hcall_exit() 1912 unsigned long retbuf[PLPAR_HCALL9_BUFSIZE]; in h_get_mpp() local 1914 rc = plpar_hcall9(H_GET_MPP, retbuf); in h_get_mpp() 1916 mpp_data->entitled_mem = retbuf[0]; in h_get_mpp() 1917 mpp_data->mapped_mem = retbuf[1]; in h_get_mpp() 1919 mpp_data->group_num = (retbuf[2] >> 2 * 8) & 0xffff; in h_get_mpp() [all …]
|
| D | suspend.c | 30 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()
|
| D | vas.c | 55 long retbuf[PLPAR_HCALL9_BUFSIZE] = {0}; in h_allocate_vas_window() local 59 rc = plpar_hcall9(H_ALLOCATE_VAS_WINDOW, retbuf, wintype, in h_allocate_vas_window() 71 win->vas_win.winid = retbuf[0]; in h_allocate_vas_window() 72 win->win_addr = retbuf[1]; in h_allocate_vas_window() 73 win->complete_irq = retbuf[2]; in h_allocate_vas_window() 74 win->fault_irq = retbuf[3]; in h_allocate_vas_window()
|
| D | mobility.c | 405 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in poll_vasi_state() local 409 hvrc = plpar_hcall(H_VASI_STATE, retbuf, handle); in poll_vasi_state() 413 *res = retbuf[0]; in poll_vasi_state()
|
| D | hvCall_inst.c | 99 unsigned long *retbuf) in probe_hcall_exit() argument
|
| /Linux-v6.1/drivers/net/ethernet/ibm/ |
| D | ibmveth.h | 58 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()
|
| D | ibmvnic.c | 178 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in h_reg_sub_crq() local 181 rc = plpar_hcall(H_REG_SUB_CRQ, retbuf, unit_address, token, length); in h_reg_sub_crq() 182 *number = retbuf[0]; in h_reg_sub_crq() 183 *irq = retbuf[1]; in h_reg_sub_crq() 6238 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in failover_store() local 6245 rc = plpar_hcall(H_VIOCTL, retbuf, adapter->vdev->unit_address, in failover_store() 6253 session_token = (__be64)retbuf[0]; in failover_store()
|
| /Linux-v6.1/tools/testing/selftests/powerpc/vphn/ |
| D | vphn.c | 82 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-v6.1/arch/powerpc/sysdev/xics/ |
| D | icp-hv.c | 23 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-v6.1/fs/cifs/ |
| D | smb2ops.c | 1609 struct copychunk_ioctl_rsp *retbuf = NULL; in smb2_copychunk_range() local 1643 kfree(retbuf); in smb2_copychunk_range() 1644 retbuf = NULL; in smb2_copychunk_range() 1648 CIFSMaxBufSize, (char **)&retbuf, &ret_data_len); in smb2_copychunk_range() 1656 if (retbuf->TotalBytesWritten == 0) { in smb2_copychunk_range() 1664 if (le32_to_cpu(retbuf->TotalBytesWritten) > in smb2_copychunk_range() 1670 if (le32_to_cpu(retbuf->ChunksWritten) != 1) { in smb2_copychunk_range() 1677 bytes_written = le32_to_cpu(retbuf->TotalBytesWritten); in smb2_copychunk_range() 1684 le32_to_cpu(retbuf->ChunksWritten), in smb2_copychunk_range() 1685 le32_to_cpu(retbuf->ChunkBytesWritten), in smb2_copychunk_range() [all …]
|
| /Linux-v6.1/drivers/misc/ |
| D | ibmvmc.c | 97 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-v6.1/drivers/scsi/ibmvscsi/ |
| D | ibmvfc.c | 172 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in h_reg_sub_crq() local 175 rc = plpar_hcall(H_REG_SUB_CRQ, retbuf, unit_address, ioba, length); in h_reg_sub_crq() 176 *cookie = retbuf[0]; in h_reg_sub_crq() 177 *irq = retbuf[1]; in h_reg_sub_crq()
|