Home
last modified time | relevance | path

Searched refs:tmp_buf (Results 1 – 25 of 73) sorted by relevance

123

/linux/arch/sparc/kernel/
H A Dprom_64.c66 static void __init sun4v_path_component(struct device_node *dp, char *tmp_buf) in sun4v_path_component() argument
79 sprintf(tmp_buf, "%s@%x,%x", in sun4v_path_component()
94 sprintf(tmp_buf, "%s@%s%x,%x", in sun4v_path_component()
98 sprintf(tmp_buf, "%s@%s%x", in sun4v_path_component()
103 sprintf(tmp_buf, "%s@%x", in sun4v_path_component()
108 static void __init sun4u_path_component(struct device_node *dp, char *tmp_buf) in sun4u_path_component() argument
120 sprintf(tmp_buf, "%s@%x,%x", in sun4u_path_component()
136 sprintf(tmp_buf, "%s@%x,%x", in sun4u_path_component()
144 static void __init sbus_path_component(struct device_node *dp, char *tmp_buf) in sbus_path_component() argument
155 sprintf(tmp_buf, " in sbus_path_component()
162 pci_path_component(struct device_node * dp,char * tmp_buf) pci_path_component() argument
188 upa_path_component(struct device_node * dp,char * tmp_buf) upa_path_component() argument
211 vdev_path_component(struct device_node * dp,char * tmp_buf) vdev_path_component() argument
227 ebus_path_component(struct device_node * dp,char * tmp_buf) ebus_path_component() argument
246 i2c_path_component(struct device_node * dp,char * tmp_buf) i2c_path_component() argument
266 usb_path_component(struct device_node * dp,char * tmp_buf) usb_path_component() argument
288 ieee1394_path_component(struct device_node * dp,char * tmp_buf) ieee1394_path_component() argument
309 __build_path_component(struct device_node * dp,char * tmp_buf) __build_path_component() argument
363 char tmp_buf[64], *n; build_path_component() local
[all...]
H A Dprom_32.c55 static void __init sparc32_path_component(struct device_node *dp, char *tmp_buf) in sparc32_path_component() argument
66 sprintf(tmp_buf, "%s@%x,%x", in sparc32_path_component()
72 static void __init sbus_path_component(struct device_node *dp, char *tmp_buf) in sbus_path_component() argument
83 sprintf(tmp_buf, "%s@%x,%x", in sbus_path_component()
90 static void __init pci_path_component(struct device_node *dp, char *tmp_buf) in pci_path_component() argument
104 sprintf(tmp_buf, "%s@%x,%x", in pci_path_component()
109 sprintf(tmp_buf, "%s@%x", in pci_path_component()
116 static void __init ebus_path_component(struct device_node *dp, char *tmp_buf) in ebus_path_component() argument
128 sprintf(tmp_buf, "%s@%x,%x", in ebus_path_component()
134 static void __init ambapp_path_component(struct device_node *dp, char *tmp_buf) in ambapp_path_component() argument
164 __build_path_component(struct device_node * dp,char * tmp_buf) __build_path_component() argument
189 char tmp_buf[64], *n; build_path_component() local
[all...]
/linux/drivers/net/wireless/realtek/rtlwifi/btcoexist/
H A Drtl_btc.c306 void rtl_btc_btinfo_notify(struct rtl_priv *rtlpriv, u8 *tmp_buf, u8 length) in rtl_btc_btinfo_notify() argument
313 exhalbtc_bt_info_notify(btcoexist, tmp_buf, length); in rtl_btc_btinfo_notify()
316 void rtl_btc_btmpinfo_notify(struct rtl_priv *rtlpriv, u8 *tmp_buf, u8 length) in rtl_btc_btmpinfo_notify() argument
327 if ((length < 4) || (!tmp_buf)) in rtl_btc_btmpinfo_notify()
330 extid = tmp_buf[0]; in rtl_btc_btmpinfo_notify()
335 seq = tmp_buf[2] >> 4; in rtl_btc_btmpinfo_notify()
336 data = &tmp_buf[3]; in rtl_btc_btmpinfo_notify()
341 bt_real_fw_ver = tmp_buf[3] | (tmp_buf[4] << 8); in rtl_btc_btmpinfo_notify()
342 bt_fw_ver = tmp_buf[ in rtl_btc_btmpinfo_notify()
[all...]
/linux/lib/tests/
H A Dchecksum_kunit.c449 static u8 tmp_buf[TEST_BUFLEN]; variable
487 memcpy(&tmp_buf[align], random_buf, in test_csum_fixed_random_inputs()
495 result = full_csum(&tmp_buf[align], len, sum); in test_csum_fixed_random_inputs()
512 memset(tmp_buf, 0xff, TEST_BUFLEN); in test_csum_all_carry_inputs()
520 result = full_csum(&tmp_buf[align], len, sum); in test_csum_all_carry_inputs()
528 result = full_csum(&tmp_buf[align], len, sum); in test_csum_all_carry_inputs()
552 memset(tmp_buf, 0x4, TEST_BUFLEN); in test_csum_no_carry_inputs()
560 result = full_csum(&tmp_buf[align], len, sum); in test_csum_no_carry_inputs()
568 result = full_csum(&tmp_buf[align], len, sum); in test_csum_no_carry_inputs()
/linux/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
H A DEventClass.py59 tmp_buf=raw_buf[0:80]
60 flags, ip, ax, bx, cx, dx, si, di, bp, sp = struct.unpack('QQQQQQQQQQ', tmp_buf)
74 del tmp_buf
88 tmp_buf=raw_buf[144:176]
89 status, dla, dse, lat = struct.unpack('QQQQ', tmp_buf)
97 del tmp_buf
/linux/fs/ceph/
H A Dacl.c175 void *tmp_buf = NULL; in ceph_pre_init_acls() local
201 tmp_buf = kmalloc(max(val_size1, val_size2), GFP_KERNEL); in ceph_pre_init_acls()
202 if (!tmp_buf) in ceph_pre_init_acls()
222 tmp_buf, val_size1); in ceph_pre_init_acls()
226 ceph_pagelist_append(pagelist, tmp_buf, val_size1); in ceph_pre_init_acls()
236 tmp_buf, val_size2); in ceph_pre_init_acls()
240 ceph_pagelist_append(pagelist, tmp_buf, val_size2); in ceph_pre_init_acls()
243 kfree(tmp_buf); in ceph_pre_init_acls()
253 kfree(tmp_buf); in ceph_pre_init_acls()
/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_bo.h203 struct vmw_bo *tmp_buf = *buf; in vmw_bo_unreference() local
206 if (tmp_buf) in vmw_bo_unreference()
207 drm_gem_object_put(&tmp_buf->tbo.base); in vmw_bo_unreference()
224 struct vmw_bo *tmp_buf = *buf; in vmw_user_bo_unref() local
227 if (tmp_buf) in vmw_user_bo_unref()
228 drm_gem_object_put(&tmp_buf->tbo.base); in vmw_user_bo_unref()
/linux/drivers/hid/
H A Dhid-goodix-spi.c394 u8 tmp_buf[GOODIX_HID_MAX_INBUF_SIZE]; in goodix_hid_get_raw_report() local
420 memset(tmp_buf, 0, GOODIX_HID_ACK_HEADER_SIZE); in goodix_hid_get_raw_report()
423 put_unaligned_le16(cmd_register, tmp_buf + tx_len); in goodix_hid_get_raw_report()
426 tmp_buf[tx_len] = (report_type == HID_FEATURE_REPORT ? 0x03 : 0x01) << 4; in goodix_hid_get_raw_report()
427 tmp_buf[tx_len] |= reportnum >= 0x0F ? 0x0F : reportnum; in goodix_hid_get_raw_report()
430 tmp_buf[tx_len++] = GOODIX_HID_GET_REPORT_CMD; in goodix_hid_get_raw_report()
432 memcpy(tmp_buf + tx_len, args, args_len); in goodix_hid_get_raw_report()
436 error = goodix_spi_write(ts, GOODIX_HID_CMD_ADDR, tmp_buf, tx_len); in goodix_hid_get_raw_report()
495 u8 tmp_buf[GOODIX_HID_MAX_INBUF_SIZE]; in goodix_hid_set_raw_report() local
511 memset(tmp_buf, in goodix_hid_set_raw_report()
[all...]
/linux/io_uring/
H A Dmock_file.c34 void *tmp_buf; in io_copy_regbuf() local
36 tmp_buf = kzalloc(buflen, GFP_KERNEL); in io_copy_regbuf()
37 if (!tmp_buf) in io_copy_regbuf()
44 ret = copy_from_iter(tmp_buf, len, reg_iter); in io_copy_regbuf()
47 if (copy_to_user(ubuf, tmp_buf, ret)) in io_copy_regbuf()
50 if (copy_from_user(tmp_buf, ubuf, len)) in io_copy_regbuf()
52 ret = copy_to_iter(tmp_buf, len, reg_iter); in io_copy_regbuf()
60 kfree(tmp_buf); in io_copy_regbuf()
/linux/net/atm/
H A Daddr.c140 struct sockaddr_atmsvc *tmp_buf, *tmp_bufp; in atm_get_addr() local
149 tmp_buf = tmp_bufp = kmalloc(total, GFP_ATOMIC); in atm_get_addr()
150 if (!tmp_buf) { in atm_get_addr()
158 if (copy_to_user(buf, tmp_buf, total < size ? total : size)) in atm_get_addr()
160 kfree(tmp_buf); in atm_get_addr()
H A Dresources.c198 int *tmp_buf, *tmp_p; in atm_getnames() local
209 tmp_buf = kmalloc(size, GFP_ATOMIC); in atm_getnames()
210 if (!tmp_buf) { in atm_getnames()
214 tmp_p = tmp_buf; in atm_getnames()
219 error = ((copy_to_user(buf, tmp_buf, size)) || in atm_getnames()
222 kfree(tmp_buf); in atm_getnames()
/linux/drivers/accel/habanalabs/common/
H A Ddebugfs.c843 char tmp_buf[32]; in hl_data_read32() local
861 sprintf(tmp_buf, "0x%08x\n", val); in hl_data_read32()
862 return simple_read_from_buffer(buf, count, ppos, tmp_buf, in hl_data_read32()
863 strlen(tmp_buf)); in hl_data_read32()
898 char tmp_buf[32]; in hl_data_read64() local
914 sprintf(tmp_buf, "0x%016llx\n", val); in hl_data_read64()
915 return simple_read_from_buffer(buf, count, ppos, tmp_buf, in hl_data_read64()
916 strlen(tmp_buf)); in hl_data_read64()
1050 char tmp_buf[200]; in hl_get_power_state() local
1063 sprintf(tmp_buf, in hl_get_power_state()
1104 char tmp_buf[32]; hl_i2c_data_read() local
1265 char tmp_buf[200]; hl_stop_on_err_read() local
1379 char tmp_buf[200]; hl_timeout_locked_read() local
[all...]
/linux/drivers/base/regmap/
H A Dregcache.c50 void *tmp_buf; in regcache_hw_init() local
79 tmp_buf = kmalloc(map->cache_size_raw, GFP_KERNEL); in regcache_hw_init()
80 if (!tmp_buf) { in regcache_hw_init()
84 ret = regmap_raw_read(map, 0, tmp_buf, in regcache_hw_init()
88 map->reg_defaults_raw = tmp_buf; in regcache_hw_init()
91 kfree(tmp_buf); in regcache_hw_init()
137 void *tmp_buf; in regcache_init() local
193 tmp_buf = kmemdup_array(config->reg_defaults, map->num_reg_defaults, in regcache_init()
195 if (!tmp_buf) in regcache_init()
197 map->reg_defaults = tmp_buf; in regcache_init()
[all...]
/linux/kernel/bpf/
H A Dhelpers.c822 char *unsafe_ptr = NULL, *tmp_buf = NULL, *tmp_buf_end, *fmt_end; in bpf_bprintf_prepare() local
839 tmp_buf = buffers->bin_args; in bpf_bprintf_prepare()
840 tmp_buf_end = tmp_buf + MAX_BPRINTF_BIN_ARGS; in bpf_bprintf_prepare()
841 data->bin_args = (u32 *)tmp_buf; in bpf_bprintf_prepare()
886 if (tmp_buf) in bpf_bprintf_prepare()
901 if (tmp_buf) in bpf_bprintf_prepare()
908 if (tmp_buf) { in bpf_bprintf_prepare()
909 err = snprintf(tmp_buf, in bpf_bprintf_prepare()
910 (tmp_buf_end - tmp_buf), in bpf_bprintf_prepare()
913 tmp_buf in bpf_bprintf_prepare()
[all...]
/linux/tools/perf/arch/x86/util/
H A Diostat.c129 struct iio_root_port **tmp_buf; in iio_root_ports_list_insert() local
133 tmp_buf = realloc(list->rps, in iio_root_ports_list_insert()
135 if (!tmp_buf) { in iio_root_ports_list_insert()
139 tmp_buf[rp->idx] = rp; in iio_root_ports_list_insert()
140 list->rps = tmp_buf; in iio_root_ports_list_insert()
/linux/drivers/hid/intel-ish-hid/ipc/
H A Dpci-ish.c95 char tmp_buf[100]; in ish_event_tracer() local
98 vsnprintf(tmp_buf, sizeof(tmp_buf), format, args); in ish_event_tracer()
101 trace_ishtp_dump(tmp_buf); in ish_event_tracer()
/linux/fs/jffs2/
H A Dcompr.c155 unsigned char *output_buf = NULL, *tmp_buf; in jffs2_compress() local
190 tmp_buf = kmalloc(orig_slen, GFP_KERNEL); in jffs2_compress()
192 if (!tmp_buf) { in jffs2_compress()
198 this->compr_buf = tmp_buf; in jffs2_compress()
/linux/drivers/leds/
H A Dled-core.c554 char tmp_buf[LED_MAX_NAME_SIZE]; in led_compose_name() local
557 n = snprintf(tmp_buf, LED_MAX_NAME_SIZE, "%s:%s-%d", in led_compose_name()
561 n = snprintf(tmp_buf, LED_MAX_NAME_SIZE, "%s:%s", in led_compose_name()
570 devicename, tmp_buf); in led_compose_name()
572 n = snprintf(led_classdev_name, LED_MAX_NAME_SIZE, "%s", tmp_buf); in led_compose_name()
/linux/drivers/i2c/busses/
H A Di2c-bcm-kona.c324 uint8_t *tmp_buf = msg->buf; in bcm_kona_i2c_read_fifo() local
332 rc = bcm_kona_i2c_read_fifo_single(dev, tmp_buf, bytes_to_read, in bcm_kona_i2c_read_fifo()
338 tmp_buf += bytes_to_read; in bcm_kona_i2c_read_fifo()
448 uint8_t *tmp_buf = msg->buf; in bcm_kona_i2c_write_fifo() local
454 rc = bcm_kona_i2c_write_fifo_single(dev, tmp_buf, in bcm_kona_i2c_write_fifo()
460 tmp_buf += bytes_to_write; in bcm_kona_i2c_write_fifo()
/linux/drivers/iio/pressure/
H A Ddlhl60d.c248 __be32 tmp_buf[2] = { }; in dlh_trigger_handler() local
255 memcpy(&tmp_buf[i++], in dlh_trigger_handler()
260 iio_push_to_buffers(indio_dev, tmp_buf); in dlh_trigger_handler()
/linux/drivers/net/wireless/silabs/wfx/
H A Dmain.c236 u8 *tmp_buf; in wfx_send_pdata_pds() local
244 tmp_buf = kmemdup(pds->data, pds->size, GFP_KERNEL); in wfx_send_pdata_pds()
245 if (!tmp_buf) { in wfx_send_pdata_pds()
249 ret = wfx_send_pds(wdev, tmp_buf, pds->size); in wfx_send_pdata_pds()
250 kfree(tmp_buf); in wfx_send_pdata_pds()
/linux/drivers/mtd/nand/raw/gpmi-nand/
H A Dgpmi-nand.c1836 u8 *tmp_buf = this->raw_buffer; in gpmi_ecc_read_page_raw() local
1844 ret = nand_read_page_op(chip, page, 0, tmp_buf, in gpmi_ecc_read_page_raw()
1857 swap(tmp_buf[0], tmp_buf[mtd->writesize]); in gpmi_ecc_read_page_raw()
1864 memcpy(oob, tmp_buf, nfc_geo->metadata_size); in gpmi_ecc_read_page_raw()
1872 nand_extract_bits(buf, step * eccsize * 8, tmp_buf, in gpmi_ecc_read_page_raw()
1882 nand_extract_bits(oob, oob_bit_off, tmp_buf, in gpmi_ecc_read_page_raw()
1894 tmp_buf + mtd->writesize + oob_byte_off, in gpmi_ecc_read_page_raw()
1921 u8 *tmp_buf = this->raw_buffer; in gpmi_ecc_write_page_raw() local
1934 memset(tmp_buf, in gpmi_ecc_write_page_raw()
[all...]
/linux/drivers/greybus/
H A Des2.c1118 char *tmp_buf; in apb_log_read() local
1123 tmp_buf = kmalloc(count, GFP_KERNEL); in apb_log_read()
1124 if (!tmp_buf) in apb_log_read()
1127 copied = kfifo_out(&es2->apb_log_fifo, tmp_buf, count); in apb_log_read()
1128 ret = simple_read_from_buffer(buf, count, ppos, tmp_buf, copied); in apb_log_read()
1130 kfree(tmp_buf); in apb_log_read()
1171 char tmp_buf[3]; in apb_log_enable_read() local
1173 sprintf(tmp_buf, "%d\n", enable); in apb_log_enable_read()
1174 return simple_read_from_buffer(buf, count, ppos, tmp_buf, 2); in apb_log_enable_read()
/linux/drivers/mtd/chips/
H A Dcfi_cmdset_0002.c1832 map_word tmp_buf; in cfi_amdstd_write_words() local
1848 /* Load 'tmp_buf' with old contents of flash */ in cfi_amdstd_write_words()
1849 tmp_buf = map_read(map, bus_ofs+chipstart); in cfi_amdstd_write_words()
1856 tmp_buf = map_word_load_partial(map, tmp_buf, buf, i, n); in cfi_amdstd_write_words()
1859 bus_ofs, tmp_buf, FL_WRITING); in cfi_amdstd_write_words()
1903 map_word tmp_buf; in cfi_amdstd_write_words() local
1919 tmp_buf = map_read(map, ofs + chipstart); in cfi_amdstd_write_words()
1923 tmp_buf = map_word_load_partial(map, tmp_buf, bu in cfi_amdstd_write_words()
2323 map_word tmp_buf; cfi_amdstd_panic_write() local
2383 map_word tmp_buf; cfi_amdstd_panic_write() local
[all...]
/linux/drivers/hwmon/
H A Dnpcm750-pwm-fan.c219 u32 tmp_buf, ctrl_en_bit, env_bit; in npcm7xx_pwm_config_set() local
228 tmp_buf = ioread32(NPCM7XX_PWM_REG_CR(data->pwm_base, module)); in npcm7xx_pwm_config_set()
254 tmp_buf &= ~ctrl_en_bit; in npcm7xx_pwm_config_set()
255 tmp_buf |= env_bit; in npcm7xx_pwm_config_set()
258 tmp_buf |= ctrl_en_bit; in npcm7xx_pwm_config_set()
259 tmp_buf &= ~env_bit; in npcm7xx_pwm_config_set()
262 iowrite32(tmp_buf, NPCM7XX_PWM_REG_CR(data->pwm_base, module)); in npcm7xx_pwm_config_set()

123