Home
last modified time | relevance | path

Searched refs:buf1 (Results 1 – 25 of 56) sorted by relevance

123

/linux-6.1.9/arch/mips/bcm47xx/
Dboard.c236 char buf1[30]; in bcm47xx_board_get_nvram() local
243 if (bcm47xx_nvram_getenv("model_name", buf1, sizeof(buf1)) >= 0) { in bcm47xx_board_get_nvram()
245 if (!strcmp(buf1, e1->value1)) in bcm47xx_board_get_nvram()
250 if (bcm47xx_nvram_getenv("hardware_version", buf1, sizeof(buf1)) >= 0) { in bcm47xx_board_get_nvram()
252 if (strstarts(buf1, e1->value1)) in bcm47xx_board_get_nvram()
257 if (bcm47xx_nvram_getenv("hardware_version", buf1, sizeof(buf1)) >= 0 && in bcm47xx_board_get_nvram()
260 if (!strstarts(buf1, e2->value1) && in bcm47xx_board_get_nvram()
266 if (bcm47xx_nvram_getenv("productid", buf1, sizeof(buf1)) >= 0) { in bcm47xx_board_get_nvram()
268 if (!strcmp(buf1, e1->value1)) in bcm47xx_board_get_nvram()
273 if (bcm47xx_nvram_getenv("ModelId", buf1, sizeof(buf1)) >= 0) { in bcm47xx_board_get_nvram()
[all …]
/linux-6.1.9/tools/testing/selftests/proc/
Dproc-self-syscall.c32 char buf1[64]; in main() local
45 snprintf(buf1, sizeof(buf1), "%ld 0x%lx 0x%lx 0x%lx", in main()
52 if (rv < strlen(buf1)) in main()
54 if (strncmp(buf1, buf2, strlen(buf1)) != 0) in main()
Dself.c26 char buf1[64], buf2[64]; in main() local
31 snprintf(buf1, sizeof(buf1), "%u", pid); in main()
34 assert(rv == strlen(buf1)); in main()
36 assert(streq(buf1, buf2)); in main()
Dthread-self.c29 char buf1[64], buf2[64]; in f() local
35 snprintf(buf1, sizeof(buf1), "%u/task/%u", pid, tid); in f()
38 assert(rv == strlen(buf1)); in f()
40 assert(streq(buf1, buf2)); in f()
/linux-6.1.9/arch/mips/kernel/
Dcevt-r4k.c52 unsigned int buf1[4], buf2[3]; in calculate_min_delta() local
71 if (cnt < buf1[k]) { in calculate_min_delta()
73 j, ARRAY_SIZE(buf1) - 1); in calculate_min_delta()
75 buf1[l] = buf1[l - 1]; in calculate_min_delta()
79 if (k < ARRAY_SIZE(buf1)) in calculate_min_delta()
80 buf1[k] = cnt; in calculate_min_delta()
85 if (buf1[ARRAY_SIZE(buf1) - 1] < buf2[k]) { in calculate_min_delta()
94 buf2[k] = buf1[ARRAY_SIZE(buf1) - 1]; in calculate_min_delta()
/linux-6.1.9/drivers/edac/
Docteon_edac-l2c.c64 char buf1[64]; in _octeon_l2c_poll_oct2() local
71 snprintf(buf1, sizeof(buf1), in _octeon_l2c_poll_oct2()
77 "L2D Double bit error (detected):%s", buf1); in _octeon_l2c_poll_oct2()
83 "L2D Single bit error (corrected):%s", buf1); in _octeon_l2c_poll_oct2()
89 "VBF Double bit error (detected):%s", buf1); in _octeon_l2c_poll_oct2()
95 "VBF Single bit error (corrected):%s", buf1); in _octeon_l2c_poll_oct2()
106 snprintf(buf1, sizeof(buf1), in _octeon_l2c_poll_oct2()
112 "Tag Double bit error (detected):%s", buf1); in _octeon_l2c_poll_oct2()
118 "Tag Single bit error (corrected):%s", buf1); in _octeon_l2c_poll_oct2()
/linux-6.1.9/fs/nfsd/
Dnfs4idmap.c208 char *buf1, *bp; in idtoname_parse() local
216 buf1 = kmalloc(PAGE_SIZE, GFP_KERNEL); in idtoname_parse()
217 if (buf1 == NULL) in idtoname_parse()
223 len = qword_get(&buf, buf1, PAGE_SIZE); in idtoname_parse()
226 memcpy(ent.authname, buf1, sizeof(ent.authname)); in idtoname_parse()
229 if (qword_get(&buf, buf1, PAGE_SIZE) <= 0) in idtoname_parse()
231 ent.type = strcmp(buf1, "user") == 0 ? in idtoname_parse()
235 if (qword_get(&buf, buf1, PAGE_SIZE) <= 0) in idtoname_parse()
237 ent.id = simple_strtoul(buf1, &bp, 10); in idtoname_parse()
238 if (bp == buf1) in idtoname_parse()
[all …]
/linux-6.1.9/tools/perf/util/
Devlist-hybrid.c114 char buf1[128], buf2[128]; in evlist__fix_hybrid_cpus() local
137 cpu_map__snprint(matched_cpus, buf1, sizeof(buf1)); in evlist__fix_hybrid_cpus()
139 buf1, pmu->name, evsel->name); in evlist__fix_hybrid_cpus()
147 cpu_map__snprint(cpus, buf1, sizeof(buf1)); in evlist__fix_hybrid_cpus()
150 buf1, pmu->name, pmu->name, buf2); in evlist__fix_hybrid_cpus()
Dstream.c228 char buf1[512], buf2[512], cbuf1[256], cbuf2[256]; in print_callchain_pair() local
235 scnprintf(buf1, sizeof(buf1), "cycles: %ld, hits: %.2f%%", in print_callchain_pair()
242 printf("%35s\t%35s\n", buf1, buf2); in print_callchain_pair()
261 scnprintf(buf1, sizeof(buf1), "%35s\t%35s", s1, s2); in print_callchain_pair()
262 printf("%s\n", buf1); in print_callchain_pair()
/linux-6.1.9/tools/perf/tests/shell/
Dtest_data_symbol.sh62 static buf buf1;
66 buf1.data1++;
67 buf1.data2 += buf1.data1;
/linux-6.1.9/drivers/media/i2c/
Dsony-btf-mpx.c228 u8 buf1[3], buf2[2]; in mpx_setup() local
241 buf1[0] = 0x11; in mpx_setup()
242 buf1[1] = 0x00; in mpx_setup()
243 buf1[2] = 0x7e; in mpx_setup()
247 msgs[0].buf = buf1; in mpx_setup()
255 buf1[0] = 0x11; in mpx_setup()
256 buf1[1] = 0x02; in mpx_setup()
257 buf1[2] = 0x00; in mpx_setup()
/linux-6.1.9/tools/perf/tests/
Dis_printable_array.c10 char buf1[] = { 'k', 'r', 4, 'v', 'a', 0 }; in test__is_printable_array() local
22 { buf1, sizeof(buf1), 0 }, in test__is_printable_array()
Dcode-reading.c232 unsigned char buf1[BUFSZ] = {0}; in read_object_code() local
272 al.addr, buf1, len); in read_object_code()
352 if (memcmp(buf1, buf2, len)) { in read_object_code()
355 dump_buf(buf1, len); in read_object_code()
/linux-6.1.9/drivers/target/iscsi/
Discsi_target_tpg.c588 unsigned char buf1[256], buf2[256], *none = NULL; in iscsit_ta_authentication() local
599 memset(buf1, 0, sizeof(buf1)); in iscsit_ta_authentication()
607 snprintf(buf1, sizeof(buf1), "%s", param->value); in iscsit_ta_authentication()
608 none = strstr(buf1, NONE); in iscsit_ta_authentication()
612 if (!strcmp(buf1, none)) in iscsit_ta_authentication()
617 len = sprintf(buf2, "%s", buf1); in iscsit_ta_authentication()
624 sprintf(buf2, "%s", buf1); in iscsit_ta_authentication()
629 snprintf(buf1, sizeof(buf1), "%s", param->value); in iscsit_ta_authentication()
630 none = strstr(buf1, NONE); in iscsit_ta_authentication()
633 strlcat(buf1, "," NONE, sizeof(buf1)); in iscsit_ta_authentication()
[all …]
/linux-6.1.9/fs/nfs/
Ddns_resolve.c233 char buf1[NFS_DNS_HOSTNAME_MAXLEN+1]; in nfs_dns_parse() local
243 len = qword_get(&buf, buf1, sizeof(buf1)); in nfs_dns_parse()
246 key.addrlen = rpc_pton(cd->net, buf1, len, in nfs_dns_parse()
250 len = qword_get(&buf, buf1, sizeof(buf1)); in nfs_dns_parse()
254 key.hostname = buf1; in nfs_dns_parse()
/linux-6.1.9/drivers/mfd/
Dpcf50633-core.c86 char *buf1 = buf; in dump_regs_show() local
104 buf1 += sprintf(buf1, "%*ph\n", (int)sizeof(dump), dump); in dump_regs_show()
107 return buf1 - buf; in dump_regs_show()
/linux-6.1.9/drivers/macintosh/
Drack-meter.c45 u32 buf1[SAMPLE_COUNT] ____cacheline_aligned; member
155 memset(rdma->buf1, 0, sizeof(rdma->buf1)); in rackmeter_do_pause()
177 offsetof(struct rackmeter_dma, buf1)); in rackmeter_setup_dbdma()
193 offsetof(struct rackmeter_dma, buf1)); in rackmeter_setup_dbdma()
354 buf = mark == 1 ? db->buf1 : db->buf2; in rackmeter_irq()
/linux-6.1.9/kernel/kcsan/
Dreport.c358 char buf1[64]; in sym_strcmp() local
361 snprintf(buf1, sizeof(buf1), "%pS", addr1); in sym_strcmp()
364 return strncmp(buf1, buf2, sizeof(buf1)); in sym_strcmp()
/linux-6.1.9/kernel/rcu/
Drefscale.c625 char buf1[64]; in process_durations() local
638 sprintf(buf1, "%d: %llu\t", i, rt->last_duration_ns); in process_durations()
646 strcat(buf, buf1); in process_durations()
665 char buf1[64]; in main_func() local
728 sprintf(buf1, "%d\t%llu.%03u\n", exp + 1, avg, rem); in main_func()
729 strcat(buf, buf1); in main_func()
/linux-6.1.9/drivers/mtd/ubi/
Dio.c1296 void *buf1; in self_check_write() local
1302 buf1 = __vmalloc(len, GFP_NOFS); in self_check_write()
1303 if (!buf1) { in self_check_write()
1308 err = mtd_read(ubi->mtd, addr, len, &read, buf1); in self_check_write()
1314 uint8_t c1 = ((uint8_t *)buf1)[i]; in self_check_write()
1331 buf1 + i, dump_len, 1); in self_check_write()
1337 vfree(buf1); in self_check_write()
1341 vfree(buf1); in self_check_write()
/linux-6.1.9/drivers/media/dvb-frontends/
Datbm8830.c30 u8 buf1[] = { reg >> 8, reg & 0xFF }; in atbm8830_write_reg() local
32 struct i2c_msg msg1 = { .flags = 0, .buf = buf1, .len = 2 }; in atbm8830_write_reg()
55 u8 buf1[] = { reg >> 8, reg & 0xFF }; in atbm8830_read_reg() local
57 struct i2c_msg msg1 = { .flags = 0, .buf = buf1, .len = 2 }; in atbm8830_read_reg()
/linux-6.1.9/tools/testing/vsock/
Dvsock_test.c481 unsigned char *buf1; in test_seqpacket_invalid_rec_buffer_client() local
491 buf1 = malloc(buf_size); in test_seqpacket_invalid_rec_buffer_client()
492 if (!buf1) { in test_seqpacket_invalid_rec_buffer_client()
503 memset(buf1, BUF_PATTERN_1, buf_size); in test_seqpacket_invalid_rec_buffer_client()
506 if (send(fd, buf1, buf_size, 0) != buf_size) { in test_seqpacket_invalid_rec_buffer_client()
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/
Diwl-devtrace-iwlwifi.h94 __dynamic_array(u8, buf1, hdr_len > 0 && iwl_trace_data(skb) ?
107 __get_dynamic_array(buf1),
/linux-6.1.9/drivers/net/ethernet/tundra/
Dtsi108_eth.h304 u32 buf1; /* Base address of buffer */ member
331 u32 buf1; /* Base address of buffer */ member
/linux-6.1.9/security/tomoyo/
Dfile.c907 struct tomoyo_path_info buf1; in tomoyo_path2_perm() local
919 buf1.name = NULL; in tomoyo_path2_perm()
922 if (!tomoyo_get_realpath(&buf1, path1) || in tomoyo_path2_perm()
932 tomoyo_add_slash(&buf1); in tomoyo_path2_perm()
939 r.param.path2.filename1 = &buf1; in tomoyo_path2_perm()
946 kfree(buf1.name); in tomoyo_path2_perm()

123