Lines Matching refs:bt_conn
27 #define LOG_MODULE_NAME bt_conn
72 static struct bt_conn conns[CONFIG_BT_MAX_CONN];
79 static struct bt_conn sco_conns[CONFIG_BT_MAX_SCO_CONN];
98 void bt_conn_del(struct bt_conn *conn);
100 struct k_sem *bt_conn_get_pkts(struct bt_conn *conn) in bt_conn_get_pkts()
135 static void notify_connected(struct bt_conn *conn) in notify_connected()
150 static void notify_disconnected(struct bt_conn *conn) in notify_disconnected()
162 void notify_remote_info(struct bt_conn *conn) in notify_remote_info()
182 void notify_le_param_updated(struct bt_conn *conn) in notify_le_param_updated()
207 void notify_le_data_len_updated(struct bt_conn *conn) in notify_le_data_len_updated()
220 void notify_le_phy_updated(struct bt_conn *conn) in notify_le_phy_updated()
232 bool le_param_req(struct bt_conn *conn, struct bt_le_conn_param *param) in le_param_req()
261 static int send_conn_le_param_update(struct bt_conn *conn, in send_conn_le_param_update()
307 static void tx_notify(struct bt_conn *conn) in tx_notify()
345 struct bt_conn *conn = CONTAINER_OF(work, struct bt_conn, in tx_complete_work()
355 struct bt_conn *conn = CONTAINER_OF(work, struct bt_conn, update_work); in conn_update_timeout()
419 static struct bt_conn *conn_new(void) in conn_new()
421 struct bt_conn *conn = NULL; in conn_new()
447 void bt_sco_cleanup(struct bt_conn *sco_conn) in bt_sco_cleanup()
454 static struct bt_conn *sco_conn_new(void) in sco_conn_new()
456 struct bt_conn *sco_conn = NULL; in sco_conn_new()
477 struct bt_conn *bt_conn_create_br(const bt_addr_t *peer, in bt_conn_create_br()
481 struct bt_conn *conn; in bt_conn_create_br()
528 struct bt_conn *bt_conn_create_sco(const bt_addr_t *peer) in bt_conn_create_sco()
531 struct bt_conn *sco_conn; in bt_conn_create_sco()
589 struct bt_conn *bt_conn_lookup_addr_sco(const bt_addr_t *peer) in bt_conn_lookup_addr_sco()
610 struct bt_conn *bt_conn_lookup_addr_br(const bt_addr_t *peer) in bt_conn_lookup_addr_br()
631 struct bt_conn *bt_conn_add_sco(const bt_addr_t *peer, int link_type) in bt_conn_add_sco()
633 struct bt_conn *sco_conn = sco_conn_new(); in bt_conn_add_sco()
658 struct bt_conn *bt_conn_add_br(const bt_addr_t *peer) in bt_conn_add_br()
660 struct bt_conn *conn = conn_new(); in bt_conn_add_br()
690 static int pin_code_reply(struct bt_conn *conn, const char *pin, u8_t len) in pin_code_reply()
711 int bt_conn_auth_pincode_entry(struct bt_conn *conn, const char *pin) in bt_conn_auth_pincode_entry()
746 void bt_conn_pin_code_req(struct bt_conn *conn) in bt_conn_pin_code_req()
784 static u8_t ssp_pair_method(const struct bt_conn *conn) in ssp_pair_method()
789 u8_t bt_conn_ssp_get_auth(const struct bt_conn *conn) in bt_conn_ssp_get_auth()
807 static int ssp_confirm_reply(struct bt_conn *conn) in ssp_confirm_reply()
825 static int ssp_confirm_neg_reply(struct bt_conn *conn) in ssp_confirm_neg_reply()
844 void bt_conn_ssp_auth_complete(struct bt_conn *conn, u8_t status) in bt_conn_ssp_auth_complete()
859 void bt_conn_ssp_auth(struct bt_conn *conn, bt_u32_t passkey) in bt_conn_ssp_auth()
907 static int ssp_passkey_reply(struct bt_conn *conn, unsigned int passkey) in ssp_passkey_reply()
926 static int ssp_passkey_neg_reply(struct bt_conn *conn) in ssp_passkey_neg_reply()
945 static int bt_hci_connect_br_cancel(struct bt_conn *conn) in bt_hci_connect_br_cancel()
974 static int conn_auth(struct bt_conn *conn) in conn_auth()
996 void bt_conn_identity_resolved(struct bt_conn *conn) in bt_conn_identity_resolved()
1014 int bt_conn_le_start_encryption(struct bt_conn *conn, u8_t rand[8], in bt_conn_le_start_encryption()
1052 u8_t bt_conn_enc_key_size(struct bt_conn *conn) in bt_conn_enc_key_size()
1096 void bt_conn_security_changed(struct bt_conn *conn, enum bt_security_err err) in bt_conn_security_changed()
1112 static int start_security(struct bt_conn *conn) in start_security()
1140 int bt_conn_set_security(struct bt_conn *conn, bt_security_t sec) in bt_conn_set_security()
1177 bt_security_t bt_conn_get_security(struct bt_conn *conn) in bt_conn_get_security()
1182 bt_security_t bt_conn_get_security(struct bt_conn *conn) in bt_conn_get_security()
1194 static void bt_conn_reset_rx_state(struct bt_conn *conn) in bt_conn_reset_rx_state()
1205 void bt_conn_recv(struct bt_conn *conn, struct net_buf *buf, u8_t flags) in bt_conn_recv()
1324 int bt_conn_send_cb(struct bt_conn *conn, struct net_buf *buf, in bt_conn_send_cb()
1368 static bool send_frag(struct bt_conn *conn, struct net_buf *buf, u8_t flags, in send_frag()
1441 static inline u16_t conn_mtu(struct bt_conn *conn) in conn_mtu()
1452 static struct net_buf *create_frag(struct bt_conn *conn, struct net_buf *buf) in create_frag()
1475 static bool send_buf(struct bt_conn *conn, struct net_buf *buf) in send_buf()
1517 static void conn_cleanup(struct bt_conn *conn) in conn_cleanup()
1549 struct bt_conn *conn = &conns[i]; in bt_conn_prepare_events()
1577 void bt_conn_process_tx(struct bt_conn *conn) in bt_conn_process_tx()
1600 struct bt_conn *conn = bt_conn_lookup_addr_le(id, peer); in bt_conn_exists_le()
1619 struct bt_conn *bt_conn_add_le(u8_t id, const bt_addr_le_t *peer) in bt_conn_add_le()
1621 struct bt_conn *conn = conn_new(); in bt_conn_add_le()
1640 static void process_unack_tx(struct bt_conn *conn) in process_unack_tx()
1677 void bt_conn_set_state(struct bt_conn *conn, bt_conn_state_t state) in bt_conn_set_state()
1840 struct bt_conn *bt_conn_lookup_handle(u16_t handle) in bt_conn_lookup_handle()
1881 bool bt_conn_is_peer_addr_le(const struct bt_conn *conn, u8_t id, in bt_conn_is_peer_addr_le()
1901 struct bt_conn *bt_conn_lookup_addr_le(u8_t id, const bt_addr_le_t *peer) in bt_conn_lookup_addr_le()
1922 struct bt_conn *bt_conn_lookup_state_le(u8_t id, const bt_addr_le_t *peer, in bt_conn_lookup_state_le()
1948 void bt_conn_foreach(int type, void (*func)(struct bt_conn *conn, void *data), in bt_conn_foreach()
1977 struct bt_conn *bt_conn_ref(struct bt_conn *conn) in bt_conn_ref()
1988 void bt_conn_unref(struct bt_conn *conn) in bt_conn_unref()
2000 void bt_conn_del(struct bt_conn *conn) in bt_conn_del()
2009 const bt_addr_le_t *bt_conn_get_dst(const struct bt_conn *conn) in bt_conn_get_dst()
2014 int bt_conn_get_info(const struct bt_conn *conn, struct bt_conn_info *info) in bt_conn_get_info()
2051 int bt_conn_get_remote_info(struct bt_conn *conn, in bt_conn_get_remote_info()
2087 static int conn_disconnect(struct bt_conn *conn, u8_t reason) in conn_disconnect()
2101 int bt_conn_le_param_update(struct bt_conn *conn, in bt_conn_le_param_update()
2140 int bt_conn_le_data_len_update(struct bt_conn *conn, in bt_conn_le_data_len_update()
2158 int bt_conn_le_phy_update(struct bt_conn *conn, in bt_conn_le_phy_update()
2175 int bt_conn_disconnect(struct bt_conn *conn, u8_t reason) in bt_conn_disconnect()
2232 static void bt_conn_set_param_le(struct bt_conn *conn, in bt_conn_set_param_le()
2279 struct bt_conn *conn; in bt_conn_le_create_auto()
2341 struct bt_conn *conn; in bt_conn_create_auto_stop()
2374 struct bt_conn **ret_conn) in bt_conn_le_create()
2376 struct bt_conn *conn; in bt_conn_le_create()
2462 struct bt_conn *conn; in bt_le_set_auto_conn()
2517 int bt_conn_le_conn_update(struct bt_conn *conn, in bt_conn_le_conn_update()
2655 int bt_conn_auth_passkey_entry(struct bt_conn *conn, unsigned int passkey) in bt_conn_auth_passkey_entry()
2682 int bt_conn_auth_passkey_confirm(struct bt_conn *conn) in bt_conn_auth_passkey_confirm()
2707 int bt_conn_auth_cancel(struct bt_conn *conn) in bt_conn_auth_cancel()
2744 int bt_conn_auth_pairing_confirm(struct bt_conn *conn) in bt_conn_auth_pairing_confirm()
2765 u8_t bt_conn_index(struct bt_conn *conn) in bt_conn_index()
2773 struct bt_conn *bt_conn_lookup_index(u8_t index) in bt_conn_lookup_index()
2775 struct bt_conn *conn; in bt_conn_lookup_index()
2815 struct bt_conn *conn = &conns[i]; in bt_conn_init()