Lines Matching refs:tmp_sock
205 struct nfc_llcp_sock *llcp_sock, *tmp_sock; in nfc_llcp_sock_get() local
217 tmp_sock = nfc_llcp_sock(sk); in nfc_llcp_sock_get()
219 if (tmp_sock->ssap == ssap && tmp_sock->dsap == dsap) { in nfc_llcp_sock_get()
220 llcp_sock = tmp_sock; in nfc_llcp_sock_get()
364 struct nfc_llcp_sock *llcp_sock, *tmp_sock; in nfc_llcp_sock_from_sn() local
376 tmp_sock = nfc_llcp_sock(sk); in nfc_llcp_sock_from_sn()
378 pr_debug("llcp sock %p\n", tmp_sock); in nfc_llcp_sock_from_sn()
380 if (tmp_sock->sk.sk_type == SOCK_STREAM && in nfc_llcp_sock_from_sn()
381 tmp_sock->sk.sk_state != LLCP_LISTEN) in nfc_llcp_sock_from_sn()
384 if (tmp_sock->sk.sk_type == SOCK_DGRAM && in nfc_llcp_sock_from_sn()
385 tmp_sock->sk.sk_state != LLCP_BOUND) in nfc_llcp_sock_from_sn()
388 if (tmp_sock->service_name == NULL || in nfc_llcp_sock_from_sn()
389 tmp_sock->service_name_len == 0) in nfc_llcp_sock_from_sn()
392 if (tmp_sock->service_name_len != sn_len) in nfc_llcp_sock_from_sn()
395 if (memcmp(sn, tmp_sock->service_name, sn_len) == 0) { in nfc_llcp_sock_from_sn()
396 llcp_sock = tmp_sock; in nfc_llcp_sock_from_sn()