Lines Matching refs:pkt
714 struct radeon_cs_packet *pkt, in radeon_cs_packet_parse() argument
728 pkt->idx = idx; in radeon_cs_packet_parse()
729 pkt->type = RADEON_CP_PACKET_GET_TYPE(header); in radeon_cs_packet_parse()
730 pkt->count = RADEON_CP_PACKET_GET_COUNT(header); in radeon_cs_packet_parse()
731 pkt->one_reg_wr = 0; in radeon_cs_packet_parse()
732 switch (pkt->type) { in radeon_cs_packet_parse()
735 pkt->reg = R100_CP_PACKET0_GET_REG(header); in radeon_cs_packet_parse()
736 pkt->one_reg_wr = in radeon_cs_packet_parse()
739 pkt->reg = R600_CP_PACKET0_GET_REG(header); in radeon_cs_packet_parse()
742 pkt->opcode = RADEON_CP_PACKET3_GET_OPCODE(header); in radeon_cs_packet_parse()
745 pkt->count = -1; in radeon_cs_packet_parse()
748 DRM_ERROR("Unknown packet type %d at %d !\n", pkt->type, idx); in radeon_cs_packet_parse()
752 if ((pkt->count + 1 + pkt->idx) >= ib_chunk->length_dw) { in radeon_cs_packet_parse()
754 pkt->idx, pkt->type, pkt->count, ib_chunk->length_dw); in radeon_cs_packet_parse()
799 struct radeon_cs_packet *pkt) in radeon_cs_dump_packet() argument
806 idx = pkt->idx; in radeon_cs_dump_packet()
807 for (i = 0; i <= (pkt->count + 1); i++, idx++) in radeon_cs_dump_packet()