• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/char/drm/

Lines Matching refs:count

117 	if(start <= reg && start+count > reg)	\
120 if(start <= reg && start+count > reg) { \
129 unsigned int start, unsigned int count,
133 start + count - 1 > SAVAGE_DESTTEXRWWATERMARK_S3D) {
135 start, start + count - 1);
146 start + count > SAVAGE_TEXPALADDR_S3D) {
159 unsigned int start, unsigned int count,
165 start + count - 1 > SAVAGE_TEXBLENDCOLOR_S4) {
167 start, start + count - 1);
178 start + count > SAVAGE_TEXPALADDR_S4) {
201 unsigned int count = cmd_header->state.count;
208 if (!count)
212 ret = savage_verify_state_s3d(dev_priv, start, count, regs);
217 if (start + count > SAVAGE_SCEND_S3D + 1)
218 count2 = count - (SAVAGE_SCEND_S3D + 1 - start);
219 if (start + count > SAVAGE_SCSTART_S3D)
220 count = SAVAGE_SCSTART_S3D - start;
222 if (start + count > SAVAGE_SCEND_S3D + 1) {
223 count -= SAVAGE_SCEND_S3D + 1 - start;
229 ret = savage_verify_state_s4(dev_priv, start, count, regs);
234 if (start + count > SAVAGE_DRAWCTRL1_S4 + 1)
235 count2 = count -
237 if (start + count > SAVAGE_DRAWCTRL0_S4)
238 count = SAVAGE_DRAWCTRL0_S4 - start;
240 if (start + count > SAVAGE_DRAWCTRL1_S4 + 1) {
241 count -= SAVAGE_DRAWCTRL1_S4 + 1 - start;
248 bci_size = count + (count + 254) / 255 + count2 + (count2 + 254) / 255;
259 while (count > 0) {
260 unsigned int n = count < 255 ? count : 255;
263 count -= n;
269 count = count2;
271 } while (count);
285 unsigned int n = cmd_header->prim.count;
369 unsigned int count = n > 255 ? 255 : n;
377 BEGIN_BCI((count + 1 + 1) / 2);
378 BCI_DRAW_INDICES_S3D(count, prim, start + 2);
380 for (i = start + 1; i + 1 < start + count; i += 2)
384 if (i < start + count)
387 BEGIN_BCI((count + 1 + 1) / 2);
388 BCI_DRAW_INDICES_S3D(count, prim, start);
390 for (i = start + 1; i + 1 < start + count; i += 2)
392 if (i < start + count)
395 BEGIN_BCI((count + 2 + 1) / 2);
396 BCI_DRAW_INDICES_S4(count, prim, skip);
398 for (i = start; i + 1 < start + count; i += 2)
400 if (i < start + count)
404 start += count;
405 n -= count;
421 unsigned int n = cmd_header->prim.count;
488 unsigned int count = n > 255 ? 255 : n;
496 BEGIN_DMA(count * vtx_size + 1);
497 DMA_DRAW_PRIMITIVE(count, prim, skip);
499 for (i = start; i < start + count; ++i) {
506 BEGIN_DMA(count * vtx_size + 1);
507 DMA_DRAW_PRIMITIVE(count, prim, skip);
511 vtx_size * count);
513 for (i = start; i < start + count; ++i) {
522 start += count;
523 n -= count;
539 unsigned int n = cmd_header->idx.count;
614 unsigned int count = n > 255 ? 255 : n;
617 for (i = 0; i < count; ++i) {
631 BEGIN_BCI((count + 1 + 1) / 2);
632 BCI_DRAW_INDICES_S3D(count, prim, idx[2]);
634 for (i = 1; i + 1 < count; i += 2)
638 if (i < count)
641 BEGIN_BCI((count + 1 + 1) / 2);
642 BCI_DRAW_INDICES_S3D(count, prim, idx[0]);
644 for (i = 1; i + 1 < count; i += 2)
646 if (i < count)
649 BEGIN_BCI((count + 2 + 1) / 2);
650 BCI_DRAW_INDICES_S4(count, prim, skip);
652 for (i = 0; i + 1 < count; i += 2)
654 if (i < count)
658 idx += count;
659 n -= count;
676 unsigned int n = cmd_header->idx.count;
734 unsigned int count = n > 255 ? 255 : n;
737 for (i = 0; i < count; ++i) {
751 BEGIN_DMA(count * vtx_size + 1);
752 DMA_DRAW_PRIMITIVE(count, prim, skip);
754 for (i = 0; i < count; ++i) {
761 BEGIN_DMA(count * vtx_size + 1);
762 DMA_DRAW_PRIMITIVE(count, prim, skip);
764 for (i = 0; i < count; ++i) {
772 idx += count;
773 n -= count;
914 j = (cmd_header.idx.count + 3) / 4;
922 j = (cmd_header.idx.count + 3) / 4;
1049 j = (cmd_header.idx.count + 3) / 4;
1082 j = (cmd_header.state.count + 1) / 2;