Lines Matching refs:llcp_addr
76 struct sockaddr_nfc_llcp llcp_addr; in llcp_sock_bind() local
85 memset(&llcp_addr, 0, sizeof(llcp_addr)); in llcp_sock_bind()
86 len = min_t(unsigned int, sizeof(llcp_addr), alen); in llcp_sock_bind()
87 memcpy(&llcp_addr, addr, len); in llcp_sock_bind()
90 if (llcp_addr.dsap != 0) in llcp_sock_bind()
100 dev = nfc_get_device(llcp_addr.dev_idx); in llcp_sock_bind()
114 llcp_sock->nfc_protocol = llcp_addr.nfc_protocol; in llcp_sock_bind()
116 llcp_addr.service_name_len, in llcp_sock_bind()
118 llcp_sock->service_name = kmemdup(llcp_addr.service_name, in llcp_sock_bind()
151 struct sockaddr_nfc_llcp llcp_addr; in llcp_raw_sock_bind() local
160 memset(&llcp_addr, 0, sizeof(llcp_addr)); in llcp_raw_sock_bind()
161 len = min_t(unsigned int, sizeof(llcp_addr), alen); in llcp_raw_sock_bind()
162 memcpy(&llcp_addr, addr, len); in llcp_raw_sock_bind()
171 dev = nfc_get_device(llcp_addr.dev_idx); in llcp_raw_sock_bind()
185 llcp_sock->nfc_protocol = llcp_addr.nfc_protocol; in llcp_raw_sock_bind()
503 DECLARE_SOCKADDR(struct sockaddr_nfc_llcp *, llcp_addr, uaddr); in llcp_sock_getname()
511 memset(llcp_addr, 0, sizeof(*llcp_addr)); in llcp_sock_getname()
514 llcp_addr->sa_family = AF_NFC; in llcp_sock_getname()
515 llcp_addr->dev_idx = llcp_sock->dev->idx; in llcp_sock_getname()
516 llcp_addr->target_idx = llcp_sock->target_idx; in llcp_sock_getname()
517 llcp_addr->nfc_protocol = llcp_sock->nfc_protocol; in llcp_sock_getname()
518 llcp_addr->dsap = llcp_sock->dsap; in llcp_sock_getname()
519 llcp_addr->ssap = llcp_sock->ssap; in llcp_sock_getname()
520 llcp_addr->service_name_len = llcp_sock->service_name_len; in llcp_sock_getname()
521 memcpy(llcp_addr->service_name, llcp_sock->service_name, in llcp_sock_getname()
522 llcp_addr->service_name_len); in llcp_sock_getname()