Lines Matching refs:nr
40 static INLINE boolean u_validate_pipe_prim( unsigned pipe_prim, unsigned nr )
46 ok = (nr >= 1);
49 ok = (nr >= 2);
53 ok = (nr >= 2);
56 ok = (nr >= 3);
61 ok = (nr >= 3);
64 ok = (nr >= 4);
67 ok = (nr >= 4);
78 static INLINE boolean u_trim_pipe_prim( unsigned pipe_prim, unsigned *nr )
99 *nr = 0;
103 ok = (*nr >= values[pipe_prim][0]);
105 *nr -= (*nr % values[pipe_prim][1]);
108 *nr = 0;