• Home
  • Raw
  • Download

Lines Matching refs:old_state

322 	int old_state;  in con_sock_state_init()  local
324 old_state = atomic_xchg(&con->sock_state, CON_SOCK_STATE_CLOSED); in con_sock_state_init()
325 if (WARN_ON(old_state != CON_SOCK_STATE_NEW)) in con_sock_state_init()
326 printk("%s: unexpected old state %d\n", __func__, old_state); in con_sock_state_init()
327 dout("%s con %p sock %d -> %d\n", __func__, con, old_state, in con_sock_state_init()
333 int old_state; in con_sock_state_connecting() local
335 old_state = atomic_xchg(&con->sock_state, CON_SOCK_STATE_CONNECTING); in con_sock_state_connecting()
336 if (WARN_ON(old_state != CON_SOCK_STATE_CLOSED)) in con_sock_state_connecting()
337 printk("%s: unexpected old state %d\n", __func__, old_state); in con_sock_state_connecting()
338 dout("%s con %p sock %d -> %d\n", __func__, con, old_state, in con_sock_state_connecting()
344 int old_state; in con_sock_state_connected() local
346 old_state = atomic_xchg(&con->sock_state, CON_SOCK_STATE_CONNECTED); in con_sock_state_connected()
347 if (WARN_ON(old_state != CON_SOCK_STATE_CONNECTING)) in con_sock_state_connected()
348 printk("%s: unexpected old state %d\n", __func__, old_state); in con_sock_state_connected()
349 dout("%s con %p sock %d -> %d\n", __func__, con, old_state, in con_sock_state_connected()
355 int old_state; in con_sock_state_closing() local
357 old_state = atomic_xchg(&con->sock_state, CON_SOCK_STATE_CLOSING); in con_sock_state_closing()
358 if (WARN_ON(old_state != CON_SOCK_STATE_CONNECTING && in con_sock_state_closing()
359 old_state != CON_SOCK_STATE_CONNECTED && in con_sock_state_closing()
360 old_state != CON_SOCK_STATE_CLOSING)) in con_sock_state_closing()
361 printk("%s: unexpected old state %d\n", __func__, old_state); in con_sock_state_closing()
362 dout("%s con %p sock %d -> %d\n", __func__, con, old_state, in con_sock_state_closing()
368 int old_state; in con_sock_state_closed() local
370 old_state = atomic_xchg(&con->sock_state, CON_SOCK_STATE_CLOSED); in con_sock_state_closed()
371 if (WARN_ON(old_state != CON_SOCK_STATE_CONNECTED && in con_sock_state_closed()
372 old_state != CON_SOCK_STATE_CLOSING && in con_sock_state_closed()
373 old_state != CON_SOCK_STATE_CONNECTING && in con_sock_state_closed()
374 old_state != CON_SOCK_STATE_CLOSED)) in con_sock_state_closed()
375 printk("%s: unexpected old state %d\n", __func__, old_state); in con_sock_state_closed()
376 dout("%s con %p sock %d -> %d\n", __func__, con, old_state, in con_sock_state_closed()