Lines Matching refs:done_cb

292 			 bt_a2dp_ctrl_req_cb req_cb, bt_a2dp_ctrl_done_cb done_cb,  in a2dp_ctrl_ind()  argument
321 if (done_cb != NULL) { in a2dp_ctrl_ind()
322 done_cb(stream); in a2dp_ctrl_ind()
333 bt_a2dp_ctrl_done_cb done_cb; in a2dp_open_ind() local
337 done_cb = (ep->stream != NULL && ep->stream->ops != NULL) ? ep->stream->ops->established in a2dp_open_ind()
339 return a2dp_ctrl_ind(session, sep, errcode, req_cb, done_cb, false); in a2dp_open_ind()
346 bt_a2dp_ctrl_done_cb done_cb; in a2dp_start_ind() local
350 done_cb = (ep->stream != NULL && ep->stream->ops != NULL) ? ep->stream->ops->started : NULL; in a2dp_start_ind()
351 return a2dp_ctrl_ind(session, sep, errcode, req_cb, done_cb, false); in a2dp_start_ind()
358 bt_a2dp_ctrl_done_cb done_cb; in a2dp_suspend_ind() local
362 done_cb = in a2dp_suspend_ind()
364 return a2dp_ctrl_ind(session, sep, errcode, req_cb, done_cb, false); in a2dp_suspend_ind()
371 bt_a2dp_ctrl_done_cb done_cb; in a2dp_close_ind() local
375 done_cb = in a2dp_close_ind()
377 return a2dp_ctrl_ind(session, sep, errcode, req_cb, done_cb, true); in a2dp_close_ind()
384 bt_a2dp_ctrl_done_cb done_cb; in a2dp_abort_ind() local
388 done_cb = (ep->stream != NULL && ep->stream->ops != NULL) ? ep->stream->ops->aborted : NULL; in a2dp_abort_ind()
389 return a2dp_ctrl_ind(session, sep, errcode, req_cb, done_cb, true); in a2dp_abort_ind()
648 static int bt_a2dp_ctrl_cb(struct bt_avdtp_req *req, bt_a2dp_rsp_cb rsp_cb, bt_a2dp_done_cb done_cb, in bt_a2dp_ctrl_cb() argument
670 if ((!req->status) && (done_cb != NULL)) { in bt_a2dp_ctrl_cb()
671 done_cb(stream); in bt_a2dp_ctrl_cb()
680 bt_a2dp_done_cb done_cb = (ep->stream != NULL && ep->stream->ops != NULL) in bt_a2dp_open_cb() local
684 return bt_a2dp_ctrl_cb(req, rsp_cb, done_cb, false); in bt_a2dp_open_cb()
691 bt_a2dp_done_cb done_cb = in bt_a2dp_start_cb() local
694 return bt_a2dp_ctrl_cb(req, rsp_cb, done_cb, false); in bt_a2dp_start_cb()
701 bt_a2dp_done_cb done_cb = in bt_a2dp_suspend_cb() local
704 return bt_a2dp_ctrl_cb(req, rsp_cb, done_cb, false); in bt_a2dp_suspend_cb()
711 bt_a2dp_done_cb done_cb = in bt_a2dp_close_cb() local
714 return bt_a2dp_ctrl_cb(req, rsp_cb, done_cb, true); in bt_a2dp_close_cb()
721 bt_a2dp_done_cb done_cb = in bt_a2dp_abort_cb() local
724 return bt_a2dp_ctrl_cb(req, rsp_cb, done_cb, true); in bt_a2dp_abort_cb()