Lines Matching refs:sa
329 struct sockaddr_rc sa; in rfcomm_sock_bind() local
337 memset(&sa, 0, sizeof(sa)); in rfcomm_sock_bind()
338 len = min_t(unsigned int, sizeof(sa), addr_len); in rfcomm_sock_bind()
339 memcpy(&sa, addr, len); in rfcomm_sock_bind()
341 BT_DBG("sk %p %pMR", sk, &sa.rc_bdaddr); in rfcomm_sock_bind()
357 if (sa.rc_channel && in rfcomm_sock_bind()
358 __rfcomm_get_listen_sock_by_addr(sa.rc_channel, &sa.rc_bdaddr)) { in rfcomm_sock_bind()
362 bacpy(&rfcomm_pi(sk)->src, &sa.rc_bdaddr); in rfcomm_sock_bind()
363 rfcomm_pi(sk)->channel = sa.rc_channel; in rfcomm_sock_bind()
376 struct sockaddr_rc *sa = (struct sockaddr_rc *) addr; in rfcomm_sock_connect() local
401 bacpy(&rfcomm_pi(sk)->dst, &sa->rc_bdaddr); in rfcomm_sock_connect()
402 rfcomm_pi(sk)->channel = sa->rc_channel; in rfcomm_sock_connect()
409 err = rfcomm_dlc_open(d, &rfcomm_pi(sk)->src, &sa->rc_bdaddr, in rfcomm_sock_connect()
410 sa->rc_channel); in rfcomm_sock_connect()
534 struct sockaddr_rc *sa = (struct sockaddr_rc *) addr; in rfcomm_sock_getname() local
543 memset(sa, 0, sizeof(*sa)); in rfcomm_sock_getname()
544 sa->rc_family = AF_BLUETOOTH; in rfcomm_sock_getname()
545 sa->rc_channel = rfcomm_pi(sk)->channel; in rfcomm_sock_getname()
547 bacpy(&sa->rc_bdaddr, &rfcomm_pi(sk)->dst); in rfcomm_sock_getname()
549 bacpy(&sa->rc_bdaddr, &rfcomm_pi(sk)->src); in rfcomm_sock_getname()