• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-12-stable/sys/dev/drm2/radeon/

Lines Matching defs:pkt

795  * @pkt:	where to store packet informations
801 struct radeon_cs_packet *pkt,
813 pkt->idx = idx;
814 pkt->type = CP_PACKET_GET_TYPE(header);
815 pkt->count = CP_PACKET_GET_COUNT(header);
816 pkt->one_reg_wr = 0;
817 switch (pkt->type) {
819 pkt->reg = CP_PACKET0_GET_REG(header);
822 pkt->opcode = CP_PACKET3_GET_OPCODE(header);
825 pkt->count = -1;
828 DRM_ERROR("Unknown packet type %d at %d !\n", pkt->type, idx);
831 if ((pkt->count + 1 + pkt->idx) >= ib_chunk->length_dw) {
833 pkt->idx, pkt->type, pkt->count, ib_chunk->length_dw);
1016 struct radeon_cs_packet *pkt,
1039 struct radeon_cs_packet *pkt)
1045 idx = pkt->idx + 1;
1046 reg = pkt->reg;
1047 for (i = 0; i <= pkt->count; i++, idx++, reg += 4) {
1048 r = r600_packet0_check(p, pkt, idx, reg);
1710 struct radeon_cs_packet *pkt)
1723 idx = pkt->idx + 1;
1726 switch (pkt->opcode) {
1733 if (pkt->count != 1) {
1766 if (p->family >= CHIP_RV770 || pkt->count) {
1772 if (pkt->count != 1) {
1779 if (pkt->count) {
1787 if (pkt->count != 3) {
1812 if (pkt->count != 1) {
1824 if (pkt->count < 2) {
1835 if (pkt->count != 5) {
1861 if (pkt->count != 4) {
1930 if (pkt->count != 3) {
1946 if (pkt->count != 2 && pkt->count != 0) {
1950 if (pkt->count) {
1970 if (pkt->count != 4) {
1990 end_reg = 4 * pkt->count + start_reg - 4;
1997 for (i = 0; i < pkt->count; i++) {
2006 end_reg = 4 * pkt->count + start_reg - 4;
2013 for (i = 0; i < pkt->count; i++) {
2021 if (pkt->count % 7) {
2026 end_reg = 4 * pkt->count + start_reg - 4;
2033 for (i = 0; i < (pkt->count / 7); i++) {
2106 end_reg = 4 * pkt->count + start_reg - 4;
2117 end_reg = 4 * pkt->count + start_reg - 4;
2127 end_reg = 4 * pkt->count + start_reg - 4;
2137 end_reg = 4 * pkt->count + start_reg - 4;
2146 if (pkt->count % 3) {
2151 end_reg = 4 * pkt->count + start_reg - 4;
2165 if (pkt->count != 1) {
2207 if (pkt->count) {
2213 if (pkt->count != 4) {
2260 if (pkt->count != 3) {
2286 if (pkt->count != 4) {
2342 DRM_ERROR("Packet3 opcode %x not supported\n", pkt->opcode);
2350 struct radeon_cs_packet pkt;
2373 r = r600_cs_packet_parse(p, &pkt, p->idx);
2379 p->idx += pkt.count + 2;
2380 switch (pkt.type) {
2382 r = r600_cs_parse_packet0(p, &pkt);
2387 r = r600_packet3_check(p, &pkt);
2390 DRM_ERROR("Unknown packet type %d !\n", pkt.type);