/linux/tools/testing/selftests/riscv/vector/ |
H A D | v_initval_nolibc.c | 26 char *datap, *tmp; in main() local 28 datap = malloc(MAX_VSIZE); in main() 29 if (!datap) { in main() 34 tmp = datap; in main() 47 : "=&r" (vl), "=r" (tmp) : "r" (datap) : "memory"); in main() 51 if (datap[0] != 0x00 && datap[0] != 0xff) { in main() 53 dump(datap, vl * 4); in main() 58 if (datap[i] != datap[0]) { in main() 60 dump(datap, vl * 4); in main() 65 free(datap); in main()
|
/linux/drivers/net/wireless/ath/ath6kl/ |
H A D | wmi.c | 166 u8 *datap; in ath6kl_wmi_dix_2_dot3() local 188 datap = skb->data; in ath6kl_wmi_dix_2_dot3() 310 u8 *datap; in ath6kl_wmi_implicit_create_pstream() local 315 datap = skb->data; in ath6kl_wmi_implicit_create_pstream() 394 u8 *datap; in ath6kl_wmi_dot11_hdr_remove() local 400 datap = skb->data; in ath6kl_wmi_dot11_hdr_remove() 416 datap = skb->data; in ath6kl_wmi_dot11_hdr_remove() 458 u8 *datap; in ath6kl_wmi_dot3_2_dix() local 3836 u8 *datap; in ath6kl_wmi_control_rx_xtnd() local 3966 u8 *datap; in ath6kl_wmi_proc_events() local [all …]
|
H A D | txrx.c | 48 u8 *datap; in ath6kl_ibss_map_epid() local 51 datap = skb->data; in ath6kl_ibss_map_epid() 133 ether_type = be16_to_cpu(datap->h_proto); in ath6kl_process_uapsdq() 136 ip_hdr = (u8 *)(datap + 1); in ath6kl_process_uapsdq() 140 (datap + 1); in ath6kl_process_uapsdq() 217 if (is_multicast_ether_addr(datap->h_dest)) { in ath6kl_powersave_ap() 265 conn = ath6kl_find_sta(vif, datap->h_dest); in ath6kl_powersave_ap() 1316 struct ethhdr *datap = NULL; in ath6kl_rx() local 1566 datap = (struct ethhdr *) skb->data; in ath6kl_rx() 1599 datap = (struct ethhdr *) skb->data; in ath6kl_rx() [all …]
|
/linux/arch/riscv/kvm/ |
H A D | vcpu_vector.c | 27 WARN_ON(!cntx->vector.datap); in kvm_riscv_vcpu_vector_reset() 28 memset(cntx->vector.datap, 0, riscv_v_vsize); in kvm_riscv_vcpu_vector_reset() 76 cntx->vector.datap = kmalloc(riscv_v_vsize, GFP_KERNEL); in kvm_riscv_vcpu_alloc_vector_context() 77 if (!cntx->vector.datap) in kvm_riscv_vcpu_alloc_vector_context() 81 vcpu->arch.host_context.vector.datap = kzalloc(riscv_v_vsize, GFP_KERNEL); in kvm_riscv_vcpu_alloc_vector_context() 82 if (!vcpu->arch.host_context.vector.datap) in kvm_riscv_vcpu_alloc_vector_context() 90 kfree(vcpu->arch.guest_reset_context.vector.datap); in kvm_riscv_vcpu_free_vector_context() 91 kfree(vcpu->arch.host_context.vector.datap); in kvm_riscv_vcpu_free_vector_context() 122 case KVM_REG_RISCV_VECTOR_CSR_REG(datap): in kvm_riscv_vcpu_vreg_addr() 129 *reg_addr = cntx->vector.datap + in kvm_riscv_vcpu_vreg_addr()
|
/linux/arch/riscv/kernel/ |
H A D | vector.c | 105 void *datap; in riscv_v_thread_zalloc() local 107 datap = kmem_cache_zalloc(cache, GFP_KERNEL); in riscv_v_thread_zalloc() 108 if (!datap) in riscv_v_thread_zalloc() 111 ctx->datap = datap; in riscv_v_thread_zalloc() 112 memset(ctx, 0, offsetof(struct __riscv_v_ext_state, datap)); in riscv_v_thread_zalloc() 125 if (tsk->thread.vstate.datap) in riscv_v_thread_free() 126 kmem_cache_free(riscv_v_user_cachep, tsk->thread.vstate.datap); in riscv_v_thread_free() 128 if (tsk->thread.kernel_vstate.datap) in riscv_v_thread_free() 129 kmem_cache_free(riscv_v_kernel_cachep, tsk->thread.kernel_vstate.datap); in riscv_v_thread_free() 198 WARN_ON(current->thread.vstate.datap); in riscv_v_first_use_handler()
|
H A D | signal.c | 77 void __user *datap; in save_v_state() local 84 datap = state + 1; in save_v_state() 87 WARN_ON(!IS_ALIGNED((unsigned long)datap, 16)); in save_v_state() 95 offsetof(struct __riscv_v_ext_state, datap)); in save_v_state() 97 err |= __put_user((__force void *)datap, &state->v_state.datap); in save_v_state() 99 err |= __copy_to_user(datap, current->thread.vstate.datap, riscv_v_vsize); in save_v_state() 120 void __user *datap; in __restore_v_state() local 131 offsetof(struct __riscv_v_ext_state, datap)); in __restore_v_state() 136 err = __get_user(datap, &state->v_state.datap); in __restore_v_state() 143 return copy_from_user(current->thread.vstate.datap, datap, riscv_v_vsize); in __restore_v_state()
|
H A D | kernel_mode_vector.c | 129 if (!kvstate->datap) in riscv_v_start_kernel_context() 137 __riscv_v_vstate_save(kvstate, kvstate->datap); in riscv_v_start_kernel_context() 148 __riscv_v_vstate_save(uvstate, uvstate->datap); in riscv_v_start_kernel_context() 183 __riscv_v_vstate_restore(vstate, vstate->datap); in riscv_v_context_nesting_end()
|
/linux/arch/m68k/kernel/ |
H A D | ptrace.c | 170 unsigned long __user *datap = (unsigned long __user *) data; in arch_ptrace() local 198 ret = put_user(tmp, datap); in arch_ptrace() 230 ret = put_user(tmp, datap); in arch_ptrace() 233 datap++; in arch_ptrace() 239 ret = get_user(tmp, datap); in arch_ptrace() 247 datap++; in arch_ptrace() 252 if (copy_to_user(datap, &child->thread.fp, in arch_ptrace() 258 if (copy_from_user(&child->thread.fp, datap, in arch_ptrace() 264 ret = put_user(task_thread_info(child)->tp_value, datap); in arch_ptrace()
|
/linux/arch/riscv/include/asm/ |
H A D | vector.h | 104 void *datap) in __riscv_v_vstate_save() argument 122 : "=&r" (vl) : "r" (datap) : "memory"); in __riscv_v_vstate_save() 127 void *datap) in __riscv_v_vstate_restore() argument 144 : "=&r" (vl) : "r" (datap) : "memory"); in __riscv_v_vstate_restore() 181 __riscv_v_vstate_save(vstate, vstate->datap); in riscv_v_vstate_save() 190 __riscv_v_vstate_restore(vstate, vstate->datap); in riscv_v_vstate_restore() 248 prev->thread.kernel_vstate.datap); in __switch_to_vector()
|
H A D | kvm_vcpu_vector.h | 21 __riscv_v_vstate_save(&context->vector, context->vector.datap); in __kvm_riscv_vector_save() 26 __riscv_v_vstate_restore(&context->vector, context->vector.datap); in __kvm_riscv_vector_restore()
|
/linux/arch/arm64/kvm/ |
H A D | mmio.c | 15 void *datap = NULL; in kvm_mmio_write_buf() local 26 datap = &tmp.byte; in kvm_mmio_write_buf() 30 datap = &tmp.hword; in kvm_mmio_write_buf() 34 datap = &tmp.word; in kvm_mmio_write_buf() 38 datap = &tmp.dword; in kvm_mmio_write_buf() 42 memcpy(buf, datap, len); in kvm_mmio_write_buf()
|
/linux/tools/virtio/ringtest/ |
H A D | ptr_ring.c | 128 int add_inbuf(unsigned len, void *buf, void *datap) in add_inbuf() argument 149 void *datap; in get_buf() local 152 datap = NULL; in get_buf() 154 datap = "Buffer\n"; in get_buf() 158 return datap; in get_buf()
|
H A D | ring.c | 112 int add_inbuf(unsigned len, void *buf, void *datap) in add_inbuf() argument 135 data[index].data = datap; in add_inbuf() 147 void *datap; in get_buf() local 155 datap = data[index].data; in get_buf() 161 return datap; in get_buf()
|
H A D | virtio_ring_0_9.c | 99 int add_inbuf(unsigned len, void *buf, void *datap) in add_inbuf() argument 130 data[head].data = datap; in add_inbuf() 156 void *datap; in get_buf() local 185 datap = data[index].data; in get_buf() 194 return datap; in get_buf()
|
/linux/arch/x86/kernel/ |
H A D | ptrace.c | 785 datap); in arch_ptrace() 792 datap); in arch_ptrace() 799 datap); in arch_ptrace() 806 datap); in arch_ptrace() 1088 datap); in ia32_arch_ptrace() 1094 datap); in ia32_arch_ptrace() 1100 datap); in ia32_arch_ptrace() 1111 datap); in ia32_arch_ptrace() 1117 datap); in ia32_arch_ptrace() 1188 datap); in x32_arch_ptrace() [all …]
|
/linux/arch/xtensa/kernel/ |
H A D | ptrace.c | 415 long __user *datap) in ptrace_gethbpregs() argument 442 if (copy_to_user(datap, user_data, sizeof(user_data))) in ptrace_gethbpregs() 449 long __user *datap) in ptrace_sethbpregs() argument 501 void __user *datap = (void __user *) data; in arch_ptrace() local 505 ret = ptrace_peekusr(child, addr, datap); in arch_ptrace() 513 ret = ptrace_getregs(child, datap); in arch_ptrace() 517 ret = ptrace_setregs(child, datap); in arch_ptrace() 521 ret = ptrace_getxregs(child, datap); in arch_ptrace() 525 ret = ptrace_setxregs(child, datap); in arch_ptrace() 529 ret = ptrace_gethbpregs(child, addr, datap); in arch_ptrace() [all …]
|
/linux/arch/sh/kernel/ |
H A D | ptrace_32.c | 341 unsigned long __user *datap = (unsigned long __user *)data; in arch_ptrace() local 384 ret = put_user(tmp, datap); in arch_ptrace() 417 datap); in arch_ptrace() 422 datap); in arch_ptrace() 428 datap); in arch_ptrace() 433 datap); in arch_ptrace() 440 datap); in arch_ptrace() 445 datap); in arch_ptrace()
|
/linux/lib/ |
H A D | digsig.c | 79 uint8_t *p, *datap; in digsig_verify_rsa() local 107 datap = pkh->mpi; in digsig_verify_rsa() 111 unsigned int remaining = endp - datap; in digsig_verify_rsa() 112 pkey[i] = mpi_read_from_buffer(datap, &remaining); in digsig_verify_rsa() 117 datap += remaining; in digsig_verify_rsa()
|
/linux/arch/x86/um/ |
H A D | ptrace_32.c | 234 void __user *datap = (void __user *) data; in subarch_ptrace() local 237 ret = get_fpregs(datap, child); in subarch_ptrace() 240 ret = set_fpregs(datap, child); in subarch_ptrace() 243 ret = get_fpxregs(datap, child); in subarch_ptrace() 246 ret = set_fpxregs(datap, child); in subarch_ptrace()
|
H A D | ptrace_64.c | 225 void __user *datap = (void __user *) data; in subarch_ptrace() local 229 ret = get_fpregs(datap, child); in subarch_ptrace() 232 ret = set_fpregs(datap, child); in subarch_ptrace()
|
/linux/arch/arm/kernel/ |
H A D | ptrace.c | 729 unsigned long __user *datap = (unsigned long __user *) data; in arch_ptrace() local 733 ret = ptrace_read_user(child, addr, datap); in arch_ptrace() 744 datap); in arch_ptrace() 751 datap); in arch_ptrace() 758 datap); in arch_ptrace() 765 datap); in arch_ptrace() 770 ret = ptrace_getwmmxregs(child, datap); in arch_ptrace() 774 ret = ptrace_setwmmxregs(child, datap); in arch_ptrace() 780 datap); in arch_ptrace() 795 datap); in arch_ptrace() [all …]
|
/linux/Documentation/translations/zh_CN/core-api/ |
H A D | this_cpu_ops.rst | 251 DEFINE_PER_CPU(struct data, datap); 253 struct data *p = per_cpu_ptr(&datap, cpu); 257 您还可以执行以下操作以将datap偏移量转换为地址:: 259 struct data *p = this_cpu_ptr(&datap);
|
/linux/arch/sh/lib/ |
H A D | io.c | 14 void __raw_readsl(const void __iomem *addr, void *datap, int len) in __raw_readsl() argument 18 for (data = datap; (len != 0) && (((u32)data & 0x1f) != 0); len--) in __raw_readsl()
|
/linux/tools/testing/selftests/arm64/signal/testcases/ |
H A D | testcases.c | 23 if (extra->datap & 0x0fUL) in validate_extra_context() 27 else if (extra->datap != (uint64_t)term + 0x10UL) in validate_extra_context() 32 *extra_data = (void *)extra->datap; in validate_extra_context()
|
/linux/drivers/net/usb/ |
H A D | sierra_net.c | 233 static const u8 *save16bit(struct param *p, const u8 *datap) in save16bit() argument 236 p->word = get_unaligned_be16(datap); in save16bit() 237 return datap + sizeof(p->word); in save16bit() 240 static const u8 *save8bit(struct param *p, const u8 *datap) in save8bit() argument 243 p->byte = *datap; in save8bit() 244 return datap + sizeof(p->byte); in save8bit() 636 static int sierra_net_get_fw_attr(struct usbnet *dev, u16 *datap) in sierra_net_get_fw_attr() argument 654 *datap = le16_to_cpu(attrdata); in sierra_net_get_fw_attr()
|