Lines Matching refs:p_srec
521 tBTM_SEC_SERV_REC *p_srec; in btm_sec_set_security_level() local
551 p_srec = &btm_cb.sec_serv_rec[0]; in btm_sec_set_security_level()
553 for (index = 0; index < BTM_SEC_MAX_SERVICE_RECORDS; index++, p_srec++) in btm_sec_set_security_level()
556 if (p_srec->security_flags & BTM_SEC_IN_USE) in btm_sec_set_security_level()
559 if (p_srec->psm == psm && in btm_sec_set_security_level()
560 p_srec->mx_proto_id == mx_proto_id && in btm_sec_set_security_level()
561 service_id == p_srec->service_id && in btm_sec_set_security_level()
563 (!strncmp (p_name, (char *) p_srec->orig_service_name, in btm_sec_set_security_level()
565 !strncmp (p_name, (char *) p_srec->term_service_name, in btm_sec_set_security_level()
568 if (p_srec->psm == psm && in btm_sec_set_security_level()
569 p_srec->mx_proto_id == mx_proto_id && in btm_sec_set_security_level()
570 service_id == p_srec->service_id) in btm_sec_set_security_level()
580 memset (p_srec, 0, sizeof(tBTM_SEC_SERV_REC)); in btm_sec_set_security_level()
597 p_srec = &btm_cb.sec_serv_rec[index]; in btm_sec_set_security_level()
600 p_srec->psm = psm; in btm_sec_set_security_level()
601 p_srec->service_id = service_id; in btm_sec_set_security_level()
602 p_srec->mx_proto_id = mx_proto_id; in btm_sec_set_security_level()
606 p_srec->orig_mx_chan_id = mx_chan_id; in btm_sec_set_security_level()
608 strlcpy ((char *)p_srec->orig_service_name, p_name, BTM_SEC_SERVICE_NAME_LEN); in btm_sec_set_security_level()
614 p_srec->ucd_security_flags &= in btm_sec_set_security_level()
621 p_srec->security_flags &= in btm_sec_set_security_level()
649 btm_cb.p_out_serv = p_srec; in btm_sec_set_security_level()
654 p_srec->term_mx_chan_id = mx_chan_id; in btm_sec_set_security_level()
656 strlcpy ((char *)p_srec->term_service_name, p_name, BTM_SEC_SERVICE_NAME_LEN); in btm_sec_set_security_level()
662 p_srec->ucd_security_flags &= in btm_sec_set_security_level()
670 p_srec->security_flags &= in btm_sec_set_security_level()
695 p_srec->security_flags |= (UINT16)(BTM_SEC_IN_USE); in btm_sec_set_security_level()
696 p_srec->ucd_security_flags |= (UINT16)(sec_level | BTM_SEC_IN_USE); in btm_sec_set_security_level()
700 p_srec->security_flags |= (UINT16)(sec_level | BTM_SEC_IN_USE); in btm_sec_set_security_level()
707 p_srec->security_flags, p_srec->ucd_security_flags); in btm_sec_set_security_level()
714 p_srec->security_flags |= (UINT16)(sec_level | BTM_SEC_IN_USE); in btm_sec_set_security_level()
721 p_srec->security_flags, p_name, BTM_SEC_SERVICE_NAME_LEN); in btm_sec_set_security_level()
748 tBTM_SEC_SERV_REC *p_srec = &btm_cb.sec_serv_rec[0]; in BTM_SecClrService() local
752 for (i = 0; i < BTM_SEC_MAX_SERVICE_RECORDS; i++, p_srec++) in BTM_SecClrService()
755 if ((p_srec->security_flags & BTM_SEC_IN_USE) && (p_srec->psm != BT_PSM_SDP) && in BTM_SecClrService()
756 (!service_id || (service_id == p_srec->service_id))) in BTM_SecClrService()
759 p_srec->security_flags = 0; in BTM_SecClrService()
761 p_srec->ucd_security_flags = 0; in BTM_SecClrService()
788 tBTM_SEC_SERV_REC *p_srec = &btm_cb.sec_serv_rec[0]; in btm_sec_clr_service_by_psm() local
792 for (i = 0; i < BTM_SEC_MAX_SERVICE_RECORDS; i++, p_srec++) in btm_sec_clr_service_by_psm()
795 if ((p_srec->security_flags & BTM_SEC_IN_USE) && (p_srec->psm == psm) ) in btm_sec_clr_service_by_psm()
797 BTM_TRACE_API("BTM_SEC_CLR[%d]: id %d ", i, p_srec->service_id); in btm_sec_clr_service_by_psm()
798 p_srec->security_flags = 0; in btm_sec_clr_service_by_psm()