Lines Matching defs:sz
301 int sz;
306 sz = header.packet0.count;
309 if ((sz > 64) || (sz < 0)) {
310 DRM_ERROR("Cannot emit more than 64 values at a time (reg=%04x sz=%d)\n",
311 reg, sz);
315 for (i = 0; i < sz; i++) {
322 DRM_ERROR("Offset failed range check (reg=%04x sz=%d)\n",
323 reg, sz);
334 BEGIN_RING(1 + sz);
335 OUT_RING(CP_PACKET0(reg, sz - 1));
336 OUT_RING_DRM_BUFFER(cmdbuf->buffer, sz);
353 int sz;
356 sz = header.packet0.count;
359 if (!sz)
362 if (sz * 4 > drm_buffer_unprocessed(cmdbuf->buffer))
365 if (reg + sz * 4 >= 0x10000) {
366 DRM_ERROR("No such registers in hardware reg=%04x sz=%d\n", reg,
367 sz);
371 if (r300_check_range(reg, sz)) {
378 BEGIN_RING(1 + sz);
379 OUT_RING(CP_PACKET0(reg, sz - 1));
380 OUT_RING_DRM_BUFFER(cmdbuf->buffer, sz);
395 int sz;
399 sz = header.vpu.count;
402 if (!sz)
404 if (sz * 16 > drm_buffer_unprocessed(cmdbuf->buffer))
420 BEGIN_RING(3 + sz * 4);
422 OUT_RING(CP_PACKET0_TABLE(R300_VAP_PVS_UPLOAD_DATA, sz * 4 - 1));
423 OUT_RING_DRM_BUFFER(cmdbuf->buffer, sz * 4);
967 int sz;
974 sz = header.r500fp.count;
986 DRM_DEBUG("r500fp %d %d type: %d\n", sz, addr, type);
987 if (!sz)
989 if (sz * stride * 4 > drm_buffer_unprocessed(cmdbuf->buffer))
992 BEGIN_RING(3 + sz * stride);
994 OUT_RING(CP_PACKET0_TABLE(R500_GA_US_VECTOR_DATA, sz * stride - 1));
995 OUT_RING_DRM_BUFFER(cmdbuf->buffer, sz * stride);