Lines Matching refs:p_scb
75 AvdtpScb* p_scb = (AvdtpScb*)data; in avdt_scb_transport_channel_timer_timeout() local
78 avdt_scb_event(p_scb, avdt_event, NULL); in avdt_scb_transport_channel_timer_timeout()
132 AvdtpScb* p_scb = avdt_scb_by_hdl(handle); in AVDT_AbortReq() local
133 if (p_scb != NULL) { in AVDT_AbortReq()
134 avdt_scb_event(p_scb, AVDT_SCB_API_ABORT_REQ_EVT, NULL); in AVDT_AbortReq()
158 AvdtpScb* p_scb; in AVDT_CreateStream() local
170 p_scb = avdt_scb_alloc(peer_id, avdtp_stream_config); in AVDT_CreateStream()
171 if (p_scb == NULL) { in AVDT_CreateStream()
176 *p_handle = avdt_scb_to_hdl(p_scb); in AVDT_CreateStream()
200 AvdtpScb* p_scb; in AVDT_RemoveStream() local
205 p_scb = avdt_scb_by_hdl(handle); in AVDT_RemoveStream()
206 if (p_scb == NULL) { in AVDT_RemoveStream()
210 avdt_scb_event(p_scb, AVDT_SCB_API_REMOVE_EVT, NULL); in AVDT_RemoveStream()
400 AvdtpScb* p_scb; in AVDT_DelayReport() local
408 p_scb = avdt_scb_by_hdl(handle); in AVDT_DelayReport()
409 if (p_scb == NULL) { in AVDT_DelayReport()
416 avdt_scb_event(p_scb, AVDT_SCB_API_DELAY_RPT_REQ_EVT, &evt); in AVDT_DelayReport()
444 AvdtpScb* p_scb = NULL; in AVDT_OpenReq() local
457 p_scb = avdt_scb_by_hdl(handle); in AVDT_OpenReq()
458 if (p_scb == NULL) { in AVDT_OpenReq()
483 avdt_scb_event(p_scb, AVDT_SCB_API_SETCONFIG_REQ_EVT, &evt); in AVDT_OpenReq()
506 AvdtpScb* p_scb; in AVDT_ConfigRsp() local
515 p_scb = avdt_scb_by_hdl(handle); in AVDT_ConfigRsp()
516 if (p_scb == NULL) { in AVDT_ConfigRsp()
522 else if (!p_scb->in_use) { in AVDT_ConfigRsp()
535 avdt_scb_event(p_scb, event_code, &evt); in AVDT_ConfigRsp()
560 AvdtpScb* p_scb = NULL; in AVDT_StartReq() local
572 p_scb = avdt_scb_by_hdl(p_handles[i]); in AVDT_StartReq()
573 if (p_scb == NULL) { in AVDT_StartReq()
581 if (p_scb->p_ccb == NULL) { in AVDT_StartReq()
587 avdt_ccb_event(p_scb->p_ccb, AVDT_CCB_API_START_REQ_EVT, &evt); in AVDT_StartReq()
620 AvdtpScb* p_scb = NULL; in AVDT_SuspendReq() local
632 p_scb = avdt_scb_by_hdl(p_handles[i]); in AVDT_SuspendReq()
633 if (p_scb == NULL) { in AVDT_SuspendReq()
641 if (p_scb->p_ccb == NULL) { in AVDT_SuspendReq()
647 avdt_ccb_event(p_scb->p_ccb, AVDT_CCB_API_SUSPEND_REQ_EVT, &evt); in AVDT_SuspendReq()
679 AvdtpScb* p_scb; in AVDT_CloseReq() local
685 p_scb = avdt_scb_by_hdl(handle); in AVDT_CloseReq()
686 if (p_scb == NULL) { in AVDT_CloseReq()
691 avdt_scb_event(p_scb, AVDT_SCB_API_CLOSE_REQ_EVT, NULL); in AVDT_CloseReq()
718 AvdtpScb* p_scb; in AVDT_ReconfigReq() local
725 p_scb = avdt_scb_by_hdl(handle); in AVDT_ReconfigReq()
726 if (p_scb == NULL) { in AVDT_ReconfigReq()
734 avdt_scb_event(p_scb, AVDT_SCB_API_RECONFIG_REQ_EVT, &evt); in AVDT_ReconfigReq()
758 AvdtpScb* p_scb; in AVDT_SecurityReq() local
765 p_scb = avdt_scb_by_hdl(handle); in AVDT_SecurityReq()
766 if (p_scb == NULL) { in AVDT_SecurityReq()
773 avdt_scb_event(p_scb, AVDT_SCB_API_SECURITY_REQ_EVT, &evt); in AVDT_SecurityReq()
798 AvdtpScb* p_scb; in AVDT_SecurityRsp() local
806 p_scb = avdt_scb_by_hdl(handle); in AVDT_SecurityRsp()
807 if (p_scb == NULL) { in AVDT_SecurityRsp()
816 avdt_scb_event(p_scb, AVDT_SCB_API_SECURITY_RSP_EVT, &evt); in AVDT_SecurityRsp()
864 AvdtpScb* p_scb; in AVDT_WriteReqOpt() local
872 p_scb = avdt_scb_by_hdl(handle); in AVDT_WriteReqOpt()
873 if (p_scb == NULL) { in AVDT_WriteReqOpt()
880 avdt_scb_event(p_scb, AVDT_SCB_API_WRITE_REQ_EVT, &evt); in AVDT_WriteReqOpt()
981 AvdtpScb* p_scb; in AVDT_GetL2CapChannel() local
987 if (((p_scb = avdt_scb_by_hdl(handle)) != NULL) && in AVDT_GetL2CapChannel()
988 ((p_ccb = p_scb->p_ccb) != NULL)) { in AVDT_GetL2CapChannel()
990 tcid = avdt_ad_type_to_tcid(AVDT_CHAN_MEDIA, p_scb); in AVDT_GetL2CapChannel()