Lines Matching refs:packed_cond
324 uint32_t packed_cond, in v3d_qpu_flags_unpack() argument
341 if (packed_cond == 0) { in v3d_qpu_flags_unpack()
343 } else if (packed_cond >> 2 == 0) { in v3d_qpu_flags_unpack()
344 cond->apf = packed_cond & 0x3; in v3d_qpu_flags_unpack()
345 } else if (packed_cond >> 4 == 0) { in v3d_qpu_flags_unpack()
346 cond->auf = (packed_cond & 0xf) - 4 + V3D_QPU_UF_ANDZ; in v3d_qpu_flags_unpack()
347 } else if (packed_cond == 0x10) { in v3d_qpu_flags_unpack()
349 } else if (packed_cond >> 2 == 0x4) { in v3d_qpu_flags_unpack()
350 cond->mpf = packed_cond & 0x3; in v3d_qpu_flags_unpack()
351 } else if (packed_cond >> 4 == 0x1) { in v3d_qpu_flags_unpack()
352 cond->muf = (packed_cond & 0xf) - 4 + V3D_QPU_UF_ANDZ; in v3d_qpu_flags_unpack()
353 } else if (packed_cond >> 4 == 0x2) { in v3d_qpu_flags_unpack()
354 cond->ac = ((packed_cond >> 2) & 0x3) + V3D_QPU_COND_IFA; in v3d_qpu_flags_unpack()
355 cond->mpf = packed_cond & 0x3; in v3d_qpu_flags_unpack()
356 } else if (packed_cond >> 4 == 0x3) { in v3d_qpu_flags_unpack()
357 cond->mc = ((packed_cond >> 2) & 0x3) + V3D_QPU_COND_IFA; in v3d_qpu_flags_unpack()
358 cond->apf = packed_cond & 0x3; in v3d_qpu_flags_unpack()
359 } else if (packed_cond >> 6) { in v3d_qpu_flags_unpack()
360 cond->mc = cond_map[(packed_cond >> 4) & 0x3]; in v3d_qpu_flags_unpack()
361 if (((packed_cond >> 2) & 0x3) == 0) { in v3d_qpu_flags_unpack()
362 cond->ac = cond_map[packed_cond & 0x3]; in v3d_qpu_flags_unpack()
364 cond->auf = (packed_cond & 0xf) - 4 + V3D_QPU_UF_ANDZ; in v3d_qpu_flags_unpack()
374 uint32_t *packed_cond) in v3d_qpu_flags_pack() argument
417 *packed_cond = flags_table[i].bits; in v3d_qpu_flags_pack()
419 *packed_cond |= cond->apf; in v3d_qpu_flags_pack()
420 *packed_cond |= cond->mpf; in v3d_qpu_flags_pack()
423 *packed_cond |= cond->auf - V3D_QPU_UF_ANDZ + 4; in v3d_qpu_flags_pack()
425 *packed_cond |= cond->muf - V3D_QPU_UF_ANDZ + 4; in v3d_qpu_flags_pack()
428 *packed_cond |= (cond->ac - V3D_QPU_COND_IFA) << 2; in v3d_qpu_flags_pack()
431 if (*packed_cond & (1 << 6)) in v3d_qpu_flags_pack()
432 *packed_cond |= (cond->mc - in v3d_qpu_flags_pack()
435 *packed_cond |= (cond->mc - in v3d_qpu_flags_pack()
1239 uint32_t packed_cond = QPU_GET_FIELD(packed_instr, VC5_QPU_COND); in v3d_qpu_instr_unpack_alu() local
1241 instr->sig_addr = packed_cond & ~VC5_QPU_COND_SIG_MAGIC_ADDR; in v3d_qpu_instr_unpack_alu()
1242 instr->sig_magic = packed_cond & VC5_QPU_COND_SIG_MAGIC_ADDR; in v3d_qpu_instr_unpack_alu()
1251 if (!v3d_qpu_flags_unpack(devinfo, packed_cond, &instr->flags)) in v3d_qpu_instr_unpack_alu()