| /arch/powerpc/platforms/powernv/ |
| A D | opal-async.c | 44 int i, token = -EBUSY; in __opal_async_get_token() local 51 token = i; in __opal_async_get_token() 57 return token; in __opal_async_get_token() 68 int token; in opal_async_get_token_interruptible() local 74 token = __opal_async_get_token(); in opal_async_get_token_interruptible() 75 if (token < 0) in opal_async_get_token_interruptible() 78 return token; in opal_async_get_token_interruptible() 87 if (token < 0 || token >= opal_max_async_tokens) { in __opal_async_release_token() 89 __func__, token); in __opal_async_release_token() 218 uint64_t token; in opal_async_comp_event() local [all …]
|
| A D | opal-sensor.c | 22 int ret, token; in opal_get_sensor_data() local 26 token = opal_async_get_token_interruptible(); in opal_get_sensor_data() 27 if (token < 0) in opal_get_sensor_data() 28 return token; in opal_get_sensor_data() 33 ret = opal_async_wait_response(token, &msg); in opal_get_sensor_data() 59 opal_async_release_token(token); in opal_get_sensor_data() 66 int ret, token; in opal_get_sensor_data_u64() local 79 token = opal_async_get_token_interruptible(); in opal_get_sensor_data_u64() 80 if (token < 0) in opal_get_sensor_data_u64() 81 return token; in opal_get_sensor_data_u64() [all …]
|
| A D | opal-psr.c | 30 int psr, ret, token; in psr_show() local 32 token = opal_async_get_token_interruptible(); in psr_show() 33 if (token < 0) { in psr_show() 35 return token; in psr_show() 46 ret = opal_async_wait_response(token, &msg); in psr_show() 71 opal_async_release_token(token); in psr_show() 80 int psr, ret, token; in psr_store() local 86 token = opal_async_get_token_interruptible(); in psr_store() 87 if (token < 0) { in psr_store() 89 return token; in psr_store() [all …]
|
| A D | opal-sysparam.c | 33 int token; in opal_get_sys_param() local 35 token = opal_async_get_token_interruptible(); in opal_get_sys_param() 36 if (token < 0) { in opal_get_sys_param() 37 if (token != -ERESTARTSYS) in opal_get_sys_param() 40 ret = token; in opal_get_sys_param() 60 opal_async_release_token(token); in opal_get_sys_param() 68 int ret, token; in opal_set_sys_param() local 71 if (token < 0) { in opal_set_sys_param() 72 if (token != -ERESTARTSYS) in opal_set_sys_param() 75 ret = token; in opal_set_sys_param() [all …]
|
| A D | opal-sensor-groups.c | 34 int token, ret; in sensor_group_enable() local 36 token = opal_async_get_token_interruptible(); in sensor_group_enable() 37 if (token < 0) in sensor_group_enable() 38 return token; in sensor_group_enable() 42 ret = opal_async_wait_response(token, &msg); in sensor_group_enable() 54 opal_async_release_token(token); in sensor_group_enable() 65 int ret, token; in sg_store() local 74 token = opal_async_get_token_interruptible(); in sg_store() 75 if (token < 0) { in sg_store() 77 return token; in sg_store() [all …]
|
| A D | opal-powercap.c | 37 int ret, token; in powercap_show() local 39 token = opal_async_get_token_interruptible(); in powercap_show() 40 if (token < 0) { in powercap_show() 42 return token; in powercap_show() 52 ret = opal_async_wait_response(token, &msg); in powercap_show() 77 opal_async_release_token(token); in powercap_show() 89 int ret, token; in powercap_store() local 95 token = opal_async_get_token_interruptible(); in powercap_store() 96 if (token < 0) { in powercap_store() 98 return token; in powercap_store() [all …]
|
| /arch/powerpc/kernel/ |
| A D | rtas.c | 84 s32 token; member 614 const s32 token = func->token; in rtas_token_to_function_xarray_init() local 648 if (WARN_ONCE(token < 0, "invalid token %d", token)) in rtas_token_to_function() 660 if (func->token == token) in rtas_token_to_function() 931 return func->token; in rtas_token() 999 if (token == -1) in __fetch_rtas_last_error() 1004 err_args.token = cpu_to_be32(token); in __fetch_rtas_last_error() 1050 args->token = cpu_to_be32(token); in va_rtas_call_unlocked() 1468 __be32 token; in rtas_indicator_present() member 1479 if (__be32_to_cpu(indicators[i].token) != token) in rtas_indicator_present() [all …]
|
| A D | rtas-proc.c | 118 unsigned int token; member 405 sprintf (rstr, SENSOR_PREFIX"%04d", p->token); in ppc_rtas_sensors_show() 411 p->token, j); in ppc_rtas_sensors_show() 442 sensors.sensor[i].token = *utmp++; in ppc_rtas_find_all_sensors() 514 switch (s->token) { in ppc_rtas_process_sensor() 619 s->token); in ppc_rtas_process_sensor()
|
| /arch/powerpc/platforms/pseries/ |
| A D | papr-indices.c | 70 const s32 token = rtas_function_token(RTAS_FN_IBM_GET_INDICES); in rtas_ibm_get_indices() local 75 if (token == RTAS_UNKNOWN_SERVICE) in rtas_ibm_get_indices() 81 fwrc = rtas_call(token, 5, 2, &rets, params->is_sensor, in rtas_ibm_get_indices() 331 s32 fwrc, token, ret; in papr_dynamic_indicator_ioc_set() local 334 if (token == RTAS_UNKNOWN_SERVICE) in papr_dynamic_indicator_ioc_set() 345 fwrc = rtas_call(token, 3, 1, NULL, in papr_dynamic_indicator_ioc_set() 346 kbuf.dynamic_param.token, in papr_dynamic_indicator_ioc_set() 389 s32 fwrc, token, ret; in papr_dynamic_sensor_ioc_get() local 393 if (token == RTAS_UNKNOWN_SERVICE) in papr_dynamic_sensor_ioc_get() 404 fwrc = rtas_call(token, 2, 2, &rets, in papr_dynamic_sensor_ioc_get() [all …]
|
| A D | papr-sysparm.c | 98 const s32 token = rtas_function_token(RTAS_FN_IBM_GET_SYSTEM_PARAMETER); in papr_sysparm_get() local 108 if (token == RTAS_UNKNOWN_SERVICE) in papr_sysparm_get() 119 fwrc = rtas_call(token, 3, 1, NULL, param.token, in papr_sysparm_get() 154 const s32 token = rtas_function_token(RTAS_FN_IBM_SET_SYSTEM_PARAMETER); in papr_sysparm_set() local 164 if (token == RTAS_UNKNOWN_SERVICE) in papr_sysparm_set() 175 fwrc = rtas_call(token, 2, 1, NULL, param.token, in papr_sysparm_set() 266 if (get_user(param.token, &user_iob->parameter)) in papr_sysparm_ioctl_get() 295 if (get_user(param.token, &user_iob->parameter)) in papr_sysparm_ioctl_set()
|
| A D | papr-phy-attest.c | 73 s32 fwrc, token; in rtas_physical_attestation() local 78 token = rtas_function_token(RTAS_FN_IBM_PHYSICAL_ATTESTATION); in rtas_physical_attestation() 79 if (token == RTAS_UNKNOWN_SERVICE) in rtas_physical_attestation() 85 fwrc = rtas_call(token, 3, 3, rets, in rtas_physical_attestation()
|
| /arch/x86/include/asm/ |
| A D | kvm_para.h | 126 void kvm_async_pf_task_wait_schedule(u32 token); 127 void kvm_async_pf_task_wake(u32 token); 129 bool __kvm_handle_async_pf(struct pt_regs *regs, u32 token); 133 static __always_inline bool kvm_handle_async_pf(struct pt_regs *regs, u32 token) in kvm_handle_async_pf() argument 136 return __kvm_handle_async_pf(regs, token); in kvm_handle_async_pf() 173 static __always_inline bool kvm_handle_async_pf(struct pt_regs *regs, u32 token) in kvm_handle_async_pf() argument
|
| /arch/x86/kernel/ |
| A D | kvm.c | 89 u32 token; member 99 u32 token) in _find_apf_task() argument 106 if (n->token == token) in _find_apf_task() 120 e = _find_apf_task(b, token); in kvm_async_pf_queue_task() 129 n->token = token; in kvm_async_pf_queue_task() 199 if (token == ~0) { in kvm_async_pf_task_wake() 206 n = _find_apf_task(b, token); in kvm_async_pf_task_wake() 231 dummy->token = token; in kvm_async_pf_task_wake() 295 u32 token; in DEFINE_IDTENTRY_SYSVEC() local 302 token = __this_cpu_read(apf_reason.token); in DEFINE_IDTENTRY_SYSVEC() [all …]
|
| /arch/powerpc/include/asm/ |
| A D | simple_spinlock.h | 51 unsigned long tmp, token; in __arch_spin_trylock() local 54 token = LOCK_TOKEN; in __arch_spin_trylock() 64 : "r" (token), "r" (&lock->slock), [eh] "n" (eh) in __arch_spin_trylock() 185 long tmp, token; in __arch_write_trylock() local 188 token = WRLOCK_TOKEN; in __arch_write_trylock() 197 : "r" (token), "r" (&rw->lock), [eh] "n" (eh) in __arch_write_trylock()
|
| A D | opal.h | 52 int64_t opal_tpo_write(uint64_t token, uint32_t year_mon_day, 158 int64_t opal_check_token(uint64_t token); 218 uint64_t size, uint64_t token); 220 uint64_t size, uint64_t token); 222 uint64_t token); 287 int opal_get_powercap(u32 handle, int token, u32 *pcap); 288 int opal_set_powercap(u32 handle, int token, u32 pcap); 289 int opal_get_power_shift_ratio(u32 handle, int token, u32 *psr); 290 int opal_set_power_shift_ratio(u32 handle, int token, u32 psr); 291 int opal_sensor_group_clear(u32 group_hndl, int token); [all …]
|
| A D | papr-sysparm.h | 8 u32 token; member 11 #define mk_papr_sysparm(x_) ((papr_sysparm_t){ .token = x_, })
|
| A D | trace.h | 183 __field(u32, token) 190 __entry->token = be32_to_cpu(rtas_args->token); 201 __entry->token, __entry->nargs, __entry->nret,
|
| A D | plpar_wrappers.h | 351 unsigned long token; in plpar_guest_create() local 354 token = -1UL; in plpar_guest_create() 356 rc = plpar_hcall(H_GUEST_CREATE, retbuf, flags, token); in plpar_guest_create() 361 token = retbuf[0]; in plpar_guest_create() 366 token = retbuf[0]; in plpar_guest_create()
|
| /arch/powerpc/kvm/ |
| A D | book3s_rtas.c | 133 u64 token; member 160 static int rtas_token_define(struct kvm *kvm, char *name, u64 token) in rtas_token_define() argument 170 if (d->token == token) in rtas_token_define() 191 d->token = token; in rtas_token_define() 208 if (args.token) in kvm_vm_ioctl_rtas_define_token() 209 rc = rtas_token_define(kvm, args.name, args.token); in kvm_vm_ioctl_rtas_define_token() 262 if (d->token == be32_to_cpu(args.token)) { in kvmppc_rtas_hcall()
|
| /arch/x86/kernel/cpu/sgx/ |
| A D | virt.c | 368 static int __sgx_virt_einit(void __user *sigstruct, void __user *token, in __sgx_virt_einit() argument 380 !access_ok(token, SGX_EINITTOKEN_SIZE) || in __sgx_virt_einit() 385 ret = __einit((void *)sigstruct, (void *)token, (void *)secs); in __sgx_virt_einit() 408 int sgx_virt_einit(void __user *sigstruct, void __user *token, in sgx_virt_einit() argument 414 ret = __sgx_virt_einit(sigstruct, token, secs); in sgx_virt_einit() 420 ret = __sgx_virt_einit(sigstruct, token, secs); in sgx_virt_einit()
|
| A D | encls.h | 161 static inline int __einit(void *sigstruct, void *token, void *secs) in __einit() argument 163 return __encls_ret_3(EINIT, sigstruct, secs, token); in __einit()
|
| /arch/powerpc/mm/ |
| A D | ioremap_64.c | 50 void iounmap(volatile void __iomem *token) in iounmap() argument 55 generic_iounmap(token); in iounmap()
|
| /arch/powerpc/boot/ |
| A D | opal-calls.S | 24 #define OPAL_CALL(name, token) \ argument 27 li r0, token; \
|
| /arch/powerpc/mm/nohash/ |
| A D | e500_hugetlbpage.c | 38 int token = smp_processor_id() + 1; in book3e_tlb_lock() local 63 : "r" (&paca->tcd_ptr->lock), "r" (token) in book3e_tlb_lock()
|
| /arch/powerpc/include/uapi/asm/ |
| A D | papr-indices.h | 19 __u32 token; /* Sensor or indicator token */ member
|