Home
last modified time | relevance | path

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

/Linux-v4.19/arch/powerpc/platforms/pseries/
Dhvconsole.c45 unsigned long *lbuf = (unsigned long *)buf; in hvc_get_chars() local
48 lbuf[0] = be64_to_cpu(retbuf[1]); in hvc_get_chars()
49 lbuf[1] = be64_to_cpu(retbuf[2]); in hvc_get_chars()
70 unsigned long *lbuf = (unsigned long *) buf; in hvc_put_chars() local
79 cpu_to_be64(lbuf[0]), in hvc_put_chars()
80 cpu_to_be64(lbuf[1])); in hvc_put_chars()
/Linux-v4.19/fs/jfs/
Djfs_logmgr.c86 static struct lbuf *log_redrive_list;
187 static struct lbuf *lbmAllocate(struct jfs_log * log, int);
188 static void lbmFree(struct lbuf * bp);
189 static void lbmfree(struct lbuf * bp);
190 static int lbmRead(struct jfs_log * log, int pn, struct lbuf ** bpp);
191 static void lbmWrite(struct jfs_log * log, struct lbuf * bp, int flag, int cant_block);
192 static void lbmDirectWrite(struct jfs_log * log, struct lbuf * bp, int flag);
193 static int lbmIOWait(struct lbuf * bp, int flag);
195 static void lbmStartIO(struct lbuf * bp);
361 struct lbuf *bp; /* dst log page buffer */ in lmWriteRecord()
[all …]
Djfs_logmgr.h381 struct lbuf *lbuf_free; /* 4: free lbufs */
388 struct lbuf *bp; /* 4: current log page buffer */
411 struct lbuf *wqueue; /* 4: log pageout queue */
447 struct lbuf { struct
455 struct lbuf *l_wqnext; /* 4: write queue link */ argument
456 struct lbuf *l_freelist; /* 4: freelistlink */ argument
Djfs_txnmgr.h58 struct lbuf *bp;
/Linux-v4.19/kernel/time/
Dtest_udelay.c111 char lbuf[32]; in udelay_test_write() local
116 if (count >= sizeof(lbuf)) in udelay_test_write()
119 if (copy_from_user(lbuf, buf, count)) in udelay_test_write()
121 lbuf[count] = '\0'; in udelay_test_write()
123 ret = sscanf(lbuf, "%d %d", &usecs, &iters); in udelay_test_write()
/Linux-v4.19/drivers/infiniband/hw/mlx5/
Dcong.c334 char lbuf[11] = { }; in set_param() local
338 if (count > sizeof(lbuf)) in set_param()
341 if (copy_from_user(lbuf, buf, count)) in set_param()
344 lbuf[sizeof(lbuf) - 1] = '\0'; in set_param()
346 if (kstrtou32(lbuf, 0, &var)) in set_param()
360 char lbuf[11]; in get_param() local
366 ret = snprintf(lbuf, sizeof(lbuf), "%d\n", var); in get_param()
370 return simple_read_from_buffer(buf, count, pos, lbuf, ret); in get_param()
Dmr.c274 char lbuf[20] = {0}; in size_write() local
279 count = min(count, sizeof(lbuf) - 1); in size_write()
280 if (copy_from_user(lbuf, buf, count)) in size_write()
285 if (sscanf(lbuf, "%u", &var) != 1) in size_write()
310 char lbuf[20]; in size_read() local
313 err = snprintf(lbuf, sizeof(lbuf), "%d\n", ent->size); in size_read()
317 return simple_read_from_buffer(buf, count, pos, lbuf, err); in size_read()
332 char lbuf[20] = {0}; in limit_write() local
337 count = min(count, sizeof(lbuf) - 1); in limit_write()
338 if (copy_from_user(lbuf, buf, count)) in limit_write()
[all …]
Dmain.c5206 char lbuf[20]; in delay_drop_timeout_read() local
5209 len = snprintf(lbuf, sizeof(lbuf), "%u\n", delay_drop->timeout); in delay_drop_timeout_read()
5210 return simple_read_from_buffer(buf, count, pos, lbuf, len); in delay_drop_timeout_read()
/Linux-v4.19/drivers/pci/hotplug/
Dacpiphp_ibm.c287 char *lbuf = NULL; in ibm_get_table_from_acpi() local
315 lbuf = kzalloc(size, GFP_KERNEL); in ibm_get_table_from_acpi()
317 __func__, package->package.count, size, lbuf); in ibm_get_table_from_acpi()
319 if (lbuf) { in ibm_get_table_from_acpi()
320 *bufp = lbuf; in ibm_get_table_from_acpi()
328 memcpy(&lbuf[size], in ibm_get_table_from_acpi()
/Linux-v4.19/drivers/parisc/
Dled.c183 char *cur, lbuf[32]; in led_proc_write() local
189 if (count >= sizeof(lbuf)) in led_proc_write()
190 count = sizeof(lbuf)-1; in led_proc_write()
192 if (copy_from_user(lbuf, buf, count)) in led_proc_write()
194 lbuf[count] = 0; in led_proc_write()
196 cur = lbuf; in led_proc_write()
/Linux-v4.19/drivers/hid/
Dhid-lg4ff.c861 char *lbuf; in lg4ff_alternate_modes_store() local
876 lbuf = kasprintf(GFP_KERNEL, "%s", buf); in lg4ff_alternate_modes_store()
877 if (!lbuf) in lg4ff_alternate_modes_store()
880 i = strlen(lbuf); in lg4ff_alternate_modes_store()
881 if (lbuf[i-1] == '\n') { in lg4ff_alternate_modes_store()
883 kfree(lbuf); in lg4ff_alternate_modes_store()
886 lbuf[i-1] = '\0'; in lg4ff_alternate_modes_store()
894 if (!strcmp(tag, lbuf)) { in lg4ff_alternate_modes_store()
905 hid_info(hid, "Requested mode \"%s\" is not supported by the device\n", lbuf); in lg4ff_alternate_modes_store()
906 kfree(lbuf); in lg4ff_alternate_modes_store()
[all …]
/Linux-v4.19/drivers/gpu/vga/
Dvgaarb.c963 char *lbuf; in vga_arb_read() local
965 lbuf = kmalloc(1024, GFP_KERNEL); in vga_arb_read()
966 if (lbuf == NULL) in vga_arb_read()
978 len = sprintf(lbuf, "invalid"); in vga_arb_read()
991 len = sprintf(lbuf, "invalid"); in vga_arb_read()
996 len = snprintf(lbuf, 1024, in vga_arb_read()
1010 rc = copy_to_user(buf, lbuf, len); in vga_arb_read()
1011 kfree(lbuf); in vga_arb_read()
/Linux-v4.19/drivers/misc/ibmasm/
Dibmasmfs.c512 char lbuf[20]; in remote_settings_file_read() local
515 len = snprintf(lbuf, sizeof(lbuf), "%d\n", value); in remote_settings_file_read()
517 return simple_read_from_buffer(buf, count, offset, lbuf, len); in remote_settings_file_read()
/Linux-v4.19/drivers/net/plip/
Dplip.c589 unsigned char *lbuf; in plip_receive_packet() local
648 lbuf = rcv->skb->data; in plip_receive_packet()
651 &rcv->nibble, &lbuf[rcv->byte])) in plip_receive_packet()
655 rcv->checksum += lbuf[--rcv->byte]; in plip_receive_packet()
757 unsigned char *lbuf; in plip_send_packet() local
761 if (snd->skb == NULL || (lbuf = snd->skb->data) == NULL) { in plip_send_packet()
835 &snd->nibble, lbuf[snd->byte])) in plip_send_packet()
839 snd->checksum += lbuf[--snd->byte]; in plip_send_packet()
/Linux-v4.19/arch/powerpc/kvm/
Dbook3s_64_mmu_hv.c1738 unsigned long __user *lbuf; in kvm_htab_read() local
1755 lbuf = (unsigned long __user *)buf; in kvm_htab_read()
1765 lbuf = (unsigned long __user *)(buf + sizeof(hdr)); in kvm_htab_read()
1785 if (__put_user(hpte[0], lbuf) || in kvm_htab_read()
1786 __put_user(hpte[1], lbuf + 1)) in kvm_htab_read()
1789 lbuf += 2; in kvm_htab_read()
1810 buf = (char __user *)lbuf; in kvm_htab_read()
1836 unsigned long __user *lbuf; in kvm_htab_write() local
1883 lbuf = (unsigned long __user *)buf; in kvm_htab_write()
1889 if (__get_user(hpte_v, lbuf) || in kvm_htab_write()
[all …]
/Linux-v4.19/drivers/acpi/
Ddock.c550 unsigned long long lbuf; in show_dock_uid() local
553 "_UID", NULL, &lbuf); in show_dock_uid()
557 return snprintf(buf, PAGE_SIZE, "%llx\n", lbuf); in show_dock_uid()
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/
Dcmd.c1045 char lbuf[3]; in dbg_write() local
1051 if (count < sizeof(lbuf) - 1) in dbg_write()
1054 if (copy_from_user(lbuf, buf, sizeof(lbuf) - 1)) in dbg_write()
1057 lbuf[sizeof(lbuf) - 1] = 0; in dbg_write()
1059 if (strcmp(lbuf, "go")) in dbg_write()
/Linux-v4.19/drivers/net/can/usb/peak_usb/
Dpcan_usb.c679 static int pcan_usb_decode_msg(struct peak_usb_device *dev, u8 *ibuf, u32 lbuf) in pcan_usb_decode_msg() argument
684 .end = ibuf + lbuf, in pcan_usb_decode_msg()
/Linux-v4.19/drivers/infiniband/hw/qib/
Dqib_iba6120.c3307 u32 lbuf = ppd->dd->piobcnt2k + ppd->dd->piobcnt4k - 1; in get_6120_link_buf() local
3315 buf = qib_getsendbuf_range(ppd->dd, bnum, lbuf, lbuf); in get_6120_link_buf()
3323 buf = qib_getsendbuf_range(ppd->dd, bnum, lbuf, lbuf); in get_6120_link_buf()
Dqib_iba7220.c3333 u32 lbuf = ppd->dd->cspec->lastbuf_for_pio; in get_7220_link_buf() local
3343 buf = qib_getsendbuf_range(ppd->dd, bnum, lbuf, lbuf); in get_7220_link_buf()
3360 buf = qib_getsendbuf_range(ppd->dd, bnum, lbuf, lbuf); in get_7220_link_buf()
/Linux-v4.19/drivers/scsi/
Dhpsa.c3766 struct ReportLUNdata *lbuf; in hpsa_scsi_do_report_phys_luns() local
3774 lbuf = kzalloc(sizeof(*lbuf), GFP_KERNEL); in hpsa_scsi_do_report_phys_luns()
3775 if (!lbuf) in hpsa_scsi_do_report_phys_luns()
3778 rc = hpsa_scsi_do_report_luns(h, 0, lbuf, sizeof(*lbuf), 0); in hpsa_scsi_do_report_phys_luns()
3784 memcpy(buf, lbuf, 8); in hpsa_scsi_do_report_phys_luns()
3785 nphys = be32_to_cpu(*((__be32 *)lbuf->LUNListLength)) / 8; in hpsa_scsi_do_report_phys_luns()
3787 memcpy(buf->LUN[i].lunid, lbuf->LUN[i], 8); in hpsa_scsi_do_report_phys_luns()
3789 kfree(lbuf); in hpsa_scsi_do_report_phys_luns()