Lines Matching defs:bits
124 uint8_t bits;
130 static void msg_push_bits(struct fsi_msg *msg, uint64_t data, int bits)
132 msg->msg <<= bits;
133 msg->msg |= data & ((1ull << bits) - 1);
134 msg->bits += bits;
142 top = msg->bits & 0x3;
144 /* start bit, and any non-aligned top bits */
145 crc = crc4(0, 1 << top | msg->msg >> (msg->bits - top), top + 1);
147 /* aligned bits */
148 crc = crc4(crc, msg->msg, msg->bits - top);
156 cmd->msg <<= (64 - cmd->bits);
176 * top two address bits. So, if we're referencing a different ID,
182 /* remove the top two bits from any 23-bit addressing */
185 /* We know that the addresses are limited to 21 bits, so this won't
218 cmd->bits = 0;
221 /* we have 21 bits of address max */
224 /* cmd opcodes are variable length - SAME_AR is only two bits */
235 /* 8 bits plus sign */
248 * The read/write size is encoded in the lower bits of the address
276 cmd->bits = 0;
287 cmd->bits = 0;
298 cmd->bits = 0;
370 op |= cmd->bits << CMD_REG_CLEN_SHIFT;