Home
last modified time | relevance | path

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

1234

/openbmc/linux/arch/sparc/kernel/
H A Dprom_64.c79 sprintf(tmp_buf, "%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()
155 sprintf(tmp_buf, "%s@%x,%x", in sbus_path_component()
181 sprintf(tmp_buf, "%s@%x", in pci_path_component()
279 sprintf(tmp_buf, "%s@%x", in usb_path_component()
363 char tmp_buf[64], *n; in build_path_component() local
365 tmp_buf[0] = '\0'; in build_path_component()
367 if (tmp_buf[0] == '\0') in build_path_component()
368 strcpy(tmp_buf, name); in build_path_component()
[all …]
H A Dprom_32.c68 sprintf(tmp_buf, "%s@%x,%x", in sparc32_path_component()
85 sprintf(tmp_buf, "%s@%x,%x", in sbus_path_component()
106 sprintf(tmp_buf, "%s@%x,%x", in pci_path_component()
111 sprintf(tmp_buf, "%s@%x", in pci_path_component()
130 sprintf(tmp_buf, "%s@%x,%x", in ebus_path_component()
191 char tmp_buf[64], *n; in build_path_component() local
193 tmp_buf[0] = '\0'; in build_path_component()
194 __build_path_component(dp, tmp_buf); in build_path_component()
195 if (tmp_buf[0] == '\0') in build_path_component()
196 strcpy(tmp_buf, name); in build_path_component()
[all …]
/openbmc/u-boot/drivers/mmc/
H A Dfsl_esdhc_spl.c59 uchar *tmp_buf; in mmc_boot() local
78 tmp_buf = malloc(blklen); in mmc_boot()
79 if (!tmp_buf) { in mmc_boot()
83 memset(tmp_buf, 0, blklen); in mmc_boot()
89 CONFIG_CFG_DATA_SECTOR, 1, tmp_buf); in mmc_boot()
92 free(tmp_buf); in mmc_boot()
96 val = *(tmp_buf + MBRDBR_BOOT_SIG_55); in mmc_boot()
99 free(tmp_buf); in mmc_boot()
102 val = *(tmp_buf + MBRDBR_BOOT_SIG_AA); in mmc_boot()
105 free(tmp_buf); in mmc_boot()
[all …]
/openbmc/u-boot/board/freescale/common/
H A Dsdhc_boot.c22 u8 *tmp_buf; in mmc_get_env_addr() local
26 tmp_buf = malloc(blklen); in mmc_get_env_addr()
27 if (!tmp_buf) in mmc_get_env_addr()
31 n = mmc->block_dev.block_read(&mmc->block_dev, 0, 1, tmp_buf); in mmc_get_env_addr()
33 free(tmp_buf); in mmc_get_env_addr()
38 code_offset = *(u32 *)(tmp_buf + ESDHC_BOOT_IMAGE_ADDR); in mmc_get_env_addr()
41 code_len = *(u32 *)(tmp_buf + ESDHC_BOOT_IMAGE_SIZE); in mmc_get_env_addr()
65 free(tmp_buf); in mmc_get_env_addr()
72 free(tmp_buf); in mmc_get_env_addr()
/openbmc/u-boot/board/gdsys/p1022/
H A Dsdhc_boot.c37 u8 *tmp_buf; in mmc_get_env_addr() local
41 tmp_buf = malloc(blklen); in mmc_get_env_addr()
42 if (!tmp_buf) in mmc_get_env_addr()
46 n = mmc->block_dev.block_read(&mmc->block_dev, 0, 1, tmp_buf); in mmc_get_env_addr()
48 free(tmp_buf); in mmc_get_env_addr()
53 code_offset = *(u32 *)(tmp_buf + ESDHC_BOOT_IMAGE_ADDR); in mmc_get_env_addr()
56 code_len = *(u32 *)(tmp_buf + ESDHC_BOOT_IMAGE_SIZE); in mmc_get_env_addr()
60 free(tmp_buf); in mmc_get_env_addr()
/openbmc/linux/drivers/net/wireless/realtek/rtlwifi/btcoexist/
H A Drtl_btc.c327 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[5]; in rtl_btc_btmpinfo_notify()
358 (tmp_buf[4] << 8); in rtl_btc_btmpinfo_notify()
362 (tmp_buf[4] << 8); in rtl_btc_btmpinfo_notify()
369 (tmp_buf[4] << 8) | in rtl_btc_btmpinfo_notify()
370 (tmp_buf[5] << 16) | in rtl_btc_btmpinfo_notify()
[all …]
/openbmc/linux/lib/
H A Dchecksum_kunit.c212 static u8 tmp_buf[TEST_BUFLEN]; variable
253 memcpy(&tmp_buf[align], random_buf, in test_csum_fixed_random_inputs()
261 result = full_csum(&tmp_buf[align], len, sum); in test_csum_fixed_random_inputs()
278 memset(tmp_buf, 0xff, TEST_BUFLEN); in test_csum_all_carry_inputs()
286 result = full_csum(&tmp_buf[align], len, sum); in test_csum_all_carry_inputs()
294 result = full_csum(&tmp_buf[align], len, sum); in test_csum_all_carry_inputs()
318 memset(tmp_buf, 0x4, TEST_BUFLEN); in test_csum_no_carry_inputs()
326 result = full_csum(&tmp_buf[align], len, sum); in test_csum_no_carry_inputs()
334 result = full_csum(&tmp_buf[align], len, sum); in test_csum_no_carry_inputs()
/openbmc/u-boot/cmd/
H A Dnvedit_efi.c233 char *tmp_buf = NULL, *new_buf = NULL, *value; in append_value() local
263 tmp_buf = malloc(len); in append_value()
264 if (!tmp_buf) in append_value()
280 memcpy(tmp_buf, hex_ptr, len); in append_value()
281 value = tmp_buf; in append_value()
290 tmp_buf = malloc(len); in append_value()
291 if (!tmp_buf) in append_value()
294 if (hex2bin((u8 *)tmp_buf, data, len) < 0) in append_value()
297 value = tmp_buf; in append_value()
323 free(tmp_buf); in append_value()
/openbmc/u-boot/common/
H A Davb_verify.c265 void *tmp_buf; in mmc_read_and_flush() local
286 tmp_buf = get_sector_buf(); in mmc_read_and_flush()
291 tmp_buf = buffer; in mmc_read_and_flush()
295 start, sectors, tmp_buf); in mmc_read_and_flush()
308 void *tmp_buf; in mmc_write() local
322 tmp_buf = get_sector_buf(); in mmc_write()
330 tmp_buf = buffer; in mmc_write()
397 u8 *tmp_buf; in mmc_byte_io() local
431 1, tmp_buf); in mmc_byte_io()
448 1, tmp_buf); in mmc_byte_io()
[all …]
/openbmc/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
/openbmc/linux/fs/ceph/
H A Dacl.c173 void *tmp_buf = NULL; in ceph_pre_init_acls() local
199 tmp_buf = kmalloc(max(val_size1, val_size2), GFP_KERNEL); in ceph_pre_init_acls()
200 if (!tmp_buf) in ceph_pre_init_acls()
220 tmp_buf, val_size1); in ceph_pre_init_acls()
224 ceph_pagelist_append(pagelist, tmp_buf, val_size1); in ceph_pre_init_acls()
234 tmp_buf, val_size2); in ceph_pre_init_acls()
238 ceph_pagelist_append(pagelist, tmp_buf, val_size2); in ceph_pre_init_acls()
241 kfree(tmp_buf); in ceph_pre_init_acls()
251 kfree(tmp_buf); in ceph_pre_init_acls()
H A Dcrypto.c337 char tmp_buf[NAME_MAX]; in ceph_encode_encrypted_dname() local
339 elen = snprintf(tmp_buf, sizeof(tmp_buf), "_%.*s_%ld", in ceph_encode_encrypted_dname()
341 memcpy(buf, tmp_buf, elen); in ceph_encode_encrypted_dname()
452 char tmp_buf[CEPH_BASE64_CHARS(NAME_MAX)]; in ceph_fname_to_usr() local
454 name_len = snprintf(tmp_buf, sizeof(tmp_buf), "_%.*s_%ld", in ceph_fname_to_usr()
456 memcpy(oname->name, tmp_buf, name_len); in ceph_fname_to_usr()
/openbmc/linux/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_bo.h187 struct vmw_bo *tmp_buf = *buf; in vmw_bo_unreference() local
190 if (tmp_buf) in vmw_bo_unreference()
191 ttm_bo_put(&tmp_buf->tbo); in vmw_bo_unreference()
208 struct vmw_bo *tmp_buf = *buf; in vmw_user_bo_unref() local
211 if (tmp_buf) in vmw_user_bo_unref()
212 drm_gem_object_put(&tmp_buf->tbo.base); in vmw_user_bo_unref()
/openbmc/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.c199 int *tmp_buf, *tmp_p; in atm_getnames() local
210 tmp_buf = kmalloc(size, GFP_ATOMIC); in atm_getnames()
211 if (!tmp_buf) { in atm_getnames()
215 tmp_p = tmp_buf; in atm_getnames()
220 error = ((copy_to_user(buf, tmp_buf, size)) || in atm_getnames()
223 kfree(tmp_buf); in atm_getnames()
/openbmc/linux/kernel/bpf/
H A Dhelpers.c895 if (tmp_buf) in bpf_bprintf_prepare()
902 if (tmp_buf) { in bpf_bprintf_prepare()
923 if (!tmp_buf) in bpf_bprintf_prepare()
944 err = snprintf(tmp_buf, tmp_buf_end - tmp_buf, in bpf_bprintf_prepare()
961 if (!tmp_buf) in bpf_bprintf_prepare()
978 tmp_buf += err; in bpf_bprintf_prepare()
983 if (!tmp_buf) in bpf_bprintf_prepare()
992 tmp_buf++; in bpf_bprintf_prepare()
1015 if (tmp_buf) in bpf_bprintf_prepare()
1018 if (tmp_buf) { in bpf_bprintf_prepare()
[all …]
/openbmc/linux/drivers/base/regmap/
H A Dregcache.c30 void *tmp_buf; in regcache_hw_init() local
59 tmp_buf = kmalloc(map->cache_size_raw, GFP_KERNEL); in regcache_hw_init()
60 if (!tmp_buf) { in regcache_hw_init()
64 ret = regmap_raw_read(map, 0, tmp_buf, in regcache_hw_init()
68 map->reg_defaults_raw = tmp_buf; in regcache_hw_init()
71 kfree(tmp_buf); in regcache_hw_init()
117 void *tmp_buf; in regcache_init() local
173 tmp_buf = kmemdup(config->reg_defaults, map->num_reg_defaults * in regcache_init()
175 if (!tmp_buf) in regcache_init()
177 map->reg_defaults = tmp_buf; in regcache_init()
/openbmc/linux/drivers/accel/habanalabs/common/
H A Ddebugfs.c850 char tmp_buf[32]; in hl_data_read32() local
870 strlen(tmp_buf)); in hl_data_read32()
905 char tmp_buf[32]; in hl_data_read64() local
923 strlen(tmp_buf)); in hl_data_read64()
1057 char tmp_buf[200]; in hl_get_power_state() local
1070 sprintf(tmp_buf, in hl_get_power_state()
1073 strlen(tmp_buf)); in hl_get_power_state()
1111 char tmp_buf[32]; in hl_i2c_data_read() local
1129 strlen(tmp_buf)); in hl_i2c_data_read()
1272 char tmp_buf[200]; in hl_stop_on_err_read() local
[all …]
/openbmc/u-boot/drivers/mtd/nand/raw/
H A Ddenali.c698 void *tmp_buf = denali->buf; in denali_read_page_raw() local
718 memcpy(buf, tmp_buf + pos, len); in denali_read_page_raw()
733 memcpy(oob, tmp_buf + writesize, oob_skip); in denali_read_page_raw()
746 memcpy(oob, tmp_buf + pos, len); in denali_read_page_raw()
758 memcpy(oob, tmp_buf + size - len, len); in denali_read_page_raw()
829 void *tmp_buf = denali->buf; in denali_write_page_raw() local
839 memset(tmp_buf, 0xff, size); in denali_write_page_raw()
852 memcpy(tmp_buf + pos, buf, len); in denali_write_page_raw()
867 memcpy(tmp_buf + writesize, oob, oob_skip); in denali_write_page_raw()
880 memcpy(tmp_buf + pos, oob, len); in denali_write_page_raw()
[all …]
/openbmc/u-boot/scripts/basic/
H A Dfixdep.c226 char tmp_buf[256] = "SPL_"; /* hack for U-Boot */ in parse_config_file() local
271 memcpy(tmp_buf + 4, p, q - p); in parse_config_file()
272 q = tmp_buf + 4 + (q - p); in parse_config_file()
273 p = tmp_buf; in parse_config_file()
/openbmc/linux/drivers/hid/intel-ish-hid/ipc/
H A Dpci-ish.c64 char tmp_buf[100]; in ish_event_tracer() local
67 vsnprintf(tmp_buf, sizeof(tmp_buf), format, args); in ish_event_tracer()
70 trace_ishtp_dump(tmp_buf); in ish_event_tracer()
/openbmc/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()
/openbmc/u-boot/drivers/i2c/
H A Dkona_i2c.c309 uint8_t *tmp_buf = msg->buf; in bcm_kona_i2c_read_fifo() local
317 rc = bcm_kona_i2c_read_fifo_single(dev, tmp_buf, bytes_to_read, in bcm_kona_i2c_read_fifo()
323 tmp_buf += bytes_to_read; in bcm_kona_i2c_read_fifo()
403 uint8_t *tmp_buf = msg->buf; in bcm_kona_i2c_write_fifo() local
409 rc = bcm_kona_i2c_write_fifo_single(dev, tmp_buf, in bcm_kona_i2c_write_fifo()
415 tmp_buf += bytes_to_write; in bcm_kona_i2c_write_fifo()
/openbmc/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()
/openbmc/qemu/hw/dma/
H A Dsparc32_dma.c101 uint16_t tmp_buf[32]; in ledma_memory_write() local
113 if (l > sizeof(tmp_buf)) in ledma_memory_write()
114 l = sizeof(tmp_buf); in ledma_memory_write()
116 tmp_buf[i >> 1] = bswap16(*(uint16_t *)(buf + i)); in ledma_memory_write()
118 dma_memory_write(&is->iommu_as, addr, tmp_buf, l, in ledma_memory_write()

1234