Lines Matching refs:tbsync
35 } *tbsync; variable
42 tbsync->race_result = add; in enter_contest()
57 tbsync->ack = 1; in smp_generic_take_timebase()
58 while (!tbsync->handshake) in smp_generic_take_timebase()
62 cmd = tbsync->cmd; in smp_generic_take_timebase()
63 tb = tbsync->tb; in smp_generic_take_timebase()
65 tbsync->ack = 0; in smp_generic_take_timebase()
69 while (tbsync->handshake) in smp_generic_take_timebase()
73 enter_contest(tbsync->mark, -1); in smp_generic_take_timebase()
84 tbsync->cmd = cmd; in start_contest()
89 tbsync->tb = tb + offset; in start_contest()
90 tbsync->mark = mark = tb + 400; in start_contest()
94 tbsync->handshake = 1; in start_contest()
95 while (tbsync->ack) in start_contest()
100 tbsync->handshake = 0; in start_contest()
103 while (!tbsync->ack) in start_contest()
107 score += tbsync->race_result; in start_contest()
120 tbsync = kzalloc( sizeof(*tbsync), GFP_KERNEL ); in smp_generic_give_timebase()
124 while (!tbsync->ack) in smp_generic_give_timebase()
162 tbsync->cmd = kExit; in smp_generic_give_timebase()
164 tbsync->handshake = 1; in smp_generic_give_timebase()
165 while (tbsync->ack) in smp_generic_give_timebase()
167 tbsync->handshake = 0; in smp_generic_give_timebase()
168 kfree(tbsync); in smp_generic_give_timebase()
169 tbsync = NULL; in smp_generic_give_timebase()