/openbmc/linux/arch/sparc/kernel/ |
H A D | prom_64.c | 66 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, "%s@%x,%x", in sbus_path_component() [all …]
|
H A D | prom_32.c | 57 static void __init sparc32_path_component(struct device_node *dp, char *tmp_buf) in sparc32_path_component() argument 68 sprintf(tmp_buf, "%s@%x,%x", in sparc32_path_component() 74 static void __init sbus_path_component(struct device_node *dp, char *tmp_buf) in sbus_path_component() argument 85 sprintf(tmp_buf, "%s@%x,%x", in sbus_path_component() 92 static void __init pci_path_component(struct device_node *dp, char *tmp_buf) in pci_path_component() argument 106 sprintf(tmp_buf, "%s@%x,%x", in pci_path_component() 111 sprintf(tmp_buf, "%s@%x", in pci_path_component() 118 static void __init ebus_path_component(struct device_node *dp, char *tmp_buf) in ebus_path_component() argument 130 sprintf(tmp_buf, "%s@%x,%x", in ebus_path_component() 136 static void __init ambapp_path_component(struct device_node *dp, char *tmp_buf) in ambapp_path_component() argument [all …]
|
/openbmc/u-boot/drivers/mmc/ |
H A D | fsl_esdhc_spl.c | 59 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 D | sdhc_boot.c | 22 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 D | sdhc_boot.c | 37 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 D | rtl_btc.c | 306 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[5]; in rtl_btc_btmpinfo_notify() 357 btcoexist->bt_info.bt_supported_feature = tmp_buf[3] | in rtl_btc_btmpinfo_notify() [all …]
|
/openbmc/linux/lib/ |
H A D | checksum_kunit.c | 212 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/common/ |
H A D | avb_verify.c | 265 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() 297 flush_cache((ulong)tmp_buf, sectors * part->info.blksz); in mmc_read_and_flush() 300 memcpy(buffer, tmp_buf, sectors * part->info.blksz); in mmc_read_and_flush() 308 void *tmp_buf; in mmc_write() local 322 tmp_buf = get_sector_buf(); in mmc_write() 328 memcpy(tmp_buf, buffer, sectors * part->info.blksz); in mmc_write() 330 tmp_buf = buffer; in mmc_write() [all …]
|
/openbmc/u-boot/cmd/ |
H A D | nvedit_efi.c | 233 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/linux/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/ |
H A D | EventClass.py | 59 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 D | acl.c | 173 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 D | crypto.c | 337 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 D | vmwgfx_bo.h | 191 struct vmw_bo *tmp_buf = *buf; in vmw_bo_unreference() local 194 if (tmp_buf) in vmw_bo_unreference() 195 ttm_bo_put(&tmp_buf->tbo); in vmw_bo_unreference() 212 struct vmw_bo *tmp_buf = *buf; in vmw_user_bo_unref() local 215 if (tmp_buf) in vmw_user_bo_unref() 216 drm_gem_object_put(&tmp_buf->tbo.base); in vmw_user_bo_unref()
|
/openbmc/linux/kernel/bpf/ |
H A D | helpers.c | 825 char *unsafe_ptr = NULL, *tmp_buf = NULL, *tmp_buf_end, *fmt_end; in bpf_bprintf_prepare() local 842 tmp_buf = buffers->bin_args; in bpf_bprintf_prepare() 843 tmp_buf_end = tmp_buf + MAX_BPRINTF_BIN_ARGS; in bpf_bprintf_prepare() 844 data->bin_args = (u32 *)tmp_buf; in bpf_bprintf_prepare() 899 if (tmp_buf) in bpf_bprintf_prepare() 906 if (tmp_buf) { in bpf_bprintf_prepare() 907 err = snprintf(tmp_buf, in bpf_bprintf_prepare() 908 (tmp_buf_end - tmp_buf), in bpf_bprintf_prepare() 911 tmp_buf += (err + 1); in bpf_bprintf_prepare() 927 if (!tmp_buf) in bpf_bprintf_prepare() [all …]
|
/openbmc/linux/net/atm/ |
H A D | addr.c | 140 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 D | resources.c | 199 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/drivers/base/regmap/ |
H A D | regcache.c | 30 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 D | debugfs.c | 850 char tmp_buf[32]; in hl_data_read32() local 868 sprintf(tmp_buf, "0x%08x\n", val); in hl_data_read32() 869 return simple_read_from_buffer(buf, count, ppos, tmp_buf, in hl_data_read32() 870 strlen(tmp_buf)); in hl_data_read32() 905 char tmp_buf[32]; in hl_data_read64() local 921 sprintf(tmp_buf, "0x%016llx\n", val); in hl_data_read64() 922 return simple_read_from_buffer(buf, count, ppos, tmp_buf, in hl_data_read64() 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() [all …]
|
/openbmc/u-boot/drivers/mtd/nand/raw/ |
H A D | denali.c | 698 void *tmp_buf = denali->buf; in denali_read_page_raw() local 703 ret = denali_data_xfer(denali, tmp_buf, size, page, 1, 0); in denali_read_page_raw() 718 memcpy(buf, tmp_buf + pos, len); in denali_read_page_raw() 722 memcpy(buf, tmp_buf + writesize + oob_skip, 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() 750 memcpy(oob, tmp_buf + writesize + oob_skip, 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() [all …]
|
/openbmc/u-boot/scripts/basic/ |
H A D | fixdep.c | 226 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 D | pci-ish.c | 64 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 D | iostat.c | 129 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 D | kona_i2c.c | 309 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/qemu/hw/dma/ |
H A D | sparc32_dma.c | 101 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()
|
/openbmc/linux/drivers/leds/ |
H A D | led-core.c | 497 char tmp_buf[LED_MAX_NAME_SIZE]; in led_compose_name() local 500 snprintf(tmp_buf, LED_MAX_NAME_SIZE, "%s:%s-%d", in led_compose_name() 504 snprintf(tmp_buf, LED_MAX_NAME_SIZE, "%s:%s", in led_compose_name() 510 devicename, tmp_buf); in led_compose_name() 512 strscpy(led_classdev_name, tmp_buf, LED_MAX_NAME_SIZE); in led_compose_name()
|