Lines Matching refs:p_srec

424   tBTM_SEC_SERV_REC* p_srec;  in BTM_SetSecurityLevel()  local
434 p_srec = &btm_cb.sec_serv_rec[0]; in BTM_SetSecurityLevel()
436 for (index = 0; index < BTM_SEC_MAX_SERVICE_RECORDS; index++, p_srec++) { in BTM_SetSecurityLevel()
438 if (p_srec->security_flags & BTM_SEC_IN_USE) { in BTM_SetSecurityLevel()
440 if (p_srec->psm == psm && p_srec->mx_proto_id == mx_proto_id && in BTM_SetSecurityLevel()
441 service_id == p_srec->service_id && p_name && in BTM_SetSecurityLevel()
442 (!strncmp(p_name, (char*)p_srec->orig_service_name, in BTM_SetSecurityLevel()
445 !strncmp(p_name, (char*)p_srec->term_service_name, in BTM_SetSecurityLevel()
449 if (p_srec->psm == psm && p_srec->mx_proto_id == mx_proto_id && in BTM_SetSecurityLevel()
450 service_id == p_srec->service_id) in BTM_SetSecurityLevel()
459 memset(p_srec, 0, sizeof(tBTM_SEC_SERV_REC)); in BTM_SetSecurityLevel()
475 p_srec = &btm_cb.sec_serv_rec[index]; in BTM_SetSecurityLevel()
478 p_srec->psm = psm; in BTM_SetSecurityLevel()
479 p_srec->service_id = service_id; in BTM_SetSecurityLevel()
480 p_srec->mx_proto_id = mx_proto_id; in BTM_SetSecurityLevel()
483 p_srec->orig_mx_chan_id = mx_chan_id; in BTM_SetSecurityLevel()
485 strlcpy((char*)p_srec->orig_service_name, p_name, in BTM_SetSecurityLevel()
490 p_srec->security_flags &= ~( in BTM_SetSecurityLevel()
514 btm_cb.p_out_serv = p_srec; in BTM_SetSecurityLevel()
516 p_srec->term_mx_chan_id = mx_chan_id; in BTM_SetSecurityLevel()
518 strlcpy((char*)p_srec->term_service_name, p_name, in BTM_SetSecurityLevel()
523 p_srec->security_flags &= in BTM_SetSecurityLevel()
545 p_srec->security_flags |= (uint16_t)(sec_level | BTM_SEC_IN_USE); in BTM_SetSecurityLevel()
554 p_srec->security_flags, p_name, BTM_SEC_SERVICE_NAME_LEN); in BTM_SetSecurityLevel()
579 tBTM_SEC_SERV_REC* p_srec = &btm_cb.sec_serv_rec[0]; in BTM_SecClrService() local
583 for (i = 0; i < BTM_SEC_MAX_SERVICE_RECORDS; i++, p_srec++) { in BTM_SecClrService()
585 if ((p_srec->security_flags & BTM_SEC_IN_USE) && in BTM_SecClrService()
586 (p_srec->psm != BT_PSM_SDP) && in BTM_SecClrService()
587 (!service_id || (service_id == p_srec->service_id))) { in BTM_SecClrService()
589 p_srec->security_flags = 0; in BTM_SecClrService()
614 tBTM_SEC_SERV_REC* p_srec = &btm_cb.sec_serv_rec[0]; in btm_sec_clr_service_by_psm() local
618 for (i = 0; i < BTM_SEC_MAX_SERVICE_RECORDS; i++, p_srec++) { in btm_sec_clr_service_by_psm()
620 if ((p_srec->security_flags & BTM_SEC_IN_USE) && (p_srec->psm == psm)) { in btm_sec_clr_service_by_psm()
621 BTM_TRACE_API("BTM_SEC_CLR[%d]: id %d ", i, p_srec->service_id); in btm_sec_clr_service_by_psm()
622 p_srec->security_flags = 0; in btm_sec_clr_service_by_psm()