Lines Matching defs:count
155 #define ADD_RANGE_MARK(reg, count, mark) \
156 for (i = ((reg) >> 2); i < ((reg) >> 2) + (count); i++)\
162 #define ADD_RANGE(reg, count) ADD_RANGE_MARK(reg, count, MARK_SAFE)
251 static __inline__ int r300_check_range(unsigned reg, int count)
256 for (i = (reg >> 2); i < (reg >> 2) + count; i++)
272 sz = header.packet0.count;
324 sz = header.packet0.count;
372 sz = header.vpu.count;
427 int count, i, k;
433 count = (header >> 16) & 0x3fff;
435 if ((count + 1) > MAX_ARRAY_PACKET) {
436 DRM_ERROR("Too large payload in 3D_LOAD_VBPNTR (count=%d)\n",
437 count);
441 (void) memcpy(payload, cmdbuf->buf + 4, (count + 1) * 4);
448 while ((k < narrays) && (i < (count + 1))) {
471 if ((k != narrays) || (i != (count + 1))) {
473 "(k=%d i=%d narrays=%d count+1=%d).\n",
474 k, i, narrays, count + 1);
480 BEGIN_RING(count + 2);
482 OUT_RING_TABLE(payload, count + 1);
485 cmdbuf->buf += (count + 2) * 4;
486 cmdbuf->bufsz -= (count + 2) * 4;
495 int count, ret;
498 count = (cmd[0] >> 16) & 0x3fff;
527 BEGIN_RING(count+2);
529 OUT_RING_TABLE((cmdbuf->buf + 4), count + 1);
532 cmdbuf->buf += (count+2)*4;
533 cmdbuf->bufsz -= (count+2)*4;
543 int count, ret;
546 count = (cmd[0]>>16) & 0x3fff;
558 BEGIN_RING(count+2);
560 OUT_RING_TABLE(cmdbuf->buf + 4, count + 1);
563 cmdbuf->buf += (count+2)*4;
564 cmdbuf->bufsz -= (count+2)*4;
574 int count;
594 count = (header >> 16) & 0x3fff;
597 if ((count + 2) * 4 > cmdbuf->bufsz) {
599 "%d bytes left\n", (count + 2) * 4, cmdbuf->bufsz);
631 BEGIN_RING(count + 2);
633 OUT_RING_TABLE((cmdbuf->buf + 4), count + 1);
636 cmdbuf->buf += (count + 2) * 4;
637 cmdbuf->bufsz -= (count + 2) * 4;
903 BEGIN_RING(header.delay.count);
904 for (i = 0; i < header.delay.count; i++)