Lines Matching defs:sock
38 #include <net/sock.h>
196 struct socket *sock = session->sock;
207 return kernel_sendmsg(sock, &msg, &iv, 1, len);
277 struct sock *sk = session->sock->sk;
311 fput(session->sock->file);
321 int cmtp_add_connection(struct cmtp_connadd_req *req, struct socket *sock)
329 baswap(&src, &bt_sk(sock->sk)->src);
330 baswap(&dst, &bt_sk(sock->sk)->dst);
338 s = __cmtp_get_session(&bt_sk(sock->sk)->dst);
344 bacpy(&session->bdaddr, &bt_sk(sock->sk)->dst);
346 session->mtu = min_t(uint, l2cap_pi(sock->sk)->omtu, l2cap_pi(sock->sk)->imtu);
352 session->sock = sock;