Lines Matching refs:rs
115 static void cleanup_rfc_slot(rfc_slot_t* rs);
119 static bool send_app_scn(rfc_slot_t* rs);
682 rfc_slot_t* rs = find_rfc_slot_by_id(id); in jv_dm_cback() local
685 if (rs && (new_scn != 0)) { in jv_dm_cback()
686 rs->scn = new_scn; in jv_dm_cback()
699 if (!send_app_scn(rs)) { in jv_dm_cback()
701 APPL_TRACE_DEBUG("send_app_scn() failed, close rs->id:%d", rs->id); in jv_dm_cback()
702 cleanup_rfc_slot(rs); in jv_dm_cback()
704 if (rs->is_service_uuid_valid) { in jv_dm_cback()
707 BTA_JvCreateRecordByUser(rs->id); in jv_dm_cback()
712 rs->id); in jv_dm_cback()
714 BTA_JvRfcommStartServer(rs->security, rs->role, rs->scn, in jv_dm_cback()
715 MAX_RFC_SESSION, rfcomm_cback, rs->id); in jv_dm_cback()
718 } else if (rs) { in jv_dm_cback()
720 "jv_dm_cback: Error: allocate channel %d, slot found:%p", rs->scn, in jv_dm_cback()
721 rs); in jv_dm_cback()
722 cleanup_rfc_slot(rs); in jv_dm_cback()