/kernel/linux/linux-5.10/arch/powerpc/platforms/pseries/ |
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()
|
/kernel/linux/linux-5.10/fs/jfs/ |
D | jfs_logmgr.c | 73 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 …]
|
D | jfs_logmgr.h | 368 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
|
D | jfs_txnmgr.h | 45 struct lbuf *bp;
|
/kernel/linux/linux-5.10/kernel/time/ |
D | test_udelay.c | 103 char lbuf[32]; in udelay_test_write() local 108 if (count >= sizeof(lbuf)) in udelay_test_write() 111 if (copy_from_user(lbuf, buf, count)) in udelay_test_write() 113 lbuf[count] = '\0'; in udelay_test_write() 115 ret = sscanf(lbuf, "%d %d", &usecs, &iters); in udelay_test_write()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/mlx5/ |
D | cong.c | 354 char lbuf[11] = { }; in set_param() local 358 if (count > sizeof(lbuf)) in set_param() 361 if (copy_from_user(lbuf, buf, count)) in set_param() 364 lbuf[sizeof(lbuf) - 1] = '\0'; in set_param() 366 if (kstrtou32(lbuf, 0, &var)) in set_param() 380 char lbuf[11]; in get_param() local 386 ret = snprintf(lbuf, sizeof(lbuf), "%d\n", var); in get_param() 390 return simple_read_from_buffer(buf, count, pos, lbuf, ret); in get_param()
|
D | mr.c | 366 char lbuf[20]; in size_read() local 369 err = snprintf(lbuf, sizeof(lbuf), "%d\n", ent->total_mrs); in size_read() 373 return simple_read_from_buffer(buf, count, pos, lbuf, err); in size_read() 411 char lbuf[20]; in limit_read() local 414 err = snprintf(lbuf, sizeof(lbuf), "%d\n", ent->limit); in limit_read() 418 return simple_read_from_buffer(buf, count, pos, lbuf, err); in limit_read()
|
D | main.c | 3365 char lbuf[20]; in delay_drop_timeout_read() local 3368 len = snprintf(lbuf, sizeof(lbuf), "%u\n", delay_drop->timeout); in delay_drop_timeout_read() 3369 return simple_read_from_buffer(buf, count, pos, lbuf, len); in delay_drop_timeout_read()
|
/kernel/linux/linux-5.10/drivers/pci/hotplug/ |
D | acpiphp_ibm.c | 287 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()
|
/kernel/linux/linux-5.10/drivers/parisc/ |
D | led.c | 179 char *cur, lbuf[32]; in led_proc_write() local 185 if (count >= sizeof(lbuf)) in led_proc_write() 186 count = sizeof(lbuf)-1; in led_proc_write() 188 if (copy_from_user(lbuf, buf, count)) in led_proc_write() 190 lbuf[count] = 0; in led_proc_write() 192 cur = lbuf; in led_proc_write()
|
/kernel/linux/linux-5.10/drivers/hid/ |
D | hid-lg4ff.c | 855 char *lbuf; in lg4ff_alternate_modes_store() local 870 lbuf = kasprintf(GFP_KERNEL, "%s", buf); in lg4ff_alternate_modes_store() 871 if (!lbuf) in lg4ff_alternate_modes_store() 874 i = strlen(lbuf); in lg4ff_alternate_modes_store() 875 if (lbuf[i-1] == '\n') { in lg4ff_alternate_modes_store() 877 kfree(lbuf); in lg4ff_alternate_modes_store() 880 lbuf[i-1] = '\0'; in lg4ff_alternate_modes_store() 888 if (!strcmp(tag, lbuf)) { in lg4ff_alternate_modes_store() 899 hid_info(hid, "Requested mode \"%s\" is not supported by the device\n", lbuf); in lg4ff_alternate_modes_store() 900 kfree(lbuf); in lg4ff_alternate_modes_store() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/vga/ |
D | vgaarb.c | 1011 char *lbuf; in vga_arb_read() local 1013 lbuf = kmalloc(1024, GFP_KERNEL); in vga_arb_read() 1014 if (lbuf == NULL) in vga_arb_read() 1026 len = sprintf(lbuf, "invalid"); in vga_arb_read() 1039 len = sprintf(lbuf, "invalid"); in vga_arb_read() 1044 len = snprintf(lbuf, 1024, in vga_arb_read() 1058 rc = copy_to_user(buf, lbuf, len); in vga_arb_read() 1059 kfree(lbuf); in vga_arb_read()
|
/kernel/linux/linux-5.10/drivers/misc/ibmasm/ |
D | ibmasmfs.c | 507 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()
|
/kernel/linux/linux-5.10/drivers/net/plip/ |
D | plip.c | 585 unsigned char *lbuf; in plip_receive_packet() local 644 lbuf = rcv->skb->data; in plip_receive_packet() 647 &rcv->nibble, &lbuf[rcv->byte])) in plip_receive_packet() 651 rcv->checksum += lbuf[--rcv->byte]; in plip_receive_packet() 753 unsigned char *lbuf; in plip_send_packet() local 757 if (snd->skb == NULL || (lbuf = snd->skb->data) == NULL) { in plip_send_packet() 831 &snd->nibble, lbuf[snd->byte])) in plip_send_packet() 835 snd->checksum += lbuf[--snd->byte]; in plip_send_packet()
|
/kernel/linux/linux-5.10/arch/powerpc/kvm/ |
D | book3s_64_mmu_hv.c | 1736 unsigned long __user *lbuf; in kvm_htab_read() local 1753 lbuf = (unsigned long __user *)buf; in kvm_htab_read() 1763 lbuf = (unsigned long __user *)(buf + sizeof(hdr)); in kvm_htab_read() 1783 if (__put_user(hpte[0], lbuf) || in kvm_htab_read() 1784 __put_user(hpte[1], lbuf + 1)) in kvm_htab_read() 1787 lbuf += 2; in kvm_htab_read() 1808 buf = (char __user *)lbuf; in kvm_htab_read() 1834 unsigned long __user *lbuf; in kvm_htab_write() local 1881 lbuf = (unsigned long __user *)buf; in kvm_htab_write() 1887 if (__get_user(hpte_v, lbuf) || in kvm_htab_write() [all …]
|
/kernel/linux/linux-5.10/drivers/acpi/ |
D | dock.c | 536 unsigned long long lbuf; in uid_show() local 539 "_UID", NULL, &lbuf); in uid_show() 543 return snprintf(buf, PAGE_SIZE, "%llx\n", lbuf); in uid_show()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
D | cmd.c | 1160 char lbuf[3]; in dbg_write() local 1166 if (count < sizeof(lbuf) - 1) in dbg_write() 1169 if (copy_from_user(lbuf, buf, sizeof(lbuf) - 1)) in dbg_write() 1172 lbuf[sizeof(lbuf) - 1] = 0; in dbg_write() 1174 if (strcmp(lbuf, "go")) in dbg_write()
|
/kernel/linux/linux-5.10/drivers/net/can/usb/peak_usb/ |
D | pcan_usb.c | 780 static int pcan_usb_decode_msg(struct peak_usb_device *dev, u8 *ibuf, u32 lbuf) in pcan_usb_decode_msg() argument 785 .end = ibuf + lbuf, in pcan_usb_decode_msg()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/qib/ |
D | qib_iba6120.c | 3301 u32 lbuf = ppd->dd->piobcnt2k + ppd->dd->piobcnt4k - 1; in get_6120_link_buf() local 3309 buf = qib_getsendbuf_range(ppd->dd, bnum, lbuf, lbuf); in get_6120_link_buf() 3317 buf = qib_getsendbuf_range(ppd->dd, bnum, lbuf, lbuf); in get_6120_link_buf()
|
D | qib_iba7220.c | 3330 u32 lbuf = ppd->dd->cspec->lastbuf_for_pio; in get_7220_link_buf() local 3340 buf = qib_getsendbuf_range(ppd->dd, bnum, lbuf, lbuf); in get_7220_link_buf() 3357 buf = qib_getsendbuf_range(ppd->dd, bnum, lbuf, lbuf); in get_7220_link_buf()
|
/kernel/linux/linux-5.10/drivers/scsi/ |
D | hpsa.c | 3790 struct ReportLUNdata *lbuf; in hpsa_scsi_do_report_phys_luns() local 3798 lbuf = kzalloc(sizeof(*lbuf), GFP_KERNEL); in hpsa_scsi_do_report_phys_luns() 3799 if (!lbuf) in hpsa_scsi_do_report_phys_luns() 3802 rc = hpsa_scsi_do_report_luns(h, 0, lbuf, sizeof(*lbuf), 0); in hpsa_scsi_do_report_phys_luns() 3808 memcpy(buf, lbuf, 8); in hpsa_scsi_do_report_phys_luns() 3809 nphys = be32_to_cpu(*((__be32 *)lbuf->LUNListLength)) / 8; in hpsa_scsi_do_report_phys_luns() 3811 memcpy(buf->LUN[i].lunid, lbuf->LUN[i], 8); in hpsa_scsi_do_report_phys_luns() 3813 kfree(lbuf); in hpsa_scsi_do_report_phys_luns()
|
/kernel/linux/patches/linux-5.10/unionpi_tiger_pacth/ |
D | linux-5.10.patch | 28592 + char lbuf[32]; 28594 + if (count >= sizeof(lbuf)) 28595 + count = sizeof(lbuf)-1; 28597 + if (copy_from_user(lbuf, buf, count)) 28599 + lbuf[count] = 0; 28603 + if (lbuf[0] == '0') { 28618 + if (lbuf[0] == '0') 28624 + if (lbuf[0] == '0') { 28640 + if (lbuf[0] != '0' && bsi->uport)
|