/arch/powerpc/platforms/powernv/ |
D | opal-async.c | 39 int token; in __opal_async_get_token() local 42 token = find_first_zero_bit(opal_async_token_map, opal_max_async_tokens); in __opal_async_get_token() 43 if (token >= opal_max_async_tokens) { in __opal_async_get_token() 44 token = -EBUSY; in __opal_async_get_token() 48 if (!__test_and_clear_bit(token, opal_async_complete_map)) { in __opal_async_get_token() 49 token = -EBUSY; in __opal_async_get_token() 53 __set_bit(token, opal_async_token_map); in __opal_async_get_token() 57 return token; in __opal_async_get_token() 62 int token; in opal_async_get_token_interruptible() local 68 token = __opal_async_get_token(); in opal_async_get_token_interruptible() [all …]
|
D | opal-sensor.c | 36 int ret, token; in opal_get_sensor_data() local 40 token = opal_async_get_token_interruptible(); in opal_get_sensor_data() 41 if (token < 0) { in opal_get_sensor_data() 43 ret = token; in opal_get_sensor_data() 48 ret = opal_sensor_read(sensor_hndl, token, &data); in opal_get_sensor_data() 51 ret = opal_async_wait_response(token, &msg); in opal_get_sensor_data() 74 opal_async_release_token(token); in opal_get_sensor_data()
|
D | opal-sysparam.c | 46 int token; in opal_get_sys_param() local 48 token = opal_async_get_token_interruptible(); in opal_get_sys_param() 49 if (token < 0) { in opal_get_sys_param() 50 if (token != -ERESTARTSYS) in opal_get_sys_param() 53 ret = token; in opal_get_sys_param() 57 ret = opal_get_param(token, param_id, (u64)buffer, length); in opal_get_sys_param() 63 ret = opal_async_wait_response(token, &msg); in opal_get_sys_param() 73 opal_async_release_token(token); in opal_get_sys_param() 81 int ret, token; in opal_set_sys_param() local 83 token = opal_async_get_token_interruptible(); in opal_set_sys_param() [all …]
|
D | opal-wrappers.S | 59 #define OPAL_CALL(name, token) \ argument 63 li r0,token; \ 158 #define OPAL_CALL_REAL(name, token) \ argument 162 li r0,token; \
|
D | pci.c | 125 int token, ret; in pnv_pci_set_power_state() local 131 token = opal_async_get_token_interruptible(); in pnv_pci_set_power_state() 132 if (unlikely(token < 0)) in pnv_pci_set_power_state() 133 return token; in pnv_pci_set_power_state() 135 rc = opal_pci_set_power_state(token, id, (uint64_t)&state); in pnv_pci_set_power_state() 144 ret = opal_async_wait_response(token, &m); in pnv_pci_set_power_state() 154 opal_async_release_token(token); in pnv_pci_set_power_state()
|
/arch/powerpc/kernel/ |
D | rtas.c | 378 err_args.token = cpu_to_be32(rtas_last_error_token); in __fetch_rtas_last_error() 418 va_rtas_call_unlocked(struct rtas_args *args, int token, int nargs, int nret, in va_rtas_call_unlocked() argument 423 args->token = cpu_to_be32(token); in va_rtas_call_unlocked() 437 void rtas_call_unlocked(struct rtas_args *args, int token, int nargs, int nret, ...) in rtas_call_unlocked() argument 442 va_rtas_call_unlocked(args, token, nargs, nret, list); in rtas_call_unlocked() 446 int rtas_call(int token, int nargs, int nret, int *outputs, ...) in rtas_call() argument 455 if (!rtas.entry || token == RTAS_UNKNOWN_SERVICE) in rtas_call() 464 va_rtas_call_unlocked(rtas_args, token, nargs, nret, list); in rtas_call() 554 int token = rtas_token("get-power-level"); in rtas_get_power_level() local 557 if (token == RTAS_UNKNOWN_SERVICE) in rtas_get_power_level() [all …]
|
D | io-workarounds.c | 61 int token; in iowa_mem_find_bus() local 63 token = PCI_GET_ADDR_TOKEN(addr); in iowa_mem_find_bus() 65 if (token && token <= iowa_bus_count) in iowa_mem_find_bus() 66 bus = &iowa_busses[token - 1]; in iowa_mem_find_bus()
|
D | rtas-proc.c | 117 unsigned int token; member 433 sprintf (rstr, SENSOR_PREFIX"%04d", p->token); in ppc_rtas_sensors_show() 439 p->token, j); in ppc_rtas_sensors_show() 470 sensors.sensor[i].token = *utmp++; in ppc_rtas_find_all_sensors() 542 switch (s->token) { in ppc_rtas_process_sensor() 647 s->token); in ppc_rtas_process_sensor()
|
D | rtas_flash.c | 451 int token = rtas_token("ibm,validate-flash-image"); in validate_flash() local 459 rc = rtas_call(token, 2, 2, &update_results, in validate_flash() 728 int token; in rtas_flash_init() local 737 token = rtas_token(f->rtas_call_name); in rtas_flash_init() 738 if (token == RTAS_UNKNOWN_SERVICE) in rtas_flash_init()
|
/arch/powerpc/include/asm/ |
D | dcr-mmio.h | 27 void __iomem *token; member 34 return host.token != NULL; in dcr_map_ok_mmio() 44 return in_be32(host.token + ((host.base + dcr_n) * host.stride)); in dcr_read_mmio() 51 out_be32(host.token + ((host.base + dcr_n) * host.stride), value); in dcr_write_mmio()
|
D | spinlock.h | 72 unsigned long tmp, token; in __arch_spin_trylock() local 74 token = LOCK_TOKEN; in __arch_spin_trylock() 84 : "r" (token), "r" (&lock->slock) in __arch_spin_trylock() 250 long tmp, token; in __arch_write_trylock() local 252 token = WRLOCK_TOKEN; in __arch_write_trylock() 262 : "r" (token), "r" (&rw->lock) in __arch_write_trylock()
|
D | opal.h | 46 int64_t opal_tpo_read(uint64_t token, __be32 *year_mon_day, __be32 *hour_min); 47 int64_t opal_tpo_write(uint64_t token, uint32_t year_mon_day, 157 int64_t opal_check_token(uint64_t token); 185 int64_t opal_write_oppanel_async(uint64_t token, oppanel_line_t *lines, 187 int64_t opal_check_completion(uint64_t buffer, uint64_t size, uint64_t token); 189 int64_t opal_get_param(uint64_t token, uint32_t param_id, uint64_t buffer, 191 int64_t opal_set_param(uint64_t token, uint32_t param_id, uint64_t buffer, 193 int64_t opal_sensor_read(uint32_t sensor_hndl, int token, __be32 *sensor_data); 209 int64_t opal_leds_set_ind(uint64_t token, char *loc_code, const u64 led_mask, 213 uint64_t size, uint64_t token); [all …]
|
D | rtas.h | 51 __be32 token; member 70 int token; /* ibm,suspend-me */ member 339 extern int rtas_call(int token, int, int, int *, ...); 340 void rtas_call_unlocked(struct rtas_args *args, int token, int nargs, 350 extern bool rtas_indicator_present(int token, int *maxindex);
|
/arch/x86/kernel/ |
D | kvm.c | 96 u32 token; member 107 u32 token) in _find_apf_task() argument 114 if (n->token == token) in _find_apf_task() 121 void kvm_async_pf_task_wait(u32 token) in kvm_async_pf_task_wait() argument 123 u32 key = hash_32(token, KVM_TASK_SLEEP_HASHBITS); in kvm_async_pf_task_wait() 131 e = _find_apf_task(b, token); in kvm_async_pf_task_wait() 142 n.token = token; in kvm_async_pf_task_wait() 207 void kvm_async_pf_task_wake(u32 token) in kvm_async_pf_task_wake() argument 209 u32 key = hash_32(token, KVM_TASK_SLEEP_HASHBITS); in kvm_async_pf_task_wake() 213 if (token == ~0) { in kvm_async_pf_task_wake() [all …]
|
/arch/powerpc/sysdev/ |
D | dcr.c | 195 dcr_host_mmio_t ret = { .token = NULL, .stride = 0, .base = dcr_n }; in dcr_map_mmio() 207 ret.token = ioremap(addr, dcr_c * ret.stride); in dcr_map_mmio() 208 if (ret.token == NULL) in dcr_map_mmio() 211 ret.token, ret.token - dcr_n * ret.stride); in dcr_map_mmio() 212 ret.token -= dcr_n * ret.stride; in dcr_map_mmio() 221 if (h.token == NULL) in dcr_unmap_mmio() 223 h.token += host.base * h.stride; in dcr_unmap_mmio() 224 iounmap(h.token); in dcr_unmap_mmio() 225 h.token = NULL; in dcr_unmap_mmio()
|
/arch/powerpc/kvm/ |
D | book3s_rtas.c | 123 u64 token; member 150 static int rtas_token_define(struct kvm *kvm, char *name, u64 token) in rtas_token_define() argument 160 if (d->token == token) in rtas_token_define() 181 d->token = token; in rtas_token_define() 198 if (args.token) in kvm_vm_ioctl_rtas_define_token() 199 rc = rtas_token_define(kvm, args.name, args.token); in kvm_vm_ioctl_rtas_define_token() 239 if (d->token == be32_to_cpu(args.token)) { in kvmppc_rtas_hcall()
|
/arch/x86/include/asm/ |
D | kvm_para.h | 91 void kvm_async_pf_task_wait(u32 token); 92 void kvm_async_pf_task_wake(u32 token);
|
/arch/powerpc/boot/ |
D | opal-calls.S | 28 #define OPAL_CALL(name, token) \ argument 31 li r0, token; \
|
/arch/powerpc/mm/ |
D | pgtable_64.c | 268 void __iounmap(volatile void __iomem *token) in __iounmap() argument 276 PCI_FIX_ADDR(token) & PAGE_MASK); in __iounmap() 285 void iounmap(volatile void __iomem *token) in iounmap() argument 288 ppc_md.iounmap(token); in iounmap() 290 __iounmap(token); in iounmap()
|
D | hugetlbpage-book3e.c | 63 int token = smp_processor_id() + 1; in book3e_tlb_lock() local 85 : "r" (&paca->tcd_ptr->lock), "r" (token) in book3e_tlb_lock()
|
/arch/s390/include/uapi/asm/ |
D | kvm_virtio.h | 41 __u64 token; member
|
/arch/powerpc/platforms/pseries/ |
D | suspend.c | 271 suspend_data.token = rtas_token("ibm,suspend-me"); in pseries_suspend_init() 272 if (suspend_data.token == RTAS_UNKNOWN_SERVICE) in pseries_suspend_init()
|
/arch/arm/kernel/ |
D | efi.c | 14 static int __init set_permissions(pte_t *ptep, pgtable_t token, in set_permissions() argument
|
/arch/arm/mm/ |
D | pageattr.c | 24 static int change_page_range(pte_t *ptep, pgtable_t token, unsigned long addr, in change_page_range() argument
|
/arch/arm64/kernel/ |
D | efi.c | 88 static int __init set_permissions(pte_t *ptep, pgtable_t token, in set_permissions() argument
|