Lines Matching refs:lcid
68 eatt_device* find_device_by_cid(uint16_t lcid) { in find_device_by_cid()
72 [&lcid](const eatt_device& ed) { in find_device_by_cid()
73 auto it = ed.eatt_channels.find(lcid); in find_device_by_cid()
80 EattChannel* find_channel_by_cid(uint16_t lcid) { in find_channel_by_cid()
81 eatt_device* eatt_dev = find_device_by_cid(lcid); in find_channel_by_cid()
84 auto it = eatt_dev->eatt_channels.find(lcid); in find_channel_by_cid()
88 EattChannel* find_channel_by_cid(const RawAddress& bdaddr, uint16_t lcid) { in find_channel_by_cid()
92 auto it = eatt_dev->eatt_channels.find(lcid); in find_channel_by_cid()
96 void remove_channel_by_cid(eatt_device* eatt_dev, uint16_t lcid) { in remove_channel_by_cid()
97 eatt_dev->eatt_channels.erase(lcid); in remove_channel_by_cid()
102 void remove_channel_by_cid(uint16_t lcid) { in remove_channel_by_cid()
103 eatt_device* eatt_dev = find_device_by_cid(lcid); in remove_channel_by_cid()
106 remove_channel_by_cid(eatt_dev, lcid); in remove_channel_by_cid()
155 void eatt_l2cap_connect_cfm(const RawAddress& bda, uint16_t lcid, in eatt_l2cap_connect_cfm()
157 LOG(INFO) << __func__ << " bda: " << bda << " cid: " << +lcid in eatt_l2cap_connect_cfm()
166 EattChannel* channel = this->find_channel_by_cid(bda, lcid); in eatt_l2cap_connect_cfm()
168 LOG(ERROR) << __func__ << " unknown cid: " << loghex(lcid); in eatt_l2cap_connect_cfm()
175 remove_channel_by_cid(eatt_dev, lcid); in eatt_l2cap_connect_cfm()
186 LOG(INFO) << __func__ << " Channel connected CID " << loghex(lcid); in eatt_l2cap_connect_cfm()
189 void eatt_l2cap_reconfig_completed(const RawAddress& bda, uint16_t lcid, in eatt_l2cap_reconfig_completed()
192 LOG(INFO) << __func__ << "lcid: " << loghex(lcid) in eatt_l2cap_reconfig_completed()
196 LOG(INFO) << __func__ << " reconfig failed lcid: " << loghex(lcid) in eatt_l2cap_reconfig_completed()
201 EattChannel* channel = find_channel_by_cid(bda, lcid); in eatt_l2cap_reconfig_completed()
215 void eatt_l2cap_error_cb(uint16_t lcid, uint16_t reason) { in eatt_l2cap_error_cb()
216 LOG(INFO) << __func__ << " cid: " << loghex(lcid) << " reason " in eatt_l2cap_error_cb()
221 EattChannel* channel = find_channel_by_cid(lcid); in eatt_l2cap_error_cb()
232 remove_channel_by_cid(eatt_dev, lcid); in eatt_l2cap_error_cb()
246 void eatt_l2cap_disconnect_ind(uint16_t lcid, bool please_confirm) { in eatt_l2cap_disconnect_ind()
247 LOG(INFO) << __func__ << " cid: " << loghex(lcid); in eatt_l2cap_disconnect_ind()
248 eatt_device* eatt_dev = find_device_by_cid(lcid); in eatt_l2cap_disconnect_ind()
250 LOG(ERROR) << __func__ << " unknown cid: " << loghex(lcid); in eatt_l2cap_disconnect_ind()
255 remove_channel_by_cid(eatt_dev, lcid); in eatt_l2cap_disconnect_ind()
258 void eatt_l2cap_data_ind(uint16_t lcid, BT_HDR* data_p) { in eatt_l2cap_data_ind()
259 LOG(INFO) << __func__ << " cid: " << loghex(lcid); in eatt_l2cap_data_ind()
260 eatt_device* eatt_dev = find_device_by_cid(lcid); in eatt_l2cap_data_ind()
262 LOG(ERROR) << __func__ << " unknown cid: " << loghex(lcid); in eatt_l2cap_data_ind()
266 EattChannel* channel = find_channel_by_cid(eatt_dev->bda_, lcid); in eatt_l2cap_data_ind()
269 << loghex(lcid); in eatt_l2cap_data_ind()