Lines Matching refs:readstate
1731 static void rcutorture_one_extend(int *readstate, int newstate, in rcutorture_one_extend() argument
1738 int idxold1 = *readstate; in rcutorture_one_extend()
1740 int statesnew = ~*readstate & newstate; in rcutorture_one_extend()
1741 int statesold = *readstate & ~newstate; in rcutorture_one_extend()
1799 if ((statesnew || statesold) && *readstate && newstate) in rcutorture_one_extend()
1812 *readstate = idxnew1 | idxnew2 | newstate; in rcutorture_one_extend()
1813 WARN_ON_ONCE(*readstate < 0); in rcutorture_one_extend()
1814 if (WARN_ON_ONCE((*readstate >> RCUTORTURE_RDR_SHIFT_2) > 1)) in rcutorture_one_extend()
1882 rcutorture_loop_extend(int *readstate, struct torture_random_state *trsp, in rcutorture_loop_extend() argument
1889 WARN_ON_ONCE(!*readstate); /* -Existing- RCU read-side critsect! */ in rcutorture_loop_extend()
1896 mask = rcutorture_extend_mask(*readstate, trsp); in rcutorture_loop_extend()
1897 rcutorture_one_extend(readstate, mask, trsp, &rtrsp[j]); in rcutorture_loop_extend()
1918 int readstate = 0; in rcu_torture_one_read() local
1925 newstate = rcutorture_extend_mask(readstate, trsp); in rcu_torture_one_read()
1926 rcutorture_one_extend(&readstate, newstate, trsp, rtrsp++); in rcu_torture_one_read()
1939 rcutorture_one_extend(&readstate, 0, trsp, rtrsp); in rcu_torture_one_read()
1945 rtrsp = rcutorture_loop_extend(&readstate, trsp, rtrsp); in rcu_torture_one_read()
1982 rcutorture_one_extend(&readstate, 0, trsp, rtrsp); in rcu_torture_one_read()
1983 WARN_ON_ONCE(readstate); in rcu_torture_one_read()