| /linux/arch/mips/bcm47xx/ |
| H A D | board.c | 238 char buf1[30]; in bcm47xx_board_get_nvram() local 245 if (bcm47xx_nvram_getenv("model_name", buf1, sizeof(buf1)) >= 0) { in bcm47xx_board_get_nvram() 247 if (!strcmp(buf1, e1->value1)) in bcm47xx_board_get_nvram() 252 if (bcm47xx_nvram_getenv("hardware_version", buf1, sizeof(buf1)) >= 0) { in bcm47xx_board_get_nvram() 254 if (strstarts(buf1, e1->value1)) in bcm47xx_board_get_nvram() 259 if (bcm47xx_nvram_getenv("hardware_version", buf1, sizeof(buf1)) >= 0 && in bcm47xx_board_get_nvram() 262 if (!strstarts(buf1, e2->value1) && in bcm47xx_board_get_nvram() 268 if (bcm47xx_nvram_getenv("productid", buf1, sizeof(buf1)) >= 0) { in bcm47xx_board_get_nvram() 270 if (!strcmp(buf1, e1->value1)) in bcm47xx_board_get_nvram() 275 if (bcm47xx_nvram_getenv("ModelId", buf1, sizeof(buf1)) >= 0) { in bcm47xx_board_get_nvram() [all …]
|
| /linux/tools/testing/selftests/proc/ |
| H A D | proc-self-syscall.c | 32 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()
|
| H A D | self.c | 26 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()
|
| H A D | proc-net-dev-lseek.c | 43 char buf1[4096]; in main() local 44 const ssize_t rv1 = read(fd, buf1, sizeof(buf1)); in main() 50 assert(rv1 <= sizeof(buf1)); in main() 63 assert(memcmp(buf1, buf2, rv1) == 0); in main()
|
| H A D | thread-self.c | 29 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/arch/mips/kernel/ |
| H A D | cevt-r4k.c | 52 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/drivers/edac/ |
| H A D | octeon_edac-l2c.c | 64 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/fs/nfsd/ |
| H A D | nfs4idmap.c | 209 char *buf1, *bp; in idtoname_parse() local 217 buf1 = kmalloc(PAGE_SIZE, GFP_KERNEL); in idtoname_parse() 218 if (buf1 == NULL) in idtoname_parse() 224 len = qword_get(&buf, buf1, PAGE_SIZE); in idtoname_parse() 227 memcpy(ent.authname, buf1, sizeof(ent.authname)); in idtoname_parse() 230 if (qword_get(&buf, buf1, PAGE_SIZE) <= 0) in idtoname_parse() 232 ent.type = strcmp(buf1, "user") == 0 ? in idtoname_parse() 236 if (qword_get(&buf, buf1, PAGE_SIZE) <= 0) in idtoname_parse() 238 ent.id = simple_strtoul(buf1, &bp, 10); in idtoname_parse() 239 if (bp == buf1) in idtoname_parse() [all …]
|
| /linux/tools/perf/tests/workloads/ |
| H A D | datasym.c | 10 static buf buf1 = { global() variable
|
| /linux/drivers/media/i2c/ |
| H A D | sony-btf-mpx.c | 228 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/drivers/target/iscsi/ |
| H A D | iscsi_target_tpg.c | 582 unsigned char buf1[256], buf2[256], *none = NULL; in iscsit_ta_authentication() local 593 memset(buf1, 0, sizeof(buf1)); in iscsit_ta_authentication() 601 snprintf(buf1, sizeof(buf1), "%s", param->value); in iscsit_ta_authentication() 602 none = strstr(buf1, NONE); in iscsit_ta_authentication() 606 if (!strcmp(buf1, none)) in iscsit_ta_authentication() 611 len = sprintf(buf2, "%s", buf1); in iscsit_ta_authentication() 618 sprintf(buf2, "%s", buf1); in iscsit_ta_authentication() 623 snprintf(buf1, sizeof(buf1), "%s", param->value); in iscsit_ta_authentication() 624 none = strstr(buf1, NONE); in iscsit_ta_authentication() 627 strlcat(buf1, "," NONE, sizeof(buf1)); in iscsit_ta_authentication() [all …]
|
| /linux/tools/perf/tests/ |
| H A D | is_printable_array.c | 10 char buf1[] = { 'k', 'r', 4, 'v', 'a', 0 }; in test__is_printable_array() local 22 { buf1, sizeof(buf1), 0 }, in test__is_printable_array()
|
| H A D | code-reading.c | 382 unsigned char buf1[BUFSZ] = {0}; in read_object_code() local 447 al.addr, buf1, len); in read_object_code() 514 if (memcmp(buf1, buf2, len)) { in read_object_code() 517 dump_buf(buf1, len); in read_object_code()
|
| /linux/fs/nfs/ |
| H A D | dns_resolve.c | 231 char buf1[NFS_DNS_HOSTNAME_MAXLEN+1]; in nfs_dns_parse() local 241 len = qword_get(&buf, buf1, sizeof(buf1)); in nfs_dns_parse() 244 key.addrlen = rpc_pton(cd->net, buf1, len, in nfs_dns_parse() 248 len = qword_get(&buf, buf1, sizeof(buf1)); in nfs_dns_parse() 252 key.hostname = buf1; in nfs_dns_parse()
|
| /linux/lib/kunit/ |
| H A D | assert.c | 220 const u8 *buf1 = buf; in kunit_assert_hexdump() local 229 if (buf1[i] != buf2[i]) in kunit_assert_hexdump() 230 string_stream_add(stream, "<%02x>", buf1[i]); in kunit_assert_hexdump() 232 string_stream_add(stream, " %02x ", buf1[i]); in kunit_assert_hexdump()
|
| /linux/drivers/net/wireless/intel/iwlwifi/ |
| H A D | iwl-devtrace-iwlwifi.h | 91 __dynamic_array(u8, buf1, hdr_len > 0 && !iwl_trace_data(skb) ? 102 if (__get_dynamic_array_len(buf1)) 104 __get_dynamic_array(buf1),
|
| /linux/drivers/macintosh/ |
| H A D | rack-meter.c | 45 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/kernel/kcsan/ |
| H A D | report.c | 358 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/drivers/mtd/ubi/ |
| H A D | io.c | 1382 void *buf1; in self_check_write() local 1388 buf1 = __vmalloc(len, GFP_NOFS); in self_check_write() 1389 if (!buf1) { in self_check_write() 1394 err = mtd_read(ubi->mtd, addr, len, &read, buf1); in self_check_write() 1400 uint8_t c1 = ((uint8_t *)buf1)[i]; in self_check_write() 1417 buf1 + i, dump_len, 1); in self_check_write() 1423 vfree(buf1); in self_check_write() 1427 vfree(buf1); in self_check_write()
|
| /linux/drivers/media/dvb-frontends/ |
| H A D | atbm8830.c | 30 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/drivers/net/ethernet/tundra/ |
| H A D | tsi108_eth.h | 304 u32 buf1; /* Base address of buffer */ member 331 u32 buf1; /* Base address of buffer */ member
|
| /linux/security/tomoyo/ |
| H A D | file.c | 907 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()
|
| /linux/drivers/misc/sgi-gru/ |
| H A D | grukservices.c | 1105 char buf1[BUFSIZE], buf2[BUFSIZE]; in quicktest3() local 1109 memset(buf1, get_cycles() & 255, sizeof(buf1)); in quicktest3() 1110 gru_copy_gpa(uv_gpa(buf2), uv_gpa(buf1), BUFSIZE); in quicktest3() 1111 if (memcmp(buf1, buf2, BUFSIZE)) { in quicktest3()
|
| /linux/sound/core/ |
| H A D | init.c | 786 char buf1[sizeof(card->id)]; in id_store() local 797 memcpy(buf1, buf, copy); in id_store() 798 buf1[copy] = '\0'; in id_store() 800 if (!card_id_ok(NULL, buf1)) in id_store() 802 strscpy(card->id, buf1); in id_store()
|
| /linux/drivers/s390/cio/ |
| H A D | device_pgid.c | 629 static void stlck_build_cp(struct ccw_device *cdev, void *buf1, void *buf2) in stlck_build_cp() argument 635 cp[0].cda = virt_to_dma32(buf1); in stlck_build_cp() 663 void *buf1, void *buf2) in ccw_device_stlck_start() argument 677 stlck_build_cp(cdev, buf1, buf2); in ccw_device_stlck_start()
|