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