Lines Matching defs:operand
39 static size_t rogue_encode_reg_bank(const struct rogue_operand *operand)
41 switch (operand->type) {
79 /* Index of the source operand/flag being mapped. */
696 * \brief Applies an operand encoding onto an instruction mask.
698 * \param[in] operand The operand to apply.
704 static bool rogue_encode_operand(const struct rogue_operand *operand,
711 switch (operand->type) {
716 rogue_encode_reg_bank(operand),
717 operand->reg.number + ROGUE_PIXEL_OUT_REG_OFFSET),
718 "Failed to encode pixel output register operand.");
724 rogue_encode_reg_bank(operand),
725 operand->reg.number + ROGUE_INTERNAL_REG_OFFSET),
726 "Failed to encode internal register operand.");
735 rogue_encode_reg_bank(operand),
736 operand->reg.number),
737 "Failed to encode register operand.");
741 CHECKF(mapping->encoder_fn(&value, 1, operand->immediate.value),
742 "Failed to encode immediate operand.");
746 CHECKF(mapping->encoder_fn(&value, 1, (uint64_t)operand->drc.number),
747 "Failed to encode DRC operand.");
764 * \brief Applies operand and flag encodings to the base instruction bytes, then
810 "Failed to encode instruction operand.");