Home
last modified time | relevance | path

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

1234

/Linux-v5.15/arch/sparc/kernel/
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, "%s@%x,%x", in sbus_path_component()
[all …]
Dprom_32.c57 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 …]
/Linux-v5.15/drivers/net/wireless/realtek/rtlwifi/btcoexist/
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[5]; in rtl_btc_btmpinfo_notify()
357 btcoexist->bt_info.bt_supported_feature = tmp_buf[3] | in rtl_btc_btmpinfo_notify()
[all …]
/Linux-v5.15/kernel/bpf/
Dhelpers.c723 static int try_get_fmt_tmp_buf(char **tmp_buf) in try_get_fmt_tmp_buf() argument
736 *tmp_buf = bufs->tmp_bufs[nest_level - 1]; in try_get_fmt_tmp_buf()
766 char *unsafe_ptr = NULL, *tmp_buf = NULL, *tmp_buf_end, *fmt_end; in bpf_bprintf_prepare() local
778 if (num_args && try_get_fmt_tmp_buf(&tmp_buf)) in bpf_bprintf_prepare()
781 tmp_buf_end = tmp_buf + MAX_BPRINTF_BUF_LEN; in bpf_bprintf_prepare()
782 *bin_args = (u32 *)tmp_buf; in bpf_bprintf_prepare()
834 if (tmp_buf) in bpf_bprintf_prepare()
841 if (tmp_buf) { in bpf_bprintf_prepare()
842 err = snprintf(tmp_buf, in bpf_bprintf_prepare()
843 (tmp_buf_end - tmp_buf), in bpf_bprintf_prepare()
[all …]
/Linux-v5.15/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/
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-v5.15/fs/ceph/
Dacl.c172 void *tmp_buf = NULL; in ceph_pre_init_acls() local
198 tmp_buf = kmalloc(max(val_size1, val_size2), GFP_KERNEL); in ceph_pre_init_acls()
199 if (!tmp_buf) in ceph_pre_init_acls()
219 tmp_buf, val_size1); in ceph_pre_init_acls()
223 ceph_pagelist_append(pagelist, tmp_buf, val_size1); in ceph_pre_init_acls()
233 tmp_buf, val_size2); in ceph_pre_init_acls()
237 ceph_pagelist_append(pagelist, tmp_buf, val_size2); in ceph_pre_init_acls()
240 kfree(tmp_buf); in ceph_pre_init_acls()
250 kfree(tmp_buf); in ceph_pre_init_acls()
/Linux-v5.15/net/atm/
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()
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()
/Linux-v5.15/drivers/misc/habanalabs/common/
Ddebugfs.c623 char tmp_buf[32]; in hl_data_read32() local
648 sprintf(tmp_buf, "0x%08x\n", val); in hl_data_read32()
649 return simple_read_from_buffer(buf, count, ppos, tmp_buf, in hl_data_read32()
650 strlen(tmp_buf)); in hl_data_read32()
696 char tmp_buf[32]; in hl_data_read64() local
721 sprintf(tmp_buf, "0x%016llx\n", val); in hl_data_read64()
722 return simple_read_from_buffer(buf, count, ppos, tmp_buf, in hl_data_read64()
723 strlen(tmp_buf)); in hl_data_read64()
824 char tmp_buf[200]; in hl_get_power_state() local
837 sprintf(tmp_buf, in hl_get_power_state()
[all …]
/Linux-v5.15/drivers/base/regmap/
Dregcache.c32 void *tmp_buf; in regcache_hw_init() local
61 tmp_buf = kmalloc(map->cache_size_raw, GFP_KERNEL); in regcache_hw_init()
62 if (!tmp_buf) { in regcache_hw_init()
66 ret = regmap_raw_read(map, 0, tmp_buf, in regcache_hw_init()
70 map->reg_defaults_raw = tmp_buf; in regcache_hw_init()
73 kfree(tmp_buf); in regcache_hw_init()
119 void *tmp_buf; in regcache_init() local
169 tmp_buf = kmemdup(config->reg_defaults, map->num_reg_defaults * in regcache_init()
171 if (!tmp_buf) in regcache_init()
173 map->reg_defaults = tmp_buf; in regcache_init()
/Linux-v5.15/drivers/hid/intel-ish-hid/ipc/
Dpci-ish.c60 char tmp_buf[100]; in ish_event_tracer() local
63 vsnprintf(tmp_buf, sizeof(tmp_buf), format, args); in ish_event_tracer()
66 trace_ishtp_dump(tmp_buf); in ish_event_tracer()
/Linux-v5.15/tools/perf/arch/x86/util/
Diostat.c128 struct iio_root_port **tmp_buf; in iio_root_ports_list_insert() local
132 tmp_buf = realloc(list->rps, in iio_root_ports_list_insert()
134 if (!tmp_buf) { in iio_root_ports_list_insert()
138 tmp_buf[rp->idx] = rp; in iio_root_ports_list_insert()
139 list->rps = tmp_buf; in iio_root_ports_list_insert()
/Linux-v5.15/drivers/leds/
Dled-core.c446 char tmp_buf[LED_MAX_NAME_SIZE]; in led_compose_name() local
449 snprintf(tmp_buf, LED_MAX_NAME_SIZE, "%s:%s-%d", in led_compose_name()
453 snprintf(tmp_buf, LED_MAX_NAME_SIZE, "%s:%s", in led_compose_name()
459 devicename, tmp_buf); in led_compose_name()
461 strscpy(led_classdev_name, tmp_buf, LED_MAX_NAME_SIZE); in led_compose_name()
/Linux-v5.15/fs/jffs2/
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-v5.15/drivers/mtd/nand/raw/gpmi-nand/
Dgpmi-nand.c1582 u8 *tmp_buf = this->raw_buffer; in gpmi_ecc_read_page_raw() local
1590 ret = nand_read_page_op(chip, page, 0, tmp_buf, in gpmi_ecc_read_page_raw()
1603 swap(tmp_buf[0], tmp_buf[mtd->writesize]); in gpmi_ecc_read_page_raw()
1610 memcpy(oob, tmp_buf, nfc_geo->metadata_size); in gpmi_ecc_read_page_raw()
1618 nand_extract_bits(buf, step * eccsize * 8, tmp_buf, in gpmi_ecc_read_page_raw()
1628 nand_extract_bits(oob, oob_bit_off, tmp_buf, in gpmi_ecc_read_page_raw()
1640 tmp_buf + mtd->writesize + oob_byte_off, in gpmi_ecc_read_page_raw()
1667 u8 *tmp_buf = this->raw_buffer; in gpmi_ecc_write_page_raw() local
1680 memset(tmp_buf, 0xff, mtd->writesize + mtd->oobsize); in gpmi_ecc_write_page_raw()
1686 memcpy(tmp_buf, oob, nfc_geo->metadata_size); in gpmi_ecc_write_page_raw()
[all …]
/Linux-v5.15/drivers/i2c/busses/
Di2c-bcm-kona.c334 uint8_t *tmp_buf = msg->buf; in bcm_kona_i2c_read_fifo() local
342 rc = bcm_kona_i2c_read_fifo_single(dev, tmp_buf, bytes_to_read, in bcm_kona_i2c_read_fifo()
348 tmp_buf += bytes_to_read; in bcm_kona_i2c_read_fifo()
458 uint8_t *tmp_buf = msg->buf; in bcm_kona_i2c_write_fifo() local
464 rc = bcm_kona_i2c_write_fifo_single(dev, tmp_buf, in bcm_kona_i2c_write_fifo()
470 tmp_buf += bytes_to_write; in bcm_kona_i2c_write_fifo()
/Linux-v5.15/drivers/staging/wfx/
Dmain.c219 u8 *tmp_buf; in wfx_send_pdata_pds() local
227 tmp_buf = kmemdup(pds->data, pds->size, GFP_KERNEL); in wfx_send_pdata_pds()
228 if (!tmp_buf) { in wfx_send_pdata_pds()
232 ret = wfx_send_pds(wdev, tmp_buf, pds->size); in wfx_send_pdata_pds()
233 kfree(tmp_buf); in wfx_send_pdata_pds()
/Linux-v5.15/drivers/iio/pressure/
Ddlhl60d.c254 __be32 tmp_buf[2]; in dlh_trigger_handler() local
262 memcpy(tmp_buf + i, in dlh_trigger_handler()
268 iio_push_to_buffers(indio_dev, tmp_buf); in dlh_trigger_handler()
/Linux-v5.15/drivers/media/usb/tm6000/
Dtm6000-usb-isoc.h33 u32 tmp_buf; member
/Linux-v5.15/drivers/staging/axis-fifo/
Daxis-fifo.c364 u32 tmp_buf[READ_BUF_SIZE]; in axis_fifo_read() local
438 tmp_buf[i] = ioread32(fifo->base_addr + in axis_fifo_read()
442 if (copy_to_user(buf + copied * sizeof(u32), tmp_buf, in axis_fifo_read()
485 u32 tmp_buf[WRITE_BUF_SIZE]; in axis_fifo_write() local
553 if (copy_from_user(tmp_buf, buf + copied * sizeof(u32), in axis_fifo_write()
561 iowrite32(tmp_buf[i], fifo->base_addr + in axis_fifo_write()
/Linux-v5.15/fs/cifs/
Dreaddir.c948 char *tmp_buf = NULL; in cifs_readdir() local
1012 tmp_buf = kmalloc(UNICODE_NAME_MAX, GFP_KERNEL); in cifs_readdir()
1013 if (tmp_buf == NULL) { in cifs_readdir()
1029 *tmp_buf = 0; in cifs_readdir()
1031 tmp_buf, max_len); in cifs_readdir()
1042 ctx->pos, tmp_buf); in cifs_readdir()
1050 kfree(tmp_buf); in cifs_readdir()
/Linux-v5.15/drivers/greybus/
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-v5.15/drivers/mtd/chips/
Dcfi_cmdset_0002.c1842 map_word tmp_buf; in cfi_amdstd_write_words() local
1859 tmp_buf = map_read(map, bus_ofs+chipstart); in cfi_amdstd_write_words()
1866 tmp_buf = map_word_load_partial(map, tmp_buf, buf, i, n); in cfi_amdstd_write_words()
1869 bus_ofs, tmp_buf, FL_WRITING); in cfi_amdstd_write_words()
1913 map_word tmp_buf; in cfi_amdstd_write_words() local
1929 tmp_buf = map_read(map, ofs + chipstart); in cfi_amdstd_write_words()
1933 tmp_buf = map_word_load_partial(map, tmp_buf, buf, 0, len); in cfi_amdstd_write_words()
1936 ofs, tmp_buf, FL_WRITING); in cfi_amdstd_write_words()
2333 map_word tmp_buf; in cfi_amdstd_panic_write() local
2340 tmp_buf = map_read(map, bus_ofs + chipstart); in cfi_amdstd_panic_write()
[all …]
/Linux-v5.15/drivers/hwmon/
Dnpcm750-pwm-fan.c215 u32 tmp_buf, ctrl_en_bit, env_bit; in npcm7xx_pwm_config_set() local
224 tmp_buf = ioread32(NPCM7XX_PWM_REG_CR(data->pwm_base, module)); in npcm7xx_pwm_config_set()
250 tmp_buf &= ~ctrl_en_bit; in npcm7xx_pwm_config_set()
251 tmp_buf |= env_bit; 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 iowrite32(tmp_buf, NPCM7XX_PWM_REG_CR(data->pwm_base, module)); in npcm7xx_pwm_config_set()
/Linux-v5.15/drivers/net/wireless/ath/ath9k/
Dhtc_drv_txrx.c1073 struct ath9k_htc_rxbuf *rxbuf = NULL, *tmp_buf = NULL; in ath9k_rx_tasklet() local
1081 list_for_each_entry(tmp_buf, &priv->rx.rxbuf, list) { in ath9k_rx_tasklet()
1082 if (tmp_buf->in_process) { in ath9k_rx_tasklet()
1083 rxbuf = tmp_buf; in ath9k_rx_tasklet()
1130 struct ath9k_htc_rxbuf *rxbuf = NULL, *tmp_buf = NULL; in ath9k_htc_rxep() local
1134 list_for_each_entry(tmp_buf, &priv->rx.rxbuf, list) { in ath9k_htc_rxep()
1135 if (!tmp_buf->in_process) { in ath9k_htc_rxep()
1136 rxbuf = tmp_buf; in ath9k_htc_rxep()

1234