Home
last modified time | relevance | path

Searched refs:br_chan (Results 1 – 9 of 9) sorted by relevance

/Zephyr-latest/subsys/bluetooth/host/classic/
Dl2cap_br.c148 struct bt_l2cap_br_chan *br_chan = BR_CHAN(chan); in l2cap_br_chan_alloc_cid() local
155 if (br_chan->rx.cid > 0) { in l2cap_br_chan_alloc_cid()
156 return br_chan; in l2cap_br_chan_alloc_cid()
165 br_chan->rx.cid = cid; in l2cap_br_chan_alloc_cid()
166 return br_chan; in l2cap_br_chan_alloc_cid()
181 struct bt_l2cap_br_chan *br_chan = BR_CHAN(chan); in l2cap_br_chan_destroy() local
183 LOG_DBG("chan %p cid 0x%04x", br_chan, br_chan->rx.cid); in l2cap_br_chan_destroy()
192 struct k_work_q *rtx_work_queue = br_chan->rtx_work.queue; in l2cap_br_chan_destroy()
195 k_work_cancel_delayable_sync(&br_chan->rtx_work, &br_chan->rtx_sync); in l2cap_br_chan_destroy()
197 k_work_cancel_delayable(&br_chan->rtx_work); in l2cap_br_chan_destroy()
[all …]
Davctp.c33 #define AVCTP_CHAN(_ch) CONTAINER_OF(_ch, struct bt_avctp, br_chan.chan)
65 session->br_chan.chan.conn = NULL; in avctp_l2cap_disconnected()
141 session->br_chan.rx.mtu = BT_L2CAP_RX_MTU; in bt_avctp_connect()
142 session->br_chan.chan.ops = &ops; in bt_avctp_connect()
143 session->br_chan.required_sec_level = BT_SECURITY_L2; in bt_avctp_connect()
145 return bt_l2cap_chan_connect(conn, &session->br_chan.chan, BT_L2CAP_PSM_AVCTP); in bt_avctp_connect()
156 return bt_l2cap_chan_disconnect(&session->br_chan.chan); in bt_avctp_disconnect()
194 err = bt_l2cap_chan_send(&session->br_chan.chan, buf); in bt_avctp_send()
Davdtp.c43 #define AVDTP_CHAN(_ch) CONTAINER_OF(_ch, struct bt_avdtp, br_chan.chan)
209 return bt_l2cap_chan_connect(session->br_chan.chan.conn, &sep->chan.chan, in avdtp_media_connect()
304 err = bt_l2cap_chan_send(&session->br_chan.chan, rsp_buf); in avdtp_discover_handler()
396 err = bt_l2cap_chan_send(&session->br_chan.chan, rsp_buf); in avdtp_get_capabilities_handler()
493 ret = bt_l2cap_chan_send(&session->br_chan.chan, rsp_buf); in avdtp_process_configuration()
549 err = bt_l2cap_chan_send(&session->br_chan.chan, rsp_buf); in avdtp_get_configuration_handler()
603 ret = bt_l2cap_chan_send(&session->br_chan.chan, rsp_buf); in avdtp_open_handler()
675 ret = bt_l2cap_chan_send(&session->br_chan.chan, rsp_buf); in avdtp_start_handler()
751 ret = bt_l2cap_chan_send(&session->br_chan.chan, rsp_buf); in avdtp_close_handler()
820 ret = bt_l2cap_chan_send(&session->br_chan.chan, rsp_buf); in avdtp_suspend_handler()
[all …]
Drfcomm.c58 struct bt_rfcomm_session, br_chan.chan)
192 if (session->br_chan.chan.conn == conn) { in rfcomm_sessions_lookup_bt_conn()
318 err = bt_l2cap_br_chan_send_cb(&session->br_chan.chan, buf, cb, user_data); in rfcomm_send_cb()
414 session->mtu = MIN(session->br_chan.rx.mtu, in rfcomm_connected()
415 session->br_chan.tx.mtu) - in rfcomm_connected()
481 if (server->accept(session->br_chan.chan.conn, &dlc) < 0) { in rfcomm_dlc_accept()
817 struct bt_conn *conn = dlc->session->br_chan.chan.conn; in rfcomm_dlc_security()
1055 err = bt_l2cap_chan_disconnect(&session->br_chan.chan); in rfcomm_handle_ua()
1618 if (bt_l2cap_chan_disconnect(&session->br_chan.chan) < 0) { in rfcomm_session_rtx_timeout()
1638 if (session->br_chan.chan.conn) { in rfcomm_session_new()
[all …]
Davctp_internal.h83 struct bt_l2cap_br_chan br_chan; member
Drfcomm_internal.h22 struct bt_l2cap_br_chan br_chan; member
Davdtp_internal.h212 struct bt_l2cap_br_chan br_chan; member
Dhfp_hf.c795 if (info->acl != hf->rfcomm_dlc.session->br_chan.chan.conn) { in bt_hfp_hf_sco_accept()
Da2dp.c82 if (a2dp->session.br_chan.chan.conn == NULL) { in a2dp_get_connection()