Lines Matching refs:local_cid
115 void addL2cCid(uint16_t local_cid, uint16_t remote_cid) { in addL2cCid() argument
116 l2c_local_cid.insert(local_cid); in addL2cCid()
121 void setRfcCid(uint16_t local_cid, uint16_t remote_cid) { in setRfcCid() argument
122 rfc_local_cid = local_cid; in setRfcCid()
127 void removeL2cCid(uint16_t local_cid, uint16_t remote_cid) { in removeL2cCid() argument
128 if (rfc_local_cid == local_cid) { in removeL2cCid()
135 l2c_local_cid.erase(local_cid); in removeL2cCid()
293 static void allowlist_l2c_channel(uint16_t conn_handle, uint16_t local_cid, in allowlist_l2c_channel() argument
297 << " cid=" << loghex(local_cid) << ":" << loghex(remote_cid); in allowlist_l2c_channel()
305 filter_list[conn_handle].addL2cCid(local_cid, remote_cid); in allowlist_l2c_channel()
308 static void allowlist_rfc_dlci(uint16_t local_cid, uint8_t dlci) { in allowlist_rfc_dlci() argument
310 << ": Allowlisting rfcomm channel. L2CAP CID=" << loghex(local_cid) in allowlist_rfc_dlci()
317 tL2C_CCB* p_ccb = l2cu_find_ccb_by_cid(nullptr, local_cid); in allowlist_rfc_dlci()
321 static void add_rfc_l2c_channel(uint16_t conn_handle, uint16_t local_cid, in add_rfc_l2c_channel() argument
325 << conn_handle << " cid=" << loghex(local_cid) << ":" in add_rfc_l2c_channel()
332 filter_list[conn_handle].setRfcCid(local_cid, remote_cid); in add_rfc_l2c_channel()
333 local_cid_to_acl.insert({local_cid, conn_handle}); in add_rfc_l2c_channel()
336 static void clear_l2cap_allowlist(uint16_t conn_handle, uint16_t local_cid, in clear_l2cap_allowlist() argument
340 << conn_handle << " cid=" << local_cid << ":" << remote_cid; in clear_l2cap_allowlist()
346 filter_list[conn_handle].removeL2cCid(local_cid, remote_cid); in clear_l2cap_allowlist()