Searched refs:sco_conn (Results 1 – 8 of 8) sorted by relevance
/Zephyr-Core-3.7.0/subsys/bluetooth/host/classic/ |
D | sco.c | 250 static int accept_sco_conn(const bt_addr_t *bdaddr, struct bt_conn *sco_conn) in accept_sco_conn() argument 256 err = sco_accept(sco_conn->sco.acl, sco_conn); in accept_sco_conn() 268 cp->pkt_type = sco_conn->sco.pkt_type; in accept_sco_conn() 285 struct bt_conn *sco_conn; in bt_esco_conn_req() local 293 sco_conn = bt_conn_add_sco(&evt->bdaddr, evt->link_type); in bt_esco_conn_req() 294 if (!sco_conn) { in bt_esco_conn_req() 298 sec_err = sco_server_check_security(sco_conn->sco.acl); in bt_esco_conn_req() 301 bt_sco_cleanup(sco_conn); in bt_esco_conn_req() 305 memcpy(sco_conn->sco.dev_class, evt->dev_class, sizeof(sco_conn->sco.dev_class)); in bt_esco_conn_req() 306 sco_conn->sco.link_type = evt->link_type; in bt_esco_conn_req() [all …]
|
D | br.c | 187 struct bt_conn *sco_conn; in bt_hci_synchronous_conn_complete() local 192 sco_conn = bt_conn_lookup_addr_sco(&evt->bdaddr); in bt_hci_synchronous_conn_complete() 193 if (!sco_conn) { in bt_hci_synchronous_conn_complete() 199 sco_conn->err = evt->status; in bt_hci_synchronous_conn_complete() 200 bt_conn_set_state(sco_conn, BT_CONN_DISCONNECTED); in bt_hci_synchronous_conn_complete() 201 bt_conn_unref(sco_conn); in bt_hci_synchronous_conn_complete() 205 sco_conn->handle = handle; in bt_hci_synchronous_conn_complete() 206 bt_conn_set_state(sco_conn, BT_CONN_CONNECTED); in bt_hci_synchronous_conn_complete() 207 bt_conn_unref(sco_conn); in bt_hci_synchronous_conn_complete()
|
D | hfp_ag.c | 1040 struct bt_conn *sco_conn; in bt_hfp_ag_create_sco() local 1053 sco_conn = bt_conn_create_sco(&ag->acl_conn->br.dst, &ag->sco_chan); in bt_hfp_ag_create_sco() 1054 if (sco_conn != NULL) { in bt_hfp_ag_create_sco() 1055 LOG_DBG("Created sco %p", sco_conn); in bt_hfp_ag_create_sco() 1056 bt_conn_unref(sco_conn); in bt_hfp_ag_create_sco() 1059 sco_conn = ag->sco_chan.sco; in bt_hfp_ag_create_sco() 1062 return sco_conn; in bt_hfp_ag_create_sco() 1082 struct bt_conn *sco_conn = bt_hfp_ag_create_sco(ag); in hfp_ag_open_sco() local 1086 if (sco_conn == NULL) { in hfp_ag_open_sco() 1091 LOG_DBG("SCO connection created (%p)", sco_conn); in hfp_ag_open_sco()
|
/Zephyr-Core-3.7.0/include/zephyr/bluetooth/classic/ |
D | hfp_hf.h | 75 void (*sco_connected)(struct bt_conn *conn, struct bt_conn *sco_conn); 84 void (*sco_disconnected)(struct bt_conn *sco_conn, uint8_t reason);
|
D | hfp_ag.h | 73 void (*sco_connected)(struct bt_hfp_ag *ag, struct bt_conn *sco_conn);
|
/Zephyr-Core-3.7.0/subsys/bluetooth/host/ |
D | conn_internal.h | 403 void bt_sco_cleanup_acl(struct bt_conn *sco_conn); 406 void bt_sco_cleanup(struct bt_conn *sco_conn);
|
D | conn.c | 2116 void bt_sco_cleanup(struct bt_conn *sco_conn) in bt_sco_cleanup() argument 2118 bt_sco_cleanup_acl(sco_conn); in bt_sco_cleanup() 2119 bt_conn_unref(sco_conn); in bt_sco_cleanup() 2234 struct bt_conn *sco_conn = sco_conn_new(); in bt_conn_add_sco() local 2236 if (!sco_conn) { in bt_conn_add_sco() 2240 sco_conn->sco.acl = bt_conn_lookup_addr_br(peer); in bt_conn_add_sco() 2241 if (!sco_conn->sco.acl) { in bt_conn_add_sco() 2242 bt_conn_unref(sco_conn); in bt_conn_add_sco() 2246 sco_conn->type = BT_CONN_TYPE_SCO; in bt_conn_add_sco() 2250 sco_conn->sco.pkt_type = (bt_dev.br.esco_pkt_type & in bt_conn_add_sco() [all …]
|
/Zephyr-Core-3.7.0/samples/bluetooth/handsfree_ag/src/ |
D | main.c | 55 static void ag_sco_connected(struct bt_hfp_ag *ag, struct bt_conn *sco_conn) in ag_sco_connected() argument
|