Lines Matching refs:old_state
282 int old_state; in con_sock_state_init() local
284 old_state = atomic_xchg(&con->sock_state, CON_SOCK_STATE_CLOSED); in con_sock_state_init()
285 if (WARN_ON(old_state != CON_SOCK_STATE_NEW)) in con_sock_state_init()
286 printk("%s: unexpected old state %d\n", __func__, old_state); in con_sock_state_init()
287 dout("%s con %p sock %d -> %d\n", __func__, con, old_state, in con_sock_state_init()
293 int old_state; in con_sock_state_connecting() local
295 old_state = atomic_xchg(&con->sock_state, CON_SOCK_STATE_CONNECTING); in con_sock_state_connecting()
296 if (WARN_ON(old_state != CON_SOCK_STATE_CLOSED)) in con_sock_state_connecting()
297 printk("%s: unexpected old state %d\n", __func__, old_state); in con_sock_state_connecting()
298 dout("%s con %p sock %d -> %d\n", __func__, con, old_state, in con_sock_state_connecting()
304 int old_state; in con_sock_state_connected() local
306 old_state = atomic_xchg(&con->sock_state, CON_SOCK_STATE_CONNECTED); in con_sock_state_connected()
307 if (WARN_ON(old_state != CON_SOCK_STATE_CONNECTING)) in con_sock_state_connected()
308 printk("%s: unexpected old state %d\n", __func__, old_state); in con_sock_state_connected()
309 dout("%s con %p sock %d -> %d\n", __func__, con, old_state, in con_sock_state_connected()
315 int old_state; in con_sock_state_closing() local
317 old_state = atomic_xchg(&con->sock_state, CON_SOCK_STATE_CLOSING); in con_sock_state_closing()
318 if (WARN_ON(old_state != CON_SOCK_STATE_CONNECTING && in con_sock_state_closing()
319 old_state != CON_SOCK_STATE_CONNECTED && in con_sock_state_closing()
320 old_state != CON_SOCK_STATE_CLOSING)) in con_sock_state_closing()
321 printk("%s: unexpected old state %d\n", __func__, old_state); in con_sock_state_closing()
322 dout("%s con %p sock %d -> %d\n", __func__, con, old_state, in con_sock_state_closing()
328 int old_state; in con_sock_state_closed() local
330 old_state = atomic_xchg(&con->sock_state, CON_SOCK_STATE_CLOSED); in con_sock_state_closed()
331 if (WARN_ON(old_state != CON_SOCK_STATE_CONNECTED && in con_sock_state_closed()
332 old_state != CON_SOCK_STATE_CLOSING && in con_sock_state_closed()
333 old_state != CON_SOCK_STATE_CONNECTING && in con_sock_state_closed()
334 old_state != CON_SOCK_STATE_CLOSED)) in con_sock_state_closed()
335 printk("%s: unexpected old state %d\n", __func__, old_state); in con_sock_state_closed()
336 dout("%s con %p sock %d -> %d\n", __func__, con, old_state, in con_sock_state_closed()