Home
last modified time | relevance | path

Searched refs:lbuf (Results 1 – 19 of 19) sorted by relevance

/linux/fs/jfs/
H A Djfs_logmgr.c73 static struct lbuf *log_redrive_list;
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 * bp, int flag);
182 static void lbmStartIO(struct lbuf * bp);
348 struct lbuf *bp; /* dst log page buffer */ in lmWriteRecord()
[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 */
434 struct lbuf { struct
442 struct lbuf *l_wqnext; /* 4: write queue link */ argument
443 struct lbuf *l_freelist; /* 4: freelistlink */ argument
H A Djfs_txnmgr.h45 struct lbuf *bp;
/linux/arch/powerpc/platforms/pseries/
H A Dhvconsole.c32 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 Dpolgen.c22 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/drivers/s390/cio/
H A Dcio_inject.c86 size_t lbuf, loff_t *ppos) in crw_inject_write() argument
98 buffer = memdup_user_nul(buf, lbuf); in crw_inject_write()
124 return lbuf; in crw_inject_write()
129 size_t lbuf, loff_t *ppos) in enable_inject_write() argument
134 rc = kstrtoul_from_user(buf, lbuf, 10, &en); in enable_inject_write()
147 return lbuf; in enable_inject_write()
/linux/kernel/time/
H A Dtest_udelay.c102 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/infiniband/hw/mlx5/
H A Dcong.c376 char lbuf[11] = { }; in set_param() local
380 if (count > sizeof(lbuf)) in set_param()
383 if (copy_from_user(lbuf, buf, count)) in set_param()
386 lbuf[sizeof(lbuf) - 1] = '\0'; in set_param()
388 if (kstrtou32(lbuf, 0, &var)) in set_param()
402 char lbuf[11]; in get_param() local
408 ret = snprintf(lbuf, sizeof(lbuf), "%d\n", var); in get_param()
412 return simple_read_from_buffer(buf, count, pos, lbuf, ret); in get_param()
H A Dmr.c416 char lbuf[20]; in size_read() local
419 err = snprintf(lbuf, sizeof(lbuf), "%ld\n", in size_read()
424 return simple_read_from_buffer(buf, count, pos, lbuf, err); in size_read()
462 char lbuf[20]; in limit_read() local
465 err = snprintf(lbuf, sizeof(lbuf), "%d\n", ent->limit); in limit_read()
469 return simple_read_from_buffer(buf, count, pos, lbuf, err); in limit_read()
H A Dmain.c3417 char lbuf[20]; in delay_drop_timeout_read() local
3420 len = snprintf(lbuf, sizeof(lbuf), "%u\n", delay_drop->timeout); in delay_drop_timeout_read()
3421 return simple_read_from_buffer(buf, count, pos, lbuf, len); in delay_drop_timeout_read()
/linux/drivers/pci/
H A Dvgaarb.c1100 char *lbuf; in vga_arb_read() local
1102 lbuf = kmalloc(1024, GFP_KERNEL); in vga_arb_read()
1103 if (lbuf == NULL) in vga_arb_read()
1113 len = sprintf(lbuf, "invalid"); in vga_arb_read()
1125 len = sprintf(lbuf, "invalid"); in vga_arb_read()
1130 len = snprintf(lbuf, 1024, in vga_arb_read()
1144 rc = copy_to_user(buf, lbuf, len); in vga_arb_read()
1145 kfree(lbuf); in vga_arb_read()
/linux/drivers/net/plip/
H A Dplip.c592 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/drivers/misc/ibmasm/
H A Dibmasmfs.c507 char lbuf[20]; in remote_settings_file_read() local
510 len = snprintf(lbuf, sizeof(lbuf), "%d\n", value); in remote_settings_file_read()
512 return simple_read_from_buffer(buf, count, offset, lbuf, len); in remote_settings_file_read()
/linux/drivers/acpi/
H A Ddock.c525 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 Dlog.c192 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/drivers/net/ethernet/mellanox/mlx5/core/
H A Dcmd.c1283 char lbuf[3]; in dbg_write() local
1289 if (count < sizeof(lbuf) - 1) in dbg_write()
1292 if (copy_from_user(lbuf, buf, sizeof(lbuf) - 1)) in dbg_write()
1295 lbuf[sizeof(lbuf) - 1] = 0; in dbg_write()
1297 if (strcmp(lbuf, "go")) in dbg_write()
/linux/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) in pcan_usb_decode_msg() argument
729 .end = ibuf + lbuf, in pcan_usb_decode_msg()
/linux/drivers/infiniband/hw/qib/
H A Dqib_iba6120.c3298 u32 lbuf = ppd->dd->piobcnt2k + ppd->dd->piobcnt4k - 1; in get_6120_link_buf() local
3306 buf = qib_getsendbuf_range(ppd->dd, bnum, lbuf, lbuf); in get_6120_link_buf()
3314 buf = qib_getsendbuf_range(ppd->dd, bnum, lbuf, lbuf); in get_6120_link_buf()
/linux/drivers/scsi/
H A Dhpsa.c3796 struct ReportLUNdata *lbuf; in hpsa_scsi_do_report_phys_luns() local
3804 lbuf = kzalloc(sizeof(*lbuf), GFP_KERNEL); in hpsa_scsi_do_report_phys_luns()
3805 if (!lbuf) in hpsa_scsi_do_report_phys_luns()
3808 rc = hpsa_scsi_do_report_luns(h, 0, lbuf, sizeof(*lbuf), 0); in hpsa_scsi_do_report_phys_luns()
3814 memcpy(buf, lbuf, 8); in hpsa_scsi_do_report_phys_luns()
3815 nphys = be32_to_cpu(*((__be32 *)lbuf->LUNListLength)) / 8; in hpsa_scsi_do_report_phys_luns()
3817 memcpy(buf->LUN[i].lunid, lbuf->LUN[i], 8); in hpsa_scsi_do_report_phys_luns()
3819 kfree(lbuf); in hpsa_scsi_do_report_phys_luns()