Home
last modified time | relevance | path

Searched refs:hptr (Results 1 – 11 of 11) sorted by relevance

/openbmc/qemu/linux-user/
H A Dqemu.h222 #define __put_user_e(x, hptr, e) \ argument
225 (__builtin_choose_expr(sizeof(*(hptr)) == 1, stb_p, \
226 __builtin_choose_expr(sizeof(*(hptr)) == 2, stw_##e##_p, \
227 __builtin_choose_expr(sizeof(*(hptr)) == 4, stl_##e##_p, \
228 __builtin_choose_expr(sizeof(*(hptr)) == 8, stq_##e##_p, abort)))) \
247 # define __put_user(x, hptr) __put_user_e(x, hptr, be) argument
248 # define __get_user(x, hptr) __get_user_e(x, hptr, be) argument
250 # define __put_user(x, hptr) __put_user_e(x, hptr, le) argument
251 # define __get_user(x, hptr) __get_user_e(x, hptr, le) argument
314 int copy_from_user(void *hptr, abi_ulong gaddr, ssize_t len);
[all …]
H A Duaccess.c59 int copy_from_user(void *hptr, abi_ulong gaddr, ssize_t len) in copy_from_user() argument
65 memcpy(hptr, ghptr, len); in copy_from_user()
73 int copy_to_user(abi_ulong gaddr, void *hptr, ssize_t len) in copy_to_user() argument
79 memcpy(ghptr, hptr, len); in copy_to_user()
/openbmc/linux/tools/testing/selftests/mm/
H A Dvirtual_address_range.c106 char **hptr; in main() local
124 hptr = (char **) calloc(NR_CHUNKS_HIGH, sizeof(char *)); in main()
125 if (hptr == NULL) in main()
130 hptr[i] = mmap(hint, MAP_CHUNK_SIZE, PROT_READ | PROT_WRITE, in main()
133 if (hptr[i] == MAP_FAILED) in main()
136 if (validate_addr(hptr[i], 1)) in main()
145 munmap(hptr[i], MAP_CHUNK_SIZE); in main()
147 free(hptr); in main()
/openbmc/qemu/bsd-user/
H A Dqemu.h311 #define __put_user_e(x, hptr, e) \ argument
314 (__builtin_choose_expr(sizeof(*(hptr)) == 1, stb_p, \
315 __builtin_choose_expr(sizeof(*(hptr)) == 2, stw_##e##_p, \
316 __builtin_choose_expr(sizeof(*(hptr)) == 4, stl_##e##_p, \
317 __builtin_choose_expr(sizeof(*(hptr)) == 8, stq_##e##_p, abort)))) \
336 # define __put_user(x, hptr) __put_user_e(x, hptr, be) argument
337 # define __get_user(x, hptr) __get_user_e(x, hptr, be) argument
339 # define __put_user(x, hptr) __put_user_e(x, hptr, le) argument
340 # define __get_user(x, hptr) __get_user_e(x, hptr, le) argument
407 abi_long copy_from_user(void *hptr, abi_ulong gaddr, size_t len);
[all …]
H A Duaccess.c11 abi_long copy_from_user(void *hptr, abi_ulong gaddr, size_t len) in copy_from_user() argument
17 memcpy(hptr, ghptr, len); in copy_from_user()
26 abi_long copy_to_user(abi_ulong gaddr, void *hptr, size_t len) in copy_to_user() argument
32 memcpy(ghptr, hptr, len); in copy_to_user()
/openbmc/linux/arch/mips/math-emu/
H A Ddp_maddf.c16 static void srl128(u64 *hptr, u64 *lptr, int count) in srl128() argument
21 *lptr = *hptr != 0 || *lptr != 0; in srl128()
22 *hptr = 0; in srl128()
25 *lptr = *hptr | (*lptr != 0); in srl128()
28 *lptr = *hptr >> (count - 64); in srl128()
29 *lptr |= (*hptr << (128 - count)) != 0 || low != 0; in srl128()
31 *hptr = 0; in srl128()
34 *lptr = low >> count | *hptr << (64 - count); in srl128()
36 *hptr = *hptr >> count; in srl128()
/openbmc/linux/include/net/netfilter/
H A Dnf_conntrack.h335 struct hlist_nulls_head *hptr; in nf_conntrack_get_ht() local
341 hptr = nf_conntrack_hash; in nf_conntrack_get_ht()
344 *hash = hptr; in nf_conntrack_get_ht()
/openbmc/linux/fs/proc/
H A Dproc_sysctl.c53 #define sysctl_is_perm_empty_ctl_header(hptr) \ argument
54 (sysctl_is_perm_empty_ctl_table(hptr->ctl_table))
55 #define sysctl_set_perm_empty_ctl_header(hptr) \ argument
56 (hptr->ctl_table[0].type = SYSCTL_TABLE_TYPE_PERMANENTLY_EMPTY)
57 #define sysctl_clear_perm_empty_ctl_header(hptr) \ argument
58 (hptr->ctl_table[0].type = SYSCTL_TABLE_TYPE_DEFAULT)
/openbmc/linux/tools/testing/cxl/test/
H A Dmem.c1505 unsigned char *hstr, *hptr; in fw_buf_checksum_show() local
1518 hptr = hstr; in fw_buf_checksum_show()
1520 hptr += sprintf(hptr, "%02x", hash[i]); in fw_buf_checksum_show()
/openbmc/linux/arch/powerpc/kvm/
H A Dbook3s_64_mmu_hv.c1735 struct kvm_get_htab_header __user *hptr; in kvm_htab_read() local
1756 hptr = (struct kvm_get_htab_header __user *)buf; in kvm_htab_read()
1803 if (__copy_to_user(hptr, &hdr, sizeof(hdr))) in kvm_htab_read()
/openbmc/u-boot/fs/yaffs2/
H A Dyaffsfs.c261 static int yaffsfs_NewHandle(struct yaffsfs_Handle **hptr) in yaffsfs_NewHandle() argument
272 if (hptr) in yaffsfs_NewHandle()
273 *hptr = h; in yaffsfs_NewHandle()