lbuf
unsigned long __user *lbuf;
lbuf = (unsigned long __user *)buf;
lbuf = (unsigned long __user *)(buf + sizeof(hdr));
if (__put_user(hpte[0], lbuf) ||
__put_user(hpte[1], lbuf + 1))
lbuf += 2;
buf = (char __user *)lbuf;
unsigned long __user *lbuf;
lbuf = (unsigned long __user *)buf;
if (__get_user(hpte_v, lbuf) ||
__get_user(hpte_r, lbuf + 1))
lbuf += 2;
unsigned long *lbuf = (unsigned long *)buf;
lbuf[0] = be64_to_cpu(retbuf[1]);
lbuf[1] = be64_to_cpu(retbuf[2]);
unsigned long *lbuf = (unsigned long *) buf;
cpu_to_be64(lbuf[0]),
cpu_to_be64(lbuf[1]));
unsigned long long lbuf;
"_UID", NULL, &lbuf);
return sysfs_emit(buf, "%llx\n", lbuf);
char *lbuf;
lbuf = kasprintf(GFP_KERNEL, "%s", buf);
if (!lbuf)
i = strlen(lbuf);
kfree(lbuf);
if (lbuf[i-1] == '\n') {
kfree(lbuf);
lbuf[i-1] = '\0';
if (!strcmp(tag, lbuf)) {
hid_info(hid, "Requested mode \"%s\" is not supported by the device\n", lbuf);
kfree(lbuf);
kfree(lbuf); /* Not needed anymore */
char lbuf[16] = { };
if (count > sizeof(lbuf))
if (copy_from_user(lbuf, buf, count))
lbuf[sizeof(lbuf) - 1] = '\0';
if (kstrtou32(lbuf, 0, &val))
char lbuf[11] = { };
if (count > sizeof(lbuf))
if (copy_from_user(lbuf, buf, count))
lbuf[sizeof(lbuf) - 1] = '\0';
if (kstrtou32(lbuf, 0, &var))
char lbuf[11];
ret = snprintf(lbuf, sizeof(lbuf), "%d\n", var);
return simple_read_from_buffer(buf, count, pos, lbuf, ret);
char lbuf[20];
len = snprintf(lbuf, sizeof(lbuf), "%u\n", delay_drop->timeout);
return simple_read_from_buffer(buf, count, pos, lbuf, len);
char lbuf[20];
len = snprintf(lbuf, sizeof(lbuf), "%d\n", value);
return simple_read_from_buffer(buf, count, offset, lbuf, len);
static int pcan_usb_decode_msg(struct peak_usb_device *dev, u8 *ibuf, u32 lbuf)
.end = ibuf + lbuf,
char lbuf[3];
if (count < sizeof(lbuf) - 1)
if (copy_from_user(lbuf, buf, sizeof(lbuf) - 1))
lbuf[sizeof(lbuf) - 1] = 0;
if (strcmp(lbuf, "go"))
unsigned char *lbuf;
lbuf = rcv->skb->data;
&rcv->nibble, &lbuf[rcv->byte]))
rcv->checksum += lbuf[--rcv->byte];
unsigned char *lbuf;
if (snd->skb == NULL || (lbuf = snd->skb->data) == NULL) {
&snd->nibble, lbuf[snd->byte]))
snd->checksum += lbuf[--snd->byte];
char *lbuf = NULL;
lbuf = kzalloc(size, GFP_KERNEL);
__func__, package->package.count, size, lbuf);
if (lbuf) {
*bufp = lbuf;
memcpy(&lbuf[size],
char *lbuf;
lbuf = kmalloc(1024, GFP_KERNEL);
if (lbuf == NULL)
len = sprintf(lbuf, "invalid");
len = sprintf(lbuf, "invalid");
len = snprintf(lbuf, 1024,
rc = copy_to_user(buf, lbuf, len);
kfree(lbuf);
return lbuf;
size_t lbuf, loff_t *ppos)
rc = kstrtoul_from_user(buf, lbuf, 10, &en);
return lbuf;
size_t lbuf, loff_t *ppos)
buffer = memdup_user_nul(buf, lbuf);
struct ReportLUNdata *lbuf;
lbuf = kzalloc_obj(*lbuf);
if (!lbuf)
rc = hpsa_scsi_do_report_luns(h, 0, lbuf, sizeof(*lbuf), 0);
memcpy(buf, lbuf, 8);
nphys = be32_to_cpu(*((__be32 *)lbuf->LUNListLength)) / 8;
memcpy(buf->LUN[i].lunid, lbuf->LUN[i], 8);
kfree(lbuf);
struct lbuf *bpsuper;
struct lbuf *bp;
struct lbuf *bpsuper;
struct lbuf *bp;
static struct lbuf *lbmAllocate(struct jfs_log * log, int);
static void lbmFree(struct lbuf * bp);
static void lbmfree(struct lbuf * bp);
static int lbmRead(struct jfs_log * log, int pn, struct lbuf ** bpp);
struct lbuf *bpsuper;
static void lbmWrite(struct jfs_log * log, struct lbuf * bp, int flag, int cant_block);
static void lbmDirectWrite(struct jfs_log * log, struct lbuf * bp, int flag);
static int lbmIOWait(struct lbuf * bp, int flag);
static void lbmStartIO(struct lbuf * bp);
struct lbuf *lbuf;
lbuf = kmalloc_obj(struct lbuf);
if (lbuf == NULL) {
lbuf->l_offset = offset;
lbuf->l_ldata = buffer + offset;
lbuf->l_page = page;
lbuf->l_log = log;
init_waitqueue_head(&lbuf->l_ioevent);
lbuf->l_freelist = log->lbuf_free;
log->lbuf_free = lbuf;
struct lbuf *lbuf;
lbuf = log->lbuf_free;
while (lbuf) {
struct lbuf *next = lbuf->l_freelist;
__free_page(lbuf->l_page);
kfree(lbuf);
lbuf = next;
static struct lbuf *lbmAllocate(struct jfs_log * log, int pn)
struct lbuf *bp;
static void lbmFree(struct lbuf * bp)
static void lbmfree(struct lbuf * bp)
static inline void lbmRedrive(struct lbuf *bp)
static int lbmRead(struct jfs_log * log, int pn, struct lbuf ** bpp)
struct lbuf *bp;
static void lbmWrite(struct jfs_log * log, struct lbuf * bp, int flag,
struct lbuf *tail;
static void lbmDirectWrite(struct jfs_log * log, struct lbuf * bp, int flag)
static void lbmStartIO(struct lbuf * bp)
static int lbmIOWait(struct lbuf * bp, int flag)
struct lbuf *bp = bio->bi_private;
struct lbuf *nextbp, *tail;
struct lbuf *bp;
struct lbuf *bp;
struct lbuf *bp; /* dst log page buffer */
bp = (struct lbuf *) log->bp;
bp = (struct lbuf *) log->bp;
bp = (struct lbuf *) log->bp;
struct lbuf *bp;
struct lbuf *nextbp;
static struct lbuf *log_redrive_list;
struct lbuf *bp;
bp = (struct lbuf *) tblk->bp;
static void lmPostGC(struct lbuf * bp)
struct lbuf *lbuf_free; /* 4: free lbufs */
struct lbuf *bp; /* 4: current log page buffer */
struct lbuf *wqueue; /* 4: log pageout queue */
struct lbuf *l_wqnext; /* 4: write queue link */
struct lbuf *l_freelist; /* 4: freelistlink */
struct lbuf *bp;
char *lbuf = log->kbuf, *rbuf = log->kbuf + n;
if (copy_from_user(lbuf, log->ubuf + start, nn))
bpf_vlog_reverse_kbuf(lbuf, nn);
if (copy_to_user(log->ubuf + end - nn, lbuf, nn))
char lbuf[32];
if (count >= sizeof(lbuf))
if (copy_from_user(lbuf, buf, count))
lbuf[count] = '\0';
ret = sscanf(lbuf, "%d %d", &usecs, &iters);
char *lbuf;
lbuf = malloc(fsize);
if (!lbuf) {
read = fread((void *)lbuf, sizeof(*lbuf), fsize, fd);
*buffer = lbuf;
free(lbuf);
uint32_t *lbuf = buf;
lbuf[i] = random();
uint32_t *lbuf = buf;
lbuf[i] = random();
uint8_t *lbuf = buf;
lbuf[i] = 0xff;
lbuf[i] = (1 << (bits % 8)) - 1;
__u8 kbuf[SHA256_DIGEST_LENGTH], lbuf[SHA256_DIGEST_LENGTH], val[64] = {};
libbpf_sha256(val, sizeof(val), lbuf);
ASSERT_EQ(memcmp(kbuf, lbuf, sizeof(kbuf)), 0,
__u8 kbuf[SHA256_DIGEST_LENGTH], lbuf[SHA256_DIGEST_LENGTH];
libbpf_sha256(full, (size_t)nr * value_size, lbuf);
ASSERT_EQ(memcmp(kbuf, lbuf, sizeof(kbuf)), 0,