l2cap_pi          352 net/bluetooth/cmtp/core.c 	session->mtu = min_t(uint, l2cap_pi(sock->sk)->omtu, l2cap_pi(sock->sk)->imtu);
l2cap_pi          823 net/bluetooth/hidp/core.c 	session->ctrl_mtu = min_t(uint, l2cap_pi(ctrl_sock->sk)->omtu, l2cap_pi(ctrl_sock->sk)->imtu);
l2cap_pi          824 net/bluetooth/hidp/core.c 	session->intr_mtu = min_t(uint, l2cap_pi(intr_sock->sk)->omtu, l2cap_pi(intr_sock->sk)->imtu);
l2cap_pi           86 net/bluetooth/l2cap.c 			(l2cap_pi(sk)->link_mode & (L2CAP_LM_AUTH |
l2cap_pi          116 net/bluetooth/l2cap.c 	for (s = l->head; s; s = l2cap_pi(s)->next_c) {
l2cap_pi          117 net/bluetooth/l2cap.c 		if (l2cap_pi(s)->dcid == cid)
l2cap_pi          126 net/bluetooth/l2cap.c 	for (s = l->head; s; s = l2cap_pi(s)->next_c) {
l2cap_pi          127 net/bluetooth/l2cap.c 		if (l2cap_pi(s)->scid == cid)
l2cap_pi          148 net/bluetooth/l2cap.c 	for (s = l->head; s; s = l2cap_pi(s)->next_c) {
l2cap_pi          149 net/bluetooth/l2cap.c 		if (l2cap_pi(s)->ident == ident)
l2cap_pi          182 net/bluetooth/l2cap.c 		l2cap_pi(l->head)->prev_c = sk;
l2cap_pi          184 net/bluetooth/l2cap.c 	l2cap_pi(sk)->next_c = l->head;
l2cap_pi          185 net/bluetooth/l2cap.c 	l2cap_pi(sk)->prev_c = NULL;
l2cap_pi          191 net/bluetooth/l2cap.c 	struct sock *next = l2cap_pi(sk)->next_c, *prev = l2cap_pi(sk)->prev_c;
l2cap_pi          198 net/bluetooth/l2cap.c 		l2cap_pi(next)->prev_c = prev;
l2cap_pi          200 net/bluetooth/l2cap.c 		l2cap_pi(prev)->next_c = next;
l2cap_pi          210 net/bluetooth/l2cap.c 	BT_DBG("conn %p, psm 0x%2.2x, dcid 0x%4.4x", conn, l2cap_pi(sk)->psm, l2cap_pi(sk)->dcid);
l2cap_pi          212 net/bluetooth/l2cap.c 	l2cap_pi(sk)->conn = conn;
l2cap_pi          216 net/bluetooth/l2cap.c 		l2cap_pi(sk)->scid = l2cap_alloc_cid(l);
l2cap_pi          219 net/bluetooth/l2cap.c 		l2cap_pi(sk)->scid = 0x0002;
l2cap_pi          220 net/bluetooth/l2cap.c 		l2cap_pi(sk)->dcid = 0x0002;
l2cap_pi          221 net/bluetooth/l2cap.c 		l2cap_pi(sk)->omtu = L2CAP_DEFAULT_MTU;
l2cap_pi          224 net/bluetooth/l2cap.c 		l2cap_pi(sk)->scid = 0x0001;
l2cap_pi          225 net/bluetooth/l2cap.c 		l2cap_pi(sk)->dcid = 0x0001;
l2cap_pi          226 net/bluetooth/l2cap.c 		l2cap_pi(sk)->omtu = L2CAP_DEFAULT_MTU;
l2cap_pi          239 net/bluetooth/l2cap.c 	struct l2cap_conn *conn = l2cap_pi(sk)->conn;
l2cap_pi          249 net/bluetooth/l2cap.c 		l2cap_pi(sk)->conn = NULL;
l2cap_pi          269 net/bluetooth/l2cap.c 	struct l2cap_conn *conn = l2cap_pi(sk)->conn;
l2cap_pi          271 net/bluetooth/l2cap.c 	if ((l2cap_pi(sk)->link_mode & L2CAP_LM_ENCRYPT) ||
l2cap_pi          272 net/bluetooth/l2cap.c 				(l2cap_pi(sk)->link_mode & L2CAP_LM_SECURE))
l2cap_pi          275 net/bluetooth/l2cap.c 	if (l2cap_pi(sk)->link_mode & L2CAP_LM_AUTH)
l2cap_pi          317 net/bluetooth/l2cap.c 	struct l2cap_conn *conn = l2cap_pi(sk)->conn;
l2cap_pi          322 net/bluetooth/l2cap.c 			req.scid = cpu_to_le16(l2cap_pi(sk)->scid);
l2cap_pi          323 net/bluetooth/l2cap.c 			req.psm  = l2cap_pi(sk)->psm;
l2cap_pi          325 net/bluetooth/l2cap.c 			l2cap_pi(sk)->ident = l2cap_get_ident(conn);
l2cap_pi          327 net/bluetooth/l2cap.c 			l2cap_send_cmd(conn, l2cap_pi(sk)->ident,
l2cap_pi          355 net/bluetooth/l2cap.c 	for (sk = l->head; sk; sk = l2cap_pi(sk)->next_c) {
l2cap_pi          366 net/bluetooth/l2cap.c 				req.scid = cpu_to_le16(l2cap_pi(sk)->scid);
l2cap_pi          367 net/bluetooth/l2cap.c 				req.psm  = l2cap_pi(sk)->psm;
l2cap_pi          369 net/bluetooth/l2cap.c 				l2cap_pi(sk)->ident = l2cap_get_ident(conn);
l2cap_pi          371 net/bluetooth/l2cap.c 				l2cap_send_cmd(conn, l2cap_pi(sk)->ident,
l2cap_pi          376 net/bluetooth/l2cap.c 			rsp.scid = cpu_to_le16(l2cap_pi(sk)->dcid);
l2cap_pi          377 net/bluetooth/l2cap.c 			rsp.dcid = cpu_to_le16(l2cap_pi(sk)->scid);
l2cap_pi          388 net/bluetooth/l2cap.c 			l2cap_send_cmd(conn, l2cap_pi(sk)->ident,
l2cap_pi          407 net/bluetooth/l2cap.c 	for (sk = l->head; sk; sk = l2cap_pi(sk)->next_c) {
l2cap_pi          433 net/bluetooth/l2cap.c 	for (sk = l->head; sk; sk = l2cap_pi(sk)->next_c) {
l2cap_pi          434 net/bluetooth/l2cap.c 		if (l2cap_pi(sk)->link_mode & L2CAP_LM_RELIABLE)
l2cap_pi          523 net/bluetooth/l2cap.c 		if (l2cap_pi(sk)->sport == psm && !bacmp(&bt_sk(sk)->src, src))
l2cap_pi          542 net/bluetooth/l2cap.c 		if (l2cap_pi(sk)->psm == psm) {
l2cap_pi          618 net/bluetooth/l2cap.c 			struct l2cap_conn *conn = l2cap_pi(sk)->conn;
l2cap_pi          624 net/bluetooth/l2cap.c 			req.dcid = cpu_to_le16(l2cap_pi(sk)->dcid);
l2cap_pi          625 net/bluetooth/l2cap.c 			req.scid = cpu_to_le16(l2cap_pi(sk)->scid);
l2cap_pi          655 net/bluetooth/l2cap.c 	struct l2cap_pinfo *pi = l2cap_pi(sk);
l2cap_pi          661 net/bluetooth/l2cap.c 		pi->imtu = l2cap_pi(parent)->imtu;
l2cap_pi          662 net/bluetooth/l2cap.c 		pi->omtu = l2cap_pi(parent)->omtu;
l2cap_pi          663 net/bluetooth/l2cap.c 		pi->link_mode = l2cap_pi(parent)->link_mode;
l2cap_pi          762 net/bluetooth/l2cap.c 		l2cap_pi(sk)->psm   = la->l2_psm;
l2cap_pi          763 net/bluetooth/l2cap.c 		l2cap_pi(sk)->sport = la->l2_psm;
l2cap_pi          784 net/bluetooth/l2cap.c 	BT_DBG("%s -> %s psm 0x%2.2x", batostr(src), batostr(dst), l2cap_pi(sk)->psm);
l2cap_pi          793 net/bluetooth/l2cap.c 	if (l2cap_pi(sk)->link_mode & L2CAP_LM_AUTH ||
l2cap_pi          794 net/bluetooth/l2cap.c 			l2cap_pi(sk)->link_mode & L2CAP_LM_ENCRYPT ||
l2cap_pi          795 net/bluetooth/l2cap.c 				l2cap_pi(sk)->link_mode & L2CAP_LM_SECURE) {
l2cap_pi          796 net/bluetooth/l2cap.c 		if (l2cap_pi(sk)->psm == cpu_to_le16(0x0001))
l2cap_pi          801 net/bluetooth/l2cap.c 		if (l2cap_pi(sk)->psm == cpu_to_le16(0x0001))
l2cap_pi          884 net/bluetooth/l2cap.c 	l2cap_pi(sk)->psm = la->l2_psm;
l2cap_pi          911 net/bluetooth/l2cap.c 	if (!l2cap_pi(sk)->psm) {
l2cap_pi          921 net/bluetooth/l2cap.c 				l2cap_pi(sk)->psm   = htobs(psm);
l2cap_pi          922 net/bluetooth/l2cap.c 				l2cap_pi(sk)->sport = htobs(psm);
l2cap_pi         1013 net/bluetooth/l2cap.c 	la->l2_psm = l2cap_pi(sk)->psm;
l2cap_pi         1019 net/bluetooth/l2cap.c 	struct l2cap_conn *conn = l2cap_pi(sk)->conn;
l2cap_pi         1041 net/bluetooth/l2cap.c 	lh->cid = cpu_to_le16(l2cap_pi(sk)->dcid);
l2cap_pi         1045 net/bluetooth/l2cap.c 		put_unaligned(l2cap_pi(sk)->psm, (__le16 *) skb_put(skb, 2));
l2cap_pi         1100 net/bluetooth/l2cap.c 	if (sk->sk_type != SOCK_RAW && len > l2cap_pi(sk)->omtu)
l2cap_pi         1127 net/bluetooth/l2cap.c 		opts.imtu     = l2cap_pi(sk)->imtu;
l2cap_pi         1128 net/bluetooth/l2cap.c 		opts.omtu     = l2cap_pi(sk)->omtu;
l2cap_pi         1129 net/bluetooth/l2cap.c 		opts.flush_to = l2cap_pi(sk)->flush_to;
l2cap_pi         1138 net/bluetooth/l2cap.c 		l2cap_pi(sk)->imtu  = opts.imtu;
l2cap_pi         1139 net/bluetooth/l2cap.c 		l2cap_pi(sk)->omtu  = opts.omtu;
l2cap_pi         1148 net/bluetooth/l2cap.c 		l2cap_pi(sk)->link_mode = opt;
l2cap_pi         1176 net/bluetooth/l2cap.c 		opts.imtu     = l2cap_pi(sk)->imtu;
l2cap_pi         1177 net/bluetooth/l2cap.c 		opts.omtu     = l2cap_pi(sk)->omtu;
l2cap_pi         1178 net/bluetooth/l2cap.c 		opts.flush_to = l2cap_pi(sk)->flush_to;
l2cap_pi         1188 net/bluetooth/l2cap.c 		if (put_user(l2cap_pi(sk)->link_mode, (u32 __user *) optval))
l2cap_pi         1198 net/bluetooth/l2cap.c 		cinfo.hci_handle = l2cap_pi(sk)->conn->hcon->handle;
l2cap_pi         1199 net/bluetooth/l2cap.c 		memcpy(cinfo.dev_class, l2cap_pi(sk)->conn->hcon->dev_class, 3);
l2cap_pi         1263 net/bluetooth/l2cap.c 	l2cap_pi(sk)->conf_state = 0;
l2cap_pi         1279 net/bluetooth/l2cap.c 	if (l2cap_pi(sk)->link_mode & L2CAP_LM_SECURE) {
l2cap_pi         1280 net/bluetooth/l2cap.c 		struct l2cap_conn *conn = l2cap_pi(sk)->conn;
l2cap_pi         1295 net/bluetooth/l2cap.c 	for (sk = l->head; sk; sk = l2cap_pi(sk)->next_c) {
l2cap_pi         1436 net/bluetooth/l2cap.c 	struct l2cap_pinfo *pi = l2cap_pi(sk);
l2cap_pi         1457 net/bluetooth/l2cap.c 	struct l2cap_pinfo *pi = l2cap_pi(sk);
l2cap_pi         1541 net/bluetooth/l2cap.c 	rsp->scid   = cpu_to_le16(l2cap_pi(sk)->dcid);
l2cap_pi         1619 net/bluetooth/l2cap.c 	l2cap_pi(sk)->psm  = psm;
l2cap_pi         1620 net/bluetooth/l2cap.c 	l2cap_pi(sk)->dcid = scid;
l2cap_pi         1623 net/bluetooth/l2cap.c 	dcid = l2cap_pi(sk)->scid;
l2cap_pi         1627 net/bluetooth/l2cap.c 	l2cap_pi(sk)->ident = cmd->ident;
l2cap_pi         1699 net/bluetooth/l2cap.c 		l2cap_pi(sk)->ident = 0;
l2cap_pi         1700 net/bluetooth/l2cap.c 		l2cap_pi(sk)->dcid = dcid;
l2cap_pi         1701 net/bluetooth/l2cap.c 		l2cap_pi(sk)->conf_state |= L2CAP_CONF_REQ_SENT;
l2cap_pi         1740 net/bluetooth/l2cap.c 	if (l2cap_pi(sk)->conf_len + len > sizeof(l2cap_pi(sk)->conf_req)) {
l2cap_pi         1748 net/bluetooth/l2cap.c 	memcpy(l2cap_pi(sk)->conf_req + l2cap_pi(sk)->conf_len, req->data, len);
l2cap_pi         1749 net/bluetooth/l2cap.c 	l2cap_pi(sk)->conf_len += len;
l2cap_pi         1767 net/bluetooth/l2cap.c 	l2cap_pi(sk)->conf_len = 0;
l2cap_pi         1769 net/bluetooth/l2cap.c 	if (!(l2cap_pi(sk)->conf_state & L2CAP_CONF_OUTPUT_DONE))
l2cap_pi         1772 net/bluetooth/l2cap.c 	if (l2cap_pi(sk)->conf_state & L2CAP_CONF_INPUT_DONE) {
l2cap_pi         1778 net/bluetooth/l2cap.c 	if (!(l2cap_pi(sk)->conf_state & L2CAP_CONF_REQ_SENT)) {
l2cap_pi         1809 net/bluetooth/l2cap.c 		if (++l2cap_pi(sk)->conf_retry < L2CAP_CONF_MAX_RETRIES) {
l2cap_pi         1827 net/bluetooth/l2cap.c 			req.dcid = cpu_to_le16(l2cap_pi(sk)->dcid);
l2cap_pi         1828 net/bluetooth/l2cap.c 			req.scid = cpu_to_le16(l2cap_pi(sk)->scid);
l2cap_pi         1838 net/bluetooth/l2cap.c 	l2cap_pi(sk)->conf_state |= L2CAP_CONF_INPUT_DONE;
l2cap_pi         1840 net/bluetooth/l2cap.c 	if (l2cap_pi(sk)->conf_state & L2CAP_CONF_OUTPUT_DONE) {
l2cap_pi         1865 net/bluetooth/l2cap.c 	rsp.dcid = cpu_to_le16(l2cap_pi(sk)->scid);
l2cap_pi         1866 net/bluetooth/l2cap.c 	rsp.scid = cpu_to_le16(l2cap_pi(sk)->dcid);
l2cap_pi         2054 net/bluetooth/l2cap.c 	if (l2cap_pi(sk)->imtu < skb->len)
l2cap_pi         2088 net/bluetooth/l2cap.c 	if (l2cap_pi(sk)->imtu < skb->len)
l2cap_pi         2151 net/bluetooth/l2cap.c 			lm1 |= (HCI_LM_ACCEPT | l2cap_pi(sk)->link_mode);
l2cap_pi         2154 net/bluetooth/l2cap.c 			lm2 |= (HCI_LM_ACCEPT | l2cap_pi(sk)->link_mode);
l2cap_pi         2207 net/bluetooth/l2cap.c 	for (sk = l->head; sk; sk = l2cap_pi(sk)->next_c) {
l2cap_pi         2208 net/bluetooth/l2cap.c 		struct l2cap_pinfo *pi = l2cap_pi(sk);
l2cap_pi         2222 net/bluetooth/l2cap.c 				req.scid = cpu_to_le16(l2cap_pi(sk)->scid);
l2cap_pi         2223 net/bluetooth/l2cap.c 				req.psm  = l2cap_pi(sk)->psm;
l2cap_pi         2225 net/bluetooth/l2cap.c 				l2cap_pi(sk)->ident = l2cap_get_ident(conn);
l2cap_pi         2227 net/bluetooth/l2cap.c 				l2cap_send_cmd(conn, l2cap_pi(sk)->ident,
l2cap_pi         2246 net/bluetooth/l2cap.c 			rsp.scid   = cpu_to_le16(l2cap_pi(sk)->dcid);
l2cap_pi         2247 net/bluetooth/l2cap.c 			rsp.dcid   = cpu_to_le16(l2cap_pi(sk)->scid);
l2cap_pi         2250 net/bluetooth/l2cap.c 			l2cap_send_cmd(conn, l2cap_pi(sk)->ident,
l2cap_pi         2277 net/bluetooth/l2cap.c 	for (sk = l->head; sk; sk = l2cap_pi(sk)->next_c) {
l2cap_pi         2278 net/bluetooth/l2cap.c 		struct l2cap_pinfo *pi = l2cap_pi(sk);
l2cap_pi         2294 net/bluetooth/l2cap.c 				req.scid = cpu_to_le16(l2cap_pi(sk)->scid);
l2cap_pi         2295 net/bluetooth/l2cap.c 				req.psm  = l2cap_pi(sk)->psm;
l2cap_pi         2297 net/bluetooth/l2cap.c 				l2cap_pi(sk)->ident = l2cap_get_ident(conn);
l2cap_pi         2299 net/bluetooth/l2cap.c 				l2cap_send_cmd(conn, l2cap_pi(sk)->ident,
l2cap_pi         2318 net/bluetooth/l2cap.c 			rsp.scid   = cpu_to_le16(l2cap_pi(sk)->dcid);
l2cap_pi         2319 net/bluetooth/l2cap.c 			rsp.dcid   = cpu_to_le16(l2cap_pi(sk)->scid);
l2cap_pi         2322 net/bluetooth/l2cap.c 			l2cap_send_cmd(conn, l2cap_pi(sk)->ident,
l2cap_pi         2430 net/bluetooth/l2cap.c 		struct l2cap_pinfo *pi = l2cap_pi(sk);
l2cap_pi          236 net/bluetooth/rfcomm/core.c 		if (!hci_conn_encrypt(l2cap_pi(sk)->conn->hcon))
l2cap_pi          239 net/bluetooth/rfcomm/core.c 		if (!hci_conn_auth(l2cap_pi(sk)->conn->hcon))
l2cap_pi          651 net/bluetooth/rfcomm/core.c 	l2cap_pi(sk)->imtu = l2cap_mtu;
l2cap_pi         1184 net/bluetooth/rfcomm/core.c 		hci_conn_switch_role(l2cap_pi(sk)->conn->hcon, 0x00);
l2cap_pi         1729 net/bluetooth/rfcomm/core.c 				hci_conn_change_link_key(l2cap_pi(sk)->conn->hcon);
l2cap_pi         1801 net/bluetooth/rfcomm/core.c 		s->mtu = min(l2cap_pi(nsock->sk)->omtu, l2cap_pi(nsock->sk)->imtu) - 5;
l2cap_pi         1820 net/bluetooth/rfcomm/core.c 		s->mtu = min(l2cap_pi(sk)->omtu, l2cap_pi(sk)->imtu) - 5;
l2cap_pi         1895 net/bluetooth/rfcomm/core.c 	l2cap_pi(sk)->imtu = l2cap_mtu;
l2cap_pi          775 net/bluetooth/rfcomm/sock.c 		cinfo.hci_handle = l2cap_pi(l2cap_sk)->conn->hcon->handle;
l2cap_pi          776 net/bluetooth/rfcomm/sock.c 		memcpy(cinfo.dev_class, l2cap_pi(l2cap_sk)->conn->hcon->dev_class, 3);