| /OK3568_Linux_fs/kernel/arch/powerpc/include/asm/ |
| H A D | plpar_wrappers.h | 98 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 …]
|
| H A D | hvcall.h | 456 long plpar_hcall(unsigned long opcode, unsigned long *retbuf, ...); 470 long plpar_hcall_raw(unsigned long opcode, unsigned long *retbuf, ...); 481 long plpar_hcall9(unsigned long opcode, unsigned long *retbuf, ...); 482 long plpar_hcall9_raw(unsigned long opcode, unsigned long *retbuf, ...);
|
| H A D | trace.h | 100 TP_PROTO(unsigned long opcode, long retval, unsigned long *retbuf), 102 TP_ARGS(opcode, retval, retbuf),
|
| H A D | asm-prototypes.h | 36 void __trace_hcall_exit(long opcode, long retval, unsigned long *retbuf);
|
| /OK3568_Linux_fs/kernel/drivers/misc/cxl/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/arch/powerpc/sysdev/xive/ |
| H A D | spapr.c | 168 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_int_get_source_info() local 172 rc = plpar_hcall(H_INT_GET_SOURCE_INFO, retbuf, flags, lisn); in plpar_int_get_source_info() 180 *src_flags = retbuf[0]; in plpar_int_get_source_info() 181 *eoi_page = retbuf[1]; in plpar_int_get_source_info() 182 *trig_page = retbuf[2]; in plpar_int_get_source_info() 183 *esb_shift = retbuf[3]; in plpar_int_get_source_info() 186 retbuf[0], retbuf[1], retbuf[2], retbuf[3]); in plpar_int_get_source_info() 227 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in plpar_int_get_source_config() local 233 rc = plpar_hcall(H_INT_GET_SOURCE_CONFIG, retbuf, flags, lisn, in plpar_int_get_source_config() 243 *target = retbuf[0]; in plpar_int_get_source_config() [all …]
|
| /OK3568_Linux_fs/kernel/arch/powerpc/platforms/pseries/ |
| H A 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 …]
|
| H A 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()
|
| H A 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()
|
| H A D | lpar.c | 1044 unsigned long retbuf[PLPAR_HCALL9_BUFSIZE]; in call_block_remove() local 1058 rc = plpar_hcall9(H_BLOCK_REMOVE, retbuf, in call_block_remove() 1069 unsigned long ctrl = retbuf[i] & HBLKR_CTRL_MASK; in call_block_remove() 1863 void __trace_hcall_exit(long opcode, long retval, unsigned long *retbuf) in __trace_hcall_exit() argument 1879 trace_hcall_exit(opcode, retval, retbuf); in __trace_hcall_exit() 1895 unsigned long retbuf[PLPAR_HCALL9_BUFSIZE]; in h_get_mpp() local 1897 rc = plpar_hcall9(H_GET_MPP, retbuf); in h_get_mpp() 1899 mpp_data->entitled_mem = retbuf[0]; in h_get_mpp() 1900 mpp_data->mapped_mem = retbuf[1]; in h_get_mpp() 1902 mpp_data->group_num = (retbuf[2] >> 2 * 8) & 0xffff; in h_get_mpp() [all …]
|
| H A 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()
|
| H A 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()
|
| H A D | suspend.c | 34 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in pseries_suspend_begin() local 37 rc = plpar_hcall(H_VASI_STATE, retbuf, stream_id); in pseries_suspend_begin() 39 vasi_state = retbuf[0]; in pseries_suspend_begin()
|
| H A D | hvCall_inst.c | 99 unsigned long *retbuf) in probe_hcall_exit() argument
|
| /OK3568_Linux_fs/kernel/drivers/net/ethernet/ibm/ |
| H A D | ibmveth.h | 56 unsigned long retbuf[PLPAR_HCALL9_BUFSIZE]; in h_send_logical_lan() local 59 rc = plpar_hcall9(H_SEND_LOGICAL_LAN, retbuf, unit_address, in h_send_logical_lan() 63 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()
|
| /OK3568_Linux_fs/kernel/tools/testing/selftests/powerpc/vphn/ |
| H A 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()
|
| /OK3568_Linux_fs/kernel/arch/powerpc/kvm/ |
| H A D | book3s_hv_builtin.c | 225 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in kvmhv_rm_send_ipi() local 227 plpar_hcall_raw(H_IPI, retbuf, get_hard_smp_processor_id(cpu), in kvmhv_rm_send_ipi() 462 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in kvmppc_read_one_intr() local 464 rc = plpar_hcall_raw(H_XIRR, retbuf, 0xFF); in kvmppc_read_one_intr() 465 xirr = cpu_to_be32(retbuf[0]); in kvmppc_read_one_intr() 503 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in kvmppc_read_one_intr() local 505 plpar_hcall_raw(H_IPI, retbuf, in kvmppc_read_one_intr() 507 plpar_hcall_raw(H_EOI, retbuf, h_xirr); in kvmppc_read_one_intr() 535 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in kvmppc_read_one_intr() local 537 plpar_hcall_raw(H_IPI, retbuf, in kvmppc_read_one_intr()
|
| /OK3568_Linux_fs/kernel/arch/powerpc/sysdev/xics/ |
| H A D | icp-hv.c | 22 unsigned long retbuf[PLPAR_HCALL_BUFSIZE]; in icp_hv_get_xirr() local 26 rc = plpar_hcall(H_XIRR, retbuf, cppr); in icp_hv_get_xirr() 28 ret = (unsigned int)retbuf[0]; in icp_hv_get_xirr()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_indep_power/ |
| H A D | dhd_msgbuf.c | 395 dhd_dma_buf_t retbuf; /* For holding ioctl response */ member 1181 static void free_ioctl_return_buffer(dhd_pub_t *dhd, dhd_dma_buf_t *retbuf); 1182 static int alloc_ioctl_return_buffer(dhd_pub_t *dhd, dhd_dma_buf_t *retbuf); 1644 dhd_dma_buf_t retbuf; in dhd_pktid_map_reset_ioctl() local 1651 retbuf.va = locker->pkt; in dhd_pktid_map_reset_ioctl() 1652 retbuf.len = locker->len; in dhd_pktid_map_reset_ioctl() 1653 retbuf.pa = locker->pa; in dhd_pktid_map_reset_ioctl() 1654 retbuf.dmah = locker->dmah; in dhd_pktid_map_reset_ioctl() 1655 retbuf.secdma = locker->secdma; in dhd_pktid_map_reset_ioctl() 1659 free_ioctl_return_buffer(dhd, &retbuf); in dhd_pktid_map_reset_ioctl() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/infineon/bcmdhd/ |
| H A D | dhd_msgbuf.c | 487 dhd_dma_buf_t retbuf; /* For holding ioctl response */ member 1711 static void free_ioctl_return_buffer(dhd_pub_t *dhd, dhd_dma_buf_t *retbuf); 1712 static int alloc_ioctl_return_buffer(dhd_pub_t *dhd, dhd_dma_buf_t *retbuf); 2244 dhd_dma_buf_t retbuf; in dhd_pktid_map_reset_ioctl() local 2251 retbuf.va = locker->pkt; in dhd_pktid_map_reset_ioctl() 2252 retbuf.len = locker->len; in dhd_pktid_map_reset_ioctl() 2253 retbuf.pa = locker->pa; in dhd_pktid_map_reset_ioctl() 2254 retbuf.dmah = locker->dmah; in dhd_pktid_map_reset_ioctl() 2255 retbuf.secdma = locker->secdma; in dhd_pktid_map_reset_ioctl() 2257 free_ioctl_return_buffer(dhd, &retbuf); in dhd_pktid_map_reset_ioctl() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/infineon/ |
| H A D | dhd_msgbuf.c | 487 dhd_dma_buf_t retbuf; /* For holding ioctl response */ member 1711 static void free_ioctl_return_buffer(dhd_pub_t *dhd, dhd_dma_buf_t *retbuf); 1712 static int alloc_ioctl_return_buffer(dhd_pub_t *dhd, dhd_dma_buf_t *retbuf); 2244 dhd_dma_buf_t retbuf; in dhd_pktid_map_reset_ioctl() local 2251 retbuf.va = locker->pkt; in dhd_pktid_map_reset_ioctl() 2252 retbuf.len = locker->len; in dhd_pktid_map_reset_ioctl() 2253 retbuf.pa = locker->pa; in dhd_pktid_map_reset_ioctl() 2254 retbuf.dmah = locker->dmah; in dhd_pktid_map_reset_ioctl() 2255 retbuf.secdma = locker->secdma; in dhd_pktid_map_reset_ioctl() 2257 free_ioctl_return_buffer(dhd, &retbuf); in dhd_pktid_map_reset_ioctl() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/ |
| H A D | dhd_msgbuf.c | 487 dhd_dma_buf_t retbuf; /* For holding ioctl response */ member 1711 static void free_ioctl_return_buffer(dhd_pub_t *dhd, dhd_dma_buf_t *retbuf); 1712 static int alloc_ioctl_return_buffer(dhd_pub_t *dhd, dhd_dma_buf_t *retbuf); 2244 dhd_dma_buf_t retbuf; in dhd_pktid_map_reset_ioctl() local 2251 retbuf.va = locker->pkt; in dhd_pktid_map_reset_ioctl() 2252 retbuf.len = locker->len; in dhd_pktid_map_reset_ioctl() 2253 retbuf.pa = locker->pa; in dhd_pktid_map_reset_ioctl() 2254 retbuf.dmah = locker->dmah; in dhd_pktid_map_reset_ioctl() 2255 retbuf.secdma = locker->secdma; in dhd_pktid_map_reset_ioctl() 2257 free_ioctl_return_buffer(dhd, &retbuf); in dhd_pktid_map_reset_ioctl() [all …]
|
| /OK3568_Linux_fs/kernel/fs/cifs/ |
| H A D | smb2ops.c | 1746 struct copychunk_ioctl_rsp *retbuf = NULL; in smb2_copychunk_range() local 1789 kfree(retbuf); in smb2_copychunk_range() 1790 retbuf = NULL; in smb2_copychunk_range() 1794 CIFSMaxBufSize, (char **)&retbuf, &ret_data_len); in smb2_copychunk_range() 1802 if (retbuf->TotalBytesWritten == 0) { in smb2_copychunk_range() 1810 if (le32_to_cpu(retbuf->TotalBytesWritten) > in smb2_copychunk_range() 1816 if (le32_to_cpu(retbuf->ChunksWritten) != 1) { in smb2_copychunk_range() 1823 bytes_written = le32_to_cpu(retbuf->TotalBytesWritten); in smb2_copychunk_range() 1830 le32_to_cpu(retbuf->ChunksWritten), in smb2_copychunk_range() 1831 le32_to_cpu(retbuf->ChunkBytesWritten), in smb2_copychunk_range() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/ |
| H A D | dhd_msgbuf.c | 641 dhd_dma_buf_t retbuf; /* For holding ioctl response */ member 2018 static void free_ioctl_return_buffer(dhd_pub_t *dhd, dhd_dma_buf_t *retbuf); 2019 static int alloc_ioctl_return_buffer(dhd_pub_t *dhd, dhd_dma_buf_t *retbuf); 2578 dhd_dma_buf_t retbuf; in dhd_pktid_map_reset_ioctl() local 2585 retbuf.va = locker->pkt; in dhd_pktid_map_reset_ioctl() 2586 retbuf.len = locker->len; in dhd_pktid_map_reset_ioctl() 2587 retbuf.pa = locker->pa; in dhd_pktid_map_reset_ioctl() 2588 retbuf.dmah = locker->dmah; in dhd_pktid_map_reset_ioctl() 2589 retbuf.secdma = locker->secdma; in dhd_pktid_map_reset_ioctl() 2591 free_ioctl_return_buffer(dhd, &retbuf); in dhd_pktid_map_reset_ioctl() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/ |
| H A D | dhd_msgbuf.c | 645 dhd_dma_buf_t retbuf; /* For holding ioctl response */ member 2022 static void free_ioctl_return_buffer(dhd_pub_t *dhd, dhd_dma_buf_t *retbuf); 2023 static int alloc_ioctl_return_buffer(dhd_pub_t *dhd, dhd_dma_buf_t *retbuf); 2582 dhd_dma_buf_t retbuf; in dhd_pktid_map_reset_ioctl() local 2589 retbuf.va = locker->pkt; in dhd_pktid_map_reset_ioctl() 2590 retbuf.len = locker->len; in dhd_pktid_map_reset_ioctl() 2591 retbuf.pa = locker->pa; in dhd_pktid_map_reset_ioctl() 2592 retbuf.dmah = locker->dmah; in dhd_pktid_map_reset_ioctl() 2593 retbuf.secdma = locker->secdma; in dhd_pktid_map_reset_ioctl() 2595 free_ioctl_return_buffer(dhd, &retbuf); in dhd_pktid_map_reset_ioctl() [all …]
|