Home
last modified time | relevance | path

Searched refs:buf2 (Results 1 – 25 of 52) sorted by relevance

123

/linux/drivers/edac/
H A Docteon_edac-l2c.c65 char buf2[80]; in _octeon_l2c_poll_oct2() local
76 snprintf(buf2, sizeof(buf2), in _octeon_l2c_poll_oct2()
79 edac_device_handle_ue(l2c, tad, 1, buf2); in _octeon_l2c_poll_oct2()
82 snprintf(buf2, sizeof(buf2), in _octeon_l2c_poll_oct2()
85 edac_device_handle_ce(l2c, tad, 1, buf2); in _octeon_l2c_poll_oct2()
88 snprintf(buf2, sizeof(buf2), in _octeon_l2c_poll_oct2()
91 edac_device_handle_ue(l2c, tad, 1, buf2); in _octeon_l2c_poll_oct2()
94 snprintf(buf2, sizeof(buf2), in _octeon_l2c_poll_oct2()
97 edac_device_handle_ce(l2c, tad, 1, buf2); in _octeon_l2c_poll_oct2()
111 snprintf(buf2, sizeof(buf2), in _octeon_l2c_poll_oct2()
[all …]
/linux/tools/testing/selftests/proc/
H A Dproc-self-syscall.c33 char buf2[64]; in main() local
46 (long)SYS_read, (long)fd, (long)buf2, (long)sizeof(buf2)); in main()
48 memset(buf2, 0, sizeof(buf2)); in main()
49 rv = sys_read(fd, buf2, sizeof(buf2)); in main()
54 if (strncmp(buf1, buf2, strlen(buf1)) != 0) in main()
H A Dself.c26 char buf1[64], buf2[64]; in main() local
33 rv = readlink("/proc/self", buf2, sizeof(buf2)); in main()
35 buf2[rv] = '\0'; in main()
36 assert(streq(buf1, buf2)); in main()
H A Dthread-self.c29 char buf1[64], buf2[64]; in f() local
37 rv = readlink("/proc/thread-self", buf2, sizeof(buf2)); in f()
39 buf2[rv] = '\0'; in f()
40 assert(streq(buf1, buf2)); in f()
/linux/arch/mips/kernel/
H A Dcevt-r4k.c52 unsigned int buf1[4], buf2[3]; in calculate_min_delta() local
84 for (k = 0; k < i && k < ARRAY_SIZE(buf2); ++k) { in calculate_min_delta()
85 if (buf1[ARRAY_SIZE(buf1) - 1] < buf2[k]) { in calculate_min_delta()
87 i, ARRAY_SIZE(buf2) - 1); in calculate_min_delta()
89 buf2[l] = buf2[l - 1]; in calculate_min_delta()
93 if (k < ARRAY_SIZE(buf2)) in calculate_min_delta()
94 buf2[k] = buf1[ARRAY_SIZE(buf1) - 1]; in calculate_min_delta()
98 min_delta = buf2[ARRAY_SIZE(buf2) - 1] * 2; in calculate_min_delta()
105 __func__, buf2[ARRAY_SIZE(buf2) - 1], min_delta); in calculate_min_delta()
/linux/arch/mips/bcm47xx/
H A Dboard.c239 char buf2[30]; in bcm47xx_board_get_nvram() local
260 bcm47xx_nvram_getenv("boardnum", buf2, sizeof(buf2)) >= 0) { in bcm47xx_board_get_nvram()
263 !strcmp(buf2, e2->value2)) in bcm47xx_board_get_nvram()
292 bcm47xx_nvram_getenv("boot_hw_ver", buf2, sizeof(buf2)) >= 0) { in bcm47xx_board_get_nvram()
295 !strcmp(buf2, e2->value2)) in bcm47xx_board_get_nvram()
308 bcm47xx_nvram_getenv("boardnum", buf2, sizeof(buf2)) >= 0 && in bcm47xx_board_get_nvram()
312 !strcmp(buf2, e3->value2) && in bcm47xx_board_get_nvram()
319 bcm47xx_nvram_getenv("boardrev", buf2, sizeof(buf2)) >= 0 && in bcm47xx_board_get_nvram()
323 !strcmp(buf2, e2->value2)) in bcm47xx_board_get_nvram()
/linux/tools/perf/tests/
H A Dis_printable_array.c11 char buf2[] = { 'k', 'r', 'a', 'v', 4, 0 }; in test__is_printable_array() local
23 { buf2, sizeof(buf2), 0 }, in test__is_printable_array()
H A Dcode-reading.c233 unsigned char buf2[BUFSZ] = {0}; in read_object_code() local
334 ret = read_via_objdump(objdump_name, objdump_addr, buf2, len); in read_object_code()
369 if (memcmp(buf1, buf2, len)) { in read_object_code()
373 pr_debug("buf2 (objdump):\n"); in read_object_code()
374 dump_buf(buf2, len); in read_object_code()
/linux/tools/power/acpi/tools/ec/
H A Dec_access.c128 char buf2[EC_SPACE_SIZE]; in dump_ec() local
154 bytes_read = read(fd, buf2, EC_SPACE_SIZE); in dump_ec()
167 if (buf[byte_off] == buf2[byte_off]) in dump_ec()
168 printf(" %.2x ", (uint8_t)buf2[byte_off]); in dump_ec()
170 printf("*%.2x ", (uint8_t)buf2[byte_off]); in dump_ec()
/linux/drivers/media/i2c/
H A Dsony-btf-mpx.c228 u8 buf1[3], buf2[2]; in mpx_setup() local
251 msgs[1].buf = buf2; in mpx_setup()
254 buf2[0], buf2[1]); in mpx_setup()
260 buf2[0], buf2[1]); in mpx_setup()
H A Dsaa6752hs.c426 unsigned char buf[9], buf2[4]; in saa6752hs_init() local
520 i2c_master_recv(client, buf2, 4); in saa6752hs_init()
528 buf[5] = buf2[0]; in saa6752hs_init()
531 buf[6] = buf2[1] | 0x40; in saa6752hs_init()
535 buf[6] = buf2[1] & 0xBF; in saa6752hs_init()
538 buf[7] = buf2[2]; in saa6752hs_init()
539 buf[8] = buf2[3]; in saa6752hs_init()
/linux/tools/testing/selftests/core/
H A Dunshare_test.c30 static char buf[512], buf2[512]; in TEST() local
46 n2 = sprintf(buf2, "%d\n", nr_open + 1024); in TEST()
48 write(fd, buf2, n2); in TEST()
/linux/tools/testing/selftests/net/mptcp/
H A Dmptcp_inq.c238 char buf[4096], buf2[4096]; in connect_one_server() local
254 ret = read(unixfd, buf2, 4); in connect_one_server()
257 assert(strncmp(buf2, "xmit", 4) == 0); in connect_one_server()
269 ret = read(unixfd, buf2, 4); in connect_one_server()
270 assert(strncmp(buf2, "huge", 4) == 0); in connect_one_server()
297 ret = read(unixfd, buf2, 4); in connect_one_server()
299 assert(strncmp(buf2, "shut", 4) == 0); in connect_one_server()
/linux/fs/bcachefs/
H A Dsb-clean.c89 struct printbuf buf2 = PRINTBUF; in bch2_verify_superblock_clean() local
113 printbuf_reset(&buf2); in bch2_verify_superblock_clean()
121 bch2_bkey_val_to_text(&buf2, c, bkey_i_to_s_c(k2)); in bch2_verify_superblock_clean()
123 prt_printf(&buf2, "(none)"); in bch2_verify_superblock_clean()
136 l2, buf2.buf); in bch2_verify_superblock_clean()
139 printbuf_exit(&buf2); in bch2_verify_superblock_clean()
H A Dlru.c130 struct printbuf buf2 = PRINTBUF; in bch2_check_lru_key() local
173 (bch2_bkey_val_to_text(&buf2, c, k), buf2.buf))) in bch2_check_lru_key()
180 printbuf_exit(&buf2); in bch2_check_lru_key()
/linux/drivers/media/dvb-frontends/
H A Datbm8830.c31 u8 buf2[] = { data }; in atbm8830_write_reg() local
33 struct i2c_msg msg2 = { .flags = 0, .buf = buf2, .len = 1 }; in atbm8830_write_reg()
56 u8 buf2[] = { 0 }; in atbm8830_read_reg() local
58 struct i2c_msg msg2 = { .flags = I2C_M_RD, .buf = buf2, .len = 1 }; in atbm8830_read_reg()
74 *p_data = buf2[0]; in atbm8830_read_reg()
77 __func__, reg, buf2[0]); in atbm8830_read_reg()
/linux/drivers/target/iscsi/
H A Discsi_target_tpg.c587 unsigned char buf1[256], buf2[256], *none = NULL; in iscsit_ta_authentication() local
599 memset(buf2, 0, sizeof(buf2)); in iscsit_ta_authentication()
612 sprintf(buf2, "%s", none+5); in iscsit_ta_authentication()
616 len = sprintf(buf2, "%s", buf1); in iscsit_ta_authentication()
618 sprintf(buf2 + len, "%s", none); in iscsit_ta_authentication()
623 sprintf(buf2, "%s", buf1); in iscsit_ta_authentication()
625 if (iscsi_update_param_value(param, buf2) < 0) in iscsit_ta_authentication()
/linux/drivers/macintosh/
H A Drack-meter.c46 u32 buf2[SAMPLE_COUNT] ____cacheline_aligned; member
156 memset(rdma->buf2, 0, sizeof(rdma->buf2)); in rackmeter_do_pause()
179 offsetof(struct rackmeter_dma, buf2)); in rackmeter_setup_dbdma()
206 offsetof(struct rackmeter_dma, buf2)); in rackmeter_setup_dbdma()
354 buf = mark == 1 ? db->buf1 : db->buf2; in rackmeter_irq()
/linux/sound/pci/hda/
H A Dhda_eld.c375 char buf2[8 + SND_PRINT_BITS_ADVISED_BUFSIZE] = ", bits ="; in hdmi_show_short_audio_desc() local
383 snd_print_pcm_bits(a->sample_bits, buf2 + 8, sizeof(buf2) - 8); in hdmi_show_short_audio_desc()
385 snprintf(buf2, sizeof(buf2), in hdmi_show_short_audio_desc()
388 buf2[0] = '\0'; in hdmi_show_short_audio_desc()
393 a->channels, buf, buf2); in hdmi_show_short_audio_desc()
/linux/net/rxrpc/
H A Dtxbuf.c92 void *buf, *buf2 = NULL; in rxrpc_alloc_ack_txbuf() local
107 buf2 = page_frag_alloc(&call->local->tx_alloc, sack_size, gfp); in rxrpc_alloc_ack_txbuf()
108 if (!buf2) { in rxrpc_alloc_ack_txbuf()
136 txb->kvec[1].iov_base = buf2; in rxrpc_alloc_ack_txbuf()
/linux/tools/perf/util/
H A Dstream.c228 char buf1[512], buf2[512], cbuf1[256], cbuf2[256]; in print_callchain_pair() local
239 scnprintf(buf2, sizeof(buf2), "cycles: %ld, hits: %.2f%%", in print_callchain_pair()
242 printf("%35s\t%35s\n", buf1, buf2); in print_callchain_pair()
/linux/sound/core/
H A Dcontrol_led.c515 char buf2[256], *s, *os; in set_led_id() local
519 if (strscpy(buf2, buf, sizeof(buf2)) < 0) in set_led_id()
523 s = buf2; in set_led_id()
538 } else if (s == buf2) { in set_led_id()
545 parse_uint(buf2, &id.numid); in set_led_id()
549 strscpy(id.name, buf2, sizeof(id.name)); in set_led_id()
/linux/mm/kfence/
H A Dkfence_test.c624 char *buf1, *buf2; in test_gfpzero()
638 buf2 = test_alloc(test, size, GFP_KERNEL | __GFP_ZERO, ALLOCATE_ANY); in test_gfpzero()
639 if (buf1 == buf2) in test_gfpzero()
641 test_free(buf2);
651 KUNIT_EXPECT_EQ(test, buf2[i], (char)0); in test_invalid_access()
653 test_free(buf2); in test_invalid_access()
608 char *buf1, *buf2; test_gfpzero() local
/linux/kernel/kcsan/
H A Dreport.c359 char buf2[64]; in sym_strcmp() local
362 snprintf(buf2, sizeof(buf2), "%pS", addr2); in sym_strcmp()
364 return strncmp(buf1, buf2, sizeof(buf1)); in sym_strcmp()
/linux/drivers/media/usb/em28xx/
H A Dem28xx-i2c.c128 u8 buf2[4]; in em2800_i2c_recv_bytes() local
136 buf2[1] = 0x84 + len - 1; in em2800_i2c_recv_bytes()
137 buf2[0] = addr; in em2800_i2c_recv_bytes()
138 ret = dev->em28xx_write_regs(dev, 0x04, buf2, 2); in em2800_i2c_recv_bytes()
168 ret = dev->em28xx_read_reg_req_len(dev, 0x00, 4 - len, buf2, len); in em2800_i2c_recv_bytes()
176 buf[i] = buf2[len - 1 - i]; in em2800_i2c_recv_bytes()

123