Lines Matching refs:old_state
281 int old_state; in con_sock_state_init() local
283 old_state = atomic_xchg(&con->sock_state, CON_SOCK_STATE_CLOSED); in con_sock_state_init()
284 if (WARN_ON(old_state != CON_SOCK_STATE_NEW)) in con_sock_state_init()
285 printk("%s: unexpected old state %d\n", __func__, old_state); in con_sock_state_init()
286 dout("%s con %p sock %d -> %d\n", __func__, con, old_state, in con_sock_state_init()
292 int old_state; in con_sock_state_connecting() local
294 old_state = atomic_xchg(&con->sock_state, CON_SOCK_STATE_CONNECTING); in con_sock_state_connecting()
295 if (WARN_ON(old_state != CON_SOCK_STATE_CLOSED)) in con_sock_state_connecting()
296 printk("%s: unexpected old state %d\n", __func__, old_state); in con_sock_state_connecting()
297 dout("%s con %p sock %d -> %d\n", __func__, con, old_state, in con_sock_state_connecting()
303 int old_state; in con_sock_state_connected() local
305 old_state = atomic_xchg(&con->sock_state, CON_SOCK_STATE_CONNECTED); in con_sock_state_connected()
306 if (WARN_ON(old_state != CON_SOCK_STATE_CONNECTING)) in con_sock_state_connected()
307 printk("%s: unexpected old state %d\n", __func__, old_state); in con_sock_state_connected()
308 dout("%s con %p sock %d -> %d\n", __func__, con, old_state, in con_sock_state_connected()
314 int old_state; in con_sock_state_closing() local
316 old_state = atomic_xchg(&con->sock_state, CON_SOCK_STATE_CLOSING); in con_sock_state_closing()
317 if (WARN_ON(old_state != CON_SOCK_STATE_CONNECTING && in con_sock_state_closing()
318 old_state != CON_SOCK_STATE_CONNECTED && in con_sock_state_closing()
319 old_state != CON_SOCK_STATE_CLOSING)) in con_sock_state_closing()
320 printk("%s: unexpected old state %d\n", __func__, old_state); in con_sock_state_closing()
321 dout("%s con %p sock %d -> %d\n", __func__, con, old_state, in con_sock_state_closing()
327 int old_state; in con_sock_state_closed() local
329 old_state = atomic_xchg(&con->sock_state, CON_SOCK_STATE_CLOSED); in con_sock_state_closed()
330 if (WARN_ON(old_state != CON_SOCK_STATE_CONNECTED && in con_sock_state_closed()
331 old_state != CON_SOCK_STATE_CLOSING && in con_sock_state_closed()
332 old_state != CON_SOCK_STATE_CONNECTING && in con_sock_state_closed()
333 old_state != CON_SOCK_STATE_CLOSED)) in con_sock_state_closed()
334 printk("%s: unexpected old state %d\n", __func__, old_state); in con_sock_state_closed()
335 dout("%s con %p sock %d -> %d\n", __func__, con, old_state, in con_sock_state_closed()