Lines Matching refs:p_srec
615 tBTM_SEC_SERV_REC *p_srec; in btm_sec_set_security_level() local
643 p_srec = &btm_cb.sec_serv_rec[0]; in btm_sec_set_security_level()
646 for (index = 0; index < BTM_SEC_MAX_SERVICE_RECORDS; index++, p_srec++) in btm_sec_set_security_level()
649 if (p_srec->security_flags & BTM_SEC_IN_USE) in btm_sec_set_security_level()
652 if (p_srec->psm == psm && in btm_sec_set_security_level()
653 p_srec->mx_proto_id == mx_proto_id && in btm_sec_set_security_level()
654 service_id == p_srec->service_id && in btm_sec_set_security_level()
655 (!strncmp (p_name, (char *) p_srec->orig_service_name, in btm_sec_set_security_level()
657 !strncmp (p_name, (char *) p_srec->term_service_name, in btm_sec_set_security_level()
660 if (p_srec->psm == psm && in btm_sec_set_security_level()
661 p_srec->mx_proto_id == mx_proto_id && in btm_sec_set_security_level()
662 service_id == p_srec->service_id) in btm_sec_set_security_level()
672 memset (p_srec, 0, sizeof(tBTM_SEC_SERV_REC)); in btm_sec_set_security_level()
689 p_srec = &btm_cb.sec_serv_rec[index]; in btm_sec_set_security_level()
692 p_srec->psm = psm; in btm_sec_set_security_level()
693 p_srec->service_id = service_id; in btm_sec_set_security_level()
694 p_srec->mx_proto_id = mx_proto_id; in btm_sec_set_security_level()
698 p_srec->orig_mx_chan_id = mx_chan_id; in btm_sec_set_security_level()
700 …BCM_STRNCPY_S ((char *)p_srec->orig_service_name, sizeof(p_srec->orig_service_name), p_name, BTM_S… in btm_sec_set_security_level()
706 p_srec->ucd_security_flags &= in btm_sec_set_security_level()
713 p_srec->security_flags &= in btm_sec_set_security_level()
738 btm_cb.p_out_serv = p_srec; in btm_sec_set_security_level()
743 p_srec->term_mx_chan_id = mx_chan_id; in btm_sec_set_security_level()
745 …BCM_STRNCPY_S ((char *)p_srec->term_service_name, sizeof(p_srec->term_service_name), p_name, BTM_S… in btm_sec_set_security_level()
751 p_srec->ucd_security_flags &= in btm_sec_set_security_level()
758 p_srec->security_flags &= in btm_sec_set_security_level()
780 p_srec->security_flags |= (UINT16)(BTM_SEC_IN_USE); in btm_sec_set_security_level()
781 p_srec->ucd_security_flags |= (UINT16)(sec_level | BTM_SEC_IN_USE); in btm_sec_set_security_level()
785 p_srec->security_flags |= (UINT16)(sec_level | BTM_SEC_IN_USE); in btm_sec_set_security_level()
792 p_srec->security_flags, p_srec->ucd_security_flags); in btm_sec_set_security_level()
799 p_srec->security_flags |= (UINT16)(sec_level | BTM_SEC_IN_USE); in btm_sec_set_security_level()
806 p_srec->security_flags, p_name, BTM_SEC_SERVICE_NAME_LEN); in btm_sec_set_security_level()
834 tBTM_SEC_SERV_REC *p_srec = &btm_cb.sec_serv_rec[0]; in BTM_SecClrService() local
838 for (i = 0; i < BTM_SEC_MAX_SERVICE_RECORDS; i++, p_srec++) in BTM_SecClrService()
841 if ((p_srec->security_flags & BTM_SEC_IN_USE) && (p_srec->psm != BT_PSM_SDP) && in BTM_SecClrService()
842 (!service_id || (service_id == p_srec->service_id))) in BTM_SecClrService()
845 p_srec->security_flags = 0; in BTM_SecClrService()
847 p_srec->ucd_security_flags = 0; in BTM_SecClrService()
874 tBTM_SEC_SERV_REC *p_srec = &btm_cb.sec_serv_rec[0]; in btm_sec_clr_service_by_psm() local
878 for (i = 0; i < BTM_SEC_MAX_SERVICE_RECORDS; i++, p_srec++) in btm_sec_clr_service_by_psm()
881 if ((p_srec->security_flags & BTM_SEC_IN_USE) && (p_srec->psm == psm) ) in btm_sec_clr_service_by_psm()
883 BTM_TRACE_API("BTM_SEC_CLR[%d]: id %d ", i, p_srec->service_id); in btm_sec_clr_service_by_psm()
884 p_srec->security_flags = 0; in btm_sec_clr_service_by_psm()
941 tBTM_SEC_SERV_REC *p_srec = &btm_cb.sec_serv_rec[0]; in BTM_SecClrUCDService() local
945 for (i = 0; i < BTM_SEC_MAX_SERVICE_RECORDS; i++, p_srec++) in BTM_SecClrUCDService()
948 if ((p_srec->security_flags & BTM_SEC_IN_USE) && in BTM_SecClrUCDService()
949 (!service_id || (service_id == (UINT32)p_srec->service_id))) in BTM_SecClrUCDService()
952 p_srec->ucd_security_flags = 0; in BTM_SecClrUCDService()