Lines Matching refs:dcid
96 if (c->dcid == cid) in __l2cap_get_chan_by_dcid()
593 __le16_to_cpu(chan->psm), chan->dcid); in __l2cap_chan_add()
610 chan->dcid = L2CAP_CID_CONN_LESS; in __l2cap_chan_add()
621 chan->dcid = L2CAP_CID_SIGNALING; in __l2cap_chan_add()
773 rsp.dcid = cpu_to_le16(chan->scid); in l2cap_chan_le_connect_reject()
803 rsp.scid = cpu_to_le16(chan->dcid); in l2cap_chan_connect_reject()
804 rsp.dcid = cpu_to_le16(chan->scid); in l2cap_chan_connect_reject()
1137 lh->cid = cpu_to_le16(chan->dcid); in l2cap_create_sframe_pdu()
1485 req.dcid = cpu_to_le16(chan->dcid); in l2cap_send_disconn_req()
1534 rsp.scid = cpu_to_le16(chan->dcid); in l2cap_conn_start()
1535 rsp.dcid = cpu_to_le16(chan->scid); in l2cap_conn_start()
2261 lh->cid = cpu_to_le16(chan->dcid); in l2cap_create_connless_pdu()
2292 lh->cid = cpu_to_le16(chan->dcid); in l2cap_create_basic_pdu()
2334 lh->cid = cpu_to_le16(chan->dcid); in l2cap_create_iframe_pdu()
2451 lh->cid = cpu_to_le16(chan->dcid); in l2cap_create_le_flowctl_pdu()
3368 req->dcid = cpu_to_le16(chan->dcid); in l2cap_build_conf_req()
3587 rsp->scid = cpu_to_le16(chan->dcid); in l2cap_parse_conf_req()
3706 req->dcid = cpu_to_le16(chan->dcid); in l2cap_parse_conf_rsp()
3720 rsp->scid = cpu_to_le16(chan->dcid); in l2cap_build_conf_rsp()
3734 rsp.dcid = cpu_to_le16(chan->scid); in __l2cap_le_connect_rsp_defer()
3787 rsp_flex->dcid[rsp->count++] = cpu_to_le16(chan->scid); in l2cap_ecred_rsp_defer()
3835 rsp.scid = cpu_to_le16(chan->dcid); in __l2cap_connect_rsp_defer()
3836 rsp.dcid = cpu_to_le16(chan->scid); in __l2cap_connect_rsp_defer()
3942 u16 dcid = 0, scid = __le16_to_cpu(req->scid); in l2cap_connect() local
3996 chan->dcid = scid; in l2cap_connect()
4000 dcid = chan->scid; in l2cap_connect()
4031 rsp.dcid = cpu_to_le16(dcid); in l2cap_connect()
4081 u16 scid, dcid, result, status; in l2cap_connect_create_rsp() local
4090 dcid = __le16_to_cpu(rsp->dcid); in l2cap_connect_create_rsp()
4094 if (result == L2CAP_CR_SUCCESS && (dcid < L2CAP_CID_DYN_START || in l2cap_connect_create_rsp()
4095 dcid > L2CAP_CID_DYN_END)) in l2cap_connect_create_rsp()
4099 dcid, scid, result, status); in l2cap_connect_create_rsp()
4129 if (__l2cap_get_chan_by_dcid(conn, dcid)) { in l2cap_connect_create_rsp()
4136 chan->dcid = dcid; in l2cap_connect_create_rsp()
4193 u16 scid, u16 dcid) in cmd_reject_invalid_cid() argument
4199 rej.dcid = __cpu_to_le16(dcid); in cmd_reject_invalid_cid()
4209 u16 dcid, flags; in l2cap_config_req() local
4217 dcid = __le16_to_cpu(req->dcid); in l2cap_config_req()
4220 BT_DBG("dcid 0x%4.4x flags 0x%2.2x", dcid, flags); in l2cap_config_req()
4222 chan = l2cap_get_chan_by_scid(conn, dcid); in l2cap_config_req()
4224 cmd_reject_invalid_cid(conn, cmd->ident, dcid, 0); in l2cap_config_req()
4231 chan->dcid); in l2cap_config_req()
4426 u16 dcid, scid; in l2cap_disconnect_req() local
4433 dcid = __le16_to_cpu(req->dcid); in l2cap_disconnect_req()
4435 BT_DBG("scid 0x%4.4x dcid 0x%4.4x", scid, dcid); in l2cap_disconnect_req()
4437 chan = l2cap_get_chan_by_scid(conn, dcid); in l2cap_disconnect_req()
4439 cmd_reject_invalid_cid(conn, cmd->ident, dcid, scid); in l2cap_disconnect_req()
4443 rsp.dcid = cpu_to_le16(chan->scid); in l2cap_disconnect_req()
4444 rsp.scid = cpu_to_le16(chan->dcid); in l2cap_disconnect_req()
4468 u16 dcid, scid; in l2cap_disconnect_rsp() local
4475 dcid = __le16_to_cpu(rsp->dcid); in l2cap_disconnect_rsp()
4477 BT_DBG("dcid 0x%4.4x scid 0x%4.4x", dcid, scid); in l2cap_disconnect_rsp()
4671 u16 dcid, mtu, mps, credits, result; in l2cap_le_connect_rsp() local
4678 dcid = __le16_to_cpu(rsp->dcid); in l2cap_le_connect_rsp()
4685 dcid < L2CAP_CID_DYN_START || in l2cap_le_connect_rsp()
4686 dcid > L2CAP_CID_LE_DYN_END)) in l2cap_le_connect_rsp()
4690 dcid, mtu, mps, credits, result); in l2cap_le_connect_rsp()
4706 if (__l2cap_get_chan_by_dcid(conn, dcid)) { in l2cap_le_connect_rsp()
4712 chan->dcid = dcid; in l2cap_le_connect_rsp()
4818 u16 dcid, scid, credits, mtu, mps; in l2cap_le_connect_req() local
4829 dcid = 0; in l2cap_le_connect_req()
4895 chan->dcid = scid; in l2cap_le_connect_req()
4903 dcid = chan->scid; in l2cap_le_connect_req()
4941 rsp.dcid = cpu_to_le16(dcid); in l2cap_le_connect_req()
5002 DEFINE_RAW_FLEX(struct l2cap_ecred_conn_rsp, pdu, dcid, L2CAP_ECRED_MAX_CID); in l2cap_ecred_conn_req()
5076 pdu->dcid[i] = 0x0000; in l2cap_ecred_conn_req()
5077 len += sizeof(*pdu->dcid); in l2cap_ecred_conn_req()
5102 chan->dcid = scid; in l2cap_ecred_conn_req()
5117 pdu->dcid[i] = cpu_to_le16(chan->scid); in l2cap_ecred_conn_req()
5177 u16 dcid; in l2cap_ecred_conn_rsp() local
5187 if (cmd_len < sizeof(dcid)) { in l2cap_ecred_conn_rsp()
5193 dcid = __le16_to_cpu(rsp->dcid[i++]); in l2cap_ecred_conn_rsp()
5196 BT_DBG("dcid[%d] 0x%4.4x", i, dcid); in l2cap_ecred_conn_rsp()
5199 if (dcid && __l2cap_get_chan_by_dcid(conn, dcid)) { in l2cap_ecred_conn_rsp()
5208 chan = __l2cap_get_chan_by_dcid(conn, dcid); in l2cap_ecred_conn_rsp()
5242 if (!dcid) { in l2cap_ecred_conn_rsp()
5248 chan->dcid = dcid; in l2cap_ecred_conn_rsp()
7021 chan->dcid = cid; in l2cap_chan_connect()
7381 rsp.scid = cpu_to_le16(chan->dcid); in l2cap_security_cfm()
7382 rsp.dcid = cpu_to_le16(chan->scid); in l2cap_security_cfm()
7590 c->scid, c->dcid, c->imtu, c->omtu, in l2cap_debugfs_show()