| /linux/arch/powerpc/platforms/pseries/ |
| H A D | hvconsole.c | 32 unsigned long *lbuf = (unsigned long *)buf; in hvc_get_chars() local 35 lbuf[0] = be64_to_cpu(retbuf[1]); in hvc_get_chars() 36 lbuf[1] = be64_to_cpu(retbuf[2]); in hvc_get_chars() 57 unsigned long *lbuf = (unsigned long *) buf; in hvc_put_chars() local 66 cpu_to_be64(lbuf[0]), in hvc_put_chars() 67 cpu_to_be64(lbuf[1])); in hvc_put_chars()
|
| /linux/scripts/ipe/polgen/ |
| H A D | polgen.c | 22 char *lbuf; in policy_to_buffer() local 36 lbuf = malloc(fsize); in policy_to_buffer() 37 if (!lbuf) { in policy_to_buffer() 42 read = fread((void *)lbuf, sizeof(*lbuf), fsize, fd); in policy_to_buffer() 48 *buffer = lbuf; in policy_to_buffer() 55 free(lbuf); in policy_to_buffer()
|
| /linux/kernel/time/ |
| H A D | test_udelay.c | 102 char lbuf[32]; in udelay_test_write() local 107 if (count >= sizeof(lbuf)) in udelay_test_write() 110 if (copy_from_user(lbuf, buf, count)) in udelay_test_write() 112 lbuf[count] = '\0'; in udelay_test_write() 114 ret = sscanf(lbuf, "%d %d", &usecs, &iters); in udelay_test_write()
|
| /linux/drivers/net/plip/ |
| H A D | plip.c | 592 unsigned char *lbuf; in plip_receive_packet() local 651 lbuf = rcv->skb->data; in plip_receive_packet() 654 &rcv->nibble, &lbuf[rcv->byte])) in plip_receive_packet() 658 rcv->checksum += lbuf[--rcv->byte]; in plip_receive_packet() 760 unsigned char *lbuf; in plip_send_packet() local 764 if (snd->skb == NULL || (lbuf = snd->skb->data) == NULL) { in plip_send_packet() 839 &snd->nibble, lbuf[snd->byte])) in plip_send_packet() 843 snd->checksum += lbuf[--snd->byte]; in plip_send_packet()
|
| /linux/arch/powerpc/kvm/ |
| H A D | book3s_64_mmu_hv.c | 1705 unsigned long __user *lbuf; in kvm_htab_read() local 1722 lbuf = (unsigned long __user *)buf; in kvm_htab_read() 1732 lbuf = (unsigned long __user *)(buf + sizeof(hdr)); in kvm_htab_read() 1752 if (__put_user(hpte[0], lbuf) || in kvm_htab_read() 1753 __put_user(hpte[1], lbuf + 1)) in kvm_htab_read() 1756 lbuf += 2; in kvm_htab_read() 1777 buf = (char __user *)lbuf; in kvm_htab_read() 1803 unsigned long __user *lbuf; in kvm_htab_write() local 1850 lbuf = (unsigned long __user *)buf; in kvm_htab_write() 1856 if (__get_user(hpte_v, lbuf) || in kvm_htab_write() [all …]
|
| /linux/drivers/acpi/ |
| H A D | dock.c | 525 unsigned long long lbuf; in uid_show() local 529 "_UID", NULL, &lbuf); in uid_show() 533 return sysfs_emit(buf, "%llx\n", lbuf); in uid_show()
|
| /linux/kernel/bpf/ |
| H A D | log.c | 192 char *lbuf = log->kbuf, *rbuf = log->kbuf + n; in bpf_vlog_reverse_ubuf() local 203 if (copy_from_user(lbuf, log->ubuf + start, nn)) in bpf_vlog_reverse_ubuf() 208 bpf_vlog_reverse_kbuf(lbuf, nn); in bpf_vlog_reverse_ubuf() 216 if (copy_to_user(log->ubuf + end - nn, lbuf, nn)) in bpf_vlog_reverse_ubuf()
|
| /linux/fs/jfs/ |
| H A D | jfs_txnmgr.h | 45 struct lbuf *bp;
|
| /linux/tools/testing/selftests/arm64/abi/ |
| H A D | syscall-abi.c | 43 uint32_t *lbuf = buf; in fill_random() local 47 lbuf[i] = random(); in fill_random()
|
| /linux/tools/testing/selftests/arm64/fp/ |
| H A D | fp-ptrace.c | 898 uint32_t *lbuf = buf; in fpsimd_to_sve() 902 lbuf[i] = random(); in fpsimd_to_sve() 907 uint8_t *lbuf = buf; in set_initial_values() 919 lbuf[i] = 0xff; in set_initial_values() 921 lbuf[i] = (1 << (bits % 8)) - 1; in set_initial_values() 863 uint32_t *lbuf = buf; fill_random() local 872 uint8_t *lbuf = buf; fill_random_ffr() local
|
| /linux/tools/testing/selftests/bpf/prog_tests/ |
| H A D | signed_loader.c | 1092 __u8 kbuf[SHA256_DIGEST_LENGTH], lbuf[SHA256_DIGEST_LENGTH], val[64] = {}; in map_hash_matches_libbpf() local 1114 libbpf_sha256(val, sizeof(val), lbuf); in map_hash_matches_libbpf() 1115 ASSERT_EQ(memcmp(kbuf, lbuf, sizeof(kbuf)), 0, in map_hash_matches_libbpf() 1124 __u8 kbuf[SHA256_DIGEST_LENGTH], lbuf[SHA256_DIGEST_LENGTH]; in map_hash_multi_element() local 1155 libbpf_sha256(full, (size_t)nr * value_size, lbuf); in map_hash_multi_element() 1156 ASSERT_EQ(memcmp(kbuf, lbuf, sizeof(kbuf)), 0, in map_hash_multi_element()
|
| /linux/drivers/net/can/usb/peak_usb/ |
| H A D | pcan_usb.c | 724 static int pcan_usb_decode_msg(struct peak_usb_device *dev, u8 *ibuf, u32 lbuf) in pcan_usb_decode_msg() argument 729 .end = ibuf + lbuf, in pcan_usb_decode_msg()
|
| /linux/drivers/scsi/ |
| H A D | hpsa.c | 3780 struct ReportLUNdata *lbuf; in hpsa_scsi_do_report_phys_luns() local 3788 lbuf = kzalloc_obj(*lbuf); in hpsa_scsi_do_report_phys_luns() 3789 if (!lbuf) in hpsa_scsi_do_report_phys_luns() 3792 rc = hpsa_scsi_do_report_luns(h, 0, lbuf, sizeof(*lbuf), 0); in hpsa_scsi_do_report_phys_luns() 3798 memcpy(buf, lbuf, 8); in hpsa_scsi_do_report_phys_luns() 3799 nphys = be32_to_cpu(*((__be32 *)lbuf->LUNListLength)) / 8; in hpsa_scsi_do_report_phys_luns() 3801 memcpy(buf->LUN[i].lunid, lbuf->LUN[i], 8); in hpsa_scsi_do_report_phys_luns() 3803 kfree(lbuf); in hpsa_scsi_do_report_phys_luns()
|