Searched refs:llcp_addr (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/net/nfc/
H A Dllcp_sock.c76 struct sockaddr_nfc_llcp llcp_addr; llcp_sock_bind() local
84 memset(&llcp_addr, 0, sizeof(llcp_addr)); llcp_sock_bind()
85 len = min_t(unsigned int, sizeof(llcp_addr), alen); llcp_sock_bind()
86 memcpy(&llcp_addr, addr, len); llcp_sock_bind()
89 if (llcp_addr.dsap != 0) llcp_sock_bind()
99 dev = nfc_get_device(llcp_addr.dev_idx); llcp_sock_bind()
113 llcp_sock->nfc_protocol = llcp_addr.nfc_protocol; llcp_sock_bind()
115 llcp_addr.service_name_len, llcp_sock_bind()
117 llcp_sock->service_name = kmemdup(llcp_addr.service_name, llcp_sock_bind()
150 struct sockaddr_nfc_llcp llcp_addr; llcp_raw_sock_bind() local
158 memset(&llcp_addr, 0, sizeof(llcp_addr)); llcp_raw_sock_bind()
159 len = min_t(unsigned int, sizeof(llcp_addr), alen); llcp_raw_sock_bind()
160 memcpy(&llcp_addr, addr, len); llcp_raw_sock_bind()
169 dev = nfc_get_device(llcp_addr.dev_idx); llcp_raw_sock_bind()
183 llcp_sock->nfc_protocol = llcp_addr.nfc_protocol; llcp_raw_sock_bind()
501 DECLARE_SOCKADDR(struct sockaddr_nfc_llcp *, llcp_addr, uaddr); llcp_sock_getname()
509 memset(llcp_addr, 0, sizeof(*llcp_addr)); llcp_sock_getname()
512 llcp_addr->sa_family = AF_NFC; llcp_sock_getname()
513 llcp_addr->dev_idx = llcp_sock->dev->idx; llcp_sock_getname()
514 llcp_addr->target_idx = llcp_sock->target_idx; llcp_sock_getname()
515 llcp_addr->nfc_protocol = llcp_sock->nfc_protocol; llcp_sock_getname()
516 llcp_addr->dsap = llcp_sock->dsap; llcp_sock_getname()
517 llcp_addr->ssap = llcp_sock->ssap; llcp_sock_getname()
518 llcp_addr->service_name_len = llcp_sock->service_name_len; llcp_sock_getname()
519 memcpy(llcp_addr->service_name, llcp_sock->service_name, llcp_sock_getname()
520 llcp_addr->service_name_len); llcp_sock_getname()

Completed in 34 milliseconds