Lines Matching defs:pkt
736 * @pkt: where to store packet information
743 struct radeon_cs_packet *pkt,
757 pkt->idx = idx;
758 pkt->type = RADEON_CP_PACKET_GET_TYPE(header);
759 pkt->count = RADEON_CP_PACKET_GET_COUNT(header);
760 pkt->one_reg_wr = 0;
761 switch (pkt->type) {
764 pkt->reg = R100_CP_PACKET0_GET_REG(header);
765 pkt->one_reg_wr =
768 pkt->reg = R600_CP_PACKET0_GET_REG(header);
771 pkt->opcode = RADEON_CP_PACKET3_GET_OPCODE(header);
774 pkt->count = -1;
777 DRM_ERROR("Unknown packet type %d at %d !\n", pkt->type, idx);
781 if ((pkt->count + 1 + pkt->idx) >= ib_chunk->length_dw) {
783 pkt->idx, pkt->type, pkt->count, ib_chunk->length_dw);
823 * @pkt: structure holding the packet.
828 struct radeon_cs_packet *pkt)
835 idx = pkt->idx;
836 for (i = 0; i <= (pkt->count + 1); i++, idx++)