Home
last modified time | relevance | path

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

12

/Linux-v4.19/drivers/video/backlight/
Dili922x.c155 unsigned char tbuf[CMD_BUFSIZE]; in ili922x_read_status() local
161 xfer.tx_buf = tbuf; in ili922x_read_status()
166 tbuf[0] = set_tx_byte(START_BYTE(ili922x_id, START_RS_INDEX, in ili922x_read_status()
173 tbuf[i] = set_tx_byte(0); /* dummy */ in ili922x_read_status()
198 unsigned char tbuf[CMD_BUFSIZE]; in ili922x_read() local
205 xfer_regindex.tx_buf = tbuf; in ili922x_read()
210 tbuf[0] = set_tx_byte(START_BYTE(ili922x_id, START_RS_INDEX, in ili922x_read()
212 tbuf[1] = set_tx_byte(0); in ili922x_read()
213 tbuf[2] = set_tx_byte(reg); in ili922x_read()
220 tbuf[len++] = set_tx_byte(START_BYTE(ili922x_id, START_RS_REG, in ili922x_read()
[all …]
/Linux-v4.19/arch/powerpc/kernel/
Dio.c33 u8 *tbuf = buf; in _insb() local
42 *tbuf++ = tmp; in _insb()
50 const u8 *tbuf = buf; in _outsb() local
56 *port = *tbuf++; in _outsb()
64 u16 *tbuf = buf; in _insw_ns() local
73 *tbuf++ = tmp; in _insw_ns()
81 const u16 *tbuf = buf; in _outsw_ns() local
87 *port = *tbuf++; in _outsw_ns()
95 u32 *tbuf = buf; in _insl_ns() local
104 *tbuf++ = tmp; in _insl_ns()
[all …]
/Linux-v4.19/drivers/char/tpm/
Dtpm2-space.c73 struct tpm_buf tbuf; in tpm2_load_context() local
78 rc = tpm_buf_init(&tbuf, TPM2_ST_NO_SESSIONS, TPM2_CC_CONTEXT_LOAD); in tpm2_load_context()
84 tpm_buf_append(&tbuf, &buf[*offset], body_size); in tpm2_load_context()
86 rc = tpm_transmit_cmd(chip, NULL, tbuf.data, PAGE_SIZE, 4, 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-v4.19/drivers/tty/
Dn_hdlc.c379 struct n_hdlc_buf *tbuf; in n_hdlc_send_frames() local
395 tbuf = n_hdlc_buf_get(&n_hdlc->tx_buf_list); in n_hdlc_send_frames()
396 while (tbuf) { in n_hdlc_send_frames()
399 __FILE__,__LINE__,tbuf,tbuf->count); in n_hdlc_send_frames()
403 actual = tty->ops->write(tty, tbuf->buf, tbuf->count); in n_hdlc_send_frames()
407 n_hdlc_buf_return(&n_hdlc->tx_buf_list, tbuf); in n_hdlc_send_frames()
413 actual = tbuf->count; in n_hdlc_send_frames()
415 if (actual == tbuf->count) { in n_hdlc_send_frames()
418 __FILE__,__LINE__,tbuf); in n_hdlc_send_frames()
421 n_hdlc_buf_put(&n_hdlc->tx_free_buf_list, tbuf); in n_hdlc_send_frames()
[all …]
/Linux-v4.19/drivers/staging/gs_fpgaboot/
Dgs_fpgaboot.c53 u8 tbuf[2]; in readinfo_bitstream() local
57 read_bitstream(bitdata, tbuf, offset, 1); in readinfo_bitstream()
60 read_bitstream(bitdata, tbuf, offset, 2); in readinfo_bitstream()
62 len = get_unaligned_be16(tbuf); in readinfo_bitstream()
79 u8 tbuf[4]; in readlength_bitstream() local
82 read_bitstream(bitdata, tbuf, offset, 1); in readlength_bitstream()
85 if (tbuf[0] != 'e') { in readlength_bitstream()
86 pr_err("error: length section is not 'e', but %c\n", tbuf[0]); in readlength_bitstream()
91 read_bitstream(bitdata, tbuf, offset, 4); in readlength_bitstream()
93 *lendata = get_unaligned_be32(tbuf); in readlength_bitstream()
/Linux-v4.19/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-v4.19/drivers/scsi/snic/
Dsnic_trc.c125 void *tbuf = NULL; in snic_trc_init() local
129 tbuf = vmalloc(tbuf_sz); in snic_trc_init()
130 if (!tbuf) { in snic_trc_init()
138 memset(tbuf, 0, tbuf_sz); in snic_trc_init()
139 trc->buf = (struct snic_trc_data *) tbuf; in snic_trc_init()
/Linux-v4.19/security/integrity/ima/
Dima_policy.c1124 char tbuf[64] = {0,}; in ima_policy_show() local
1161 snprintf(tbuf, sizeof(tbuf), "0x%lx", entry->fsmagic); in ima_policy_show()
1162 seq_printf(m, pt(Opt_fsmagic), tbuf); in ima_policy_show()
1167 snprintf(tbuf, sizeof(tbuf), "%s", entry->fsname); in ima_policy_show()
1168 seq_printf(m, pt(Opt_fsname), tbuf); in ima_policy_show()
1173 snprintf(tbuf, sizeof(tbuf), "%d", entry->pcr); in ima_policy_show()
1174 seq_printf(m, pt(Opt_pcr), tbuf); in ima_policy_show()
1184 snprintf(tbuf, sizeof(tbuf), "%d", __kuid_val(entry->uid)); in ima_policy_show()
1186 seq_printf(m, pt(Opt_uid_gt), tbuf); in ima_policy_show()
1188 seq_printf(m, pt(Opt_uid_lt), tbuf); in ima_policy_show()
[all …]
/Linux-v4.19/drivers/net/ethernet/mellanox/mlx5/core/
Ddebugfs.c151 char tbuf[22]; in average_read() local
158 ret = snprintf(tbuf, sizeof(tbuf), "%llu\n", field); in average_read()
159 return simple_read_from_buffer(buf, count, pos, tbuf, ret); in average_read()
431 char tbuf[18]; in dbg_read() local
457 ret = snprintf(tbuf, sizeof(tbuf), "%s\n", (const char *)(unsigned long)field); in dbg_read()
459 ret = snprintf(tbuf, sizeof(tbuf), "0x%llx\n", field); in dbg_read()
461 return simple_read_from_buffer(buf, count, pos, tbuf, ret); in dbg_read()
/Linux-v4.19/drivers/mtd/ubi/
Dcdev.c192 void *tbuf; in vol_cdev_read() local
217 tbuf = vmalloc(tbuf_size); in vol_cdev_read()
218 if (!tbuf) in vol_cdev_read()
230 err = ubi_eba_read_leb(ubi, vol, lnum, tbuf, off, len, 0); in vol_cdev_read()
243 err = copy_to_user(buf, tbuf, len); in vol_cdev_read()
253 vfree(tbuf); in vol_cdev_read()
269 char *tbuf; in vol_cdev_direct_write() local
298 tbuf = vmalloc(tbuf_size); in vol_cdev_direct_write()
299 if (!tbuf) in vol_cdev_direct_write()
310 err = copy_from_user(tbuf, buf, len); in vol_cdev_direct_write()
[all …]
/Linux-v4.19/drivers/w1/masters/
Dds2490.c885 u8 *tbuf; in ds9490r_write_block() local
890 tbuf = kmemdup(buf, len, GFP_KERNEL); in ds9490r_write_block()
891 if (!tbuf) in ds9490r_write_block()
894 ds_write_block(dev, tbuf, len); in ds9490r_write_block()
896 kfree(tbuf); in ds9490r_write_block()
903 u8 *tbuf; in ds9490r_read_block() local
908 tbuf = kmalloc(len, GFP_KERNEL); in ds9490r_read_block()
909 if (!tbuf) in ds9490r_read_block()
912 err = ds_read_block(dev, tbuf, len); in ds9490r_read_block()
914 memcpy(buf, tbuf, len); in ds9490r_read_block()
[all …]
/Linux-v4.19/fs/configfs/
Dfile.c318 void *tbuf = NULL; in configfs_write_bin_file() local
339 tbuf = vmalloc(*ppos + count); in configfs_write_bin_file()
340 if (tbuf == NULL) { in configfs_write_bin_file()
347 memcpy(tbuf, buffer->bin_buffer, in configfs_write_bin_file()
353 memset(tbuf + buffer->bin_buffer_size, 0, in configfs_write_bin_file()
355 buffer->bin_buffer = tbuf; in configfs_write_bin_file()
/Linux-v4.19/drivers/net/wireless/ath/carl9170/
Drx.c878 u8 *tbuf; in carl9170_rx_stream() local
880 tbuf = buf; in carl9170_rx_stream()
884 rx_stream = (void *) tbuf; in carl9170_rx_stream()
904 __carl9170_rx(ar, tbuf, tlen); in carl9170_rx_stream()
919 skb_put_data(ar->rx_failover, tbuf, tlen); in carl9170_rx_stream()
961 skb_put_data(ar->rx_failover, tbuf, tlen); in carl9170_rx_stream()
967 tbuf += wlen + 4; in carl9170_rx_stream()
/Linux-v4.19/ipc/
Dshm.c981 int cmd, struct shmid64_ds *tbuf) in shmctl_stat() argument
986 memset(tbuf, 0, sizeof(*tbuf)); in shmctl_stat()
1030 kernel_to_ipc64_perm(&shp->shm_perm, &tbuf->shm_perm); in shmctl_stat()
1031 tbuf->shm_segsz = shp->shm_segsz; in shmctl_stat()
1032 tbuf->shm_atime = shp->shm_atim; in shmctl_stat()
1033 tbuf->shm_dtime = shp->shm_dtim; in shmctl_stat()
1034 tbuf->shm_ctime = shp->shm_ctim; in shmctl_stat()
1036 tbuf->shm_atime_high = shp->shm_atim >> 32; in shmctl_stat()
1037 tbuf->shm_dtime_high = shp->shm_dtim >> 32; in shmctl_stat()
1038 tbuf->shm_ctime_high = shp->shm_ctim >> 32; in shmctl_stat()
[all …]
/Linux-v4.19/drivers/infiniband/hw/hfi1/
Duser_exp_rcv.c59 struct tid_user_buf *tbuf,
678 static int program_rcvarray(struct hfi1_filedata *fd, struct tid_user_buf *tbuf, in program_rcvarray() argument
721 npages = tbuf->psets[setidx].count; in program_rcvarray()
722 pageidx = tbuf->psets[setidx].idx; in program_rcvarray()
724 ret = set_rcvarray_entry(fd, tbuf, in program_rcvarray()
747 struct tid_user_buf *tbuf, in set_rcvarray_entry() argument
756 struct page **pages = tbuf->pages + pageidx; in set_rcvarray_entry()
777 node->mmu.addr = tbuf->vaddr + (pageidx * PAGE_SIZE); in set_rcvarray_entry()
/Linux-v4.19/drivers/usb/core/
Dmessage.c759 static int usb_get_langid(struct usb_device *dev, unsigned char *tbuf) in usb_get_langid() argument
769 err = usb_string_sub(dev, 0, 0, tbuf); in usb_get_langid()
792 dev->string_langid = tbuf[2] | (tbuf[3] << 8); in usb_get_langid()
818 unsigned char *tbuf; in usb_string() local
826 tbuf = kmalloc(256, GFP_NOIO); in usb_string()
827 if (!tbuf) in usb_string()
830 err = usb_get_langid(dev, tbuf); in usb_string()
834 err = usb_string_sub(dev, dev->string_langid, index, tbuf); in usb_string()
839 err = utf16s_to_utf8s((wchar_t *) &tbuf[2], (err - 2) / 2, in usb_string()
843 if (tbuf[1] != USB_DT_STRING) in usb_string()
[all …]
Ddevio.c1068 unsigned char *tbuf; in proc_control() local
1085 tbuf = (unsigned char *)__get_free_page(GFP_KERNEL); in proc_control()
1086 if (!tbuf) { in proc_control()
1108 tbuf, ctrl.wLength, tmo); in proc_control()
1111 tbuf, max(i, 0)); in proc_control()
1113 if (copy_to_user(ctrl.data, tbuf, i)) { in proc_control()
1120 if (copy_from_user(tbuf, ctrl.data, ctrl.wLength)) { in proc_control()
1127 tbuf, ctrl.wLength); in proc_control()
1132 tbuf, ctrl.wLength, tmo); in proc_control()
1144 free_page((unsigned long) tbuf); in proc_control()
[all …]
Dhcd.c484 u8 *tbuf = NULL; in rh_call_control() local
510 tbuf = kzalloc(tbuf_size, GFP_KERNEL); in rh_call_control()
511 if (!tbuf) { in rh_call_control()
516 bufp = tbuf; in rh_call_control()
541 tbuf[0] = (device_may_wakeup(&hcd->self.root_hub->dev) in rh_call_control()
544 tbuf[1] = 0; in rh_call_control()
561 tbuf[0] = 1; in rh_call_control()
630 tbuf[0] = 0; in rh_call_control()
647 tbuf[0] = 0; in rh_call_control()
648 tbuf[1] = 0; in rh_call_control()
[all …]
/Linux-v4.19/net/sunrpc/auth_gss/
Dsvcauth_gss.c1320 char tbuf[20]; in write_gssp() local
1324 if (*ppos || count > sizeof(tbuf)-1) in write_gssp()
1326 if (copy_from_user(tbuf, buf, count)) in write_gssp()
1329 tbuf[count] = 0; in write_gssp()
1330 res = kstrtoul(tbuf, 0, &i); in write_gssp()
1350 char tbuf[10]; in read_gssp() local
1353 snprintf(tbuf, sizeof(tbuf), "%d\n", sn->use_gss_proxy); in read_gssp()
1354 len = strlen(tbuf); in read_gssp()
1360 if (copy_to_user(buf, (void *)(tbuf+p), len)) in read_gssp()
/Linux-v4.19/net/sunrpc/
Dcache.c1440 char tbuf[22]; in read_flush() local
1443 len = snprintf(tbuf, sizeof(tbuf), "%lu\n", in read_flush()
1445 return simple_read_from_buffer(buf, count, ppos, tbuf, len); in read_flush()
1452 char tbuf[20]; in write_flush() local
1456 if (*ppos || count > sizeof(tbuf)-1) in write_flush()
1458 if (copy_from_user(tbuf, buf, count)) in write_flush()
1460 tbuf[count] = 0; in write_flush()
1461 simple_strtoul(tbuf, &ep, 0); in write_flush()
/Linux-v4.19/net/ipv4/
Darp.c1346 char tbuf[16]; in arp_format_neigh_entry() local
1368 sprintf(tbuf, "%pI4", n->primary_key); in arp_format_neigh_entry()
1370 tbuf, hatype, arp_state_to_flags(n), hbuffer, dev->name); in arp_format_neigh_entry()
1379 char tbuf[16]; in arp_format_pneigh_entry() local
1381 sprintf(tbuf, "%pI4", n->key); in arp_format_pneigh_entry()
1383 tbuf, hatype, ATF_PUBL | ATF_PERM, "00:00:00:00:00:00", in arp_format_pneigh_entry()
/Linux-v4.19/drivers/net/wireless/ath/ath6kl/
Dsdio.c413 u8 *tbuf = NULL; in ath6kl_sdio_read_write_sync() local
424 tbuf = ar_sdio->dma_buffer; in ath6kl_sdio_read_write_sync()
427 memcpy(tbuf, buf, len); in ath6kl_sdio_read_write_sync()
431 tbuf = buf; in ath6kl_sdio_read_write_sync()
434 ret = ath6kl_sdio_io(ar_sdio->func, request, addr, tbuf, len); in ath6kl_sdio_read_write_sync()
436 memcpy(buf, tbuf, len); in ath6kl_sdio_read_write_sync()
/Linux-v4.19/drivers/misc/cxl/
Dguest.c679 void *tbuf = NULL; in guest_afu_read_err_buffer() local
682 tbuf = (void *) get_zeroed_page(GFP_KERNEL); in guest_afu_read_err_buffer()
683 if (!tbuf) in guest_afu_read_err_buffer()
688 virt_to_phys(tbuf), in guest_afu_read_err_buffer()
695 memcpy(buf, tbuf, count); in guest_afu_read_err_buffer()
697 free_page((u64)tbuf); in guest_afu_read_err_buffer()
/Linux-v4.19/scripts/kconfig/lxdialog/
Dtextbox.c56 int dialog_textbox(const char *title, char *tbuf, int initial_height, in dialog_textbox() argument
69 buf = tbuf; in dialog_textbox()
/Linux-v4.19/drivers/media/usb/pvrusb2/
Dpvrusb2-v4l2.c1102 char *tbuf; in pvr2_v4l2_read() local
1107 tbuf = kmalloc(PAGE_SIZE,GFP_KERNEL); in pvr2_v4l2_read()
1108 if (!tbuf) return -ENOMEM; in pvr2_v4l2_read()
1113 c2 = pvr2_hdw_cpufw_get(hdw,offs,tbuf,c1); in pvr2_v4l2_read()
1119 if (copy_to_user(buff,tbuf,c2)) { in pvr2_v4l2_read()
1129 kfree(tbuf); in pvr2_v4l2_read()

12