Lines Matching refs:opcode
56 * \brief writes the opcode into the buffer
58 * \param buf buffer where to write the opcode to
59 * \param opcode opcode to be written
63 static inline size_t set_opcode(void *buf, uint16_t opcode)
66 *p = ((opcode >> 8) & 0xff); p++;
67 *p = (opcode & 0xff);
73 * \brief obtains the opcode from the buffer
82 uint16_t opcode = (*p) << 8; p++;
83 opcode |= *p;
85 return (tpft_op_t)opcode;