/arch/powerpc/platforms/powernv/ |
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() 82 static int __opal_async_release_token(int token) in __opal_async_release_token() argument 87 if (token < 0 || token >= opal_max_async_tokens) { in __opal_async_release_token() 89 __func__, token); in __opal_async_release_token() [all …]
|
D | opal-sensor.c | 20 int ret, token; in opal_get_sensor_data() local 24 token = opal_async_get_token_interruptible(); in opal_get_sensor_data() 25 if (token < 0) in opal_get_sensor_data() 26 return token; in opal_get_sensor_data() 28 ret = opal_sensor_read(sensor_hndl, token, &data); in opal_get_sensor_data() 31 ret = opal_async_wait_response(token, &msg); in opal_get_sensor_data() 57 opal_async_release_token(token); in opal_get_sensor_data() 64 int ret, token; in opal_get_sensor_data_u64() local 77 token = opal_async_get_token_interruptible(); in opal_get_sensor_data_u64() 78 if (token < 0) in opal_get_sensor_data_u64() [all …]
|
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() 42 ret = opal_get_power_shift_ratio(psr_attr->handle, 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() [all …]
|
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() 44 ret = opal_get_param(token, param_id, (u64)buffer, length); in opal_get_sys_param() 50 ret = opal_async_wait_response(token, &msg); 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 70 token = opal_async_get_token_interruptible(); in opal_set_sys_param() [all …]
|
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() 40 ret = opal_sensor_group_enable(handle, token, enable); 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() [all …]
|
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() 49 ret = opal_get_powercap(pcap_attr->handle, token, (u32 *)__pa(&pcap)); 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() [all …]
|
/arch/powerpc/kernel/ |
D | rtas.c | 393 err_args.token = cpu_to_be32(rtas_last_error_token); in __fetch_rtas_last_error() 433 va_rtas_call_unlocked(struct rtas_args *args, int token, int nargs, int nret, in va_rtas_call_unlocked() argument 438 args->token = cpu_to_be32(token); in va_rtas_call_unlocked() 452 void rtas_call_unlocked(struct rtas_args *args, int token, int nargs, int nret, ...) in rtas_call_unlocked() argument 457 va_rtas_call_unlocked(args, token, nargs, nret, list); in rtas_call_unlocked() 461 int rtas_call(int token, int nargs, int nret, int *outputs, ...) in rtas_call() argument 470 if (!rtas.entry || token == RTAS_UNKNOWN_SERVICE) in rtas_call() 479 va_rtas_call_unlocked(rtas_args, token, nargs, nret, list); in rtas_call() 569 int token = rtas_token("get-power-level"); in rtas_get_power_level() local 572 if (token == RTAS_UNKNOWN_SERVICE) in rtas_get_power_level() [all …]
|
D | io-workarounds.c | 59 int token; in iowa_mem_find_bus() local 61 token = PCI_GET_ADDR_TOKEN(addr); in iowa_mem_find_bus() 63 if (token && token <= iowa_bus_count) in iowa_mem_find_bus() 64 bus = &iowa_busses[token - 1]; in iowa_mem_find_bus()
|
D | rtas-proc.c | 118 unsigned int token; member 410 sprintf (rstr, SENSOR_PREFIX"%04d", p->token); in ppc_rtas_sensors_show() 416 p->token, j); in ppc_rtas_sensors_show() 447 sensors.sensor[i].token = *utmp++; in ppc_rtas_find_all_sensors() 519 switch (s->token) { in ppc_rtas_process_sensor() 624 s->token); in ppc_rtas_process_sensor()
|
/arch/x86/include/asm/ |
D | kvm_para.h | 92 void kvm_async_pf_task_wait_schedule(u32 token); 93 void kvm_async_pf_task_wake(u32 token); 95 bool __kvm_handle_async_pf(struct pt_regs *regs, u32 token); 99 static __always_inline bool kvm_handle_async_pf(struct pt_regs *regs, u32 token) in kvm_handle_async_pf() argument 102 return __kvm_handle_async_pf(regs, token); in kvm_handle_async_pf() 139 static __always_inline bool kvm_handle_async_pf(struct pt_regs *regs, u32 token) in kvm_handle_async_pf() argument
|
/arch/powerpc/include/asm/ |
D | dcr-mmio.h | 14 void __iomem *token; member 21 return host.token != NULL; in dcr_map_ok_mmio() 31 return in_be32(host.token + ((host.base + dcr_n) * host.stride)); in dcr_read_mmio() 38 out_be32(host.token + ((host.base + dcr_n) * host.stride), value); in dcr_write_mmio()
|
D | simple_spinlock.h | 50 unsigned long tmp, token; in __arch_spin_trylock() local 53 token = LOCK_TOKEN; in __arch_spin_trylock() 63 : "r" (token), "r" (&lock->slock), [eh] "n" (eh) in __arch_spin_trylock() 204 long tmp, token; in __arch_write_trylock() local 207 token = WRLOCK_TOKEN; in __arch_write_trylock() 216 : "r" (token), "r" (&rw->lock), [eh] "n" (eh) in __arch_write_trylock()
|
D | opal.h | 51 int64_t opal_tpo_read(uint64_t token, __be32 *year_mon_day, __be32 *hour_min); 52 int64_t opal_tpo_write(uint64_t token, uint32_t year_mon_day, 161 int64_t opal_check_token(uint64_t token); 189 int64_t opal_write_oppanel_async(uint64_t token, oppanel_line_t *lines, 191 int64_t opal_check_completion(uint64_t buffer, uint64_t size, uint64_t token); 193 int64_t opal_get_param(uint64_t token, uint32_t param_id, uint64_t buffer, 195 int64_t opal_set_param(uint64_t token, uint32_t param_id, uint64_t buffer, 197 int64_t opal_sensor_read(uint32_t sensor_hndl, int token, __be32 *sensor_data); 198 int64_t opal_sensor_read_u64(u32 sensor_hndl, int token, __be64 *sensor_data); 217 int64_t opal_leds_set_ind(uint64_t token, char *loc_code, const u64 led_mask, [all …]
|
D | rtas.h | 242 extern int rtas_call(int token, int, int, int *, ...); 243 void rtas_call_unlocked(struct rtas_args *args, int token, int nargs, 254 extern bool rtas_indicator_present(int token, int *maxindex);
|
D | rtas-types.h | 10 __be32 token; member
|
/arch/x86/kernel/ |
D | kvm.c | 83 u32 token; member 93 u32 token) in _find_apf_task() argument 100 if (n->token == token) in _find_apf_task() 107 static bool kvm_async_pf_queue_task(u32 token, struct kvm_task_sleep_node *n) in kvm_async_pf_queue_task() argument 109 u32 key = hash_32(token, KVM_TASK_SLEEP_HASHBITS); in kvm_async_pf_queue_task() 114 e = _find_apf_task(b, token); in kvm_async_pf_queue_task() 123 n->token = token; in kvm_async_pf_queue_task() 138 void kvm_async_pf_task_wait_schedule(u32 token) in kvm_async_pf_task_wait_schedule() argument 145 if (!kvm_async_pf_queue_task(token, &n)) in kvm_async_pf_task_wait_schedule() 187 void kvm_async_pf_task_wake(u32 token) in kvm_async_pf_task_wake() argument [all …]
|
/arch/powerpc/sysdev/ |
D | dcr.c | 182 dcr_host_mmio_t ret = { .token = NULL, .stride = 0, .base = dcr_n }; in dcr_map_mmio() 194 ret.token = ioremap(addr, dcr_c * ret.stride); in dcr_map_mmio() 195 if (ret.token == NULL) in dcr_map_mmio() 198 ret.token, ret.token - dcr_n * ret.stride); in dcr_map_mmio() 199 ret.token -= dcr_n * ret.stride; in dcr_map_mmio() 208 if (h.token == NULL) in dcr_unmap_mmio() 210 h.token += host.base * h.stride; in dcr_unmap_mmio() 211 iounmap(h.token); in dcr_unmap_mmio() 212 h.token = NULL; in dcr_unmap_mmio()
|
/arch/powerpc/kvm/ |
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/ |
D | virt.c | 313 static int __sgx_virt_einit(void __user *sigstruct, void __user *token, in __sgx_virt_einit() argument 325 !access_ok(token, SGX_EINITTOKEN_SIZE) || in __sgx_virt_einit() 330 ret = __einit((void *)sigstruct, (void *)token, (void *)secs); in __sgx_virt_einit() 353 int sgx_virt_einit(void __user *sigstruct, void __user *token, in sgx_virt_einit() argument 359 ret = __sgx_virt_einit(sigstruct, token, secs); in sgx_virt_einit() 365 ret = __sgx_virt_einit(sigstruct, token, secs); in sgx_virt_einit()
|
D | encls.h | 180 static inline int __einit(void *sigstruct, void *token, void *secs) in __einit() argument 182 return __encls_ret_3(EINIT, sigstruct, secs, token); in __einit()
|
D | ioctl.c | 515 void *token) in sgx_encl_init() argument 569 ret = __einit(sigstruct, token, addr); in sgx_encl_init() 626 void *token; in sgx_ioc_enclave_init() local 645 token = (void *)((unsigned long)sigstruct + PAGE_SIZE / 2); in sgx_ioc_enclave_init() 646 memset(token, 0, SGX_LAUNCH_TOKEN_SIZE); in sgx_ioc_enclave_init() 667 ret = sgx_encl_init(encl, sigstruct, token); in sgx_ioc_enclave_init()
|
/arch/powerpc/mm/ |
D | ioremap_64.c | 50 void iounmap(volatile void __iomem *token) in iounmap() argument 57 addr = (void *)((unsigned long __force)PCI_FIX_ADDR(token) & PAGE_MASK); in iounmap()
|
/arch/powerpc/boot/ |
D | opal-calls.S | 24 #define OPAL_CALL(name, token) \ argument 27 li r0, token; \
|
/arch/powerpc/mm/nohash/ |
D | book3e_hugetlbpage.c | 38 int token = smp_processor_id() + 1; in book3e_tlb_lock() local 60 : "r" (&paca->tcd_ptr->lock), "r" (token) in book3e_tlb_lock()
|
/arch/powerpc/platforms/pseries/ |
D | papr_scm.c | 129 unsigned long ret_buf[PLPAR_HCALL_BUFSIZE], token = 0; in papr_scm_pmem_flush() local 135 rc = plpar_hcall(H_SCM_FLUSH, ret_buf, p->drc_index, token); in papr_scm_pmem_flush() 136 token = ret_buf[0]; in papr_scm_pmem_flush() 164 uint64_t token; in drc_pmem_bind() local 173 token = 0; in drc_pmem_bind() 177 p->blocks, BIND_ANY_ADDR, token); in drc_pmem_bind() 178 token = ret[0]; in drc_pmem_bind() 196 uint64_t token = 0; in drc_pmem_unbind() local 206 p->drc_index, token); in drc_pmem_unbind() 207 token = ret[0]; in drc_pmem_unbind()
|