Lines Matching refs:p_scb
71 AvdtpScb* p_scb = (AvdtpScb*)data; in avdt_scb_transport_channel_timer_timeout() local
74 avdt_scb_event(p_scb, avdt_event, NULL); in avdt_scb_transport_channel_timer_timeout()
146 AvdtpScb* p_scb = avdt_scb_by_hdl(handle); in AVDT_AbortReq() local
147 if (p_scb != NULL) { in AVDT_AbortReq()
148 avdt_scb_event(p_scb, AVDT_SCB_API_ABORT_REQ_EVT, NULL); in AVDT_AbortReq()
172 AvdtpScb* p_scb; in AVDT_CreateStream() local
183 p_scb = avdt_scb_alloc(peer_id, avdtp_stream_config); in AVDT_CreateStream()
184 if (p_scb == NULL) { in AVDT_CreateStream()
187 *p_handle = avdt_scb_to_hdl(p_scb); in AVDT_CreateStream()
215 AvdtpScb* p_scb; in AVDT_RemoveStream() local
220 p_scb = avdt_scb_by_hdl(handle); in AVDT_RemoveStream()
221 if (p_scb == NULL) { in AVDT_RemoveStream()
225 avdt_scb_event(p_scb, AVDT_SCB_API_REMOVE_EVT, NULL); in AVDT_RemoveStream()
415 AvdtpScb* p_scb; in AVDT_DelayReport() local
423 p_scb = avdt_scb_by_hdl(handle); in AVDT_DelayReport()
424 if (p_scb == NULL) { in AVDT_DelayReport()
431 avdt_scb_event(p_scb, AVDT_SCB_API_DELAY_RPT_REQ_EVT, &evt); in AVDT_DelayReport()
459 AvdtpScb* p_scb = NULL; in AVDT_OpenReq() local
472 p_scb = avdt_scb_by_hdl(handle); in AVDT_OpenReq()
473 if (p_scb == NULL) { in AVDT_OpenReq()
498 avdt_scb_event(p_scb, AVDT_SCB_API_SETCONFIG_REQ_EVT, &evt); in AVDT_OpenReq()
521 AvdtpScb* p_scb; in AVDT_ConfigRsp() local
530 p_scb = avdt_scb_by_hdl(handle); in AVDT_ConfigRsp()
531 if (p_scb == NULL) { in AVDT_ConfigRsp()
537 else if (!p_scb->in_use) { in AVDT_ConfigRsp()
550 avdt_scb_event(p_scb, event_code, &evt); in AVDT_ConfigRsp()
575 AvdtpScb* p_scb = NULL; in AVDT_StartReq() local
587 p_scb = avdt_scb_by_hdl(p_handles[i]); in AVDT_StartReq()
588 if (p_scb == NULL) { in AVDT_StartReq()
596 if (p_scb->p_ccb == NULL) { in AVDT_StartReq()
602 avdt_ccb_event(p_scb->p_ccb, AVDT_CCB_API_START_REQ_EVT, &evt); in AVDT_StartReq()
635 AvdtpScb* p_scb = NULL; in AVDT_SuspendReq() local
647 p_scb = avdt_scb_by_hdl(p_handles[i]); in AVDT_SuspendReq()
648 if (p_scb == NULL) { in AVDT_SuspendReq()
656 if (p_scb->p_ccb == NULL) { in AVDT_SuspendReq()
662 avdt_ccb_event(p_scb->p_ccb, AVDT_CCB_API_SUSPEND_REQ_EVT, &evt); in AVDT_SuspendReq()
694 AvdtpScb* p_scb; in AVDT_CloseReq() local
700 p_scb = avdt_scb_by_hdl(handle); in AVDT_CloseReq()
701 if (p_scb == NULL) { in AVDT_CloseReq()
706 avdt_scb_event(p_scb, AVDT_SCB_API_CLOSE_REQ_EVT, NULL); in AVDT_CloseReq()
733 AvdtpScb* p_scb; in AVDT_ReconfigReq() local
740 p_scb = avdt_scb_by_hdl(handle); in AVDT_ReconfigReq()
741 if (p_scb == NULL) { in AVDT_ReconfigReq()
749 avdt_scb_event(p_scb, AVDT_SCB_API_RECONFIG_REQ_EVT, &evt); in AVDT_ReconfigReq()
772 AvdtpScb* p_scb; in AVDT_ReconfigRsp() local
780 p_scb = avdt_scb_by_hdl(handle); in AVDT_ReconfigRsp()
781 if (p_scb == NULL) { in AVDT_ReconfigRsp()
789 avdt_scb_event(p_scb, AVDT_SCB_API_RECONFIG_RSP_EVT, &evt); in AVDT_ReconfigRsp()
813 AvdtpScb* p_scb; in AVDT_SecurityReq() local
820 p_scb = avdt_scb_by_hdl(handle); in AVDT_SecurityReq()
821 if (p_scb == NULL) { in AVDT_SecurityReq()
828 avdt_scb_event(p_scb, AVDT_SCB_API_SECURITY_REQ_EVT, &evt); in AVDT_SecurityReq()
853 AvdtpScb* p_scb; in AVDT_SecurityRsp() local
861 p_scb = avdt_scb_by_hdl(handle); in AVDT_SecurityRsp()
862 if (p_scb == NULL) { in AVDT_SecurityRsp()
871 avdt_scb_event(p_scb, AVDT_SCB_API_SECURITY_RSP_EVT, &evt); in AVDT_SecurityRsp()
919 AvdtpScb* p_scb; in AVDT_WriteReqOpt() local
927 p_scb = avdt_scb_by_hdl(handle); in AVDT_WriteReqOpt()
928 if (p_scb == NULL) { in AVDT_WriteReqOpt()
935 avdt_scb_event(p_scb, AVDT_SCB_API_WRITE_REQ_EVT, &evt); in AVDT_WriteReqOpt()
1081 AvdtpScb* p_scb; in AVDT_GetL2CapChannel() local
1087 if (((p_scb = avdt_scb_by_hdl(handle)) != NULL) && in AVDT_GetL2CapChannel()
1088 ((p_ccb = p_scb->p_ccb) != NULL)) { in AVDT_GetL2CapChannel()
1090 tcid = avdt_ad_type_to_tcid(AVDT_CHAN_MEDIA, p_scb); in AVDT_GetL2CapChannel()
1111 AvdtpScb* p_scb; in AVDT_SendReport() local
1121 if (((p_scb = avdt_scb_by_hdl(handle)) != NULL) && (p_scb->p_ccb != NULL) && in AVDT_SendReport()
1123 (p_scb->stream_config.tsep == AVDT_TSEP_SRC)) || in AVDT_SendReport()
1125 (p_scb->stream_config.tsep == AVDT_TSEP_SNK)) || in AVDT_SendReport()
1130 p_tbl = avdt_ad_tc_tbl_by_type(AVDT_CHAN_REPORT, p_scb->p_ccb, p_scb); in AVDT_SendReport()
1142 ssrc = avdt_scb_gen_ssrc(p_scb); in AVDT_SendReport()
1184 avdt_ad_write_req(AVDT_CHAN_REPORT, p_scb->p_ccb, p_scb, p_pkt)) in AVDT_SendReport()