Lines Matching refs:llcp_addr
65 struct sockaddr_nfc_llcp llcp_addr; in llcp_sock_bind() local
74 memset(&llcp_addr, 0, sizeof(llcp_addr)); in llcp_sock_bind()
75 len = min_t(unsigned int, sizeof(llcp_addr), alen); in llcp_sock_bind()
76 memcpy(&llcp_addr, addr, len); in llcp_sock_bind()
79 if (llcp_addr.dsap != 0) in llcp_sock_bind()
89 dev = nfc_get_device(llcp_addr.dev_idx); in llcp_sock_bind()
103 llcp_sock->nfc_protocol = llcp_addr.nfc_protocol; in llcp_sock_bind()
105 llcp_addr.service_name_len, in llcp_sock_bind()
107 llcp_sock->service_name = kmemdup(llcp_addr.service_name, in llcp_sock_bind()
156 struct sockaddr_nfc_llcp llcp_addr; in llcp_raw_sock_bind() local
165 memset(&llcp_addr, 0, sizeof(llcp_addr)); in llcp_raw_sock_bind()
166 len = min_t(unsigned int, sizeof(llcp_addr), alen); in llcp_raw_sock_bind()
167 memcpy(&llcp_addr, addr, len); in llcp_raw_sock_bind()
176 dev = nfc_get_device(llcp_addr.dev_idx); in llcp_raw_sock_bind()
190 llcp_sock->nfc_protocol = llcp_addr.nfc_protocol; in llcp_raw_sock_bind()
508 DECLARE_SOCKADDR(struct sockaddr_nfc_llcp *, llcp_addr, uaddr); in llcp_sock_getname()
516 memset(llcp_addr, 0, sizeof(*llcp_addr)); in llcp_sock_getname()
523 llcp_addr->sa_family = AF_NFC; in llcp_sock_getname()
524 llcp_addr->dev_idx = llcp_sock->dev->idx; in llcp_sock_getname()
525 llcp_addr->target_idx = llcp_sock->target_idx; in llcp_sock_getname()
526 llcp_addr->nfc_protocol = llcp_sock->nfc_protocol; in llcp_sock_getname()
527 llcp_addr->dsap = llcp_sock->dsap; in llcp_sock_getname()
528 llcp_addr->ssap = llcp_sock->ssap; in llcp_sock_getname()
529 llcp_addr->service_name_len = llcp_sock->service_name_len; in llcp_sock_getname()
530 memcpy(llcp_addr->service_name, llcp_sock->service_name, in llcp_sock_getname()
531 llcp_addr->service_name_len); in llcp_sock_getname()