Lines Matching defs:cmd
279 u32 *cmd = (u32 *)(uintptr_t)cmdbuf->buf;
283 *cmdsz = 2 + ((cmd[0] & RADEON_CP_PACKET_COUNT_MASK) >> 16);
285 if ((cmd[0] & 0xc0000000) != RADEON_CP_PACKET3) {
296 switch (cmd[0] & 0xff00) {
326 count = (cmd[0] >> 16) & 0x3fff;
336 narrays = cmd[1] & ~0xc000;
342 filp_priv, &cmd[i])) {
354 filp_priv, &cmd[i])) {
379 filp_priv, &cmd[1])) {
390 if ((cmd[1] & 0x8000ffff) != 0x80000810) {
392 "Invalid indx_buffer reg address %08X\n", cmd[1]);
396 filp_priv, &cmd[2])) {
398 "Invalid indx_buffer offset is %08X\n", cmd[2]);
407 if (cmd[1] & (RADEON_GMC_SRC_PITCH_OFFSET_CNTL |
409 offset = cmd[2] << 10;
415 cmd[2] = (cmd[2] & 0xffc00000) | offset >> 10;
418 if ((cmd[1] & RADEON_GMC_SRC_PITCH_OFFSET_CNTL) &&
419 (cmd[1] & RADEON_GMC_DST_PITCH_OFFSET_CNTL)) {
420 offset = cmd[3] << 10;
426 cmd[3] = (cmd[3] & 0xffc00000) | offset >> 10;
431 DRM_ERROR("Invalid packet type %x\n", cmd[0] & 0xff00);