Home
last modified time | relevance | path

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

123

/linux/drivers/hwmon/pmbus/
A Dmax20730.c116 char tbuf[DEBUG_FS_DATA_MAX] = { 0 }; in max20730_debugfs_read() local
153 len = strlcpy(tbuf, "125\n", DEBUG_FS_DATA_MAX); in max20730_debugfs_read()
157 len = strlcpy(tbuf, "32\n", DEBUG_FS_DATA_MAX); in max20730_debugfs_read()
206 len = strlcpy(tbuf, "1.0\n", DEBUG_FS_DATA_MAX); in max20730_debugfs_read()
215 len = strlcpy(tbuf, "4\n", DEBUG_FS_DATA_MAX); in max20730_debugfs_read()
217 len = strlcpy(tbuf, "2\n", DEBUG_FS_DATA_MAX); in max20730_debugfs_read()
219 len = strlcpy(tbuf, "1\n", DEBUG_FS_DATA_MAX); in max20730_debugfs_read()
237 len = strlcpy(tbuf, "3\n", DEBUG_FS_DATA_MAX); in max20730_debugfs_read()
239 len = strlcpy(tbuf, "6\n", DEBUG_FS_DATA_MAX); in max20730_debugfs_read()
277 len = scnprintf(tbuf, DEBUG_FS_DATA_MAX, in max20730_debugfs_read()
[all …]
/linux/drivers/video/backlight/
A Dili922x.c159 xfer.tx_buf = tbuf; in ili922x_read_status()
203 xfer_regindex.tx_buf = tbuf; in ili922x_read()
210 tbuf[1] = set_tx_byte(0); in ili922x_read()
211 tbuf[2] = set_tx_byte(reg); in ili922x_read()
221 tbuf[len] = set_tx_byte(0); in ili922x_read()
258 xfer_regindex.tx_buf = tbuf; in ili922x_write()
265 tbuf[1] = set_tx_byte(0); in ili922x_write()
266 tbuf[2] = set_tx_byte(reg); in ili922x_write()
281 xfer_regvalue.tx_buf = tbuf; in ili922x_write()
330 xfer.tx_buf = tbuf; in set_write_to_gram_reg()
[all …]
/linux/arch/powerpc/kernel/
A 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/drivers/tty/
A Dn_hdlc.c277 struct n_hdlc_buf *tbuf; in n_hdlc_send_frames() local
292 while (tbuf) { in n_hdlc_send_frames()
293 pr_debug("sending frame %p, count=%d\n", tbuf, tbuf->count); in n_hdlc_send_frames()
297 actual = tty->ops->write(tty, tbuf->buf, tbuf->count); in n_hdlc_send_frames()
307 actual = tbuf->count; in n_hdlc_send_frames()
309 if (actual == tbuf->count) { in n_hdlc_send_frames()
332 if (!tbuf) in n_hdlc_send_frames()
541 struct n_hdlc_buf *tbuf; in n_hdlc_tty_write() local
561 if (tbuf) in n_hdlc_tty_write()
581 memcpy(tbuf->buf, data, count); in n_hdlc_tty_write()
[all …]
/linux/drivers/char/tpm/
A Dtpm2-space.c74 struct tpm_buf tbuf; in tpm2_load_context() local
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()
118 tpm_buf_destroy(&tbuf); in tpm2_load_context()
125 struct tpm_buf tbuf; in tpm2_save_context() local
139 tpm_buf_destroy(&tbuf); in tpm2_save_context()
142 tpm_buf_destroy(&tbuf); in tpm2_save_context()
147 tpm_buf_destroy(&tbuf); in tpm2_save_context()
154 tpm_buf_destroy(&tbuf); in tpm2_save_context()
[all …]
/linux/drivers/staging/gs_fpgaboot/
A Dgs_fpgaboot.c43 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()
/linux/tools/testing/selftests/net/
A 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/security/integrity/ima/
A Dima_policy.c1965 char tbuf[64] = {0,}; in ima_policy_show() local
2005 snprintf(tbuf, sizeof(tbuf), "0x%lx", entry->fsmagic); in ima_policy_show()
2011 snprintf(tbuf, sizeof(tbuf), "%s", entry->fsname); in ima_policy_show()
2029 snprintf(tbuf, sizeof(tbuf), "%d", entry->pcr); in ima_policy_show()
2030 seq_printf(m, pt(Opt_pcr), tbuf); in ima_policy_show()
2040 snprintf(tbuf, sizeof(tbuf), "%d", __kuid_val(entry->uid)); in ima_policy_show()
2051 snprintf(tbuf, sizeof(tbuf), "%d", __kuid_val(entry->uid)); in ima_policy_show()
2062 snprintf(tbuf, sizeof(tbuf), "%d", __kgid_val(entry->gid)); in ima_policy_show()
2073 snprintf(tbuf, sizeof(tbuf), "%d", __kgid_val(entry->gid)); in ima_policy_show()
2084 snprintf(tbuf, sizeof(tbuf), "%d", __kuid_val(entry->fowner)); in ima_policy_show()
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/
A Ddebugfs.c130 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()
/linux/tools/perf/ui/browsers/
A 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/drivers/scsi/snic/
A Dsnic_trc.c125 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()
/linux/drivers/mtd/ubi/
A 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()
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()
303 err = ubi_eba_write_leb(ubi, vol, lnum, tbuf, off, len); in vol_cdev_direct_write()
[all …]
/linux/drivers/w1/masters/
A Dds2490.c886 u8 *tbuf; in ds9490r_write_block() local
891 tbuf = kmemdup(buf, len, GFP_KERNEL); in ds9490r_write_block()
892 if (!tbuf) in ds9490r_write_block()
895 ds_write_block(dev, tbuf, len); in ds9490r_write_block()
897 kfree(tbuf); in ds9490r_write_block()
904 u8 *tbuf; in ds9490r_read_block() local
909 tbuf = kmalloc(len, GFP_KERNEL); in ds9490r_read_block()
910 if (!tbuf) in ds9490r_read_block()
913 err = ds_read_block(dev, tbuf, len); in ds9490r_read_block()
915 memcpy(buf, tbuf, len); in ds9490r_read_block()
[all …]
/linux/drivers/iio/adc/
A 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/fs/configfs/
A 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/drivers/infiniband/hw/hfi1/
A 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/drivers/comedi/drivers/
A Ddt9812.c244 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()
/linux/drivers/net/wireless/ath/carl9170/
A 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/drivers/usb/core/
A Dmessage.c919 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()
999 tbuf[1], index, buf); in usb_string()
[all …]
A Ddevio.c1150 unsigned char *tbuf; in do_proc_control() local
1170 if (!tbuf) in do_proc_control()
1203 if (copy_to_user(ctrl->data, tbuf, actlen)) { in do_proc_control()
1240 free_page((unsigned long) tbuf); in do_proc_control()
1260 unsigned char *tbuf; in do_proc_bulk() local
1292 tbuf = kmalloc(len1, GFP_KERNEL | __GFP_NOWARN); in do_proc_bulk()
1293 if (!tbuf) in do_proc_bulk()
1302 usb_fill_int_urb(urb, dev, pipe, tbuf, len1, in do_proc_bulk()
1318 if (copy_to_user(bulk->data, tbuf, len2)) { in do_proc_bulk()
1325 if (copy_from_user(tbuf, bulk->data, len1)) { in do_proc_bulk()
[all …]
A 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()
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()
685 tbuf, wLength); in rh_call_control()
[all …]
/linux/ipc/
A Dshm.c1070 int cmd, struct shmid64_ds *tbuf) in shmctl_stat() argument
1075 memset(tbuf, 0, sizeof(*tbuf)); in shmctl_stat()
1120 tbuf->shm_segsz = shp->shm_segsz; in shmctl_stat()
1121 tbuf->shm_atime = shp->shm_atim; in shmctl_stat()
1122 tbuf->shm_dtime = shp->shm_dtim; in shmctl_stat()
1123 tbuf->shm_ctime = shp->shm_ctim; in shmctl_stat()
1125 tbuf->shm_atime_high = shp->shm_atim >> 32; in shmctl_stat()
1126 tbuf->shm_dtime_high = shp->shm_dtim >> 32; in shmctl_stat()
1129 tbuf->shm_cpid = pid_vnr(shp->shm_cprid); in shmctl_stat()
1130 tbuf->shm_lpid = pid_vnr(shp->shm_lprid); in shmctl_stat()
[all …]
/linux/drivers/i2c/busses/
A Di2c-qcom-cci.c102 u16 tbuf; /* bus free time between a STOP and START condition */ member
285 val = hw->tbuf; in cci_init()
703 .tbuf = 118,
715 .tbuf = 32,
737 .tbuf = 227,
749 .tbuf = 62,
761 .tbuf = 24,
/linux/drivers/crypto/hisilicon/zip/
A Dzip_main.c478 char tbuf[HZIP_BUF_SIZE]; in hisi_zip_ctrl_debug_read() local
497 ret = scnprintf(tbuf, sizeof(tbuf), "%u\n", val); in hisi_zip_ctrl_debug_read()
498 return simple_read_from_buffer(buf, count, pos, tbuf, ret); in hisi_zip_ctrl_debug_read()
512 char tbuf[HZIP_BUF_SIZE]; in hisi_zip_ctrl_debug_write() local
522 len = simple_write_to_buffer(tbuf, HZIP_BUF_SIZE - 1, pos, buf, count); in hisi_zip_ctrl_debug_write()
526 tbuf[len] = '\0'; in hisi_zip_ctrl_debug_write()
527 if (kstrtoul(tbuf, 0, &val)) in hisi_zip_ctrl_debug_write()
/linux/drivers/crypto/hisilicon/sec2/
A Dsec_main.c584 char tbuf[SEC_DBGFS_VAL_MAX_LEN]; in sec_debug_read() local
606 ret = snprintf(tbuf, SEC_DBGFS_VAL_MAX_LEN, "%u\n", val); in sec_debug_read()
607 return simple_read_from_buffer(buf, count, pos, tbuf, ret); in sec_debug_read()
619 char tbuf[SEC_DBGFS_VAL_MAX_LEN]; in sec_debug_write() local
630 len = simple_write_to_buffer(tbuf, SEC_DBGFS_VAL_MAX_LEN - 1, in sec_debug_write()
635 tbuf[len] = '\0'; in sec_debug_write()
636 if (kstrtoul(tbuf, 0, &val)) in sec_debug_write()

Completed in 71 milliseconds

123