Home
last modified time | relevance | path

Searched refs:bt_conn (Results 1 – 25 of 46) sorted by relevance

12

/AliOS-Things-master/components/ble_host/bt_host/include/bluetooth/
A Dconn.h52 struct bt_conn;
210 struct bt_conn *bt_conn_ref(struct bt_conn *conn);
218 void bt_conn_unref(struct bt_conn *conn);
261 u8_t bt_conn_index(struct bt_conn *conn);
557 struct bt_conn **conn);
563 struct bt_conn *conn; in bt_conn_create_le()
842 bool (*le_param_req)(struct bt_conn *conn,
907 void (*le_phy_updated)(struct bt_conn *conn,
1169 void (*passkey_entry)(struct bt_conn *conn);
1225 void (*cancel)(struct bt_conn *conn);
[all …]
A Dhfp_hf.h57 void (*connected)(struct bt_conn *conn);
66 void (*disconnected)(struct bt_conn *conn);
74 void (*service)(struct bt_conn *conn, bt_u32_t value);
82 void (*call)(struct bt_conn *conn, bt_u32_t value);
90 void (*call_setup)(struct bt_conn *conn, bt_u32_t value);
98 void (*call_held)(struct bt_conn *conn, bt_u32_t value);
106 void (*signal)(struct bt_conn *conn, bt_u32_t value);
114 void (*roam)(struct bt_conn *conn, bt_u32_t value);
122 void (*battery)(struct bt_conn *conn, bt_u32_t value);
130 void (*ring_indication)(struct bt_conn *conn);
[all …]
A Dgatt.h121 ssize_t (*read)(struct bt_conn *conn,
141 ssize_t (*write)(struct bt_conn *conn,
603 ssize_t (*cfg_write)(struct bt_conn *conn,
617 bool (*cfg_match)(struct bt_conn *conn,
872 int bt_gatt_notify_cb(struct bt_conn *conn,
971 int bt_gatt_indicate(struct bt_conn *conn,
1004 u16_t bt_gatt_get_mtu(struct bt_conn *conn);
1017 void (*func)(struct bt_conn *conn, u8_t err,
1139 int bt_gatt_discover(struct bt_conn *conn,
1392 int bt_gatt_subscribe(struct bt_conn *conn,
[all …]
A Dl2cap.h95 struct bt_conn *conn;
310 int (*accept)(struct bt_conn *conn, struct bt_l2cap_chan **chan);
360 int bt_l2cap_ecred_chan_connect(struct bt_conn *conn,
381 int bt_l2cap_chan_connect(struct bt_conn *conn, struct bt_l2cap_chan *chan,
A Drfcomm.h116 int (*accept)(struct bt_conn *conn, struct bt_rfcomm_dlc **dlc);
145 int bt_rfcomm_dlc_connect(struct bt_conn *conn, struct bt_rfcomm_dlc *dlc,
/AliOS-Things-master/components/ble_host/bt_host/host/
A Dconn_internal.h90 struct bt_conn *acl;
107 struct bt_conn { struct
196 void bt_sco_cleanup(struct bt_conn *sco_conn);
204 void bt_conn_pin_code_req(struct bt_conn *conn);
213 struct bt_conn *bt_conn_lookup_handle(u16_t handle);
224 struct bt_conn *bt_conn_lookup_index(u8_t index);
235 int bt_conn_le_conn_update(struct bt_conn *conn,
238 void notify_remote_info(struct bt_conn *conn);
240 void notify_le_param_updated(struct bt_conn *conn);
244 void notify_le_phy_updated(struct bt_conn *conn);
[all …]
A Dsmp.h126 int bt_smp_start_security(struct bt_conn *conn);
130 void bt_smp_update_keys(struct bt_conn *conn);
132 int bt_smp_br_send_pairing_req(struct bt_conn *conn);
137 int bt_smp_auth_passkey_confirm(struct bt_conn *conn);
138 int bt_smp_auth_pairing_confirm(struct bt_conn *conn);
139 int bt_smp_auth_cancel(struct bt_conn *conn);
141 int bt_smp_le_oob_set_tk(struct bt_conn *conn, const u8_t *tk);
143 int bt_smp_le_oob_set_sc_data(struct bt_conn *conn,
146 int bt_smp_le_oob_get_sc_data(struct bt_conn *conn,
157 int bt_smp_sign_verify(struct bt_conn *conn, struct net_buf *buf);
[all …]
A Dgatt_internal.h26 void bt_gatt_connected(struct bt_conn *conn);
27 void bt_gatt_encrypt_change(struct bt_conn *conn);
28 void bt_gatt_disconnected(struct bt_conn *conn);
30 bool bt_gatt_change_aware(struct bt_conn *conn, bool req);
37 void bt_gatt_notification(struct bt_conn *conn, u16_t handle,
40 void bt_gatt_mult_notification(struct bt_conn *conn, const void *data,
43 static inline void bt_gatt_notification(struct bt_conn *conn, u16_t handle, in bt_gatt_notification()
48 static inline void bt_gatt_mult_notification(struct bt_conn *conn, in bt_gatt_mult_notification()
57 u8_t bt_gatt_check_perm(struct bt_conn *conn, const struct bt_gatt_attr *attr,
A Dl2cap_internal.h239 int (*accept)(struct bt_conn *conn, struct bt_l2cap_chan **chan);
257 int (*accept)(struct bt_conn *conn, struct bt_l2cap_chan **chan);
268 void bt_l2cap_connected(struct bt_conn *conn);
271 void bt_l2cap_disconnected(struct bt_conn *conn);
300 void bt_l2cap_encrypt_change(struct bt_conn *conn, u8_t hci_status);
324 static inline void bt_l2cap_send(struct bt_conn *conn, u16_t cid, in bt_l2cap_send()
331 void bt_l2cap_recv(struct bt_conn *conn, struct net_buf *buf);
334 int bt_l2cap_update_conn_param(struct bt_conn *conn,
355 void bt_l2cap_br_connected(struct bt_conn *conn);
375 void l2cap_br_encrypt_change(struct bt_conn *conn, u8_t hci_status);
[all …]
A Dconn.c27 #define LOG_MODULE_NAME bt_conn
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()
481 struct bt_conn *conn; in bt_conn_create_br()
531 struct bt_conn *sco_conn; in bt_conn_create_sco()
1977 struct bt_conn *bt_conn_ref(struct bt_conn *conn) in bt_conn_ref()
2279 struct bt_conn *conn; in bt_conn_le_create_auto()
2341 struct bt_conn *conn; in bt_conn_create_auto_stop()
2376 struct bt_conn *conn; in bt_conn_le_create()
2462 struct bt_conn *conn; in bt_le_set_auto_conn()
[all …]
A Datt_internal.h261 typedef void (*bt_att_func_t)(struct bt_conn *conn, u8_t err,
280 void att_sent(struct bt_conn *conn, void *user_data);
283 u16_t bt_att_get_mtu(struct bt_conn *conn);
284 struct net_buf *bt_att_create_pdu(struct bt_conn *conn, u8_t op,
294 int bt_att_send(struct bt_conn *conn, struct net_buf *buf, bt_conn_tx_cb_t cb,
298 int bt_att_req_send(struct bt_conn *conn, struct bt_att_req *req);
301 void bt_att_req_cancel(struct bt_conn *conn, struct bt_att_req *req);
304 int bt_eatt_connect(struct bt_conn *conn, u8_t num_channels);
307 int bt_eatt_disconnect(struct bt_conn *conn);
A Dsmp_null.c37 int bt_smp_sign_verify(struct bt_conn *conn, struct net_buf *buf) in bt_smp_sign_verify()
42 int bt_smp_sign(struct bt_conn *conn, struct net_buf *buf) in bt_smp_sign()
49 struct bt_conn *conn = chan->conn; in bt_smp_recv()
73 static int bt_smp_accept(struct bt_conn *conn, struct bt_l2cap_chan **chan) in bt_smp_accept()
A Dgatt.c311 static void sc_clear(struct bt_conn *conn) in sc_clear()
1922 struct bt_conn *conn; in notify_cb()
1947 struct bt_conn *conn; in notify_cb()
2002 int bt_gatt_notify_cb(struct bt_conn *conn, in bt_gatt_notify_cb()
2089 int bt_gatt_indicate(struct bt_conn *conn, in bt_gatt_indicate()
2155 u16_t bt_gatt_get_mtu(struct bt_conn *conn) in bt_gatt_get_mtu()
2255 struct bt_conn *conn;
2262 struct bt_conn *conn = data->conn; in update_ccc()
2324 struct bt_conn *conn = user_data; in disconnected_cb()
2353 struct bt_conn *tmp; in disconnected_cb()
[all …]
A Da2dp.c48 struct bt_a2dp *get_new_connection(struct bt_conn *conn) in get_new_connection()
83 int a2dp_accept(struct bt_conn *conn, struct bt_avdtp **session) in a2dp_accept()
124 struct bt_a2dp *bt_a2dp_connect(struct bt_conn *conn) in bt_a2dp_connect()
A Dl2cap.c284 struct bt_conn *conn = chan->chan.conn; in l2cap_rtx_timeout()
359 void bt_l2cap_connected(struct bt_conn *conn) in bt_l2cap_connected()
402 void bt_l2cap_disconnected(struct bt_conn *conn) in bt_l2cap_disconnected()
638 struct bt_conn *conn = l2cap->chan.chan.conn; in le_conn_param_update_req()
998 struct bt_conn *conn = l2cap->chan.chan.conn; in le_conn_req()
1071 struct bt_conn *conn = l2cap->chan.chan.conn; in le_ecred_conn_req()
1173 struct bt_conn *conn = l2cap->chan.chan.conn; in le_ecred_reconf_req()
1271 struct bt_conn *conn = l2cap->chan.chan.conn; in le_disconn_req()
1358 struct bt_conn *conn = l2cap->chan.chan.conn; in le_ecred_conn_rsp()
2031 struct bt_conn *conn = chan->conn; in bt_l2cap_chan_recv_complete()
[all …]
A Dl2cap_br.c99 struct bt_l2cap_chan *bt_l2cap_br_lookup_rx_cid(struct bt_conn *conn, in bt_l2cap_br_lookup_rx_cid()
113 struct bt_l2cap_chan *bt_l2cap_br_lookup_tx_cid(struct bt_conn *conn, in bt_l2cap_br_lookup_tx_cid()
395 struct bt_conn *conn = l2cap->chan.chan.conn; in l2cap_br_info_req()
446 void bt_l2cap_br_connected(struct bt_conn *conn) in bt_l2cap_br_connected()
670 struct bt_conn *conn = l2cap->chan.chan.conn; in l2cap_br_conn_req()
776 struct bt_conn *conn = l2cap->chan.chan.conn; in l2cap_br_conf_rsp()
921 struct bt_conn *conn = l2cap->chan.chan.conn; in l2cap_br_conf_req()
1064 struct bt_conn *conn = l2cap->chan.chan.conn; in l2cap_br_disconn_req()
1126 struct bt_conn *conn = chan->conn; in bt_l2cap_br_chan_disconnect()
1165 struct bt_conn *conn = l2cap->chan.chan.conn; in l2cap_br_disconn_rsp()
[all …]
A Datt.c116 struct bt_conn *conn;
376 struct bt_conn *conn = chan->att->conn; in att_mtu_req()
660 struct bt_conn *conn = chan->chan.chan.conn; in att_find_info_rsp()
721 struct bt_conn *conn = chan->chan.chan.conn; in find_type_cb()
815 struct bt_conn *conn = chan->chan.chan.conn; in att_find_type_rsp()
932 struct bt_conn *conn = chan->chan.chan.conn; in att_chan_read()
989 struct bt_conn *conn = chan->chan.chan.conn; in read_type_cb()
1532 struct bt_conn *conn;
1638 struct bt_conn *conn;
2569 struct bt_conn *conn = ch->chan.conn; in bt_att_encrypt_change()
[all …]
A Dhfp_hf.c227 struct bt_conn *conn = hf->rfcomm_dlc.session->br_chan.chan.conn; in ag_indicator_handle_values()
351 struct bt_conn *conn = hf->rfcomm_dlc.session->br_chan.chan.conn; in ring_handle()
405 struct bt_conn *conn = hf->rfcomm_dlc.session->br_chan.chan.conn; in cmd_complete()
448 struct bt_conn *conn = hf->rfcomm_dlc.session->br_chan.chan.conn; in slc_completed()
554 static struct bt_hfp_hf *bt_hfp_hf_lookup_bt_conn(struct bt_conn *conn) in bt_hfp_hf_lookup_bt_conn()
569 int bt_hfp_hf_send_cmd(struct bt_conn *conn, enum bt_hfp_hf_at_cmd cmd) in bt_hfp_hf_send_cmd()
622 struct bt_conn *conn = dlc->session->br_chan.chan.conn; in hfp_hf_disconnected()
639 static int bt_hfp_hf_accept(struct bt_conn *conn, struct bt_rfcomm_dlc **dlc) in bt_hfp_hf_accept()
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/inc/port/
A Dmesh_hal_ble.h94 struct bt_conn *bt_mesh_conn_ref(struct bt_conn *conn);
102 void bt_mesh_conn_unref(struct bt_conn *conn);
182 uint16_t bt_mesh_gatt_get_mtu(struct bt_conn *conn);
200 int bt_mesh_gatt_attr_read_service(struct bt_conn *conn,
220 int bt_mesh_gatt_attr_read_chrc(struct bt_conn *conn,
225 typedef ssize_t (*gatt_recv_cb)(struct bt_conn *conn,
230 u16_t bt_mesh_get_srvc_uuid(struct bt_conn *conn);
231 void bt_mesh_gatt_conn_open(struct bt_conn *conn, void (*open_complete)(struct bt_conn *conn));
232 u16_t bt_gatt_get_data_in_handle(struct bt_conn *conn);
233 u16_t bt_gatt_prov_get_mtu(struct bt_conn *conn);
[all …]
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/ref_impl/
A Dmesh_hal_ble.c49 struct bt_conn * bt_mesh_conn_ref(struct bt_conn * conn) in bt_mesh_conn_ref()
51 return bt_conn_ref((struct bt_conn *)conn); in bt_mesh_conn_ref()
54 void bt_mesh_conn_unref(struct bt_conn * conn) in bt_mesh_conn_unref()
56 bt_conn_unref((struct bt_conn *)conn); in bt_mesh_conn_unref()
163 struct bt_conn *conn;
173 static struct bt_conn *gatt_conn;
234 struct bt_conn *conn; in bt_gattc_conn_create()
282 struct bt_conn * bt_mesh_get_curr_conn(void) in bt_mesh_get_curr_conn()
566 void bt_mesh_gatt_conn_open(struct bt_conn *conn, void (*open_complete)(struct bt_conn *conn)) in bt_mesh_gatt_conn_open()
592 struct bt_conn * bt_mesh_conn_ref(struct bt_conn * conn) in bt_mesh_conn_ref()
[all …]
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/inc/
A Dprovisioner_prov.h86 struct bt_conn;
106 void (*connected)(struct bt_conn *conn, int id);
108 void (*disconnected)(struct bt_conn *conn, u8_t reason);
110 size_t (*prov_write_descr)(struct bt_conn *conn, u8_t *addr);
112 size_t (*prov_notify)(struct bt_conn *conn, u8_t *data, u16_t len);
114 size_t (*proxy_write_descr)(struct bt_conn *conn);
116 size_t (*proxy_notify)(struct bt_conn *conn, u8_t *data, u16_t len);
178 int provisioner_set_prov_conn(struct bt_conn *conn, int index);
189 int provisioner_pb_gatt_open(struct bt_conn *conn, u8_t *addr);
200 int provisioner_pb_gatt_close(struct bt_conn *conn, u8_t reason);
[all …]
A Dprov.h15 int bt_mesh_pb_gatt_open(struct bt_conn *conn);
16 int bt_mesh_pb_gatt_close(struct bt_conn *conn);
17 int bt_mesh_pb_gatt_recv(struct bt_conn *conn, struct net_buf_simple *buf);
/AliOS-Things-master/components/ble_host/bt_host/aos/
A Dble.c61 struct bt_conn *conn;
808 struct bt_conn *conn; in ble_stack_gatt_notificate()
838 struct bt_conn *conn; in ble_stack_gatt_indicate()
883 struct bt_conn *conn = NULL; in ble_stack_gatt_mtu_get()
908 struct bt_conn *conn; in ble_stack_gatt_mtu_exchange()
997 struct bt_conn *conn; in ble_stack_gatt_discovery()
1174 struct bt_conn *conn; in ble_stack_gatt_read()
1220 struct bt_conn *conn; in ble_stack_gatt_read_multiple()
1282 struct bt_conn *conn = NULL; in ble_stack_connect()
1415 struct bt_conn *conn; in ble_stack_security()
[all …]
/AliOS-Things-master/components/ble_mesh/bt_mesh/core/src/
A Dprovisioner_proxy.c77 struct bt_conn *conn;
91 static struct bt_mesh_proxy_server *find_server(struct bt_conn *conn) in find_server()
291 static void proxy_open_complete(struct bt_conn *conn) in proxy_open_complete()
311 static void prov_open_complete(struct bt_conn *conn) in prov_open_complete()
329 static void proxy_prov_connected(struct bt_conn *conn, u8_t err) in proxy_prov_connected()
391 static void proxy_prov_disconnected(struct bt_conn *conn, u8_t reason) in proxy_prov_disconnected()
430 ssize_t prov_write_ccc_descr(struct bt_conn *conn, u8_t *addr) in prov_write_ccc_descr()
449 ssize_t prov_notification(struct bt_conn *conn, u8_t *data, u16_t len) in prov_notification()
503 ssize_t proxy_write_ccc_descr(struct bt_conn *conn) in proxy_write_ccc_descr()
522 ssize_t proxy_notification(struct bt_conn *conn, u8_t *data, u16_t len) in proxy_notification()
[all …]
A Dproxy.c98 struct bt_conn *conn;
128 static struct bt_mesh_proxy_client *find_client(struct bt_conn *conn) in find_client()
145 static int proxy_segment_and_send(struct bt_conn *conn, u8_t type, struct net_buf_simple *msg);
324 static int beacon_send(struct bt_conn *conn, struct bt_mesh_subnet *sub) in beacon_send()
486 static ssize_t proxy_recv(struct bt_conn *conn, const struct bt_gatt_attr *attr, const void *buf, u… in proxy_recv()
573 static void proxy_connected(struct bt_conn *conn, u8_t err) in proxy_connected()
615 genie_ais_connect((struct bt_conn *)conn); in proxy_connected()
619 static void proxy_disconnected(struct bt_conn *conn, u8_t reason) in proxy_disconnected()
973 static int proxy_send(struct bt_conn *conn, const void *data, u16_t len) in proxy_send()
992 static int proxy_segment_and_send(struct bt_conn *conn, u8_t type, struct net_buf_simple *msg) in proxy_segment_and_send()
[all …]

Completed in 59 milliseconds

12