Lines Matching full:dcd
57 * DCD block
99 struct sb_dcd_ctx *dcd; member
103 /* The DCD block. */
105 /* Size of the whole DCD block. */
108 /* Pointer to previous DCD command block. */
552 /* Assemble and update the HAB DCD header. */ in sb_grow_dcd()
576 /* Read DCD block number. */ in sb_build_dcd()
579 fprintf(stderr, "#%i ERR: DCD block without number!\n", in sb_build_dcd()
585 /* Parse the DCD block number. */ in sb_build_dcd()
588 fprintf(stderr, "#%i ERR: Malformed DCD block number!\n", in sb_build_dcd()
596 * The DCD block is now constructed. Append it to the list. in sb_build_dcd()
597 * WARNING: The DCD size is still not computed and will be in sb_build_dcd()
604 ictx->dcd_tail->dcd = dctx; in sb_build_dcd()
625 uint32_t *dcd; in sb_build_dcd_block() local
638 /* Update DCD command block pointer. */ in sb_build_dcd_block()
653 /* Update DCD command block pointer. */ in sb_build_dcd_block()
658 dcd = dctx->payload + dctx->size / sizeof(*dctx->payload) - 2; in sb_build_dcd_block()
665 fprintf(stderr, "#%i ERR: Missing DCD address!\n", in sb_build_dcd_block()
671 /* Read DCD destination address. */ in sb_build_dcd_block()
674 fprintf(stderr, "#%i ERR: Incorrect DCD address!\n", in sb_build_dcd_block()
681 fprintf(stderr, "#%i ERR: Missing DCD value!\n", in sb_build_dcd_block()
687 /* Read DCD operation value. */ in sb_build_dcd_block()
690 fprintf(stderr, "#%i ERR: Incorrect DCD value!\n", in sb_build_dcd_block()
695 /* Fill in the new DCD entry. */ in sb_build_dcd_block()
696 dcd[0] = htonl(address); in sb_build_dcd_block()
697 dcd[1] = htonl(value); in sb_build_dcd_block()
700 /* Update the DCD command block. */ in sb_build_dcd_block()
871 uint32_t dest, dcd = 0; in sb_build_command_load() local
893 if (!strcmp(tok, "DCD")) in sb_build_command_load()
913 /* Read filename or IVT entrypoint or DCD block ID. */ in sb_build_command_load()
917 "#%i ERR: Missing LOAD filename or IVT ep or DCD block ID!\n", in sb_build_command_load()
957 "#%i ERR: Incorrect DCD block ID!\n", in sb_build_command_load()
965 dctx = dctx->dcd; in sb_build_command_load()
969 fprintf(stderr, "#%i ERR: DCD block %08x not found!\n", in sb_build_command_load()
986 /* Set the Load DCD flag. */ in sb_build_command_load()
987 dcd = ROM_LOAD_CMD_FLAG_DCD_LOAD; in sb_build_command_load()
1008 ccmd->header.flags = dcd; in sb_build_command_load()
1471 /* DCD */ in sb_parse_line()
1472 if (!strcmp(tok, "DCD")) { in sb_parse_line()
1536 /* DCD commands */ in sb_parse_line()
2159 dctx = dctx->dcd; in sb_free_image()