/kernel/linux/linux-5.10/drivers/hwmon/pmbus/ |
D | max20730.c | 116 char tbuf[DEBUG_FS_DATA_MAX] = { 0 }; in max20730_debugfs_read() local 125 len = scnprintf(tbuf, DEBUG_FS_DATA_MAX, "%d.%d\n", in max20730_debugfs_read() 144 len = scnprintf(tbuf, DEBUG_FS_DATA_MAX, "%d\n", ret); in max20730_debugfs_read() 151 len = strlcpy(tbuf, "2000\n", DEBUG_FS_DATA_MAX); in max20730_debugfs_read() 153 len = strlcpy(tbuf, "125\n", DEBUG_FS_DATA_MAX); in max20730_debugfs_read() 155 len = strlcpy(tbuf, "62.5\n", DEBUG_FS_DATA_MAX); in max20730_debugfs_read() 157 len = strlcpy(tbuf, "32\n", DEBUG_FS_DATA_MAX); in max20730_debugfs_read() 166 len = strlcpy(tbuf, "0.8\n", DEBUG_FS_DATA_MAX); in max20730_debugfs_read() 168 len = strlcpy(tbuf, "3.2\n", DEBUG_FS_DATA_MAX); in max20730_debugfs_read() 170 len = strlcpy(tbuf, "1.6\n", DEBUG_FS_DATA_MAX); in max20730_debugfs_read() [all …]
|
/kernel/linux/linux-5.10/drivers/video/backlight/ |
D | ili922x.c | 153 unsigned char tbuf[CMD_BUFSIZE]; in ili922x_read_status() local 159 xfer.tx_buf = tbuf; in ili922x_read_status() 164 tbuf[0] = set_tx_byte(START_BYTE(ili922x_id, START_RS_INDEX, in ili922x_read_status() 171 tbuf[i] = set_tx_byte(0); /* dummy */ in ili922x_read_status() 196 unsigned char tbuf[CMD_BUFSIZE]; in ili922x_read() local 203 xfer_regindex.tx_buf = tbuf; in ili922x_read() 208 tbuf[0] = set_tx_byte(START_BYTE(ili922x_id, START_RS_INDEX, in ili922x_read() 210 tbuf[1] = set_tx_byte(0); in ili922x_read() 211 tbuf[2] = set_tx_byte(reg); in ili922x_read() 218 tbuf[len++] = set_tx_byte(START_BYTE(ili922x_id, START_RS_REG, in ili922x_read() [all …]
|
/kernel/linux/linux-5.10/arch/powerpc/kernel/ |
D | io.c | 29 u8 *tbuf = buf; in _insb() local 38 *tbuf++ = tmp; in _insb() 46 const u8 *tbuf = buf; in _outsb() local 52 *port = *tbuf++; in _outsb() 60 u16 *tbuf = buf; in _insw_ns() local 69 *tbuf++ = tmp; in _insw_ns() 77 const u16 *tbuf = buf; in _outsw_ns() local 83 *port = *tbuf++; in _outsw_ns() 91 u32 *tbuf = buf; in _insl_ns() local 100 *tbuf++ = tmp; in _insl_ns() [all …]
|
/kernel/linux/linux-5.10/drivers/tty/ |
D | n_hdlc.c | 276 struct n_hdlc_buf *tbuf; in n_hdlc_send_frames() local 290 tbuf = n_hdlc_buf_get(&n_hdlc->tx_buf_list); in n_hdlc_send_frames() 291 while (tbuf) { in n_hdlc_send_frames() 292 pr_debug("sending frame %p, count=%d\n", tbuf, tbuf->count); in n_hdlc_send_frames() 296 actual = tty->ops->write(tty, tbuf->buf, tbuf->count); in n_hdlc_send_frames() 300 n_hdlc_buf_return(&n_hdlc->tx_buf_list, tbuf); in n_hdlc_send_frames() 306 actual = tbuf->count; in n_hdlc_send_frames() 308 if (actual == tbuf->count) { in n_hdlc_send_frames() 309 pr_debug("frame %p completed\n", tbuf); in n_hdlc_send_frames() 312 n_hdlc_buf_put(&n_hdlc->tx_free_buf_list, tbuf); in n_hdlc_send_frames() [all …]
|
/kernel/linux/linux-5.10/drivers/staging/gs_fpgaboot/ |
D | gs_fpgaboot.c | 43 u8 tbuf[2]; in readinfo_bitstream() local 47 read_bitstream(bitdata, tbuf, offset, 1); in readinfo_bitstream() 50 read_bitstream(bitdata, tbuf, offset, 2); in readinfo_bitstream() 52 len = get_unaligned_be16(tbuf); in readinfo_bitstream() 69 u8 tbuf[4]; in readlength_bitstream() local 72 read_bitstream(bitdata, tbuf, offset, 1); in readlength_bitstream() 75 if (tbuf[0] != 'e') { in readlength_bitstream() 76 pr_err("error: length section is not 'e', but %c\n", tbuf[0]); in readlength_bitstream() 81 read_bitstream(bitdata, tbuf, offset, 4); in readlength_bitstream() 83 *lendata = get_unaligned_be32(tbuf); in readlength_bitstream()
|
/kernel/linux/linux-5.10/drivers/char/tpm/ |
D | tpm2-space.c | 74 struct tpm_buf tbuf; in tpm2_load_context() local 79 rc = tpm_buf_init(&tbuf, TPM2_ST_NO_SESSIONS, TPM2_CC_CONTEXT_LOAD); in tpm2_load_context() 85 tpm_buf_append(&tbuf, &buf[*offset], body_size); in tpm2_load_context() 87 rc = tpm_transmit_cmd(chip, &tbuf, 4, NULL); in tpm2_load_context() 91 tpm_buf_destroy(&tbuf); in tpm2_load_context() 106 tpm_buf_destroy(&tbuf); in tpm2_load_context() 111 tpm_buf_destroy(&tbuf); in tpm2_load_context() 115 *handle = be32_to_cpup((__be32 *)&tbuf.data[TPM_HEADER_SIZE]); in tpm2_load_context() 118 tpm_buf_destroy(&tbuf); in tpm2_load_context() 125 struct tpm_buf tbuf; in tpm2_save_context() local [all …]
|
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
D | psock_snd.c | 52 static char tbuf[TEST_SZ], rbuf[TEST_SZ]; variable 157 off += build_vnet_header(tbuf); in build_packet() 158 off += build_eth_header(tbuf + off); in build_packet() 159 off += build_ipv4_header(tbuf + off, payload_len); in build_packet() 160 off += build_udp_header(tbuf + off, payload_len); in build_packet() 162 if (off + payload_len > sizeof(tbuf)) in build_packet() 165 memset(tbuf + off, DATA_CHAR, payload_len); in build_packet() 243 do_send(fd, tbuf, len); in do_tx() 374 tbuf + sizeof(struct virtio_net_hdr)); in run_test() 376 do_rx(fdr, cfg_payload_len, tbuf + total_len - cfg_payload_len); in run_test()
|
/kernel/linux/linux-5.10/tools/perf/ui/browsers/ |
D | res_sample.c | 48 char tbuf[64]; in res_sample_browse() local 50 timestamp__scnprintf_nsec(res_samples[i].time, tbuf, sizeof tbuf); in res_sample_browse() 51 if (asprintf(&names[i], "%s: CPU %d tid %d", tbuf, in res_sample_browse()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
D | debugfs.c | 130 char tbuf[22]; in average_read() local 137 ret = snprintf(tbuf, sizeof(tbuf), "%llu\n", field); in average_read() 138 return simple_read_from_buffer(buf, count, pos, tbuf, ret); in average_read() 364 char tbuf[18]; in dbg_read() local 390 ret = snprintf(tbuf, sizeof(tbuf), "%s\n", (const char *)(unsigned long)field); in dbg_read() 392 ret = snprintf(tbuf, sizeof(tbuf), "0x%llx\n", field); in dbg_read() 394 return simple_read_from_buffer(buf, count, pos, tbuf, ret); in dbg_read()
|
/kernel/linux/linux-5.10/drivers/scsi/snic/ |
D | snic_trc.c | 125 void *tbuf = NULL; in snic_trc_init() local 129 tbuf = vzalloc(tbuf_sz); in snic_trc_init() 130 if (!tbuf) { in snic_trc_init() 138 trc->buf = (struct snic_trc_data *) tbuf; in snic_trc_init()
|
/kernel/linux/linux-5.10/security/integrity/ima/ |
D | ima_policy.c | 1655 char tbuf[64] = {0,}; in ima_policy_show() local 1703 snprintf(tbuf, sizeof(tbuf), "0x%lx", entry->fsmagic); in ima_policy_show() 1704 seq_printf(m, pt(Opt_fsmagic), tbuf); in ima_policy_show() 1709 snprintf(tbuf, sizeof(tbuf), "%s", entry->fsname); in ima_policy_show() 1710 seq_printf(m, pt(Opt_fsname), tbuf); in ima_policy_show() 1721 snprintf(tbuf, sizeof(tbuf), "%d", entry->pcr); in ima_policy_show() 1722 seq_printf(m, pt(Opt_pcr), tbuf); in ima_policy_show() 1732 snprintf(tbuf, sizeof(tbuf), "%d", __kuid_val(entry->uid)); in ima_policy_show() 1734 seq_printf(m, pt(Opt_uid_gt), tbuf); in ima_policy_show() 1736 seq_printf(m, pt(Opt_uid_lt), tbuf); in ima_policy_show() [all …]
|
/kernel/linux/linux-5.10/drivers/mtd/ubi/ |
D | cdev.c | 179 void *tbuf; in vol_cdev_read() local 204 tbuf = vmalloc(tbuf_size); in vol_cdev_read() 205 if (!tbuf) in vol_cdev_read() 217 err = ubi_eba_read_leb(ubi, vol, lnum, tbuf, off, len, 0); in vol_cdev_read() 230 err = copy_to_user(buf, tbuf, len); in vol_cdev_read() 240 vfree(tbuf); in vol_cdev_read() 256 char *tbuf; in vol_cdev_direct_write() local 285 tbuf = vmalloc(tbuf_size); in vol_cdev_direct_write() 286 if (!tbuf) in vol_cdev_direct_write() 297 err = copy_from_user(tbuf, buf, len); in vol_cdev_direct_write() [all …]
|
/kernel/linux/linux-5.10/drivers/w1/masters/ |
D | ds2490.c | 871 u8 *tbuf; in ds9490r_write_block() local 876 tbuf = kmemdup(buf, len, GFP_KERNEL); in ds9490r_write_block() 877 if (!tbuf) in ds9490r_write_block() 880 ds_write_block(dev, tbuf, len); in ds9490r_write_block() 882 kfree(tbuf); in ds9490r_write_block() 889 u8 *tbuf; in ds9490r_read_block() local 894 tbuf = kmalloc(len, GFP_KERNEL); in ds9490r_read_block() 895 if (!tbuf) in ds9490r_read_block() 898 err = ds_read_block(dev, tbuf, len); in ds9490r_read_block() 900 memcpy(buf, tbuf, len); in ds9490r_read_block() [all …]
|
/kernel/linux/linux-5.10/drivers/iio/adc/ |
D | ad9467.c | 129 unsigned char tbuf[2], rbuf[1]; in ad9467_spi_read() local 132 tbuf[0] = 0x80 | (reg >> 8); in ad9467_spi_read() 133 tbuf[1] = reg & 0xFF; in ad9467_spi_read() 136 tbuf, ARRAY_SIZE(tbuf), in ad9467_spi_read()
|
/kernel/linux/linux-5.10/fs/configfs/ |
D | file.c | 308 void *tbuf = NULL; in configfs_write_bin_file() local 329 tbuf = vmalloc(*ppos + count); in configfs_write_bin_file() 330 if (tbuf == NULL) { in configfs_write_bin_file() 337 memcpy(tbuf, buffer->bin_buffer, in configfs_write_bin_file() 343 memset(tbuf + buffer->bin_buffer_size, 0, in configfs_write_bin_file() 345 buffer->bin_buffer = tbuf; in configfs_write_bin_file()
|
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/ |
D | user_exp_rcv.c | 60 struct tid_user_buf *tbuf, 653 static int program_rcvarray(struct hfi1_filedata *fd, struct tid_user_buf *tbuf, in program_rcvarray() argument 696 npages = tbuf->psets[setidx].count; in program_rcvarray() 697 pageidx = tbuf->psets[setidx].idx; in program_rcvarray() 699 ret = set_rcvarray_entry(fd, tbuf, in program_rcvarray() 722 struct tid_user_buf *tbuf, in set_rcvarray_entry() argument 731 struct page **pages = tbuf->pages + pageidx; in set_rcvarray_entry() 764 tbuf->vaddr + (pageidx * PAGE_SIZE), npages * PAGE_SIZE, in set_rcvarray_entry()
|
/kernel/linux/linux-5.10/drivers/crypto/hisilicon/zip/ |
D | zip_main.c | 420 char tbuf[HZIP_BUF_SIZE]; in hisi_zip_ctrl_debug_read() local 437 ret = scnprintf(tbuf, sizeof(tbuf), "%u\n", val); in hisi_zip_ctrl_debug_read() 438 return simple_read_from_buffer(buf, count, pos, tbuf, ret); in hisi_zip_ctrl_debug_read() 446 char tbuf[HZIP_BUF_SIZE]; in hisi_zip_ctrl_debug_write() local 456 len = simple_write_to_buffer(tbuf, HZIP_BUF_SIZE - 1, pos, buf, count); in hisi_zip_ctrl_debug_write() 460 tbuf[len] = '\0'; in hisi_zip_ctrl_debug_write() 461 if (kstrtoul(tbuf, 0, &val)) in hisi_zip_ctrl_debug_write()
|
/kernel/linux/linux-5.10/drivers/net/wireless/ath/carl9170/ |
D | rx.c | 879 u8 *tbuf; in carl9170_rx_stream() local 881 tbuf = buf; in carl9170_rx_stream() 885 rx_stream = (void *) tbuf; in carl9170_rx_stream() 905 __carl9170_rx(ar, tbuf, tlen); in carl9170_rx_stream() 920 skb_put_data(ar->rx_failover, tbuf, tlen); in carl9170_rx_stream() 962 skb_put_data(ar->rx_failover, tbuf, tlen); in carl9170_rx_stream() 968 tbuf += wlen + 4; in carl9170_rx_stream()
|
/kernel/linux/linux-5.10/drivers/staging/comedi/drivers/ |
D | dt9812.c | 244 void *tbuf; in dt9812_read_info() local 248 tbuf = kzalloc(tbuf_size, GFP_KERNEL); in dt9812_read_info() 249 if (!tbuf) in dt9812_read_info() 252 cmd = tbuf; in dt9812_read_info() 266 tbuf, buf_size, &count, DT9812_USB_TIMEOUT); in dt9812_read_info() 269 memcpy(buf, tbuf, buf_size); in dt9812_read_info() 274 kfree(tbuf); in dt9812_read_info()
|
/kernel/linux/linux-5.10/drivers/usb/core/ |
D | message.c | 910 static int usb_get_langid(struct usb_device *dev, unsigned char *tbuf) in usb_get_langid() argument 920 err = usb_string_sub(dev, 0, 0, tbuf); in usb_get_langid() 943 dev->string_langid = tbuf[2] | (tbuf[3] << 8); in usb_get_langid() 969 unsigned char *tbuf; in usb_string() local 979 tbuf = kmalloc(256, GFP_NOIO); in usb_string() 980 if (!tbuf) in usb_string() 983 err = usb_get_langid(dev, tbuf); in usb_string() 987 err = usb_string_sub(dev, dev->string_langid, index, tbuf); in usb_string() 992 err = utf16s_to_utf8s((wchar_t *) &tbuf[2], (err - 2) / 2, in usb_string() 996 if (tbuf[1] != USB_DT_STRING) in usb_string() [all …]
|
D | devio.c | 1110 unsigned char *tbuf; in do_proc_control() local 1125 tbuf = (unsigned char *)__get_free_page(GFP_KERNEL); in do_proc_control() 1126 if (!tbuf) { in do_proc_control() 1143 tbuf, ctrl->wLength, tmo); in do_proc_control() 1146 tbuf, max(i, 0)); in do_proc_control() 1148 if (copy_to_user(ctrl->data, tbuf, i)) { in do_proc_control() 1155 if (copy_from_user(tbuf, ctrl->data, ctrl->wLength)) { in do_proc_control() 1162 tbuf, ctrl->wLength); in do_proc_control() 1167 tbuf, ctrl->wLength, tmo); in do_proc_control() 1179 free_page((unsigned long) tbuf); in do_proc_control() [all …]
|
/kernel/linux/linux-5.10/drivers/i2c/busses/ |
D | i2c-qcom-cci.c | 102 u16 tbuf; /* bus free time between a STOP and START condition */ member 285 val = hw->tbuf; in cci_init() 712 .tbuf = 118, 724 .tbuf = 32, 746 .tbuf = 227, 758 .tbuf = 62, 770 .tbuf = 24,
|
/kernel/linux/linux-5.10/ipc/ |
D | shm.c | 1076 int cmd, struct shmid64_ds *tbuf) in shmctl_stat() argument 1081 memset(tbuf, 0, sizeof(*tbuf)); in shmctl_stat() 1125 kernel_to_ipc64_perm(&shp->shm_perm, &tbuf->shm_perm); in shmctl_stat() 1126 tbuf->shm_segsz = shp->shm_segsz; in shmctl_stat() 1127 tbuf->shm_atime = shp->shm_atim; in shmctl_stat() 1128 tbuf->shm_dtime = shp->shm_dtim; in shmctl_stat() 1129 tbuf->shm_ctime = shp->shm_ctim; in shmctl_stat() 1131 tbuf->shm_atime_high = shp->shm_atim >> 32; in shmctl_stat() 1132 tbuf->shm_dtime_high = shp->shm_dtim >> 32; in shmctl_stat() 1133 tbuf->shm_ctime_high = shp->shm_ctim >> 32; in shmctl_stat() [all …]
|
/kernel/linux/linux-5.10/drivers/crypto/hisilicon/sec2/ |
D | sec_main.c | 492 char tbuf[SEC_DBGFS_VAL_MAX_LEN]; in sec_debug_read() local 511 ret = snprintf(tbuf, SEC_DBGFS_VAL_MAX_LEN, "%u\n", val); in sec_debug_read() 513 return simple_read_from_buffer(buf, count, pos, tbuf, ret); in sec_debug_read() 520 char tbuf[SEC_DBGFS_VAL_MAX_LEN]; in sec_debug_write() local 530 len = simple_write_to_buffer(tbuf, SEC_DBGFS_VAL_MAX_LEN - 1, in sec_debug_write() 535 tbuf[len] = '\0'; in sec_debug_write() 536 if (kstrtoul(tbuf, 0, &val)) in sec_debug_write()
|
/kernel/linux/linux-5.10/drivers/crypto/hisilicon/hpre/ |
D | hpre_main.c | 475 char tbuf[HPRE_DBGFS_VAL_MAX_LEN]; in hpre_ctrl_debug_read() local 495 ret = snprintf(tbuf, HPRE_DBGFS_VAL_MAX_LEN, "%u\n", val); in hpre_ctrl_debug_read() 496 return simple_read_from_buffer(buf, count, pos, tbuf, ret); in hpre_ctrl_debug_read() 503 char tbuf[HPRE_DBGFS_VAL_MAX_LEN]; in hpre_ctrl_debug_write() local 513 len = simple_write_to_buffer(tbuf, HPRE_DBGFS_VAL_MAX_LEN - 1, in hpre_ctrl_debug_write() 518 tbuf[len] = '\0'; in hpre_ctrl_debug_write() 519 if (kstrtoul(tbuf, 0, &val)) in hpre_ctrl_debug_write()
|