Lines Matching refs:p_serv_rec
103 static BOOLEAN btm_serv_trusted(tBTM_SEC_DEV_REC *p_dev_rec, tBTM_SEC_SERV_REC *p_serv_rec);
212 static BOOLEAN btm_serv_trusted(tBTM_SEC_DEV_REC *p_dev_rec, tBTM_SEC_SERV_REC *p_serv_rec) in btm_serv_trusted() argument
214 if(BTM_SEC_IS_SERVICE_TRUSTED(p_dev_rec->trusted_mask, p_serv_rec->service_id)) in btm_serv_trusted()
1963 tBTM_SEC_SERV_REC *p_serv_rec = &btm_cb.sec_serv_rec[0]; in BTM_SetOutService() local
1965 btm_cb.p_out_serv = p_serv_rec; in BTM_SetOutService()
1968 for (int i = 0; i < BTM_SEC_MAX_SERVICE_RECORDS; i++, p_serv_rec++) in BTM_SetOutService()
1970 if ((p_serv_rec->security_flags & BTM_SEC_IN_USE) in BTM_SetOutService()
1971 && (p_serv_rec->service_id == service_id) in BTM_SetOutService()
1972 && (p_serv_rec->orig_mx_chan_id == mx_chan_id)) in BTM_SetOutService()
1975 … p_serv_rec->service_id, p_serv_rec->psm, p_serv_rec->mx_proto_id, p_serv_rec->orig_mx_chan_id); in BTM_SetOutService()
1976 btm_cb.p_out_serv = p_serv_rec; in BTM_SetOutService()
1978 p_dev_rec->p_cur_service = p_serv_rec; in BTM_SetOutService()
2108 tBTM_SEC_SERV_REC *p_serv_rec; in btm_sec_l2cap_access_req() local
2136 p_serv_rec = btm_sec_find_first_serv (conn_type, psm); in btm_sec_l2cap_access_req()
2139 if (!p_serv_rec) in btm_sec_l2cap_access_req()
2157 security_required = btm_sec_set_serv_level4_flags (p_serv_rec->ucd_security_flags, in btm_sec_l2cap_access_req()
2162 security_required = p_serv_rec->ucd_security_flags; in btm_sec_l2cap_access_req()
2211 security_required = btm_sec_set_serv_level4_flags (p_serv_rec->security_flags, in btm_sec_l2cap_access_req()
2216 security_required = p_serv_rec->security_flags; in btm_sec_l2cap_access_req()
2273 …M_SEC_IN_AUTHORIZE) && (btm_dev_authorized(p_dev_rec)||btm_serv_trusted(p_dev_rec, p_serv_rec))) || in btm_sec_l2cap_access_req()
2274 …RIZE)) && ((btm_dev_authorized(p_dev_rec)||btm_serv_trusted(p_dev_rec, p_serv_rec)) && btm_dev_aut… in btm_sec_l2cap_access_req()
2275 …RIZE)) && ((btm_dev_authorized(p_dev_rec)||btm_serv_trusted(p_dev_rec, p_serv_rec)) && btm_dev_enc… in btm_sec_l2cap_access_req()
2276 …_encrypted(p_dev_rec) && (btm_dev_authorized(p_dev_rec)||btm_serv_trusted(p_dev_rec, p_serv_rec)))) in btm_sec_l2cap_access_req()
2305 p_dev_rec->p_cur_service = p_serv_rec; in btm_sec_l2cap_access_req()
2357 if (((btm_sec_find_next_serv (p_serv_rec)) != NULL) in btm_sec_l2cap_access_req()
2360 if ((btm_sec_find_next_serv (p_serv_rec)) != NULL) in btm_sec_l2cap_access_req()
2495 tBTM_SEC_SERV_REC *p_serv_rec; in btm_sec_mx_access_request() local
2505 p_serv_rec = btm_sec_find_mx_serv (is_originator, psm, mx_proto_id, mx_chan_id); in btm_sec_mx_access_request()
2508 if (!p_serv_rec) in btm_sec_mx_access_request()
2520 security_required = btm_sec_set_serv_level4_flags (p_serv_rec->security_flags, in btm_sec_mx_access_request()
2525 security_required = p_serv_rec->security_flags; in btm_sec_mx_access_request()
2560 …M_SEC_IN_AUTHORIZE) && (btm_dev_authorized(p_dev_rec)||btm_serv_trusted(p_dev_rec, p_serv_rec))) || in btm_sec_mx_access_request()
2561 …CATE)) && ((btm_dev_authorized(p_dev_rec)||btm_serv_trusted(p_dev_rec, p_serv_rec)) && btm_dev_aut… in btm_sec_mx_access_request()
2562 …RYPT)) && ((btm_dev_authorized(p_dev_rec)||btm_serv_trusted(p_dev_rec, p_serv_rec))&& btm_dev_encr… in btm_sec_mx_access_request()
2585 if ((is_originator && (p_serv_rec->security_flags & BTM_SEC_OUT_AUTHORIZE)) || in btm_sec_mx_access_request()
2586 (!is_originator && (p_serv_rec->security_flags & BTM_SEC_IN_AUTHORIZE))) in btm_sec_mx_access_request()
2640 p_dev_rec->p_cur_service = p_serv_rec; in btm_sec_mx_access_request()
5629 tBTM_SEC_SERV_REC *p_serv_rec = &btm_cb.sec_serv_rec[0]; in btm_sec_find_first_serv() local
5651 for (i = 0; i < BTM_SEC_MAX_SERVICE_RECORDS; i++, p_serv_rec++) in btm_sec_find_first_serv()
5653 if ( (p_serv_rec->security_flags & BTM_SEC_IN_USE) && (p_serv_rec->psm == psm) ) in btm_sec_find_first_serv()
5654 return(p_serv_rec); in btm_sec_find_first_serv()
5671 tBTM_SEC_SERV_REC *p_serv_rec = &btm_cb.sec_serv_rec[0]; in btm_sec_find_next_serv() local
5674 for (i = 0; i < BTM_SEC_MAX_SERVICE_RECORDS; i++, p_serv_rec++) in btm_sec_find_next_serv()
5676 if ((p_serv_rec->security_flags & BTM_SEC_IN_USE) in btm_sec_find_next_serv()
5677 && (p_serv_rec->psm == p_cur->psm) ) in btm_sec_find_next_serv()
5679 if (p_cur != p_serv_rec) in btm_sec_find_next_serv()
5681 return(p_serv_rec); in btm_sec_find_next_serv()
5702 tBTM_SEC_SERV_REC *p_serv_rec = &btm_cb.sec_serv_rec[0]; in btm_sec_find_mx_serv() local
5716 for (i = 0; i < BTM_SEC_MAX_SERVICE_RECORDS; i++, p_serv_rec++) in btm_sec_find_mx_serv()
5718 if ((p_serv_rec->security_flags & BTM_SEC_IN_USE) in btm_sec_find_mx_serv()
5719 && (p_serv_rec->psm == psm) in btm_sec_find_mx_serv()
5720 && (p_serv_rec->mx_proto_id == mx_proto_id) in btm_sec_find_mx_serv()
5721 && (( is_originator && (p_serv_rec->orig_mx_chan_id == mx_chan_id)) in btm_sec_find_mx_serv()
5722 || (!is_originator && (p_serv_rec->term_mx_chan_id == mx_chan_id)))) in btm_sec_find_mx_serv()
5724 return(p_serv_rec); in btm_sec_find_mx_serv()