Lines Matching refs:dlcs
133 static struct bt_rfcomm_dlc *rfcomm_dlcs_lookup_dlci(struct bt_rfcomm_dlc *dlcs, in rfcomm_dlcs_lookup_dlci() argument
136 for (; dlcs; dlcs = dlcs->_next) { in rfcomm_dlcs_lookup_dlci()
137 if (dlcs->dlci == dlci) { in rfcomm_dlcs_lookup_dlci()
138 return dlcs; in rfcomm_dlcs_lookup_dlci()
145 static struct bt_rfcomm_dlc *rfcomm_dlcs_remove_dlci(struct bt_rfcomm_dlc *dlcs, in rfcomm_dlcs_remove_dlci() argument
150 if (!dlcs) { in rfcomm_dlcs_remove_dlci()
155 if (dlcs->dlci == dlci) { in rfcomm_dlcs_remove_dlci()
156 dlcs->session->dlcs = dlcs->_next; in rfcomm_dlcs_remove_dlci()
157 return dlcs; in rfcomm_dlcs_remove_dlci()
160 for (tmp = dlcs, dlcs = dlcs->_next; dlcs; dlcs = dlcs->_next) { in rfcomm_dlcs_remove_dlci()
161 if (dlcs->dlci == dlci) { in rfcomm_dlcs_remove_dlci()
162 tmp->_next = dlcs->_next; in rfcomm_dlcs_remove_dlci()
163 return dlcs; in rfcomm_dlcs_remove_dlci()
165 tmp = dlcs; in rfcomm_dlcs_remove_dlci()
287 for (dlc = session->dlcs; dlc;) { in rfcomm_session_disconnected()
300 session->dlcs = NULL; in rfcomm_session_disconnected()
374 if (session->dlcs) { in rfcomm_session_disconnect()
441 rfcomm_dlcs_remove_dlci(session->dlcs, dlc->dlci); in rfcomm_dlc_rtx_timeout()
463 dlc->_next = session->dlcs; in rfcomm_dlc_init()
464 session->dlcs = dlc; in rfcomm_dlc_init()
850 rfcomm_dlcs_remove_dlci(dlc->session->dlcs, dlc->dlci); in rfcomm_dlc_drop()
910 dlc = rfcomm_dlcs_lookup_dlci(session->dlcs, dlci); in rfcomm_handle_sabm()
1039 for (dlc = session->dlcs; dlc; dlc = next) { in rfcomm_handle_ua()
1064 dlc = rfcomm_dlcs_lookup_dlci(session->dlcs, dlci); in rfcomm_handle_ua()
1089 dlc = rfcomm_dlcs_remove_dlci(session->dlcs, dlci); in rfcomm_handle_dm()
1107 dlc = rfcomm_dlcs_lookup_dlci(session->dlcs, dlci); in rfcomm_handle_msc()
1152 dlc = rfcomm_dlcs_lookup_dlci(session->dlcs, dlci); in rfcomm_handle_rls()
1213 dlc = rfcomm_dlcs_lookup_dlci(session->dlcs, pn->dlci); in rfcomm_handle_pn()
1289 dlc = rfcomm_dlcs_remove_dlci(session->dlcs, dlci); in rfcomm_handle_disc()
1298 if (!session->dlcs) { in rfcomm_handle_disc()
1421 dlc = rfcomm_dlcs_lookup_dlci(session->dlcs, dlci); in rfcomm_handle_data()
1582 for (dlc = session->dlcs; dlc; dlc = next) { in rfcomm_encrypt_change()
1695 if (rfcomm_dlcs_lookup_dlci(session->dlcs, dlci)) { in bt_rfcomm_dlc_connect()
1735 rfcomm_dlcs_remove_dlci(session->dlcs, dlc->dlci); in bt_rfcomm_dlc_connect()