Lines Matching refs:cid
94 uint16_t cid) in bt_l2cap_br_lookup_rx_cid() argument
99 if (BR_CHAN(chan)->rx.cid == cid) { in bt_l2cap_br_lookup_rx_cid()
108 uint16_t cid) in bt_l2cap_br_lookup_tx_cid() argument
113 if (BR_CHAN(chan)->tx.cid == cid) { in bt_l2cap_br_lookup_tx_cid()
125 uint16_t cid; in l2cap_br_chan_alloc_cid() local
131 if (ch->rx.cid > 0) { in l2cap_br_chan_alloc_cid()
139 for (cid = L2CAP_BR_CID_DYN_START; cid; cid++) { in l2cap_br_chan_alloc_cid()
140 if (!bt_l2cap_br_lookup_rx_cid(conn, cid)) { in l2cap_br_chan_alloc_cid()
141 ch->rx.cid = cid; in l2cap_br_chan_alloc_cid()
157 BT_DBG("chan %p cid 0x%04x", BR_CHAN(chan), BR_CHAN(chan)->rx.cid); in l2cap_br_chan_destroy()
174 if (chan->rx.cid == BT_L2CAP_CID_BR_SIG) { in l2cap_br_rtx_timeout()
182 chan->rx.cid); in l2cap_br_rtx_timeout()
236 static inline void l2cap_send(struct bt_conn *conn, uint16_t cid, in l2cap_send() argument
239 if (bt_l2cap_send(conn, cid, buf)) { in l2cap_send()
405 mask |= BIT(fchan->cid); in get_fixed_channels_mask()
482 ch->rx.cid = fchan->cid; in bt_l2cap_br_connected()
483 ch->tx.cid = fchan->cid; in bt_l2cap_br_connected()
493 if (fchan->cid == BT_L2CAP_CID_BR_SIG) { in bt_l2cap_br_connected()
538 conf->dcid = sys_cpu_to_le16(BR_CHAN(chan)->tx.cid); in l2cap_br_conf()
678 l2cap_br_send_conn_rsp(chan->conn, BR_CHAN(chan)->tx.cid, in l2cap_br_conn_req_reply()
679 BR_CHAN(chan)->rx.cid, chan->ident, result); in l2cap_br_conn_req_reply()
750 BR_CHAN(chan)->tx.cid = scid; in l2cap_br_conn_req()
833 BR_CHAN(chan)->rx.cid, BR_CHAN(chan)->rx.mtu, in l2cap_br_conf_rsp()
834 BR_CHAN(chan)->tx.cid, BR_CHAN(chan)->tx.mtu); in l2cap_br_conf_rsp()
1022 rsp->scid = sys_cpu_to_le16(BR_CHAN(chan)->tx.cid); in l2cap_br_conf_req()
1046 BR_CHAN(chan)->rx.cid, BR_CHAN(chan)->rx.mtu, in l2cap_br_conf_req()
1047 BR_CHAN(chan)->tx.cid, BR_CHAN(chan)->tx.mtu); in l2cap_br_conf_req()
1057 uint16_t cid) in l2cap_br_remove_tx_cid() argument
1063 if (!L2CAP_BR_CID_IS_DYN(cid)) { in l2cap_br_remove_tx_cid()
1068 if (BR_CHAN(chan)->tx.cid == cid) { in l2cap_br_remove_tx_cid()
1118 rsp->dcid = sys_cpu_to_le16(chan->rx.cid); in l2cap_br_disconn_req()
1119 rsp->scid = sys_cpu_to_le16(chan->tx.cid); in l2cap_br_disconn_req()
1128 BT_DBG("ch %p cid 0x%04x", BR_CHAN(chan), BR_CHAN(chan)->rx.cid); in l2cap_br_connected()
1133 BT_DBG("ch %p cid 0x%04x", BR_CHAN(chan), BR_CHAN(chan)->rx.cid); in l2cap_br_disconnected()
1163 BT_DBG("chan %p scid 0x%04x dcid 0x%04x", chan, ch->rx.cid, in bt_l2cap_br_chan_disconnect()
1164 ch->tx.cid); in bt_l2cap_br_chan_disconnect()
1174 req->dcid = sys_cpu_to_le16(ch->tx.cid); in bt_l2cap_br_chan_disconnect()
1175 req->scid = sys_cpu_to_le16(ch->rx.cid); in bt_l2cap_br_chan_disconnect()
1283 req->scid = sys_cpu_to_le16(BR_CHAN(chan)->rx.cid); in bt_l2cap_br_chan_connect()
1329 BR_CHAN(chan)->tx.cid = dcid; in l2cap_br_conn_rsp()
1351 return bt_l2cap_send_cb(ch->chan.conn, ch->tx.cid, buf, NULL, NULL); in bt_l2cap_br_chan_send()
1471 req->scid = sys_cpu_to_le16(BR_CHAN(chan)->rx.cid); in l2cap_br_conn_pend()
1495 if (br_chan->rx.cid < L2CAP_BR_CID_DYN_START) { in check_fixed_channel()
1504 uint16_t cid; in bt_l2cap_br_recv() local
1513 cid = sys_le16_to_cpu(hdr->cid); in bt_l2cap_br_recv()
1515 chan = bt_l2cap_br_lookup_rx_cid(conn, cid); in bt_l2cap_br_recv()
1517 BT_WARN("Ignoring data for unknown channel ID 0x%04x", cid); in bt_l2cap_br_recv()