Searched refs:lbuf (Results 1 - 24 of 24) sorted by relevance

/linux-master/arch/powerpc/platforms/pseries/
H A Dhvconsole.c32 unsigned long *lbuf = (unsigned long *)buf; local
35 lbuf[0] = be64_to_cpu(retbuf[1]);
36 lbuf[1] = be64_to_cpu(retbuf[2]);
57 unsigned long *lbuf = (unsigned long *) buf; local
66 cpu_to_be64(lbuf[0]),
67 cpu_to_be64(lbuf[1]));
/linux-master/drivers/s390/cio/
H A Dcio_inject.c86 size_t lbuf, loff_t *ppos)
98 buffer = vmemdup_user(buf, lbuf);
124 return lbuf;
129 size_t lbuf, loff_t *ppos)
134 rc = kstrtoul_from_user(buf, lbuf, 10, &en);
147 return lbuf;
85 crw_inject_write(struct file *file, const char __user *buf, size_t lbuf, loff_t *ppos) argument
128 enable_inject_write(struct file *file, const char __user *buf, size_t lbuf, loff_t *ppos) argument
/linux-master/fs/jfs/
H A Djfs_logmgr.c71 * lbuf's ready to be redriven. Protected by log_redrive_lock (jfsIO thread)
73 static struct lbuf *log_redrive_list;
127 * lbuf buffer cache (lCache) control
174 static struct lbuf *lbmAllocate(struct jfs_log * log, int);
175 static void lbmFree(struct lbuf * bp);
176 static void lbmfree(struct lbuf * bp);
177 static int lbmRead(struct jfs_log * log, int pn, struct lbuf ** bpp);
178 static void lbmWrite(struct jfs_log * log, struct lbuf * bp, int flag, int cant_block);
179 static void lbmDirectWrite(struct jfs_log * log, struct lbuf * bp, int flag);
180 static int lbmIOWait(struct lbuf * b
1790 struct lbuf *lbuf; local
1857 struct lbuf *lbuf; local
[all...]
H A Djfs_logmgr.h368 struct lbuf *lbuf_free; /* 4: free lbufs */
375 struct lbuf *bp; /* 4: current log page buffer */
398 struct lbuf *wqueue; /* 4: log pageout queue */
419 /* tblock/lbuf */
434 struct lbuf { struct
442 struct lbuf *l_wqnext; /* 4: write queue link */
443 struct lbuf *l_freelist; /* 4: freelistlink */
H A Djfs_txnmgr.h45 struct lbuf *bp;
/linux-master/kernel/time/
H A Dtest_udelay.c102 char lbuf[32]; local
107 if (count >= sizeof(lbuf))
110 if (copy_from_user(lbuf, buf, count))
112 lbuf[count] = '\0';
114 ret = sscanf(lbuf, "%d %d", &usecs, &iters);
/linux-master/drivers/infiniband/hw/mlx5/
H A Dcong.c376 char lbuf[11] = { }; local
380 if (count > sizeof(lbuf))
383 if (copy_from_user(lbuf, buf, count))
386 lbuf[sizeof(lbuf) - 1] = '\0';
388 if (kstrtou32(lbuf, 0, &var))
402 char lbuf[11]; local
408 ret = snprintf(lbuf, sizeof(lbuf), "%d\n", var);
412 return simple_read_from_buffer(buf, count, pos, lbuf, re
[all...]
H A Dmr.c411 char lbuf[20]; local
414 err = snprintf(lbuf, sizeof(lbuf), "%ld\n",
419 return simple_read_from_buffer(buf, count, pos, lbuf, err);
457 char lbuf[20]; local
460 err = snprintf(lbuf, sizeof(lbuf), "%d\n", ent->limit);
464 return simple_read_from_buffer(buf, count, pos, lbuf, err);
H A Dmain.c3161 char lbuf[20]; local
3164 len = snprintf(lbuf, sizeof(lbuf), "%u\n", delay_drop->timeout);
3165 return simple_read_from_buffer(buf, count, pos, lbuf, len);
/linux-master/drivers/pci/hotplug/
H A Dacpiphp_ibm.c287 char *lbuf = NULL; local
315 lbuf = kzalloc(size, GFP_KERNEL);
317 __func__, package->package.count, size, lbuf);
319 if (lbuf) {
320 *bufp = lbuf;
328 memcpy(&lbuf[size],
/linux-master/drivers/hid/
H A Dhid-lg4ff.c855 char *lbuf; local
870 lbuf = kasprintf(GFP_KERNEL, "%s", buf);
871 if (!lbuf)
874 i = strlen(lbuf);
877 kfree(lbuf);
881 if (lbuf[i-1] == '\n') {
883 kfree(lbuf);
886 lbuf[i-1] = '\0';
894 if (!strcmp(tag, lbuf)) {
905 hid_info(hid, "Requested mode \"%s\" is not supported by the device\n", lbuf);
[all...]
/linux-master/drivers/misc/ibmasm/
H A Dibmasmfs.c507 char lbuf[20]; local
510 len = snprintf(lbuf, sizeof(lbuf), "%d\n", value);
512 return simple_read_from_buffer(buf, count, offset, lbuf, len);
/linux-master/drivers/pci/
H A Dvgaarb.c1100 char *lbuf; local
1102 lbuf = kmalloc(1024, GFP_KERNEL);
1103 if (lbuf == NULL)
1113 len = sprintf(lbuf, "invalid");
1125 len = sprintf(lbuf, "invalid");
1130 len = snprintf(lbuf, 1024,
1144 rc = copy_to_user(buf, lbuf, len);
1145 kfree(lbuf);
/linux-master/arch/powerpc/kvm/
H A Dbook3s_64_mmu_hv.c1734 unsigned long __user *lbuf; local
1751 lbuf = (unsigned long __user *)buf;
1761 lbuf = (unsigned long __user *)(buf + sizeof(hdr));
1781 if (__put_user(hpte[0], lbuf) ||
1782 __put_user(hpte[1], lbuf + 1))
1785 lbuf += 2;
1806 buf = (char __user *)lbuf;
1832 unsigned long __user *lbuf; local
1879 lbuf = (unsigned long __user *)buf;
1885 if (__get_user(hpte_v, lbuf) ||
[all...]
/linux-master/drivers/acpi/
H A Ddock.c539 unsigned long long lbuf; local
543 "_UID", NULL, &lbuf);
547 return sysfs_emit(buf, "%llx\n", lbuf);
/linux-master/drivers/net/plip/
H A Dplip.c592 unsigned char *lbuf; local
651 lbuf = rcv->skb->data;
654 &rcv->nibble, &lbuf[rcv->byte]))
658 rcv->checksum += lbuf[--rcv->byte];
760 unsigned char *lbuf; local
764 if (snd->skb == NULL || (lbuf = snd->skb->data) == NULL) {
839 &snd->nibble, lbuf[snd->byte]))
843 snd->checksum += lbuf[--snd->byte];
/linux-master/tools/testing/selftests/arm64/abi/
H A Dsyscall-abi.c43 uint32_t *lbuf = buf; local
47 lbuf[i] = random();
/linux-master/kernel/bpf/
H A Dlog.c192 char *lbuf = log->kbuf, *rbuf = log->kbuf + n; local
196 * reverse the order of lbuf and rbuf and write result back to ubuf.
203 if (copy_from_user(lbuf, log->ubuf + start, nn))
208 bpf_vlog_reverse_kbuf(lbuf, nn);
211 /* we write lbuf to the right end of ubuf, while rbuf to the
216 if (copy_to_user(log->ubuf + end - nn, lbuf, nn))
/linux-master/tools/testing/selftests/arm64/fp/
H A Dfp-ptrace.c781 uint32_t *lbuf = buf; local
785 lbuf[i] = random();
790 uint8_t *lbuf = buf; local
802 lbuf[i] = 0xff;
804 lbuf[i] = (1 << (bits % 8)) - 1;
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/
H A Dcmd.c1254 char lbuf[3]; local
1260 if (count < sizeof(lbuf) - 1)
1263 if (copy_from_user(lbuf, buf, sizeof(lbuf) - 1))
1266 lbuf[sizeof(lbuf) - 1] = 0;
1268 if (strcmp(lbuf, "go"))
/linux-master/drivers/net/can/usb/peak_usb/
H A Dpcan_usb.c724 static int pcan_usb_decode_msg(struct peak_usb_device *dev, u8 *ibuf, u32 lbuf) argument
729 .end = ibuf + lbuf,
/linux-master/drivers/infiniband/hw/qib/
H A Dqib_iba7220.c3330 u32 lbuf = ppd->dd->cspec->lastbuf_for_pio; local
3340 buf = qib_getsendbuf_range(ppd->dd, bnum, lbuf, lbuf);
3357 buf = qib_getsendbuf_range(ppd->dd, bnum, lbuf, lbuf);
H A Dqib_iba6120.c3298 u32 lbuf = ppd->dd->piobcnt2k + ppd->dd->piobcnt4k - 1; local
3306 buf = qib_getsendbuf_range(ppd->dd, bnum, lbuf, lbuf);
3314 buf = qib_getsendbuf_range(ppd->dd, bnum, lbuf, lbuf);
/linux-master/drivers/scsi/
H A Dhpsa.c3794 struct ReportLUNdata *lbuf; local
3802 lbuf = kzalloc(sizeof(*lbuf), GFP_KERNEL);
3803 if (!lbuf)
3806 rc = hpsa_scsi_do_report_luns(h, 0, lbuf, sizeof(*lbuf), 0);
3812 memcpy(buf, lbuf, 8);
3813 nphys = be32_to_cpu(*((__be32 *)lbuf->LUNListLength)) / 8;
3815 memcpy(buf->LUN[i].lunid, lbuf->LUN[i], 8);
3817 kfree(lbuf);
[all...]

Completed in 535 milliseconds