| /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[le in ili922x_read() 249 unsigned char tbuf[CMD_BUFSIZE]; ili922x_write() local 328 unsigned char tbuf[CMD_BUFSIZE]; set_write_to_gram_reg() local [all...] |
| /linux/drivers/char/tpm/ |
| H A D | tpm2-space.c | 65 struct tpm_buf *tbuf __free(kfree) = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in tpm2_load_context() 66 if (!tbuf) in tpm2_load_context() 69 tpm_buf_init(tbuf, TPM_BUFSIZE); in tpm2_load_context() 70 tpm_buf_reset(tbuf, TPM2_ST_NO_SESSIONS, TPM2_CC_CONTEXT_LOAD); in tpm2_load_context() 74 tpm_buf_append(tbuf, &buf[*offset], body_size); in tpm2_load_context() 76 rc = tpm_transmit_cmd(chip, tbuf, 4, NULL); in tpm2_load_context() 103 *handle = be32_to_cpup((__be32 *)&tbuf->data[TPM_HEADER_SIZE]); in tpm2_load_context() 114 struct tpm_buf *tbuf __free(kfree) = kzalloc(TPM_BUFSIZE, GFP_KERNEL); in tpm2_save_context() 115 if (!tbuf) in tpm2_save_context() 118 tpm_buf_init(tbuf, TPM_BUFSIZE); in tpm2_save_context() [all …]
|
| /linux/tools/testing/selftests/net/ |
| H A D | psock_snd.c | 57 static char tbuf[TEST_SZ], rbuf[TEST_SZ]; variable 162 off += build_vnet_header(tbuf); in build_packet() 163 off += build_eth_header(tbuf + off); in build_packet() 164 off += build_ipv4_header(tbuf + off, payload_len); in build_packet() 165 off += build_udp_header(tbuf + off, payload_len); in build_packet() 167 if (off + payload_len > sizeof(tbuf)) in build_packet() 170 memset(tbuf + off, DATA_CHAR, payload_len); in build_packet() 254 do_send(fd, tbuf, len); in do_tx() 258 do_send(fd, tbuf, len); in do_tx() 539 char *expected = tbuf + sizeof(struct virtio_net_hdr); in test_ignore_outgoing() [all …]
|
| /linux/drivers/hid/ |
| H A D | hid-lg-g15.c | 104 u8 * const tbuf = g15->transfer_buf; in lg_g13_get_leds_state() local 109 tbuf, 5, in lg_g13_get_leds_state() 117 high = max3(tbuf[1], tbuf[2], tbuf[3]); in lg_g13_get_leds_state() 120 DIV_ROUND_CLOSEST(tbuf[1] * 255, high); in lg_g13_get_leds_state() 122 DIV_ROUND_CLOSEST(tbuf[2] * 255, high); in lg_g13_get_leds_state() 124 DIV_ROUND_CLOSEST(tbuf[3] * 255, high); in lg_g13_get_leds_state() 135 tbuf, 5, in lg_g13_get_leds_state() 143 g15->leds[i].brightness = !!(tbuf[ in lg_g13_get_leds_state() 168 u8 * const tbuf = g15->transfer_buf; lg_g13_kbd_led_write() local 222 u8 * const tbuf = g15->transfer_buf; lg_g13_mkey_led_set() local [all...] |
| /linux/security/integrity/ima/ |
| H A D | ima_policy.c | 2133 char tbuf[64] = {0,}; in ima_policy_show() 2183 snprintf(tbuf, sizeof(tbuf), "0x%lx", entry->fsmagic); in ima_policy_show() 2184 seq_printf(m, pt(Opt_fsmagic), tbuf); in ima_policy_show() 2189 snprintf(tbuf, sizeof(tbuf), "%s", entry->fsname); in ima_policy_show() 2190 seq_printf(m, pt(Opt_fsname), tbuf); in ima_policy_show() 2195 snprintf(tbuf, sizeof(tbuf), "%s", entry->fs_subtype); in ima_policy_show() 2196 seq_printf(m, pt(Opt_fs_subtype), tbuf); in ima_policy_show() 2132 char tbuf[64] = {0,}; ima_policy_show() local [all...] |
| /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/i2c/busses/ |
| H A D | i2c-qcom-cci.c | 108 u16 tbuf; /* bus free time between a STOP and START condition */ 262 .tbuf = 118, in cci_init() 273 .tbuf = 32, in cci_reset() 284 .tbuf = 227, in cci_reset() 295 .tbuf = 62, in cci_run_queue() 306 .tbuf = 24, in cci_run_queue() 363 val = hw->tbuf; in cci_i2c_read() 99 u16 tbuf; /* bus free time between a STOP and START condition */ global() member
|
| /linux/tools/sched_ext/ |
| H A D | scx_qmap.c | 277 char tbuf[32]; in main() 491 tstamp(tbuf, sizeof(tbuf)), sub_cg_path, stats_intv); in main() 494 tstamp(tbuf, sizeof(tbuf)), stats_intv); in main() 502 tstamp(tbuf, sizeof(tbuf))); 242 char tbuf[32]; main() local
|
| /linux/drivers/w1/masters/ |
| H A D | ds2490.c | 910 u8 *tbuf; in ds9490r_write_block() local 915 tbuf = kmemdup(buf, len, GFP_KERNEL); in ds9490r_write_block() 916 if (!tbuf) in ds9490r_write_block() 919 ds_write_block(dev, tbuf, len); in ds9490r_write_block() 921 kfree(tbuf); in ds9490r_write_block() 928 u8 *tbuf; in ds9490r_read_block() local 933 tbuf = kmalloc(len, GFP_KERNEL); in ds9490r_read_block() 934 if (!tbuf) in ds9490r_read_block() 937 err = ds_read_block(dev, tbuf, len); in ds9490r_read_block() 939 memcpy(buf, tbuf, le 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, bu in vol_cdev_direct_write() [all...] |
| /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/drivers/net/wireless/ath/carl9170/ |
| H A D | rx.c | 882 u8 *tbuf; in carl9170_rx_stream() local 884 tbuf = buf; in carl9170_rx_stream() 888 rx_stream = (void *) tbuf; in carl9170_rx_stream() 908 __carl9170_rx(ar, tbuf, tlen); in carl9170_rx_stream() 923 skb_put_data(ar->rx_failover, tbuf, in carl9170_rx_stream() 967 skb_put_data(ar->rx_failover, tbuf, tlen); in carl9170_rx_stream() 973 tbuf += wlen + 4; in carl9170_rx_stream()
|
| /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[ in usb_string() [all...] |
| /linux/net/sunrpc/auth_gss/ |
| H A D | svcauth_gss.c | 1415 char tbuf[20]; in write_gssp() 1419 if (*ppos || count > sizeof(tbuf)-1) in write_gssp() 1421 if (copy_from_user(tbuf, buf, count)) in write_gssp() 1424 tbuf[count] = 0; in write_gssp() 1425 res = kstrtoul(tbuf, 0, &i); in write_gssp() 1453 char tbuf[10]; 1456 snprintf(tbuf, sizeof(tbuf), "%d\n", sn->use_gss_proxy); 1457 len = strlen(tbuf); 1463 if (copy_to_user(buf, (void *)(tbuf in create_use_gss_proxy_proc_entry() 1408 char tbuf[20]; write_gssp() local 1438 char tbuf[10]; read_gssp() local [all...] |
| /linux/scripts/kconfig/lxdialog/ |
| H A D | textbox.c | 149 int dialog_textbox(const char *title, const char *tbuf, int initial_height, 162 buf = tbuf; in dialog_textbox() 151 dialog_textbox(const char * title,const char * tbuf,int initial_height,int initial_width,int * _vscroll,int * _hscroll,int (* extra_key_cb)(int,size_t,size_t,void *),void * data) dialog_textbox() argument
|
| H A D | dialog.h | 195 int dialog_textbox(const char *title, const char *tbuf, int initial_height,
|
| /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/crypto/hisilicon/sec2/ |
| H A D | sec_main.c | 808 char tbuf[SEC_DBGFS_VAL_MAX_LEN]; in sec_debug_read() local 830 ret = snprintf(tbuf, SEC_DBGFS_VAL_MAX_LEN, "%u\n", val); in sec_debug_read() 831 return simple_read_from_buffer(buf, count, pos, tbuf, ret); in sec_debug_read() 843 char tbuf[SEC_DBGFS_VAL_MAX_LEN]; in sec_debug_write() local 854 len = simple_write_to_buffer(tbuf, SEC_DBGFS_VAL_MAX_LEN - 1, in sec_debug_write() 859 tbuf[len] = '\0'; in sec_debug_write() 860 if (kstrtoul(tbuf, 0, &val)) in sec_debug_write()
|
| /linux/net/sunrpc/ |
| H A D | cache.c | 1497 char tbuf[22]; in read_flush() local 1500 len = snprintf(tbuf, sizeof(tbuf), "%llu\n", in read_flush() 1502 return simple_read_from_buffer(buf, count, ppos, tbuf, len); in read_flush() 1509 char tbuf[20]; in write_flush() local 1513 if (*ppos || count > sizeof(tbuf)-1) in write_flush() 1515 if (copy_from_user(tbuf, buf, count)) in write_flush() 1517 tbuf[count] = 0; in write_flush() 1518 simple_strtoul(tbuf, &ep, 0); in write_flush()
|
| /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 | 1443 char tbuf[16]; in arp_format_neigh_entry() 1465 sprintf(tbuf, "%pI4", n->primary_key); in arp_seq_show() 1467 tbuf, hatype, arp_state_to_flags(n), hbuffer, dev->name); in arp_seq_show() 1476 char tbuf[16]; in arp_seq_show() 1478 sprintf(tbuf, "%pI4", n->key); in arp_seq_show() 1480 tbuf, hatype, ATF_PUBL | ATF_PERM, "00:00:00:00:00:00", 1423 char tbuf[16]; arp_format_neigh_entry() local 1456 char tbuf[16]; arp_format_pneigh_entry() local
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
| H A D | sd.c | 762 char tbuf[32]; in dev_read() local 766 ret = snprintf(tbuf, sizeof(tbuf), "%s vhca %#x\n", pci_name(dev->pdev), in dev_read() 769 return simple_read_from_buffer(buf, count, pos, tbuf, ret); in dev_read()
|