| /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/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 | 210 char *buf1, *bp; in idtoname_parse() local 218 buf1 = kmalloc(PAGE_SIZE, GFP_KERNEL); in idtoname_parse() 219 if (buf1 == NULL) in idtoname_parse() 225 len = qword_get(&buf, buf1, PAGE_SIZE); in idtoname_parse() 228 memcpy(ent.authname, buf1, sizeof(ent.authname)); in idtoname_parse() 231 if (qword_get(&buf, buf1, PAGE_SIZE) <= 0) in idtoname_parse() 233 ent.type = strcmp(buf1, "user") == 0 ? in idtoname_parse() 237 if (qword_get(&buf, buf1, PAGE_SIZE) <= 0) in idtoname_parse() 239 ent.id = simple_strtoul(buf1, &bp, 10); in idtoname_parse() 240 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/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 | 383 unsigned char buf1[BUFSZ] = {0}; in read_object_code() 448 al.addr, buf1, len); in read_object_code() 518 if (memcmp(buf1, buf2, len)) { in read_object_code() 520 pr_debug("buf1 (dso):\n"); in read_object_code() 521 dump_buf(buf1, len); in read_object_code() 382 unsigned char buf1[BUFSZ] = {0}; read_object_code() local
|
| /linux/drivers/net/wireless/mediatek/mt76/ |
| H A D | dma.h | 123 __le32 buf1; member 129 __le32 buf1; member 189 mt76_dma_should_drop_buf(bool *drop, u32 ctrl, u32 buf1, u32 info) in mt76_dma_should_drop_buf() argument 198 switch (FIELD_GET(MT_DMA_WED_IND_REASON, buf1)) { in mt76_dma_should_drop_buf()
|
| H A D | dma.c | 253 u32 buf1 = 0, ctrl, info = 0; in mt76_dma_add_rx_buf() local 272 buf1 = FIELD_PREP(MT_DMA_CTL_SDP0_H, buf->addr >> 32); in mt76_dma_add_rx_buf() 286 buf1 |= FIELD_PREP(MT_DMA_CTL_TOKEN, rx_token); in mt76_dma_add_rx_buf() 305 WRITE_ONCE(desc->buf1, cpu_to_le32(buf1)); in mt76_dma_add_rx_buf() 338 u32 buf0 = buf[0].addr, buf1 = 0; in mt76_dma_add_buf() local 360 buf1 = buf[1].addr; in mt76_dma_add_buf() 376 WRITE_ONCE(desc->buf1, cpu_to_le32(buf1)); in mt76_dma_add_buf() 512 u32 ctrl, desc_info, buf1; in mt76_dma_get_buf() local 531 buf1 = le32_to_cpu(desc->buf1); in mt76_dma_get_buf() 532 mt76_dma_should_drop_buf(drop, ctrl, buf1, desc_info); in mt76_dma_get_buf() [all …]
|
| /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/mtd/ubi/ |
| H A D | io.c | 1385 void *buf1; in self_check_write() local 1391 buf1 = __vmalloc(len, GFP_NOFS); in self_check_write() 1392 if (!buf1) { in self_check_write() 1397 err = mtd_read(ubi->mtd, addr, len, &read, buf1); in self_check_write() 1403 uint8_t c1 = ((uint8_t *)buf1)[i]; in self_check_write() 1420 buf1 + i, dump_len, 1); in self_check_write() 1426 vfree(buf1); in self_check_write() 1430 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 | 912 struct tomoyo_path_info buf1; in tomoyo_path2_perm() 924 buf1.name = NULL; in tomoyo_path2_perm() 927 if (!tomoyo_get_realpath(&buf1, path1) || in tomoyo_path2_perm() 937 tomoyo_add_slash(&buf1); in tomoyo_path2_perm() 944 r.param.path2.filename1 = &buf1; in tomoyo_path2_perm() 951 kfree(buf1.name); in tomoyo_path2_perm() 907 struct tomoyo_path_info buf1; tomoyo_path2_perm() local
|
| /linux/mm/kfence/ |
| H A D | kfence_test.c | 625 char *buf1, *buf2; in test_gfpzero() local 632 buf1 = test_alloc(test, size, GFP_KERNEL, ALLOCATE_ANY); in test_gfpzero() 634 buf1[i] = i + 1; in test_gfpzero() 635 test_free(buf1); in test_gfpzero() 640 if (buf1 == buf2) in test_gfpzero()
|
| /linux/sound/core/ |
| H A D | init.c | 799 char buf1[sizeof(card->id)]; in id_store() local 810 memcpy(buf1, buf, copy); in id_store() 811 buf1[copy] = '\0'; in id_store() 813 if (!card_id_ok(NULL, buf1)) in id_store() 815 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()
|
| /linux/fs/ubifs/ |
| H A D | recovery.c | 229 void *buf1 = NULL, *buf2 = NULL, *cor1 = NULL, *cor2 = NULL; in ubifs_recover_master_node() local 236 err = get_master_node(c, UBIFS_MST_LNUM, &buf1, &mst1, &cor1); in ubifs_recover_master_node() 245 offs1 = (void *)mst1 - buf1; in ubifs_recover_master_node() 345 vfree(buf1); in ubifs_recover_master_node() 355 ubifs_dump_node(c, mst1, c->leb_size - ((void *)mst1 - buf1)); in ubifs_recover_master_node() 362 vfree(buf1); in ubifs_recover_master_node()
|
| /linux/rust/zerocopy/src/ |
| H A D | ref.rs | 1270 let buf1 = 0_u64; in test_eq() localVariable 1271 let r1 = Ref::<_, u64>::from_bytes(buf1.as_bytes()).unwrap(); in test_eq() 1279 let buf1 = 0_u64; in test_ne() localVariable 1280 let r1 = Ref::<_, u64>::from_bytes(buf1.as_bytes()).unwrap(); in test_ne() 1288 let buf1 = 0_u64; in test_ord() localVariable 1289 let r1 = Ref::<_, u64>::from_bytes(buf1.as_bytes()).unwrap(); in test_ord()
|
| /linux/kernel/trace/ |
| H A D | trace_eprobe.c | 853 char *buf1 __free(kfree) = NULL; in __trace_eprobe_create() 890 buf1 = kstrdup(sys_event, GFP_KERNEL); in __trace_eprobe_create() 891 if (!buf1) in __trace_eprobe_create() 893 event = buf1; in __trace_eprobe_create()
|
| /linux/drivers/usb/host/ |
| H A D | ehci-sched.c | 1025 u32 buf1; in iso_stream_init() local 1037 buf1 = is_input ? 1 << 11 : 0; in iso_stream_init() 1045 buf1 |= maxp; in iso_stream_init() 1049 stream->buf1 = cpu_to_hc32(ehci, buf1); in iso_stream_init() 1671 itd->hw_bufp[1] = stream->buf1; in itd_init() 2019 packet->buf1 = (buf + length) & ~0x0fff; in sitd_sched_init() 2020 if (packet->buf1 != (buf & ~(u64)0x0fff)) in sitd_sched_init() 2029 packet->buf1 |= length; in sitd_sched_init() 2124 sitd->hw_buf[1] = cpu_to_hc32(ehci, uf->buf1); in sitd_patch()
|