Searched refs:hdr (Results 1 - 25 of 33) sorted by relevance

12

/netgear-R7800-V1.0.2.28/package/mtd/src/
H A Dfis.c40 struct fis_image_hdr hdr; member in struct:fis_image_desc
115 if (!desc->hdr.name[0] || (desc->hdr.name[0] == 0xff))
119 if (!strncmp((char *) desc->hdr.name, (char *) old[i].name, sizeof(desc->hdr.name))) {
164 if (!desc->hdr.name[0] || (desc->hdr.name[0] == 0xff))
167 if (!strcmp((char *) desc->hdr.name, "FIS directory"))
170 if (!strcmp((char *) desc->hdr.name, "RedBoot"))
174 if (offset < desc->hdr
[all...]
/netgear-R7800-V1.0.2.28/tools/firmware-utils/src/
H A Daddpattern.c143 struct code_header *hdr; local
163 hdr = (struct code_header *) buf;
164 memset(hdr, 0, sizeof(struct code_header));
178 hdr->sn = (unsigned char) atoi (optarg);
190 hdr->hw_ver = 0;
193 hdr->hw_ver = 1;
196 hdr->hw_ver = 1;
197 hdr->flags[0] |= SUPPORT_4712_CHIP;
198 hdr->flags[0] |= SUPPORT_INTEL_FLASH;
199 hdr
[all...]
H A Dmkchkimg.c126 struct chk_header * hdr; local
238 hdr = malloc (sizeof (struct chk_header));
239 if (!hdr) {
242 bzero (hdr, sizeof (struct chk_header));
245 hdr->magic = htonl (0x2a23245e);
246 hdr->header_len = htonl(header_len);
247 hdr->reserved[0] = (unsigned char)(region & 0xff);
248 hdr->reserved[1] = 1; /* Major */
249 hdr->reserved[2] = 1; /* Minor */
250 hdr
[all...]
H A Dmakeamitbin.c145 void showhdr(unsigned char *hdr) argument
152 printf("%02x ", (unsigned int)(hdr[j * 16 + i]));
157 unsigned char d = hdr[j * 16 + i];
164 void makehdr(unsigned char *hdr, struct hdrinfo *info, argument
168 memset(hdr, 0, HDRSIZE);
171 strncpy((char *)hdr + 0x00, ascii1, 14);
172 strncpy((char *)hdr + 0x10, ascii2, 12);
173 COPY_LONG(hdr, 0x1c, info->unknown);
174 COPY_LONG(hdr, 0x20, info->addr);
175 COPY_LONG(hdr,
263 unsigned char hdr[HDRSIZE]; local
[all...]
H A Dtrx2usr.c5 * This program was modeled after the usr-hdr.c program from the GPL'ed
108 struct usr_header hdr; local
111 hdr.magic = USR_MAGIC;
112 hdr.len = 0;
113 hdr.crc32 = CRC32_INIT;
114 hdr.version = EPI_VERSION;
115 hdr.compatibility_id = COMPAT_ID;
116 hdr.hardware_revision = HARDWARE_REV;
117 hdr.reserved[0] = 0;
118 hdr
[all...]
H A Dfix-u-media-header.c240 struct u_media_header *hdr; local
244 if (buflen < sizeof(*hdr)) {
259 hdr = (struct u_media_header *) buf;
260 if (ntohl(hdr->ih_magic) != IH_MAGIC) {
266 crc_orig = ntohl(hdr->ih_hcrc);
267 hdr->ih_hcrc = 0;
268 crc = cyg_ether_crc32((unsigned char *)hdr, sizeof(*hdr));
274 hdr->ih_name[IH_NMLEN - UM_HEADER_LEN - 1] = '\0';
277 hdr
[all...]
H A Dmktplinkfw.c573 struct fw_header *hdr = (struct fw_header *)buf; local
575 memset(hdr, 0, sizeof(struct fw_header));
577 hdr->version = htonl(HEADER_VERSION_V1);
578 strncpy(hdr->vendor_name, vendor, sizeof(hdr->vendor_name));
579 strncpy(hdr->fw_version, version, sizeof(hdr->fw_version));
580 hdr->hw_id = htonl(hw_id);
581 hdr->hw_rev = htonl(hw_rev);
584 memcpy(hdr
798 struct fw_header *hdr; local
[all...]
H A Dmkcameofw.c283 struct img_header *hdr; local
315 hdr = (struct img_header *) buf;
317 hdr->checksum = htonl(csum);
318 hdr->image_size = htonl(buflen - sizeof(struct img_header));
319 hdr->kernel_size = htonl(kernel_info.write_size);
320 hdr->header_len = sizeof(struct img_header);
321 strncpy(hdr->model, model, sizeof(hdr->model));
322 strncpy(hdr->signature, signature, sizeof(hdr
[all...]
H A Dmkplanexfw.c131 struct planex_hdr *hdr; local
209 hdr = (struct planex_hdr *)buf;
211 hdr->datalen = HOST_TO_BE32(board->datalen);
212 hdr->unk1[0] = board->unk[0];
213 hdr->unk1[1] = board->unk[1];
215 snprintf(hdr->version, sizeof(hdr->version), "%s", version);
224 fread(buf + sizeof(*hdr), st.st_size, 1, infile);
233 sha1_update(&ctx, buf + sizeof(*hdr), board->datalen);
234 sha1_finish(&ctx, hdr
[all...]
H A Dmktitanimg.h166 struct nsp_img_hdr_sections *nsp_img_hdr_get_section_ptr_by_name(struct nsp_img_hdr *hdr, char *name);
167 unsigned int nsp_img_hdr_get_section_offset_by_name(struct nsp_img_hdr *hdr, char *name);
168 unsigned int nsp_img_hdr_get_section_size_by_name(struct nsp_img_hdr *hdr, char *name);
H A Dmkzynfw.c561 write_out_header(FILE *outfile, struct zyn_rombin_hdr *hdr) argument
573 t.addr = HOST_TO_BE32(hdr->addr);
575 t.type = hdr->type;
576 t.flags = hdr->flags;
577 t.osize = HOST_TO_BE32(hdr->osize);
578 t.csize = HOST_TO_BE32(hdr->csize);
579 t.ocsum = HOST_TO_BE16(hdr->ocsum);
580 t.ccsum = HOST_TO_BE16(hdr->ccsum);
581 t.mmap_addr = HOST_TO_BE32(hdr->mmap_addr);
583 DBG(2, "hdr
750 struct zyn_rombin_hdr hdr; local
[all...]
H A Dmkzcfw.c281 struct fw_header *hdr; local
298 hdr = (struct fw_header *) p;
299 hdr->magic = HOST_TO_LE32(MAGIC_FIRMWARE);
300 hdr->length = HOST_TO_LE32(buflen - sizeof(struct fw_header));
304 hdr = (struct fw_header *) p;
305 hdr->magic = HOST_TO_LE32(MAGIC_KERNEL);
306 hdr->length = HOST_TO_LE32(kernel_info.file_size +
324 hdr = (struct fw_header *) p;
325 hdr->magic = HOST_TO_LE32(MAGIC_ROOTFS);
326 hdr
[all...]
H A Dmktitanimg.c40 void mknspimg_print_hdr(struct nsp_img_hdr *hdr) argument
48 printf("Magic: 0x%x\n", hdr->head.magic);
49 printf("Image Header Size: 0x%x bytes\n", hdr->head.hdr_size);
50 printf("Total Image Size: %d bytes\n", hdr->head.image_size);
51 printf("Product ID: 0x%x\n", hdr->head.prod_id);
52 printf("Release ID: 0x%x\n", hdr->head.rel_id);
53 printf("Version ID: 0x%x\n", hdr->head.version);
55 printf("Offset Info: 0x%x\n", hdr->head.info_offset);
56 printf("Offset Sect info: 0x%x\n", hdr->head.sect_info_offset);
57 printf("Offset Sections: 0x%x\n", hdr
402 struct nsp_img_hdr *hdr; local
[all...]
H A Dmkmylofw.c596 struct mylo_fw_header hdr; local
598 memset(&hdr, 0, sizeof(hdr));
600 hdr.magic = HOST_TO_LE32(MYLO_MAGIC_FIRMWARE);
601 hdr.crc = HOST_TO_LE32(fw_header.crc);
602 hdr.vid = HOST_TO_LE16(fw_header.vid);
603 hdr.did = HOST_TO_LE16(fw_header.did);
604 hdr.svid = HOST_TO_LE16(fw_header.svid);
605 hdr.sdid = HOST_TO_LE16(fw_header.sdid);
606 hdr
[all...]
H A Dosbridge-crc.c82 uint32_t *hdr; local
149 hdr = (uint32_t *)buf;
150 *hdr = HOST_TO_LE32(crc);
/netgear-R7800-V1.0.2.28/target/linux/ubicom32/files/arch/ubicom32/kernel/
H A Dmodule.c85 int module_frob_arch_sections(Elf_Ehdr *hdr, argument
100 if ((hdr->e_flags & 0xFFFF) != EF_UBICOM32_V4) {
103 mod->name, hdr->e_flags);
107 if ((hdr->e_flags & 0xFFFF) != EF_UBICOM32_V3) {
110 mod->name, hdr->e_flags);
124 sechdrs_end = sechdrs + hdr->e_shnum;
410 int module_finalize(const Elf_Ehdr *hdr, argument
418 err = module_bug_finalize(hdr, sechdrs, mod);
429 secstrings = (void *)hdr + sechdrs[hdr
[all...]
/netgear-R7800-V1.0.2.28/target/linux/rdc/base-files/lib/preinit/
H A D05_set_ether_mac_rdc16 [ -n "$kernel" ] && hdr=$(dd if=/dev/$kernel count=4 bs=1 2> /dev/null)
17 [ "$hdr" = "CSYS" ] && config=$(find_mtd_part config)
/netgear-R7800-V1.0.2.28/target/linux/adm5120/image/lzma-loader/src/
H A Ddecompress.c230 struct trx_header *hdr = NULL; local
237 hdr = (struct trx_header *)&flash_base[flash_ofs];
242 if (hdr == NULL) {
249 kofs = read_le32(&hdr->offsets[1]);
251 klen = kofs-read_le32(&hdr->offsets[0]);
252 kofs = read_le32(&hdr->offsets[0]);
254 klen = read_le32(&hdr->offsets[2]);
258 klen = read_le32(&hdr->len)-kofs;
/netgear-R7800-V1.0.2.28/target/linux/ar71xx/image/lzma-loader/src/
H A Dloader.c173 struct image_header *hdr = NULL; local
192 hdr = (struct image_header *) p;
197 if (hdr == NULL) {
205 kernel_size = get_be32(&hdr->ih_size);
206 kernel_la = get_be32(&hdr->ih_load);
/netgear-R7800-V1.0.2.28/scripts/
H A DbrcmImage.pl110 my $hdr = pack("a4a20a14a6a16a2a10a12a10a12a10a12a10a2a2a74Na16",
129 $hdr .= pack('Na16', ~crc32($hdr), '');
137 print FO $hdr;
/netgear-R7800-V1.0.2.28/target/linux/orion/files/arch/arm/mach-orion5x/
H A Ddt2-setup.c392 for (; t->hdr.size; t = tag_next(t)){
394 if (t->hdr.tag == ATAG_CMDLINE) {
403 if (t->hdr.tag == ATAG_MEM &&
409 t->hdr.tag = 0;
416 t->hdr.tag = ATAG_CMDLINE;
417 t->hdr.size =
433 t->hdr.tag = ATAG_NONE;
434 t->hdr.size = 0;
/netgear-R7800-V1.0.2.28/target/linux/generic/files/drivers/net/phy/
H A Dswconfig.c49 struct genlmsghdr *hdr; member in struct:swconfig_callback
419 void *hdr; local
421 hdr = genlmsg_put(msg, info->snd_pid, info->snd_seq, &switch_fam,
423 if (IS_ERR(hdr))
433 return genlmsg_end(msg, hdr);
435 genlmsg_cancel(msg, hdr);
485 struct genlmsghdr *hdr = nlmsg_data(info->nlhdr); local
501 switch(hdr->cmd) {
571 struct genlmsghdr *hdr = nlmsg_data(info->nlhdr); local
584 switch(hdr
823 struct genlmsghdr *hdr = nlmsg_data(info->nlhdr); local
898 void *hdr; local
[all...]
/netgear-R7800-V1.0.2.28/target/linux/generic/files/crypto/ocf/talitos/
H A Dtalitos.c99 * of the hdr field to 0xff.
556 if (sc->sc_chnfifo[chsel][i].cf_desc.hdr == 0) {
565 sc->sc_chnfifo[chsel][i].cf_desc.hdr |=
591 td->hdr |= TD_TYPE_COMMON_NONSNOOP_NO_AFEU;
618 td->hdr |= TD_TYPE_IPSEC_ESP;
709 td->hdr |= TALITOS_MODE0_DEU_3DES;
712 td->hdr |= TALITOS_SEL0_DEU
715 td->hdr |= TALITOS_MODE0_DEU_ENC;
718 (td->hdr & TALITOS_MODE0_DEU_3DES)?'3':'1',
723 td->hdr |
[all...]
/netgear-R7800-V1.0.2.28/target/linux/ar7/files/drivers/mtd/
H A Dtitanpart.c154 struct nsp_img_hdr_head hdr; local
171 //hdr=(struct nsp_img_hdr_head*)flash_base;
172 master->read(master, flash_base, sizeof(struct nsp_img_hdr_head), &len, (uint8_t *)&hdr);
173 if(hdr.magic != NSP_IMG_MAGIC_NUMBER)
176 master->read(master, flash_base + hdr.sect_info_offset, sizeof(struct nsp_img_hdr_section_info), &len, (uint8_t *)&sect_info);
/netgear-R7800-V1.0.2.28/target/linux/ubicom32/files/arch/ubicom32/mach-common/
H A Dprofile.c180 struct profile_header_counters hdr; local
200 hdr.magic = PROF_MAGIC_COUNTERS;
201 hdr.ultra_sample_time = node->clocks;
202 hdr.ultra_count = stat_count;
203 hdr.linux_sample_time = UBICOM32_IO_TIMER->sysval;
204 hdr.linux_count = builtin_count;
205 memcpy(ptr, (void *)&hdr, sizeof(struct profile_header_counters));

Completed in 496 milliseconds

12