Home
last modified time | relevance | path

Searched refs:tbuf (Results 1 – 25 of 60) sorted by relevance

123

/Linux-v6.1/drivers/hwmon/pmbus/
Dmax20730.c116 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 …]
/Linux-v6.1/drivers/video/backlight/
Dili922x.c153 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-v6.1/arch/powerpc/kernel/
Dio.c29 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-v6.1/drivers/tty/
Dn_hdlc.c268 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-v6.1/drivers/char/tpm/
Dtpm2-space.c74 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-v6.1/tools/testing/selftests/net/
Dpsock_snd.c52 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-v6.1/drivers/net/ethernet/mellanox/mlx5/core/
Ddebugfs.c135 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()
423 char tbuf[18]; in dbg_read() local
449 ret = snprintf(tbuf, sizeof(tbuf), "%s\n", (const char *)(unsigned long)field); in dbg_read()
451 ret = snprintf(tbuf, sizeof(tbuf), "0x%llx\n", field); in dbg_read()
453 return simple_read_from_buffer(buf, count, pos, tbuf, ret); in dbg_read()
/Linux-v6.1/security/integrity/ima/
Dima_policy.c2026 char tbuf[64] = {0,}; in ima_policy_show() local
2074 snprintf(tbuf, sizeof(tbuf), "0x%lx", entry->fsmagic); in ima_policy_show()
2075 seq_printf(m, pt(Opt_fsmagic), tbuf); in ima_policy_show()
2080 snprintf(tbuf, sizeof(tbuf), "%s", entry->fsname); in ima_policy_show()
2081 seq_printf(m, pt(Opt_fsname), tbuf); in ima_policy_show()
2098 snprintf(tbuf, sizeof(tbuf), "%d", entry->pcr); in ima_policy_show()
2099 seq_printf(m, pt(Opt_pcr), tbuf); in ima_policy_show()
2109 snprintf(tbuf, sizeof(tbuf), "%d", __kuid_val(entry->uid)); in ima_policy_show()
2111 seq_printf(m, pt(Opt_uid_gt), tbuf); in ima_policy_show()
2113 seq_printf(m, pt(Opt_uid_lt), tbuf); in ima_policy_show()
[all …]
/Linux-v6.1/tools/perf/ui/browsers/
Dres_sample.c48 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-v6.1/drivers/scsi/snic/
Dsnic_trc.c111 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-v6.1/drivers/gnss/
Dusb.c96 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-v6.1/drivers/mtd/ubi/
Dcdev.c179 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-v6.1/drivers/w1/masters/
Dds2490.c889 u8 *tbuf; in ds9490r_write_block() local
894 tbuf = kmemdup(buf, len, GFP_KERNEL); in ds9490r_write_block()
895 if (!tbuf) in ds9490r_write_block()
898 ds_write_block(dev, tbuf, len); in ds9490r_write_block()
900 kfree(tbuf); in ds9490r_write_block()
907 u8 *tbuf; in ds9490r_read_block() local
912 tbuf = kmalloc(len, GFP_KERNEL); in ds9490r_read_block()
913 if (!tbuf) in ds9490r_read_block()
916 err = ds_read_block(dev, tbuf, len); in ds9490r_read_block()
918 memcpy(buf, tbuf, len); in ds9490r_read_block()
[all …]
/Linux-v6.1/drivers/iio/adc/
Dad9467.c129 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()
/Linux-v6.1/fs/configfs/
Dfile.c241 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-v6.1/drivers/i2c/busses/
Di2c-qcom-cci.c102 u16 tbuf; /* bus free time between a STOP and START condition */ member
285 val = hw->tbuf; in cci_init()
713 .tbuf = 118,
725 .tbuf = 32,
747 .tbuf = 118,
759 .tbuf = 32,
781 .tbuf = 227,
793 .tbuf = 62,
805 .tbuf = 24,
/Linux-v6.1/drivers/infiniband/hw/hfi1/
Duser_exp_rcv.c18 struct tid_user_buf *tbuf,
611 static int program_rcvarray(struct hfi1_filedata *fd, struct tid_user_buf *tbuf, in program_rcvarray() argument
654 npages = tbuf->psets[setidx].count; in program_rcvarray()
655 pageidx = tbuf->psets[setidx].idx; in program_rcvarray()
657 ret = set_rcvarray_entry(fd, tbuf, in program_rcvarray()
680 struct tid_user_buf *tbuf, in set_rcvarray_entry() argument
689 struct page **pages = tbuf->pages + pageidx; in set_rcvarray_entry()
720 tbuf->vaddr + (pageidx * PAGE_SIZE), npages * PAGE_SIZE, in set_rcvarray_entry()
/Linux-v6.1/drivers/net/wireless/ath/carl9170/
Drx.c879 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-v6.1/drivers/comedi/drivers/
Ddt9812.c243 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-v6.1/drivers/usb/core/
Dmessage.c909 static int usb_get_langid(struct usb_device *dev, unsigned char *tbuf) in usb_get_langid() argument
919 err = usb_string_sub(dev, 0, 0, tbuf); in usb_get_langid()
942 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 …]
Ddevio.c1162 unsigned char *tbuf; in do_proc_control() local
1181 tbuf = (unsigned char *)__get_free_page(GFP_KERNEL); in do_proc_control()
1182 if (!tbuf) in do_proc_control()
1206 usb_fill_control_urb(urb, dev, pipe, (unsigned char *) dr, tbuf, in do_proc_control()
1217 snoop_urb(dev, NULL, pipe, actlen, i, COMPLETE, tbuf, actlen); in do_proc_control()
1219 if (copy_to_user(ctrl->data, tbuf, actlen)) { in do_proc_control()
1226 if (copy_from_user(tbuf, ctrl->data, wLength)) { in do_proc_control()
1232 usb_fill_control_urb(urb, dev, pipe, (unsigned char *) dr, tbuf, in do_proc_control()
1234 snoop_urb(dev, NULL, pipe, wLength, tmo, SUBMIT, tbuf, wLength); in do_proc_control()
1256 free_page((unsigned long) tbuf); in do_proc_control()
[all …]
Dhcd.c488 u8 *tbuf = NULL; in rh_call_control() local
514 tbuf = kzalloc(tbuf_size, GFP_KERNEL); in rh_call_control()
515 if (!tbuf) { in rh_call_control()
520 bufp = tbuf; in rh_call_control()
545 tbuf[0] = (device_may_wakeup(&hcd->self.root_hub->dev) in rh_call_control()
548 tbuf[1] = 0; in rh_call_control()
565 tbuf[0] = 1; in rh_call_control()
634 tbuf[0] = 0; in rh_call_control()
651 tbuf[0] = 0; in rh_call_control()
652 tbuf[1] = 0; in rh_call_control()
[all …]
/Linux-v6.1/ipc/
Dshm.c1086 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-v6.1/drivers/crypto/hisilicon/zip/
Dzip_main.c650 char tbuf[HZIP_BUF_SIZE]; in hisi_zip_ctrl_debug_read() local
669 ret = scnprintf(tbuf, sizeof(tbuf), "%u\n", val); in hisi_zip_ctrl_debug_read()
670 return simple_read_from_buffer(buf, count, pos, tbuf, ret); in hisi_zip_ctrl_debug_read()
684 char tbuf[HZIP_BUF_SIZE]; in hisi_zip_ctrl_debug_write() local
694 len = simple_write_to_buffer(tbuf, HZIP_BUF_SIZE - 1, pos, buf, count); in hisi_zip_ctrl_debug_write()
698 tbuf[len] = '\0'; in hisi_zip_ctrl_debug_write()
699 ret = kstrtoul(tbuf, 0, &val); in hisi_zip_ctrl_debug_write()
/Linux-v6.1/drivers/soc/qcom/
Dcpr.c1240 char tbuf[32]; in cpr_get_fuses() local
1242 snprintf(tbuf, 32, "cpr_ring_osc%d", i + 1); in cpr_get_fuses()
1243 fuses[i].ring_osc = devm_kstrdup(drv->dev, tbuf, GFP_KERNEL); in cpr_get_fuses()
1247 snprintf(tbuf, 32, "cpr_init_voltage%d", i + 1); in cpr_get_fuses()
1248 fuses[i].init_voltage = devm_kstrdup(drv->dev, tbuf, in cpr_get_fuses()
1253 snprintf(tbuf, 32, "cpr_quotient%d", i + 1); in cpr_get_fuses()
1254 fuses[i].quotient = devm_kstrdup(drv->dev, tbuf, GFP_KERNEL); in cpr_get_fuses()
1258 snprintf(tbuf, 32, "cpr_quotient_offset%d", i + 1); in cpr_get_fuses()
1259 fuses[i].quotient_offset = devm_kstrdup(drv->dev, tbuf, in cpr_get_fuses()

123