| /linux/drivers/video/backlight/ |
| H A D | ili922x.c | 152 unsigned char tbuf[CMD_BUFSIZE]; in ili922x_read_status() local 158 xfer.tx_buf = tbuf; in ili922x_read_status() 163 tbuf[0] = set_tx_byte(START_BYTE(ili922x_id, START_RS_INDEX, in ili922x_read_status() 170 tbuf[i] = set_tx_byte(0); /* dummy */ in ili922x_read_status() 195 unsigned char tbuf[CMD_BUFSIZE]; in ili922x_read() local 202 xfer_regindex.tx_buf = tbuf; in ili922x_read() 207 tbuf[0] = set_tx_byte(START_BYTE(ili922x_id, START_RS_INDEX, in ili922x_read() 209 tbuf[1] = set_tx_byte(0); in ili922x_read() 210 tbuf[2] = set_tx_byte(reg); in ili922x_read() 217 tbuf[len++] = set_tx_byte(START_BYTE(ili922x_id, START_RS_REG, in ili922x_read() [all …]
|
| /linux/drivers/tty/ |
| H A D | n_hdlc.c | 268 struct n_hdlc_buf *tbuf; in n_hdlc_send_frames() local 281 tbuf = n_hdlc_buf_get(&n_hdlc->tx_buf_list); in n_hdlc_send_frames() 282 while (tbuf) { in n_hdlc_send_frames() 283 pr_debug("sending frame %p, count=%zu\n", tbuf, tbuf->count); in n_hdlc_send_frames() 287 actual = tty->ops->write(tty, tbuf->buf, tbuf->count); in n_hdlc_send_frames() 291 n_hdlc_buf_return(&n_hdlc->tx_buf_list, tbuf); in n_hdlc_send_frames() 297 actual = tbuf->count; in n_hdlc_send_frames() 299 if (actual == tbuf->count) { in n_hdlc_send_frames() 300 pr_debug("frame %p completed\n", tbuf); in n_hdlc_send_frames() 303 n_hdlc_buf_put(&n_hdlc->tx_free_buf_list, tbuf); in n_hdlc_send_frames() [all …]
|
| /linux/drivers/char/tpm/ |
| H A 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() 109 tpm_buf_destroy(&tbuf); in tpm2_load_context() 114 tpm_buf_destroy(&tbuf); in tpm2_load_context() 118 *handle = be32_to_cpup((__be32 *)&tbuf.data[TPM_HEADER_SIZE]); in tpm2_load_context() 121 tpm_buf_destroy(&tbuf); in tpm2_load_context() [all …]
|
| /linux/tools/testing/selftests/net/ |
| H A 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/security/integrity/ima/ |
| H A D | ima_policy.c | 2114 char tbuf[64] = {0,}; in ima_policy_show() 2164 snprintf(tbuf, sizeof(tbuf), "0x%lx", entry->fsmagic); in ima_policy_show() 2165 seq_printf(m, pt(Opt_fsmagic), tbuf); in ima_policy_show() 2170 snprintf(tbuf, sizeof(tbuf), "%s", entry->fsname); in ima_policy_show() 2171 seq_printf(m, pt(Opt_fsname), tbuf); in ima_policy_show() 2176 snprintf(tbuf, sizeof(tbuf), "%s", entry->fs_subtype); in ima_policy_show() 2177 seq_printf(m, pt(Opt_fs_subtype), tbuf); in ima_policy_show() 2116 char tbuf[64] = {0,}; ima_policy_show() local [all...] |
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A 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() 183 char tbuf[6]; in slots_read() local 191 ret = snprintf(tbuf, sizeof(tbuf), "%d\n", field); in slots_read() 192 return simple_read_from_buffer(buf, count, pos, tbuf, ret); in slots_read() 465 char tbuf[18]; in dbg_read() local 491 ret = snprintf(tbuf, sizeof(tbuf), "%s\n", (const char *)(unsigned long)field); in dbg_read() 493 ret = snprintf(tbuf, sizeof(tbuf), "0x%llx\n", field); in dbg_read() 495 return simple_read_from_buffer(buf, count, pos, tbuf, ret); in dbg_read()
|
| /linux/tools/perf/ui/browsers/ |
| H A 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/drivers/scsi/snic/ |
| H A D | snic_trc.c | 110 void *tbuf = NULL; in snic_trc_init() local 114 tbuf = vzalloc(tbuf_sz); in snic_trc_init() 115 if (!tbuf) { in snic_trc_init() 123 trc->buf = (struct snic_trc_data *) tbuf; in snic_trc_init()
|
| /linux/drivers/gnss/ |
| H A 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/drivers/w1/masters/ |
| H A D | ds2490.c | 911 u8 *tbuf; in ds9490r_write_block() local 916 tbuf = kmemdup(buf, len, GFP_KERNEL); in ds9490r_write_block() 917 if (!tbuf) in ds9490r_write_block() 920 ds_write_block(dev, tbuf, len); in ds9490r_write_block() 922 kfree(tbuf); in ds9490r_write_block() 929 u8 *tbuf; in ds9490r_read_block() local 934 tbuf = kmalloc(len, GFP_KERNEL); in ds9490r_read_block() 935 if (!tbuf) in ds9490r_read_block() 938 err = ds_read_block(dev, tbuf, len); in ds9490r_read_block() 940 memcpy(buf, tbuf, len); in ds9490r_read_block() [all …]
|
| /linux/drivers/mtd/ubi/ |
| H A 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/fs/configfs/ |
| H A 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/drivers/comedi/drivers/ |
| H A 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/ipc/ |
| H A D | shm.c | 1083 int cmd, struct shmid64_ds *tbuf) in shmctl_stat() argument 1088 memset(tbuf, 0, sizeof(*tbuf)); in shmctl_stat() 1132 kernel_to_ipc64_perm(&shp->shm_perm, &tbuf->shm_perm); in shmctl_stat() 1133 tbuf->shm_segsz = shp->shm_segsz; in shmctl_stat() 1134 tbuf->shm_atime = shp->shm_atim; in shmctl_stat() 1135 tbuf->shm_dtime = shp->shm_dtim; in shmctl_stat() 1136 tbuf->shm_ctime = shp->shm_ctim; in shmctl_stat() 1138 tbuf->shm_atime_high = shp->shm_atim >> 32; in shmctl_stat() 1139 tbuf->shm_dtime_high = shp->shm_dtim >> 32; in shmctl_stat() 1140 tbuf->shm_ctime_high = shp->shm_ctim >> 32; in shmctl_stat() [all …]
|
| /linux/arch/powerpc/kexec/ |
| H A D | file_load_64.c | 79 __be64 *tbuf; in check_realloc_usable_mem() local 85 tbuf = krealloc(um_info->buf, new_size, GFP_KERNEL); in check_realloc_usable_mem() 86 if (tbuf) { in check_realloc_usable_mem() 87 um_info->buf = tbuf; in check_realloc_usable_mem() 92 return tbuf; in check_realloc_usable_mem()
|
| /linux/drivers/usb/core/ |
| H A D | message.c | 968 static int usb_get_langid(struct usb_device *dev, unsigned char *tbuf) in usb_get_langid() argument 978 err = usb_string_sub(dev, 0, 0, tbuf); in usb_get_langid() 1001 dev->string_langid = tbuf[2] | (tbuf[3] << 8); in usb_get_langid() 1028 unsigned char *tbuf; in usb_string() local 1038 tbuf = kmalloc(256, GFP_NOIO); in usb_string() 1039 if (!tbuf) in usb_string() 1042 err = usb_get_langid(dev, tbuf); in usb_string() 1046 err = usb_string_sub(dev, dev->string_langid, index, tbuf); in usb_string() 1051 err = utf16s_to_utf8s((wchar_t *) &tbuf[2], (err - 2) / 2, in usb_string() 1055 if (tbuf[1] != USB_DT_STRING) in usb_string() [all …]
|
| H A D | devio.c | 1174 unsigned char *tbuf; in do_proc_control() local 1193 tbuf = (unsigned char *)__get_free_page(GFP_KERNEL); in do_proc_control() 1194 if (!tbuf) in do_proc_control() 1218 usb_fill_control_urb(urb, dev, pipe, (unsigned char *) dr, tbuf, in do_proc_control() 1229 snoop_urb(dev, NULL, pipe, actlen, i, COMPLETE, tbuf, actlen); in do_proc_control() 1231 if (copy_to_user(ctrl->data, tbuf, actlen)) { in do_proc_control() 1238 if (copy_from_user(tbuf, ctrl->data, wLength)) { in do_proc_control() 1244 usb_fill_control_urb(urb, dev, pipe, (unsigned char *) dr, tbuf, in do_proc_control() 1246 snoop_urb(dev, NULL, pipe, wLength, tmo, SUBMIT, tbuf, wLength); in do_proc_control() 1268 free_page((unsigned long) tbuf); in do_proc_control() [all …]
|
| H A D | hcd.c | 461 u8 *tbuf = NULL; in rh_call_control() local 487 tbuf = kzalloc(tbuf_size, GFP_KERNEL); in rh_call_control() 488 if (!tbuf) { in rh_call_control() 493 bufp = tbuf; in rh_call_control() 518 tbuf[0] = (device_may_wakeup(&hcd->self.root_hub->dev) in rh_call_control() 521 tbuf[1] = 0; in rh_call_control() 538 tbuf[0] = 1; in rh_call_control() 603 tbuf[0] = 0; in rh_call_control() 620 tbuf[0] = 0; in rh_call_control() 621 tbuf[1] = 0; in rh_call_control() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
| H A D | sd.c | 411 char tbuf[32]; in dev_read() local 415 ret = snprintf(tbuf, sizeof(tbuf), "%s vhca %#x\n", pci_name(dev->pdev), in dev_read() 418 return simple_read_from_buffer(buf, count, pos, tbuf, ret); in dev_read()
|
| /linux/net/sunrpc/ |
| H A D | cache.c | 1494 char tbuf[22]; in read_flush() local 1497 len = snprintf(tbuf, sizeof(tbuf), "%llu\n", in read_flush() 1499 return simple_read_from_buffer(buf, count, ppos, tbuf, len); in read_flush() 1506 char tbuf[20]; in write_flush() local 1510 if (*ppos || count > sizeof(tbuf)-1) in write_flush() 1512 if (copy_from_user(tbuf, buf, count)) in write_flush() 1514 tbuf[count] = 0; in write_flush() 1515 simple_strtoul(tbuf, &ep, 0); in write_flush()
|
| /linux/net/sunrpc/auth_gss/ |
| H A D | svcauth_gss.c | 1406 char tbuf[20]; in write_gssp() local 1410 if (*ppos || count > sizeof(tbuf)-1) in write_gssp() 1412 if (copy_from_user(tbuf, buf, count)) in write_gssp() 1415 tbuf[count] = 0; in write_gssp() 1416 res = kstrtoul(tbuf, 0, &i); in write_gssp() 1436 char tbuf[10]; in read_gssp() local 1439 snprintf(tbuf, sizeof(tbuf), "%d\n", sn->use_gss_proxy); in read_gssp() 1440 len = strlen(tbuf); in read_gssp() 1446 if (copy_to_user(buf, (void *)(tbuf+p), len)) in read_gssp()
|
| /linux/scripts/kconfig/lxdialog/ |
| H A D | textbox.c | 151 int dialog_textbox(const char *title, const char *tbuf, int initial_height, in dialog_textbox() argument 164 buf = tbuf; in dialog_textbox()
|
| /linux/drivers/net/wireless/ath/ath6kl/ |
| H A D | sdio.c | 413 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/drivers/media/usb/pvrusb2/ |
| H A D | pvrusb2-v4l2.c | 1064 char *tbuf; in pvr2_v4l2_read() local 1069 tbuf = kmalloc(PAGE_SIZE,GFP_KERNEL); in pvr2_v4l2_read() 1070 if (!tbuf) return -ENOMEM; in pvr2_v4l2_read() 1075 c2 = pvr2_hdw_cpufw_get(hdw,offs,tbuf,c1); in pvr2_v4l2_read() 1081 if (copy_to_user(buff,tbuf,c2)) { in pvr2_v4l2_read() 1091 kfree(tbuf); in pvr2_v4l2_read()
|
| /linux/net/ipv4/ |
| H A D | arp.c | 1422 char tbuf[16]; in arp_format_neigh_entry() local 1444 sprintf(tbuf, "%pI4", n->primary_key); in arp_format_neigh_entry() 1446 tbuf, hatype, arp_state_to_flags(n), hbuffer, dev->name); in arp_format_neigh_entry() 1455 char tbuf[16]; in arp_format_pneigh_entry() local 1457 sprintf(tbuf, "%pI4", n->key); in arp_format_pneigh_entry() 1459 tbuf, hatype, ATF_PUBL | ATF_PERM, "00:00:00:00:00:00", in arp_format_pneigh_entry()
|