Lines Matching refs:state
19 faulty_stream_t *state = stream->state; in read_callback() local
23 if (state->fail_after == 0) in read_callback()
25 state->fail_after--; in read_callback()
26 *buf++ = *state->buffer++; in read_callback()
33 faulty_stream_t *state = stream->state; in write_callback() local
37 if (state->fail_after == 0) in write_callback()
39 state->fail_after--; in write_callback()
40 *state->buffer++ = *buf++; in write_callback()
66 stream.state = &fs; in main()
84 stream.state = &fs; in main()
107 stream.state = &fs; in main()
126 stream.state = &fs; in main()