Lines Matching refs:header
264 drm_radeon_kcmd_buffer_t *cmdbuf, drm_r300_cmd_header_t header)
272 sz = header.packet0.count;
273 reg = (header.packet0.reghi << 8) | header.packet0.reglo;
318 drm_r300_cmd_header_t header)
324 sz = header.packet0.count;
325 reg = (header.packet0.reghi << 8) | header.packet0.reglo;
342 cmdbuf, header));
366 drm_radeon_kcmd_buffer_t *cmdbuf, drm_r300_cmd_header_t header)
372 sz = header.vpu.count;
373 addr = (header.vpu.adrhi << 8) | header.vpu.adrlo;
425 drm_radeon_kcmd_buffer_t *cmdbuf, u32 header)
433 count = (header >> 16) & 0x3fff;
481 OUT_RING(header);
573 u32 header;
585 /* obtain first word - actual packet3 header */
586 header = *(u32 *)(uintptr_t)cmdbuf->buf;
589 if ((header >> 30) != 0x3) {
590 DRM_ERROR("Not a packet3 header (0x%08x)\n", header);
594 count = (header >> 16) & 0x3fff;
604 switch (header & 0xff00) {
606 return (r300_emit_3d_load_vbpntr(dev_priv, cmdbuf, header));
627 DRM_ERROR("Unknown packet3 header (0x%08x)\n", header);
632 OUT_RING(header);
647 drm_radeon_kcmd_buffer_t *cmdbuf, drm_r300_cmd_header_t header)
669 switch (header.packet3.packet) {
690 header.packet3.packet,
691 (void *)(cmdbuf->buf - sizeof (header)));
747 drm_r300_cmd_header_t header)
754 header.scratch.n_bufs * sizeof (buf_idx)) {
758 if (header.scratch.reg >= 5) {
762 dev_priv->scratch_ages[header.scratch.reg] ++;
769 for (i = 0; i < header.scratch.n_bufs; i++) {
774 &dev_priv->scratch_ages[header.scratch.reg],
800 OUT_RING(CP_PACKET0(RADEON_SCRATCH_REG0 + header.scratch.reg * 4, 0));
801 OUT_RING(dev_priv->scratch_ages[header.scratch.reg]);
839 drm_r300_cmd_header_t header;
841 header.u = *(unsigned int *)(uintptr_t)cmdbuf->buf;
843 cmdbuf->buf += sizeof (header);
844 cmdbuf->bufsz -= sizeof (header);
846 switch (header.header.cmd_type) {
849 ret = r300_emit_packet0(dev_priv, cmdbuf, header);
858 ret = r300_emit_vpu(dev_priv, cmdbuf, header);
867 ret = r300_emit_packet3(dev_priv, cmdbuf, header);
903 BEGIN_RING(header.delay.count);
904 for (i = 0; i < header.delay.count; i++)
912 idx = header.dma.buf_idx;
936 if (header.wait.flags == 0)
944 OUT_RING((header.wait.flags & 0xf) << 14);
951 ret = r300_scratch(dev_priv, cmdbuf, header);
960 header.header.cmd_type,
961 (void *)(cmdbuf->buf - sizeof (header)));