Home
last modified time | relevance | path

Searched refs:datap (Results 1 – 25 of 76) sorted by relevance

1234

/linux/tools/testing/selftests/riscv/vector/
H A Dv_initval_nolibc.c26 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 Dwmi.c166 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 Dtxrx.c48 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 Dvcpu_vector.c27 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 Dvector.c105 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 Dsignal.c77 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 Dkernel_mode_vector.c129 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 Dptrace.c170 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 Dvector.h104 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 Dkvm_vcpu_vector.h21 __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 Dmmio.c15 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 Dptr_ring.c128 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 Dring.c112 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 Dvirtio_ring_0_9.c99 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 Dptrace.c785 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 Dptrace.c415 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 Dptrace_32.c341 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 Ddigsig.c79 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 Dptrace_32.c234 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 Dptrace_64.c225 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 Dptrace.c729 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 Dthis_cpu_ops.rst251 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 Dio.c14 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 Dtestcases.c23 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 Dsierra_net.c233 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()

1234