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

Lines Matching defs:pkt

1022  * @pkt:	where to store packet informations
1028 struct radeon_cs_packet *pkt,
1040 pkt->idx = idx;
1041 pkt->type = CP_PACKET_GET_TYPE(header);
1042 pkt->count = CP_PACKET_GET_COUNT(header);
1043 pkt->one_reg_wr = 0;
1044 switch (pkt->type) {
1046 pkt->reg = CP_PACKET0_GET_REG(header);
1049 pkt->opcode = CP_PACKET3_GET_OPCODE(header);
1052 pkt->count = -1;
1055 DRM_ERROR("Unknown packet type %d at %d !\n", pkt->type, idx);
1058 if ((pkt->count + 1 + pkt->idx) >= ib_chunk->length_dw) {
1060 pkt->idx, pkt->type, pkt->count, ib_chunk->length_dw);
1240 struct radeon_cs_packet *pkt,
1263 struct radeon_cs_packet *pkt)
1269 idx = pkt->idx + 1;
1270 reg = pkt->reg;
1271 for (i = 0; i <= pkt->count; i++, idx++, reg += 4) {
1272 r = evergreen_packet0_check(p, pkt, idx, reg);
1989 struct radeon_cs_packet *pkt)
2002 idx = pkt->idx + 1;
2005 switch (pkt->opcode) {
2012 if (pkt->count != 1) {
2044 if (pkt->count != 1) {
2052 if (pkt->count) {
2062 if (pkt->count) {
2071 if (pkt->count != 1) {
2098 if (pkt->count != 3) {
2126 if (pkt->count != 4) {
2151 if (pkt->count != 1) {
2162 if (pkt->count != 2) {
2173 if (pkt->count < 2) {
2184 if (pkt->count != 2) {
2195 if (pkt->count != 3) {
2206 if (pkt->count != 3) {
2217 if (pkt->count != 1) {
2234 if (pkt->count != 5) {
2260 if (pkt->count != 4) {
2358 if (pkt->count != 3) {
2374 if (pkt->count != 2 && pkt->count != 0) {
2378 if (pkt->count) {
2398 if (pkt->count != 4) {
2420 if (pkt->count != 3) {
2440 end_reg = 4 * pkt->count + start_reg - 4;
2447 for (i = 0; i < pkt->count; i++) {
2456 end_reg = 4 * pkt->count + start_reg - 4;
2463 for (i = 0; i < pkt->count; i++) {
2471 if (pkt->count % 8) {
2476 end_reg = 4 * pkt->count + start_reg - 4;
2483 for (i = 0; i < (pkt->count / 8); i++) {
2579 end_reg = 4 * pkt->count + start_reg - 4;
2589 end_reg = 4 * pkt->count + start_reg - 4;
2599 end_reg = 4 * pkt->count + start_reg - 4;
2608 if (pkt->count % 3) {
2613 end_reg = 4 * pkt->count + start_reg - 4;
2622 if (pkt->count != 4) {
2669 if (pkt->count != 3) {
2695 if (pkt->count != 4) {
2751 DRM_ERROR("Packet3 opcode %x not supported\n", pkt->opcode);
2759 struct radeon_cs_packet pkt;
2830 r = evergreen_cs_packet_parse(p, &pkt, p->idx);
2836 p->idx += pkt.count + 2;
2837 switch (pkt.type) {
2839 r = evergreen_cs_parse_packet0(p, &pkt);
2844 r = evergreen_packet3_check(p, &pkt);
2847 DRM_ERROR("Unknown packet type %d !\n", pkt.type);
3442 u32 *ib, struct radeon_cs_packet *pkt)
3444 u32 idx = pkt->idx + 1;
3449 switch (pkt->opcode) {
3509 end_reg = 4 * pkt->count + start_reg - 4;
3516 for (i = 0; i < pkt->count; i++) {
3590 struct radeon_cs_packet pkt;
3593 pkt.idx = idx;
3594 pkt.type = CP_PACKET_GET_TYPE(ib->ptr[idx]);
3595 pkt.count = CP_PACKET_GET_COUNT(ib->ptr[idx]);
3596 pkt.one_reg_wr = 0;
3597 switch (pkt.type) {
3606 pkt.opcode = CP_PACKET3_GET_OPCODE(ib->ptr[idx]);
3607 ret = evergreen_vm_packet3_check(rdev, ib->ptr, &pkt);
3608 idx += pkt.count + 2;
3611 dev_err(rdev->dev, "Unknown packet type %d !\n", pkt.type);