Lines Matching refs:sz
267 int sz;
272 sz = header.packet0.count;
275 if ((sz > 64) || (sz < 0)) {
277 "(reg=%04x sz=%d)\n", reg, sz);
280 for (i = 0; i < sz; i++) {
288 "(reg=%04x sz=%d)\n", reg, sz);
299 BEGIN_RING(1 + sz);
300 OUT_RING(CP_PACKET0(reg, sz - 1));
301 OUT_RING_TABLE(values, sz);
304 cmdbuf->buf += sz * 4;
305 cmdbuf->bufsz -= sz * 4;
321 int sz;
324 sz = header.packet0.count;
327 if (!sz)
330 if (sz * 4 > cmdbuf->bufsz)
333 if (reg + sz * 4 >= 0x10000) {
334 DRM_ERROR("No such registers in hardware reg=%04x sz=%d\n",
335 reg, sz);
339 if (r300_check_range(reg, sz)) {
349 BEGIN_RING(1 + sz);
350 OUT_RING(CP_PACKET0(reg, sz - 1));
351 OUT_RING_TABLE(cmdbuf->buf, sz);
354 cmdbuf->buf += sz * 4;
355 cmdbuf->bufsz -= sz * 4;
368 int sz;
372 sz = header.vpu.count;
375 if (!sz)
377 if (sz * 16 > cmdbuf->bufsz)
380 BEGIN_RING(5 + sz * 4);
388 OUT_RING(CP_PACKET0_TABLE(R300_VAP_PVS_UPLOAD_DATA, sz * 4 - 1));
389 OUT_RING_TABLE(cmdbuf->buf, sz * 4);
393 cmdbuf->buf += sz * 16;
394 cmdbuf->bufsz -= sz * 16;