Lines Matching defs:state
41 union drbd_dev_state state, unsigned long *rs_total,
53 if (state.conn == C_VERIFY_S || state.conn == C_VERIFY_T)
61 * between state change and reset of rs_total.
91 union drbd_dev_state state)
98 drbd_get_syncer_progress(device, state, &rs_total, &rs_left, &res);
110 if (state.conn == C_VERIFY_S || state.conn == C_VERIFY_T)
182 if (state.conn == C_SYNC_TARGET ||
183 state.conn == C_VERIFY_S) {
195 if (state.conn == C_VERIFY_S ||
196 state.conn == C_VERIFY_T) {
221 union drbd_dev_state state;
234 cs .. connection state
236 ds .. disk state (local/remote)
259 state = device->state;
260 sn = drbd_conn_str(state.conn);
262 if (state.conn == C_STANDALONE &&
263 state.disk == D_DISKLESS &&
264 state.role == R_SECONDARY) {
276 drbd_role_str(state.role),
277 drbd_role_str(state.peer),
278 drbd_disk_str(state.disk),
279 drbd_disk_str(state.pdsk),
282 state.aftr_isp ? 'a' : '-',
283 state.peer_isp ? 'p' : '-',
284 state.user_isp ? 'u' : '-',
305 if (state.conn == C_SYNC_SOURCE ||
306 state.conn == C_SYNC_TARGET ||
307 state.conn == C_VERIFY_S ||
308 state.conn == C_VERIFY_T)
309 drbd_syncer_progress(device, seq, state);