Searched refs:header0 (Results 1 – 2 of 2) sorted by relevance
| /OK3568_Linux_fs/u-boot/tools/ |
| H A D | rkcommon.c | 399 static int rkcommon_parse_header(const void *buf, struct header0_info *header0, in rkcommon_parse_header() argument 413 memcpy((void *)header0, buf, sizeof(struct header0_info)); in rkcommon_parse_header() 414 rc4_encode((void *)header0, sizeof(struct header0_info), rc4_key); in rkcommon_parse_header() 416 if (header0->magic != RK_MAGIC) in rkcommon_parse_header() 420 if (header0->disable_rc4 == 0) in rkcommon_parse_header() 423 hdr1_offset = header0->init_offset * RK_BLK_SIZE; in rkcommon_parse_header() 456 struct header0_info header0; in rkcommon_verify_header() local 464 ret = rkcommon_parse_header(buf, &header0, &img_spl_info); in rkcommon_verify_header() 490 struct header0_info header0; in rkcommon_print_header() local 509 ret = rkcommon_parse_header(buf, &header0, &spl_info); in rkcommon_print_header() [all …]
|
| /OK3568_Linux_fs/kernel/block/ |
| H A D | sed-opal.c | 576 u8 header0; in add_medium_atom_header() local 578 header0 = MEDIUM_ATOM_ID; in add_medium_atom_header() 579 header0 |= bytestring ? MEDIUM_ATOM_BYTESTRING : 0; in add_medium_atom_header() 580 header0 |= has_sign ? MEDIUM_ATOM_SIGNED : 0; in add_medium_atom_header() 581 header0 |= (len >> 8) & MEDIUM_ATOM_LEN_MASK; in add_medium_atom_header() 583 cmd->cmd[cmd->pos++] = header0; in add_medium_atom_header()
|