Home | History | Annotate | Download | only in btm

Lines Matching refs:p_srec

501     tBTM_SEC_SERV_REC   *p_srec;
529 p_srec = &btm_cb.sec_serv_rec[0];
532 for (index = 0; index < BTM_SEC_MAX_SERVICE_RECORDS; index++, p_srec++)
535 if (p_srec->security_flags & BTM_SEC_IN_USE)
538 if (p_srec->psm == psm &&
539 p_srec->mx_proto_id == mx_proto_id &&
540 service_id == p_srec->service_id &&
541 (!strncmp (p_name, (char *) p_srec->orig_service_name,
543 !strncmp (p_name, (char *) p_srec->term_service_name,
546 if (p_srec->psm == psm &&
547 p_srec->mx_proto_id == mx_proto_id &&
548 service_id == p_srec->service_id)
558 memset (p_srec, 0, sizeof(tBTM_SEC_SERV_REC));
575 p_srec = &btm_cb.sec_serv_rec[index];
578 p_srec->psm = psm;
579 p_srec->service_id = service_id;
580 p_srec->mx_proto_id = mx_proto_id;
584 p_srec->orig_mx_chan_id = mx_chan_id;
586 BCM_STRNCPY_S ((char *)p_srec->orig_service_name, sizeof(p_srec->orig_service_name), p_name, BTM_SEC_SERVICE_NAME_LEN);
592 p_srec->ucd_security_flags &=
599 p_srec->security_flags &=
624 btm_cb.p_out_serv = p_srec;
629 p_srec->term_mx_chan_id = mx_chan_id;
631 BCM_STRNCPY_S ((char *)p_srec->term_service_name, sizeof(p_srec->term_service_name), p_name, BTM_SEC_SERVICE_NAME_LEN);
637 p_srec->ucd_security_flags &=
644 p_srec->security_flags &=
666 p_srec->security_flags |= (UINT16)(BTM_SEC_IN_USE);
667 p_srec->ucd_security_flags |= (UINT16)(sec_level | BTM_SEC_IN_USE);
671 p_srec->security_flags |= (UINT16)(sec_level | BTM_SEC_IN_USE);
678 p_srec->security_flags, p_srec->ucd_security_flags);
685 p_srec->security_flags |= (UINT16)(sec_level | BTM_SEC_IN_USE);
692 p_srec->security_flags, p_name, BTM_SEC_SERVICE_NAME_LEN);
720 tBTM_SEC_SERV_REC *p_srec = &btm_cb.sec_serv_rec[0];
724 for (i = 0; i < BTM_SEC_MAX_SERVICE_RECORDS; i++, p_srec++)
727 if ((p_srec->security_flags & BTM_SEC_IN_USE) && (p_srec->psm != BT_PSM_SDP) &&
728 (!service_id || (service_id == p_srec->service_id)))
731 p_srec->security_flags = 0;
733 p_srec->ucd_security_flags = 0;
760 tBTM_SEC_SERV_REC *p_srec = &btm_cb.sec_serv_rec[0];
764 for (i = 0; i < BTM_SEC_MAX_SERVICE_RECORDS; i++, p_srec++)
767 if ((p_srec->security_flags & BTM_SEC_IN_USE) && (p_srec->psm == psm) )
769 BTM_TRACE_API2("BTM_SEC_CLR[%d]: id %d ", i, p_srec->service_id);
770 p_srec->security_flags = 0;
827 tBTM_SEC_SERV_REC *p_srec = &btm_cb.sec_serv_rec[0];
831 for (i = 0; i < BTM_SEC_MAX_SERVICE_RECORDS; i++, p_srec++)
834 if ((p_srec->security_flags & BTM_SEC_IN_USE) &&
835 (!service_id || (service_id == (UINT32)p_srec->service_id)))
838 p_srec->ucd_security_flags = 0;