• Home
  • Raw
  • Download

Lines Matching refs:chan

47 	struct l2cap_chan *chan = mgr->a2mp_chan;  in a2mp_send()  local
65 l2cap_chan_send(chan, &msg, total_len, 0); in a2mp_send()
227 struct l2cap_chan *chan; in a2mp_discover_rsp() local
231 list_for_each_entry(chan, &conn->chan_l, list) { in a2mp_discover_rsp()
233 BT_DBG("chan %p state %s", chan, in a2mp_discover_rsp()
234 state_to_string(chan->state)); in a2mp_discover_rsp()
236 if (chan->chan_type == L2CAP_CHAN_CONN_FIX_A2MP) in a2mp_discover_rsp()
239 l2cap_chan_lock(chan); in a2mp_discover_rsp()
241 if (chan->state == BT_CONNECT) in a2mp_discover_rsp()
242 l2cap_send_conn_req(chan); in a2mp_discover_rsp()
244 l2cap_chan_unlock(chan); in a2mp_discover_rsp()
567 static int a2mp_chan_recv_cb(struct l2cap_chan *chan, struct sk_buff *skb) in a2mp_chan_recv_cb() argument
570 struct amp_mgr *mgr = chan->data; in a2mp_chan_recv_cb()
667 static void a2mp_chan_close_cb(struct l2cap_chan *chan) in a2mp_chan_close_cb() argument
669 l2cap_chan_put(chan); in a2mp_chan_close_cb()
672 static void a2mp_chan_state_change_cb(struct l2cap_chan *chan, int state) in a2mp_chan_state_change_cb() argument
674 struct amp_mgr *mgr = chan->data; in a2mp_chan_state_change_cb()
679 BT_DBG("chan %p state %s", chan, state_to_string(state)); in a2mp_chan_state_change_cb()
681 chan->state = state; in a2mp_chan_state_change_cb()
691 static struct sk_buff *a2mp_chan_alloc_skb_cb(struct l2cap_chan *chan, in a2mp_chan_alloc_skb_cb() argument
713 struct l2cap_chan *chan; in a2mp_chan_open() local
716 chan = l2cap_chan_create(); in a2mp_chan_open()
717 if (!chan) in a2mp_chan_open()
720 BT_DBG("chan %p", chan); in a2mp_chan_open()
722 chan->chan_type = L2CAP_CHAN_CONN_FIX_A2MP; in a2mp_chan_open()
723 chan->flush_to = L2CAP_DEFAULT_FLUSH_TO; in a2mp_chan_open()
725 chan->ops = &a2mp_chan_ops; in a2mp_chan_open()
727 l2cap_chan_set_defaults(chan); in a2mp_chan_open()
728 chan->remote_max_tx = chan->max_tx; in a2mp_chan_open()
729 chan->remote_tx_win = chan->tx_win; in a2mp_chan_open()
731 chan->retrans_timeout = L2CAP_DEFAULT_RETRANS_TO; in a2mp_chan_open()
732 chan->monitor_timeout = L2CAP_DEFAULT_MONITOR_TO; in a2mp_chan_open()
734 skb_queue_head_init(&chan->tx_q); in a2mp_chan_open()
736 chan->mode = L2CAP_MODE_ERTM; in a2mp_chan_open()
738 err = l2cap_ertm_init(chan); in a2mp_chan_open()
740 l2cap_chan_del(chan, 0); in a2mp_chan_open()
744 chan->conf_state = 0; in a2mp_chan_open()
747 __l2cap_chan_add(conn, chan); in a2mp_chan_open()
749 l2cap_chan_add(conn, chan); in a2mp_chan_open()
751 chan->remote_mps = chan->omtu; in a2mp_chan_open()
752 chan->mps = chan->omtu; in a2mp_chan_open()
754 chan->state = BT_CONNECTED; in a2mp_chan_open()
756 return chan; in a2mp_chan_open()
793 struct l2cap_chan *chan; in amp_mgr_create() local
803 chan = a2mp_chan_open(conn, locked); in amp_mgr_create()
804 if (!chan) { in amp_mgr_create()
809 mgr->a2mp_chan = chan; in amp_mgr_create()
810 chan->data = mgr; in amp_mgr_create()
984 void a2mp_discover_amp(struct l2cap_chan *chan) in a2mp_discover_amp() argument
986 struct l2cap_conn *conn = chan->conn; in a2mp_discover_amp()
990 BT_DBG("chan %p conn %p mgr %p", chan, conn, mgr); in a2mp_discover_amp()
998 mgr->bredr_chan = chan; in a2mp_discover_amp()