/openbmc/qemu/linux-user/ |
H A D | qemu.h | 224 #define __put_user_e(x, hptr, e) \ argument 227 (__builtin_choose_expr(sizeof(*(hptr)) == 1, stb_p, \ 228 __builtin_choose_expr(sizeof(*(hptr)) == 2, stw_##e##_p, \ 229 __builtin_choose_expr(sizeof(*(hptr)) == 4, stl_##e##_p, \ 230 __builtin_choose_expr(sizeof(*(hptr)) == 8, stq_##e##_p, abort)))) \ 231 ((hptr), (x)), (void)0); \ 235 #define __get_user_e(x, hptr, e) \ argument 238 ((x) = (typeof(*hptr))( \ 239 __builtin_choose_expr(sizeof(*(hptr)) == 1, ldub_p, \ 240 __builtin_choose_expr(sizeof(*(hptr)) == 2, lduw_##e##_p, \ [all …]
|
H A D | uaccess.c | 59 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()
|
H A D | elfload.c | 4427 void *hptr, *dptr; in elf_core_dump() local 4430 hptr = header; in elf_core_dump() 4431 fill_elf_header(hptr, css.count + 1, ELF_MACHINE, 0); in elf_core_dump() 4432 hptr += sizeof(struct elfhdr); in elf_core_dump() 4435 fill_elf_note_phdr(hptr, note_size, note_offset); in elf_core_dump() 4436 hptr += sizeof(struct elf_phdr); in elf_core_dump() 4438 frp.phdr = hptr; in elf_core_dump() 4441 hptr = frp.phdr; in elf_core_dump() 4444 dptr = fill_note(&hptr, NT_AUXV, "CORE", ts->info->auxv_len); in elf_core_dump() 4447 dptr = fill_note(&hptr, NT_PRPSINFO, "CORE", in elf_core_dump() [all …]
|
/openbmc/qemu/bsd-user/ |
H A D | qemu.h | 321 #define __put_user_e(x, hptr, e) \ argument 324 (__builtin_choose_expr(sizeof(*(hptr)) == 1, stb_p, \ 325 __builtin_choose_expr(sizeof(*(hptr)) == 2, stw_##e##_p, \ 326 __builtin_choose_expr(sizeof(*(hptr)) == 4, stl_##e##_p, \ 327 __builtin_choose_expr(sizeof(*(hptr)) == 8, stq_##e##_p, abort)))) \ 328 ((hptr), (x)), (void)0); \ 332 #define __get_user_e(x, hptr, e) \ argument 335 ((x) = (typeof(*hptr))( \ 336 __builtin_choose_expr(sizeof(*(hptr)) == 1, ldub_p, \ 337 __builtin_choose_expr(sizeof(*(hptr)) == 2, lduw_##e##_p, \ [all …]
|
H A D | uaccess.c | 11 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/tools/testing/selftests/mm/ |
H A D | virtual_address_range.c | 106 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/linux/arch/mips/math-emu/ |
H A D | dp_maddf.c | 16 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 D | nf_conntrack.h | 335 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 D | proc_sysctl.c | 53 #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 D | mem.c | 1505 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 D | book3s_64_mmu_hv.c | 1735 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 D | yaffsfs.c | 261 static int yaffsfs_NewHandle(struct yaffsfs_Handle **hptr) in yaffsfs_NewHandle() argument 272 if (hptr) in yaffsfs_NewHandle() 273 *hptr = h; in yaffsfs_NewHandle()
|