• Home
  • Raw
  • Download

Lines Matching refs:reg_sap

351 UINT8 LLCP_RegisterServer (UINT8           reg_sap,  in LLCP_RegisterServer()  argument
361 reg_sap, link_type, ((p_service_name == NULL) ? "" : p_service_name)); in LLCP_RegisterServer()
375 if (reg_sap == LLCP_INVALID_SAP) in LLCP_RegisterServer()
383 reg_sap = LLCP_LOWER_BOUND_SDP_SAP + sap; in LLCP_RegisterServer()
388 if (reg_sap == LLCP_INVALID_SAP) in LLCP_RegisterServer()
394 else if (reg_sap == LLCP_SAP_LM) in LLCP_RegisterServer()
396 LLCP_TRACE_ERROR1 ("LLCP_RegisterServer (): SAP (0x%x) is for link manager", reg_sap); in LLCP_RegisterServer()
399 else if (reg_sap <= LLCP_UPPER_BOUND_WK_SAP) in LLCP_RegisterServer()
401 if (reg_sap >= LLCP_MAX_WKS) in LLCP_RegisterServer()
403 LLCP_TRACE_ERROR1 ("LLCP_RegisterServer (): out of resource for SAP (0x%x)", reg_sap); in LLCP_RegisterServer()
406 else if (llcp_cb.wks_cb[reg_sap].p_app_cback) in LLCP_RegisterServer()
408 LLCP_TRACE_ERROR1 ("LLCP_RegisterServer (): SAP (0x%x) is already registered", reg_sap); in LLCP_RegisterServer()
413 p_app_cb = &llcp_cb.wks_cb[reg_sap]; in LLCP_RegisterServer()
416 else if (reg_sap <= LLCP_UPPER_BOUND_SDP_SAP) in LLCP_RegisterServer()
418 if (reg_sap - LLCP_LOWER_BOUND_SDP_SAP >= LLCP_MAX_SERVER) in LLCP_RegisterServer()
420 LLCP_TRACE_ERROR1 ("LLCP_RegisterServer (): out of resource for SAP (0x%x)", reg_sap); in LLCP_RegisterServer()
423 else if (llcp_cb.server_cb[reg_sap - LLCP_LOWER_BOUND_SDP_SAP].p_app_cback) in LLCP_RegisterServer()
425 LLCP_TRACE_ERROR1 ("LLCP_RegisterServer (): SAP (0x%x) is already registered", reg_sap); in LLCP_RegisterServer()
430 p_app_cb = &llcp_cb.server_cb[reg_sap - LLCP_LOWER_BOUND_SDP_SAP]; in LLCP_RegisterServer()
433 else if (reg_sap >= LLCP_LOWER_BOUND_LOCAL_SAP) in LLCP_RegisterServer()
436 reg_sap, LLCP_LOWER_BOUND_LOCAL_SAP); in LLCP_RegisterServer()
467 if (reg_sap <= LLCP_UPPER_BOUND_WK_SAP) in LLCP_RegisterServer()
469 llcp_cb.lcb.wks |= (1 << reg_sap); in LLCP_RegisterServer()
472 LLCP_TRACE_DEBUG1 ("LLCP_RegisterServer (): Registered SAP = 0x%02X", reg_sap); in LLCP_RegisterServer()
480 return reg_sap; in LLCP_RegisterServer()
499 UINT8 reg_sap = LLCP_INVALID_SAP; in LLCP_RegisterClient() local
524 reg_sap = LLCP_LOWER_BOUND_LOCAL_SAP + sap; in LLCP_RegisterClient()
529 if (reg_sap == LLCP_INVALID_SAP) in LLCP_RegisterClient()
539 LLCP_TRACE_DEBUG1 ("LLCP_RegisterClient (): Registered SAP = 0x%02X", reg_sap); in LLCP_RegisterClient()
547 return reg_sap; in LLCP_RegisterClient()
904 tLLCP_STATUS LLCP_ConnectReq (UINT8 reg_sap, in LLCP_ConnectReq() argument
913 LLCP_TRACE_API2 ("LLCP_ConnectReq () reg_sap=0x%x, DSAP=0x%x", reg_sap, dsap); in LLCP_ConnectReq()
930 p_app_cb = llcp_util_get_app_cb (reg_sap); in LLCP_ConnectReq()
936 LLCP_TRACE_ERROR1 ("LLCP_ConnectReq (): SSAP (0x%x) is not registered", reg_sap); in LLCP_ConnectReq()
963 p_dlcb = llcp_dlc_find_dlcb_by_sap (reg_sap, LLCP_INVALID_SAP); in LLCP_ConnectReq()
974 p_dlcb = llcp_util_allocate_data_link (reg_sap, dsap); in LLCP_ConnectReq()