Lines Matching refs:readstate

1224 static void rcutorture_one_extend(int *readstate, int newstate,  in rcutorture_one_extend()  argument
1230 int idxold = *readstate; in rcutorture_one_extend()
1231 int statesnew = ~*readstate & newstate; in rcutorture_one_extend()
1232 int statesold = *readstate & ~newstate; in rcutorture_one_extend()
1274 if ((statesnew || statesold) && *readstate && newstate) in rcutorture_one_extend()
1282 *readstate = idxnew | newstate; in rcutorture_one_extend()
1283 WARN_ON_ONCE((*readstate >> RCUTORTURE_RDR_SHIFT) < 0); in rcutorture_one_extend()
1284 WARN_ON_ONCE((*readstate >> RCUTORTURE_RDR_SHIFT) > 1); in rcutorture_one_extend()
1325 rcutorture_loop_extend(int *readstate, struct torture_random_state *trsp, in rcutorture_loop_extend() argument
1332 WARN_ON_ONCE(!*readstate); /* -Existing- RCU read-side critsect! */ in rcutorture_loop_extend()
1339 mask = rcutorture_extend_mask(*readstate, trsp); in rcutorture_loop_extend()
1340 rcutorture_one_extend(readstate, mask, trsp, &rtrsp[j]); in rcutorture_loop_extend()
1358 int readstate = 0; in rcu_torture_one_read() local
1365 newstate = rcutorture_extend_mask(readstate, trsp); in rcu_torture_one_read()
1366 rcutorture_one_extend(&readstate, newstate, trsp, rtrsp++); in rcu_torture_one_read()
1377 rcutorture_one_extend(&readstate, 0, trsp, rtrsp); in rcu_torture_one_read()
1382 rtrsp = rcutorture_loop_extend(&readstate, trsp, rtrsp); in rcu_torture_one_read()
1403 rcutorture_one_extend(&readstate, 0, trsp, rtrsp); in rcu_torture_one_read()
1404 WARN_ON_ONCE(readstate & RCUTORTURE_RDR_MASK); in rcu_torture_one_read()