/linux-6.6.21/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 …]
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/drivers/tty/ |
D | n_hdlc.c | 268 struct n_hdlc_buf *tbuf; in n_hdlc_send_frames() local 282 tbuf = n_hdlc_buf_get(&n_hdlc->tx_buf_list); in n_hdlc_send_frames() 283 while (tbuf) { in n_hdlc_send_frames() 284 pr_debug("sending frame %p, count=%d\n", tbuf, tbuf->count); in n_hdlc_send_frames() 288 actual = tty->ops->write(tty, tbuf->buf, tbuf->count); in n_hdlc_send_frames() 292 n_hdlc_buf_return(&n_hdlc->tx_buf_list, tbuf); in n_hdlc_send_frames() 298 actual = tbuf->count; in n_hdlc_send_frames() 300 if (actual == tbuf->count) { in n_hdlc_send_frames() 301 pr_debug("frame %p completed\n", tbuf); in n_hdlc_send_frames() 304 n_hdlc_buf_put(&n_hdlc->tx_free_buf_list, tbuf); in n_hdlc_send_frames() [all …]
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/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()
|
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/ |
D | debugfs.c | 135 char tbuf[22]; in average_read() local 142 ret = snprintf(tbuf, sizeof(tbuf), "%llu\n", field); in average_read() 143 return simple_read_from_buffer(buf, count, pos, tbuf, ret); in average_read() 173 char tbuf[6]; in slots_read() local 181 ret = snprintf(tbuf, sizeof(tbuf), "%d\n", field); in slots_read() 182 return simple_read_from_buffer(buf, count, pos, tbuf, ret); in slots_read() 453 char tbuf[18]; in dbg_read() local 479 ret = snprintf(tbuf, sizeof(tbuf), "%s\n", (const char *)(unsigned long)field); in dbg_read() 481 ret = snprintf(tbuf, sizeof(tbuf), "0x%llx\n", field); in dbg_read() 483 return simple_read_from_buffer(buf, count, pos, tbuf, ret); in dbg_read()
|
/linux-6.6.21/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()
|
/linux-6.6.21/security/integrity/ima/ |
D | ima_policy.c | 2072 char tbuf[64] = {0,}; in ima_policy_show() local 2120 snprintf(tbuf, sizeof(tbuf), "0x%lx", entry->fsmagic); in ima_policy_show() 2121 seq_printf(m, pt(Opt_fsmagic), tbuf); in ima_policy_show() 2126 snprintf(tbuf, sizeof(tbuf), "%s", entry->fsname); in ima_policy_show() 2127 seq_printf(m, pt(Opt_fsname), tbuf); in ima_policy_show() 2144 snprintf(tbuf, sizeof(tbuf), "%d", entry->pcr); in ima_policy_show() 2145 seq_printf(m, pt(Opt_pcr), tbuf); in ima_policy_show() 2155 snprintf(tbuf, sizeof(tbuf), "%d", __kuid_val(entry->uid)); in ima_policy_show() 2157 seq_printf(m, pt(Opt_uid_gt), tbuf); in ima_policy_show() 2159 seq_printf(m, pt(Opt_uid_lt), tbuf); in ima_policy_show() [all …]
|
/linux-6.6.21/drivers/hwmon/pmbus/ |
D | max20730.c | 116 char tbuf[DEBUG_FS_DATA_MAX] = { 0 }; in max20730_debugfs_read() local 117 char *result = tbuf; in max20730_debugfs_read() 126 len = scnprintf(tbuf, DEBUG_FS_DATA_MAX, "%d.%d\n", in max20730_debugfs_read() 145 len = scnprintf(tbuf, DEBUG_FS_DATA_MAX, "%d\n", ret); in max20730_debugfs_read() 227 len = scnprintf(tbuf, DEBUG_FS_DATA_MAX, "%d\n", ret); in max20730_debugfs_read() 245 len = scnprintf(tbuf, DEBUG_FS_DATA_MAX, "%d\n", ret); in max20730_debugfs_read() 251 len = scnprintf(tbuf, DEBUG_FS_DATA_MAX, "%d\n", ret); in max20730_debugfs_read() 257 len = scnprintf(tbuf, DEBUG_FS_DATA_MAX, "%d\n", ret); in max20730_debugfs_read() 264 len = scnprintf(tbuf, DEBUG_FS_DATA_MAX, "%d\n", ret); in max20730_debugfs_read() 270 len = scnprintf(tbuf, DEBUG_FS_DATA_MAX, "%d\n", ret); in max20730_debugfs_read() [all …]
|
/linux-6.6.21/drivers/scsi/snic/ |
D | snic_trc.c | 111 void *tbuf = NULL; in snic_trc_init() local 115 tbuf = vzalloc(tbuf_sz); in snic_trc_init() 116 if (!tbuf) { in snic_trc_init() 124 trc->buf = (struct snic_trc_data *) tbuf; in snic_trc_init()
|
/linux-6.6.21/drivers/gnss/ |
D | usb.c | 96 void *tbuf; in gnss_usb_write_raw() local 99 tbuf = kmemdup(buf, count, GFP_KERNEL); in gnss_usb_write_raw() 100 if (!tbuf) in gnss_usb_write_raw() 103 ret = usb_bulk_msg(gusb->udev, gusb->write_pipe, tbuf, count, NULL, in gnss_usb_write_raw() 105 kfree(tbuf); in gnss_usb_write_raw()
|
/linux-6.6.21/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 …]
|
/linux-6.6.21/drivers/w1/masters/ |
D | ds2490.c | 894 u8 *tbuf; in ds9490r_write_block() local 899 tbuf = kmemdup(buf, len, GFP_KERNEL); in ds9490r_write_block() 900 if (!tbuf) in ds9490r_write_block() 903 ds_write_block(dev, tbuf, len); in ds9490r_write_block() 905 kfree(tbuf); in ds9490r_write_block() 912 u8 *tbuf; in ds9490r_read_block() local 917 tbuf = kmalloc(len, GFP_KERNEL); in ds9490r_read_block() 918 if (!tbuf) in ds9490r_read_block() 921 err = ds_read_block(dev, tbuf, len); in ds9490r_read_block() 923 memcpy(buf, tbuf, len); in ds9490r_read_block() [all …]
|
/linux-6.6.21/fs/configfs/ |
D | file.c | 241 void *tbuf = NULL; in configfs_bin_write_iter() local 262 tbuf = vmalloc(end_offset); in configfs_bin_write_iter() 263 if (tbuf == NULL) { in configfs_bin_write_iter() 270 memcpy(tbuf, buffer->bin_buffer, in configfs_bin_write_iter() 276 memset(tbuf + buffer->bin_buffer_size, 0, in configfs_bin_write_iter() 278 buffer->bin_buffer = tbuf; in configfs_bin_write_iter()
|
/linux-6.6.21/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() 710 .tbuf = 118, 722 .tbuf = 32, 744 .tbuf = 118, 756 .tbuf = 32, 778 .tbuf = 227, 790 .tbuf = 62, 802 .tbuf = 24,
|
/linux-6.6.21/drivers/iio/adc/ |
D | ad9467.c | 132 unsigned char tbuf[2], rbuf[1]; in ad9467_spi_read() local 135 tbuf[0] = 0x80 | (reg >> 8); in ad9467_spi_read() 136 tbuf[1] = reg & 0xFF; in ad9467_spi_read() 139 tbuf, ARRAY_SIZE(tbuf), in ad9467_spi_read()
|
/linux-6.6.21/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()
|
/linux-6.6.21/drivers/comedi/drivers/ |
D | dt9812.c | 243 void *tbuf; in dt9812_read_info() local 247 tbuf = kzalloc(tbuf_size, GFP_KERNEL); in dt9812_read_info() 248 if (!tbuf) in dt9812_read_info() 251 cmd = tbuf; in dt9812_read_info() 265 tbuf, buf_size, &count, DT9812_USB_TIMEOUT); in dt9812_read_info() 268 memcpy(buf, tbuf, buf_size); in dt9812_read_info() 273 kfree(tbuf); in dt9812_read_info()
|
/linux-6.6.21/block/ |
D | early-lookup.c | 258 char tbuf[BDEVT_SIZE]; in bdevt_str() local 259 snprintf(tbuf, BDEVT_SIZE, "%02x%02x", MAJOR(devt), MINOR(devt)); in bdevt_str() 260 snprintf(buf, BDEVT_SIZE, "%-9s", tbuf); in bdevt_str()
|
/linux-6.6.21/drivers/infiniband/hw/hfi1/ |
D | user_exp_rcv.c | 18 struct tid_user_buf *tbuf, 656 static int program_rcvarray(struct hfi1_filedata *fd, struct tid_user_buf *tbuf, in program_rcvarray() argument 699 npages = tbuf->psets[setidx].count; in program_rcvarray() 700 pageidx = tbuf->psets[setidx].idx; in program_rcvarray() 702 ret = set_rcvarray_entry(fd, tbuf, in program_rcvarray() 724 struct tid_user_buf *tbuf, in set_rcvarray_entry() argument 733 struct page **pages = tbuf->pages + pageidx; in set_rcvarray_entry() 765 tbuf->vaddr + (pageidx * PAGE_SIZE), npages * PAGE_SIZE, in set_rcvarray_entry()
|
/linux-6.6.21/ipc/ |
D | shm.c | 1086 int cmd, struct shmid64_ds *tbuf) in shmctl_stat() argument 1091 memset(tbuf, 0, sizeof(*tbuf)); in shmctl_stat() 1135 kernel_to_ipc64_perm(&shp->shm_perm, &tbuf->shm_perm); in shmctl_stat() 1136 tbuf->shm_segsz = shp->shm_segsz; in shmctl_stat() 1137 tbuf->shm_atime = shp->shm_atim; in shmctl_stat() 1138 tbuf->shm_dtime = shp->shm_dtim; in shmctl_stat() 1139 tbuf->shm_ctime = shp->shm_ctim; in shmctl_stat() 1141 tbuf->shm_atime_high = shp->shm_atim >> 32; in shmctl_stat() 1142 tbuf->shm_dtime_high = shp->shm_dtim >> 32; in shmctl_stat() 1143 tbuf->shm_ctime_high = shp->shm_ctim >> 32; in shmctl_stat() [all …]
|
/linux-6.6.21/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() 970 unsigned char *tbuf; in usb_string() local 980 tbuf = kmalloc(256, GFP_NOIO); in usb_string() 981 if (!tbuf) in usb_string() 984 err = usb_get_langid(dev, tbuf); in usb_string() 988 err = usb_string_sub(dev, dev->string_langid, index, tbuf); in usb_string() 993 err = utf16s_to_utf8s((wchar_t *) &tbuf[2], (err - 2) / 2, in usb_string() 997 if (tbuf[1] != USB_DT_STRING) in usb_string() [all …]
|
D | devio.c | 1171 unsigned char *tbuf; in do_proc_control() local 1190 tbuf = (unsigned char *)__get_free_page(GFP_KERNEL); in do_proc_control() 1191 if (!tbuf) in do_proc_control() 1215 usb_fill_control_urb(urb, dev, pipe, (unsigned char *) dr, tbuf, in do_proc_control() 1226 snoop_urb(dev, NULL, pipe, actlen, i, COMPLETE, tbuf, actlen); in do_proc_control() 1228 if (copy_to_user(ctrl->data, tbuf, actlen)) { in do_proc_control() 1235 if (copy_from_user(tbuf, ctrl->data, wLength)) { in do_proc_control() 1241 usb_fill_control_urb(urb, dev, pipe, (unsigned char *) dr, tbuf, in do_proc_control() 1243 snoop_urb(dev, NULL, pipe, wLength, tmo, SUBMIT, tbuf, wLength); in do_proc_control() 1265 free_page((unsigned long) tbuf); in do_proc_control() [all …]
|
/linux-6.6.21/drivers/crypto/hisilicon/zip/ |
D | zip_main.c | 696 char tbuf[HZIP_BUF_SIZE]; in hisi_zip_ctrl_debug_read() local 715 ret = scnprintf(tbuf, sizeof(tbuf), "%u\n", val); in hisi_zip_ctrl_debug_read() 716 return simple_read_from_buffer(buf, count, pos, tbuf, ret); in hisi_zip_ctrl_debug_read() 730 char tbuf[HZIP_BUF_SIZE]; in hisi_zip_ctrl_debug_write() local 740 len = simple_write_to_buffer(tbuf, HZIP_BUF_SIZE - 1, pos, buf, count); in hisi_zip_ctrl_debug_write() 744 tbuf[len] = '\0'; in hisi_zip_ctrl_debug_write() 745 ret = kstrtoul(tbuf, 0, &val); in hisi_zip_ctrl_debug_write()
|
/linux-6.6.21/drivers/crypto/hisilicon/ |
D | debugfs.c | 698 char tbuf[QM_DBG_TMP_BUF_LEN]; in qm_debug_read() local 723 ret = scnprintf(tbuf, QM_DBG_TMP_BUF_LEN, "%u\n", val); in qm_debug_read() 724 return simple_read_from_buffer(buf, count, pos, tbuf, ret); in qm_debug_read() 739 char tbuf[QM_DBG_TMP_BUF_LEN]; in qm_debug_write() local 748 len = simple_write_to_buffer(tbuf, QM_DBG_TMP_BUF_LEN - 1, pos, buf, in qm_debug_write() 753 tbuf[len] = '\0'; in qm_debug_write() 754 if (kstrtoul(tbuf, 0, &val)) in qm_debug_write()
|