Searched refs:buf2 (Results 1 - 25 of 55) sorted by relevance

123

/linux-master/tools/testing/selftests/proc/
H A Dself.c26 char buf1[64], buf2[64]; local
33 rv = readlink("/proc/self", buf2, sizeof(buf2));
35 buf2[rv] = '\0';
36 assert(streq(buf1, buf2));
H A Dproc-self-syscall.c33 char buf2[64]; local
46 (long)SYS_read, (long)fd, (long)buf2, (long)sizeof(buf2));
48 memset(buf2, 0, sizeof(buf2));
49 rv = sys_read(fd, buf2, sizeof(buf2));
54 if (strncmp(buf1, buf2, strlen(buf1)) != 0)
H A Dthread-self.c29 char buf1[64], buf2[64]; local
37 rv = readlink("/proc/thread-self", buf2, sizeof(buf2));
39 buf2[rv] = '\0';
40 assert(streq(buf1, buf2));
/linux-master/tools/perf/tests/
H A Dis_printable_array.c11 char buf2[] = { 'k', 'r', 'a', 'v', 4, 0 }; local
23 { buf2, sizeof(buf2), 0 },
H A Dcode-reading.c233 unsigned char buf2[BUFSZ] = {0}; local
334 ret = read_via_objdump(objdump_name, objdump_addr, buf2, len);
369 if (memcmp(buf1, buf2, len)) {
373 pr_debug("buf2 (objdump):\n");
374 dump_buf(buf2, len);
/linux-master/drivers/edac/
H A Docteon_edac-l2c.c65 char buf2[80]; local
76 snprintf(buf2, sizeof(buf2),
79 edac_device_handle_ue(l2c, tad, 1, buf2);
82 snprintf(buf2, sizeof(buf2),
85 edac_device_handle_ce(l2c, tad, 1, buf2);
88 snprintf(buf2, sizeof(buf2),
91 edac_device_handle_ue(l2c, tad, 1, buf2);
[all...]
/linux-master/arch/mips/bcm47xx/
H A Dboard.c239 char buf2[30]; local
260 bcm47xx_nvram_getenv("boardnum", buf2, sizeof(buf2)) >= 0) {
263 !strcmp(buf2, e2->value2))
292 bcm47xx_nvram_getenv("boot_hw_ver", buf2, sizeof(buf2)) >= 0) {
295 !strcmp(buf2, e2->value2))
308 bcm47xx_nvram_getenv("boardnum", buf2, sizeof(buf2)) >= 0 &&
312 !strcmp(buf2, e
[all...]
/linux-master/arch/mips/kernel/
H A Dcevt-r4k.c52 unsigned int buf1[4], buf2[3]; local
83 /* Sorted insert of 75th percentile into buf2 */
84 for (k = 0; k < i && k < ARRAY_SIZE(buf2); ++k) {
85 if (buf1[ARRAY_SIZE(buf1) - 1] < buf2[k]) {
87 i, ARRAY_SIZE(buf2) - 1);
89 buf2[l] = buf2[l - 1];
93 if (k < ARRAY_SIZE(buf2))
94 buf2[k] = buf1[ARRAY_SIZE(buf1) - 1];
98 min_delta = buf2[ARRAY_SIZ
[all...]
/linux-master/tools/power/acpi/tools/ec/
H A Dec_access.c128 char buf2[EC_SPACE_SIZE]; local
154 bytes_read = read(fd, buf2, EC_SPACE_SIZE);
167 if (buf[byte_off] == buf2[byte_off])
168 printf(" %.2x ", (uint8_t)buf2[byte_off]);
170 printf("*%.2x ", (uint8_t)buf2[byte_off]);
/linux-master/fs/udf/
H A Ddirectory.c323 static void udf_copy_to_bufs(void *buf1, int len1, void *buf2, int len2, argument
338 if (WARN_ON_ONCE(off + len > len2 || !buf2))
340 memcpy(buf2 + off, src, len);
344 static uint16_t udf_crc_fi_bufs(void *buf1, int len1, void *buf2, int len2, argument
359 if (WARN_ON_ONCE(off + len > len2 || !buf2))
361 crc = crc_itu_t(crc, buf2 + off, len);
366 static void udf_copy_fi_to_bufs(char *buf1, int len1, char *buf2, int len2, argument
377 udf_copy_to_bufs(buf1, len1, buf2, len2, off, fi,
381 udf_copy_to_bufs(buf1, len1, buf2, len2, off, impuse,
385 udf_copy_to_bufs(buf1, len1, buf2, len
403 void *buf1, *buf2 = NULL; local
[all...]
/linux-master/fs/bcachefs/
H A Dlru.c91 struct printbuf buf2 = PRINTBUF; local
135 (bch2_bkey_val_to_text(&buf2, c, k), buf2.buf)))
142 printbuf_exit(&buf2);
H A Dsb-clean.c89 struct printbuf buf2 = PRINTBUF; local
113 printbuf_reset(&buf2);
121 bch2_bkey_val_to_text(&buf2, c, bkey_i_to_s_c(k2));
123 prt_printf(&buf2, "(none)");
136 l2, buf2.buf);
139 printbuf_exit(&buf2);
/linux-master/drivers/media/i2c/
H A Dsony-btf-mpx.c228 u8 buf1[3], buf2[2]; local
251 msgs[1].buf = buf2;
254 buf2[0], buf2[1]);
260 buf2[0], buf2[1]);
H A Dsaa6752hs.c426 unsigned char buf[9], buf2[4]; local
520 i2c_master_recv(client, buf2, 4);
528 buf[5] = buf2[0];
531 buf[6] = buf2[1] | 0x40;
535 buf[6] = buf2[1] & 0xBF;
538 buf[7] = buf2[2];
539 buf[8] = buf2[3];
/linux-master/tools/testing/selftests/net/mptcp/
H A Dmptcp_inq.c238 char buf[4096], buf2[4096]; local
254 ret = read(unixfd, buf2, 4);
257 assert(strncmp(buf2, "xmit", 4) == 0);
269 ret = read(unixfd, buf2, 4);
270 assert(strncmp(buf2, "huge", 4) == 0);
297 ret = read(unixfd, buf2, 4);
299 assert(strncmp(buf2, "shut", 4) == 0);
/linux-master/drivers/media/dvb-frontends/
H A Datbm8830.c31 u8 buf2[] = { data }; local
33 struct i2c_msg msg2 = { .flags = 0, .buf = buf2, .len = 1 };
56 u8 buf2[] = { 0 }; local
58 struct i2c_msg msg2 = { .flags = I2C_M_RD, .buf = buf2, .len = 1 };
74 *p_data = buf2[0];
77 __func__, reg, buf2[0]);
/linux-master/drivers/target/iscsi/
H A Discsi_target_tpg.c587 unsigned char buf1[256], buf2[256], *none = NULL; local
599 memset(buf2, 0, sizeof(buf2));
612 sprintf(buf2, "%s", none+5);
616 len = sprintf(buf2, "%s", buf1);
618 sprintf(buf2 + len, "%s", none);
623 sprintf(buf2, "%s", buf1);
625 if (iscsi_update_param_value(param, buf2) < 0)
/linux-master/tools/perf/util/
H A Dstream.c228 char buf1[512], buf2[512], cbuf1[256], cbuf2[256]; local
239 scnprintf(buf2, sizeof(buf2), "cycles: %ld, hits: %.2f%%",
242 printf("%35s\t%35s\n", buf1, buf2);
/linux-master/net/rxrpc/
H A Dtxbuf.c92 void *buf, *buf2 = NULL; local
107 buf2 = page_frag_alloc(&call->local->tx_alloc, sack_size, gfp);
108 if (!buf2) {
136 txb->kvec[1].iov_base = buf2;
/linux-master/sound/pci/hda/
H A Dhda_eld.c375 char buf2[8 + SND_PRINT_BITS_ADVISED_BUFSIZE] = ", bits ="; local
383 snd_print_pcm_bits(a->sample_bits, buf2 + 8, sizeof(buf2) - 8);
385 snprintf(buf2, sizeof(buf2),
388 buf2[0] = '\0';
393 a->channels, buf, buf2);
/linux-master/drivers/macintosh/
H A Drack-meter.c46 u32 buf2[SAMPLE_COUNT] ____cacheline_aligned;
156 memset(rdma->buf2, 0, sizeof(rdma->buf2));
178 pr_debug("rackmeter: buf2 offset=0x%zx\n",
179 offsetof(struct rackmeter_dma, buf2));
206 offsetof(struct rackmeter_dma, buf2));
354 buf = mark == 1 ? db->buf1 : db->buf2;
/linux-master/kernel/kcsan/
H A Dreport.c359 char buf2[64]; local
362 snprintf(buf2, sizeof(buf2), "%pS", addr2);
364 return strncmp(buf1, buf2, sizeof(buf1));
/linux-master/lib/kunit/
H A Dassert.c218 const u8 *buf2 = compared_buf; local
226 if (buf1[i] != buf2[i])
/linux-master/fs/ubifs/
H A Drecovery.c229 void *buf1 = NULL, *buf2 = NULL, *cor1 = NULL, *cor2 = NULL; local
240 err = get_master_node(c, UBIFS_MST_LNUM + 1, &buf2, &mst2, &cor2);
255 offs2 = (void *)mst2 - buf2;
291 offs2 = (void *)mst2 - buf2;
344 vfree(buf2);
359 ubifs_dump_node(c, mst2, c->leb_size - ((void *)mst2 - buf2));
361 vfree(buf2);
/linux-master/drivers/input/keyboard/
H A Dcros_ec_keyb.c139 int col1, col2, buf1, buf2; local
159 buf2 = buf[col2] & valid_keys[col2];
160 if (hweight8(buf1 & buf2) > 1) {
162 col1, buf1, col2, buf2);

Completed in 325 milliseconds

123