Lines Matching refs:buf
48 char buf[9]; in bcm63xx_detect_cfe() local
53 (void *)buf); in bcm63xx_detect_cfe()
54 buf[retlen] = 0; in bcm63xx_detect_cfe()
59 if (strncmp("cfe-v", buf, 5) == 0) in bcm63xx_detect_cfe()
64 (void *)buf); in bcm63xx_detect_cfe()
65 buf[retlen] = 0; in bcm63xx_detect_cfe()
67 return strncmp("CFE1CFE1", buf, 8); in bcm63xx_detect_cfe()
76 struct bcm_tag *buf; in bcm63xx_parse_cfe_partitions() local
99 buf = vmalloc(sizeof(struct bcm_tag)); in bcm63xx_parse_cfe_partitions()
100 if (!buf) in bcm63xx_parse_cfe_partitions()
105 (void *)buf); in bcm63xx_parse_cfe_partitions()
108 vfree(buf); in bcm63xx_parse_cfe_partitions()
112 computed_crc = crc32_le(IMAGETAG_CRC_START, (u8 *)buf, in bcm63xx_parse_cfe_partitions()
114 if (computed_crc == buf->header_crc) { in bcm63xx_parse_cfe_partitions()
115 char *boardid = &(buf->board_id[0]); in bcm63xx_parse_cfe_partitions()
116 char *tagversion = &(buf->tag_version[0]); in bcm63xx_parse_cfe_partitions()
118 sscanf(buf->flash_image_start, "%u", &rootfsaddr); in bcm63xx_parse_cfe_partitions()
119 sscanf(buf->kernel_address, "%u", &kerneladdr); in bcm63xx_parse_cfe_partitions()
120 sscanf(buf->kernel_length, "%u", &kernellen); in bcm63xx_parse_cfe_partitions()
121 sscanf(buf->total_length, "%u", &totallen); in bcm63xx_parse_cfe_partitions()
141 buf->header_crc, computed_crc); in bcm63xx_parse_cfe_partitions()
159 vfree(buf); in bcm63xx_parse_cfe_partitions()
211 vfree(buf); in bcm63xx_parse_cfe_partitions()