Lines Matching refs:sk_state
173 if (unlikely(cf_sk->sk.sk_state != CAIF_CONNECTED)) { in caif_sktrecv_cb()
216 cf_sk->sk.sk_state = CAIF_CONNECTED; in caif_ctrl_cb()
224 cf_sk->sk.sk_state = CAIF_DISCONNECTED; in caif_ctrl_cb()
231 cf_sk->sk.sk_state = CAIF_DISCONNECTED; in caif_ctrl_cb()
319 sk->sk_state != CAIF_CONNECTED || in caif_stream_data_wait()
365 if (sk->sk_state == CAIF_CONNECTING) in caif_stream_recvmsg()
398 if (sk->sk_state != CAIF_CONNECTED) in caif_stream_recvmsg()
488 if (cf_sk->sk.sk_state != CAIF_CONNECTED) in caif_wait_for_flow_on()
554 if (cf_sk->sk.sk_state != CAIF_CONNECTED || in caif_seqpkt_sendmsg()
769 caif_assert(sk->sk_state == CAIF_DISCONNECTED); in caif_connect()
772 switch (sk->sk_state) { in caif_connect()
788 caif_assert(sk->sk_state == CAIF_CONNECTED || in caif_connect()
789 sk->sk_state == CAIF_DISCONNECTED); in caif_connect()
804 sk->sk_state = CAIF_DISCONNECTED; in caif_connect()
817 sk->sk_state = CAIF_CONNECTING; in caif_connect()
838 cf_sk->sk.sk_state = CAIF_DISCONNECTED; in caif_connect()
864 if (sk->sk_state != CAIF_CONNECTED && (flags & O_NONBLOCK)) in caif_connect()
872 sk->sk_state != CAIF_CONNECTING, in caif_connect()
879 if (timeo == 0 && sk->sk_state != CAIF_CONNECTED) in caif_connect()
881 if (sk->sk_state != CAIF_CONNECTED) { in caif_connect()
923 sk->sk_state = CAIF_DISCONNECTED; in caif_release()
1094 cf_sk->sk.sk_state = CAIF_DISCONNECTED; in caif_create()