Lines Matching refs:cmdbuf

276     drm_file_t *filp_priv, drm_radeon_kcmd_buffer_t *cmdbuf,
279 u32 *cmd = (u32 *)(uintptr_t)cmdbuf->buf;
290 if (4 * *cmdsz > cmdbuf->bufsz) {
2820 drm_radeon_kcmd_buffer_t *cmdbuf)
2824 u32 *data = (u32 *)(uintptr_t)cmdbuf->buf;
2833 if (sz * sizeof (int) > cmdbuf->bufsz) {
2848 cmdbuf->buf += sz * sizeof (int);
2849 cmdbuf->bufsz -= sz * sizeof (int);
2855 drm_radeon_cmd_header_t header, drm_radeon_kcmd_buffer_t *cmdbuf)
2866 OUT_RING_TABLE(cmdbuf->buf, sz);
2868 cmdbuf->buf += sz * sizeof (int);
2869 cmdbuf->bufsz -= sz * sizeof (int);
2878 drm_radeon_cmd_header_t header, drm_radeon_kcmd_buffer_t *cmdbuf)
2889 OUT_RING_TABLE(cmdbuf->buf, sz);
2891 cmdbuf->buf += sz * sizeof (int);
2892 cmdbuf->bufsz -= sz * sizeof (int);
2898 drm_radeon_cmd_header_t header, drm_radeon_kcmd_buffer_t *cmdbuf)
2910 OUT_RING_TABLE(cmdbuf->buf, sz);
2913 cmdbuf->buf += sz * sizeof (int);
2914 cmdbuf->bufsz -= sz * sizeof (int);
2920 drm_radeon_cmd_header_t header, drm_radeon_kcmd_buffer_t *cmdbuf)
2928 if (sz * 4 > cmdbuf->bufsz)
2936 OUT_RING_TABLE(cmdbuf->buf, sz);
2939 cmdbuf->buf += sz * sizeof (int);
2940 cmdbuf->bufsz -= sz * sizeof (int);
2946 drm_radeon_kcmd_buffer_t *cmdbuf)
2955 filp_priv, cmdbuf, &cmdsz))) {
2961 OUT_RING_TABLE(cmdbuf->buf, cmdsz);
2964 cmdbuf->buf += cmdsz * 4;
2965 cmdbuf->bufsz -= cmdsz * 4;
2971 drm_radeon_kcmd_buffer_t *cmdbuf,
2978 drm_clip_rect_t __user *boxes = cmdbuf->boxes;
2983 filp_priv, cmdbuf, &cmdsz))) {
2992 if (i < cmdbuf->nbox) {
3000 * several cliprects with a cmdbuf, as when
3018 OUT_RING_TABLE(cmdbuf->buf, cmdsz);
3021 } while (++i < cmdbuf->nbox);
3022 if (cmdbuf->nbox == 1)
3023 cmdbuf->nbox = 0;
3026 cmdbuf->buf += cmdsz * 4;
3027 cmdbuf->bufsz -= cmdsz * 4;
3069 drm_radeon_kcmd_buffer_t cmdbuf;
3087 cmdbuf.bufsz = cmdbuf32.bufsz;
3088 cmdbuf.buf = (void *)(uintptr_t)cmdbuf32.buf;
3089 cmdbuf.nbox = cmdbuf32.nbox;
3090 cmdbuf.boxes = (void *)(uintptr_t)cmdbuf32.boxes;
3093 DRM_COPYFROM_WITH_RETURN(&cmdbuf, (void *) data,
3094 sizeof (cmdbuf));
3101 if (cmdbuf.bufsz > 64 * 1024 || cmdbuf.bufsz < 0) {
3106 * Allocate an in-kernel area and copy in the cmdbuf. Do this
3111 orig_bufsz = cmdbuf.bufsz;
3113 kbuf = drm_alloc(cmdbuf.bufsz, DRM_MEM_DRIVER);
3116 if (DRM_COPY_FROM_USER(kbuf, (void *)cmdbuf.buf,
3117 cmdbuf.bufsz)) {
3121 cmdbuf.buf = kbuf;
3124 orig_nbox = cmdbuf.nbox;
3128 temp = r300_do_cp_cmdbuf(dev, fpriv, &cmdbuf);
3137 while (cmdbuf.bufsz >= sizeof (header)) {
3139 header.i = *(int *)(uintptr_t)cmdbuf.buf;
3140 cmdbuf.buf += sizeof (header);
3141 cmdbuf.bufsz -= sizeof (header);
3147 (dev_priv, fpriv, header, &cmdbuf)) {
3155 if (radeon_emit_scalars(dev_priv, header, &cmdbuf)) {
3163 if (radeon_emit_vectors(dev_priv, header, &cmdbuf)) {
3191 if (radeon_emit_packet3(dev, fpriv, &cmdbuf)) {
3200 (dev, fpriv, &cmdbuf, orig_nbox)) {
3208 if (radeon_emit_scalars2(dev_priv, header, &cmdbuf)) {
3223 if (radeon_emit_veclinear(dev_priv, header, &cmdbuf)) {
3232 (void *)(cmdbuf.buf - sizeof (header)));