Home
last modified time | relevance | path

Searched refs:hcon (Results 1 – 15 of 15) sorted by relevance

/openbmc/linux/net/bluetooth/
H A Dsmp.c600 bt_dev_dbg(conn->hcon->hdev, "code 0x%2.2x", code); in smp_send_cmd()
654 struct hci_conn *hcon = conn->hcon; in build_pairing_cmd() local
655 struct hci_dev *hdev = hcon->hdev; in build_pairing_cmd()
682 if (hcon->dst_type == ADDR_LE_DEV_PUBLIC) in build_pairing_cmd()
687 oob_data = hci_find_remote_oob_data(hdev, &hcon->dst, in build_pairing_cmd()
703 req->io_capability = conn->hcon->io_capability; in build_pairing_cmd()
714 rsp->io_capability = conn->hcon->io_capability; in build_pairing_cmd()
727 struct hci_dev *hdev = conn->hcon->hdev; in check_enc_key_size()
730 if (conn->hcon->pending_sec_level == BT_SECURITY_FIPS && in check_enc_key_size()
747 struct hci_conn *hcon = conn->hcon; in smp_chan_destroy() local
[all …]
H A Diso.c26 struct hci_conn *hcon; member
145 static struct iso_conn *iso_conn_add(struct hci_conn *hcon) in iso_conn_add() argument
147 struct iso_conn *conn = hcon->iso_data; in iso_conn_add()
150 if (!conn->hcon) in iso_conn_add()
151 conn->hcon = hcon; in iso_conn_add()
162 hcon->iso_data = conn; in iso_conn_add()
163 conn->hcon = hcon; in iso_conn_add()
166 BT_DBG("hcon %p conn %p", hcon, conn); in iso_conn_add()
187 if (conn->hcon) in iso_chan_del()
188 hci_conn_drop(conn->hcon); in iso_chan_del()
[all …]
H A Dsco.c46 struct hci_conn *hcon; member
96 if (!conn->hcon) { in sco_sock_timeout()
135 static struct sco_conn *sco_conn_add(struct hci_conn *hcon) in sco_conn_add() argument
137 struct sco_conn *conn = hcon->sco_data; in sco_conn_add()
140 if (!conn->hcon) in sco_conn_add()
141 conn->hcon = hcon; in sco_conn_add()
152 hcon->sco_data = conn; in sco_conn_add()
153 conn->hcon = hcon; in sco_conn_add()
154 conn->mtu = hcon->mtu; in sco_conn_add()
156 if (hcon->mtu > 0) in sco_conn_add()
[all …]
H A Dl2cap_core.c78 static inline u8 bdaddr_src_type(struct hci_conn *hcon) in bdaddr_src_type() argument
80 return bdaddr_type(hcon->type, hcon->src_type); in bdaddr_src_type()
83 static inline u8 bdaddr_dst_type(struct hci_conn *hcon) in bdaddr_dst_type() argument
85 return bdaddr_type(hcon->type, hcon->dst_type); in bdaddr_dst_type()
250 if (conn->hcon->type == LE_LINK) in l2cap_alloc_cid()
603 if (conn->hcon->type == ACL_LINK) in __l2cap_chan_add()
637 hci_conn_hold(conn->hcon); in __l2cap_chan_add()
675 hci_conn_drop(conn->hcon); in l2cap_chan_del()
746 struct hci_conn *hcon = conn->hcon; in l2cap_conn_update_id_addr() local
753 bacpy(&chan->dst, &hcon->dst); in l2cap_conn_update_id_addr()
[all …]
H A D6lowpan.c224 if (conn->hcon->hdev == entry->hdev) { in lookup_dev()
605 static bool is_bt_6lowpan(struct hci_conn *hcon) in is_bt_6lowpan() argument
607 if (hcon->type != LE_LINK) in is_bt_6lowpan()
679 SET_NETDEV_DEV(netdev, &chan->conn->hcon->hdev->dev); in setup_netdev()
684 (*dev)->hdev = chan->conn->hcon->hdev; in setup_netdev()
773 if (chan->conn && chan->conn->hcon) { in chan_close_cb()
774 if (!is_bt_6lowpan(chan->conn->hcon)) in chan_close_cb()
955 struct hci_conn *hcon; in get_l2cap_conn() local
973 hcon = hci_conn_hash_lookup_le(hdev, addr, *addr_type); in get_l2cap_conn()
977 if (!hcon) in get_l2cap_conn()
[all …]
H A Dsmp.h186 bool smp_sufficient_security(struct hci_conn *hcon, u8 sec_level,
188 int smp_conn_security(struct hci_conn *hcon, __u8 sec_level);
H A Dl2cap_sock.c536 cinfo.hci_handle = chan->conn->hcon->handle; in l2cap_sock_getsockopt_old()
537 memcpy(cinfo.dev_class, chan->conn->hcon->dev_class, 3); in l2cap_sock_getsockopt_old()
588 sec.level = chan->conn->hcon->sec_level; in l2cap_sock_getsockopt()
591 sec.key_size = chan->conn->hcon->enc_key_size; in l2cap_sock_getsockopt()
672 phys = hci_conn_get_phy(chan->conn->hcon); in l2cap_sock_getsockopt()
930 if (smp_conn_security(conn->hcon, sec.level)) { in l2cap_sock_setsockopt()
985 if (!conn || !lmp_no_flush_capable(conn->hcon->hdev)) { in l2cap_sock_setsockopt()
H A Dhci_conn.c2086 int hci_le_big_create_sync(struct hci_dev *hdev, struct hci_conn *hcon, in hci_le_big_create_sync() argument
2103 if (hcon) in hci_le_big_create_sync()
2104 hcon->iso_qos.bcast.big = qos->bcast.big; in hci_le_big_create_sync()
2722 static struct hci_chan *__hci_chan_lookup_handle(struct hci_conn *hcon, in __hci_chan_lookup_handle() argument
2727 list_for_each_entry(hchan, &hcon->chan_list, list) { in __hci_chan_lookup_handle()
2738 struct hci_conn *hcon; in hci_chan_lookup_handle() local
2743 list_for_each_entry_rcu(hcon, &h->list, list) { in hci_chan_lookup_handle()
2744 hchan = __hci_chan_lookup_handle(hcon, handle); in hci_chan_lookup_handle()
H A Dhci_event.c6521 struct hci_conn *hcon; in hci_le_remote_conn_param_req_evt() local
6532 hcon = hci_conn_hash_lookup_handle(hdev, handle); in hci_le_remote_conn_param_req_evt()
6533 if (!hcon || hcon->state != BT_CONNECTED) in hci_le_remote_conn_param_req_evt()
6537 if (max > hcon->le_conn_max_interval) in hci_le_remote_conn_param_req_evt()
6545 if (hcon->role == HCI_ROLE_MASTER) { in hci_le_remote_conn_param_req_evt()
6551 params = hci_conn_params_lookup(hdev, &hcon->dst, in hci_le_remote_conn_param_req_evt()
6552 hcon->dst_type); in hci_le_remote_conn_param_req_evt()
6565 mgmt_new_conn_param(hdev, &hcon->dst, hcon->dst_type, in hci_le_remote_conn_param_req_evt()
/openbmc/linux/include/net/bluetooth/
H A Dhci_core.h829 int l2cap_disconn_ind(struct hci_conn *hcon);
830 void l2cap_recv_acldata(struct hci_conn *hcon, struct sk_buff *skb, u16 flags);
834 void sco_recv_scodata(struct hci_conn *hcon, struct sk_buff *skb);
842 static inline void sco_recv_scodata(struct hci_conn *hcon, struct sk_buff *skb) in sco_recv_scodata() argument
849 void iso_recv(struct hci_conn *hcon, struct sk_buff *skb, u16 flags);
856 static inline void iso_recv(struct hci_conn *hcon, struct sk_buff *skb, in iso_recv() argument
1492 int hci_le_big_create_sync(struct hci_dev *hdev, struct hci_conn *hcon,
H A Dl2cap.h636 struct hci_conn *hcon; member
/openbmc/linux/net/bluetooth/bnep/
H A Dcore.c547 if (!conn || !conn->hcon) in bnep_get_device()
550 return &conn->hcon->dev; in bnep_get_device()
/openbmc/linux/net/bluetooth/rfcomm/
H A Dsock.c784 cinfo.hci_handle = conn->hcon->handle; in rfcomm_sock_getsockopt_old()
785 memcpy(cinfo.dev_class, conn->hcon->dev_class, 3); in rfcomm_sock_getsockopt_old()
H A Dcore.c232 return hci_conn_security(conn->hcon, d->sec_level, auth_type, in rfcomm_check_security()
1337 hci_conn_switch_role(conn->hcon, 0x00); in rfcomm_dlc_accept()
2137 static bool rfcomm_match(struct hci_conn *hcon) in rfcomm_match() argument
2139 return hcon->type == ACL_LINK; in rfcomm_match()
/openbmc/linux/net/bluetooth/hidp/
H A Dcore.c703 input->dev.parent = &session->conn->hcon->dev; in hidp_setup_input()
793 hid->dev.parent = &session->conn->hcon->dev; in hidp_setup_hid()