Home
last modified time | relevance | path

Searched refs:mgr (Results 1 – 6 of 6) sorted by relevance

/net/bluetooth/
Da2mp.c49 static void a2mp_send(struct amp_mgr *mgr, u8 code, u8 ident, u16 len, void *data) in a2mp_send() argument
51 struct l2cap_chan *chan = mgr->a2mp_chan; in a2mp_send()
73 static u8 __next_ident(struct amp_mgr *mgr) in __next_ident() argument
75 if (++mgr->ident == 0) in __next_ident()
76 mgr->ident = 1; in __next_ident()
78 return mgr->ident; in __next_ident()
83 struct amp_mgr *mgr; in amp_mgr_lookup_by_state() local
86 list_for_each_entry(mgr, &amp_mgr_list, list) { in amp_mgr_lookup_by_state()
87 if (test_and_clear_bit(state, &mgr->state)) { in amp_mgr_lookup_by_state()
88 amp_mgr_get(mgr); in amp_mgr_lookup_by_state()
[all …]
Damp.c50 struct amp_ctrl *amp_ctrl_add(struct amp_mgr *mgr, u8 id) in amp_ctrl_add() argument
61 mutex_lock(&mgr->amp_ctrls_lock); in amp_ctrl_add()
62 list_add(&ctrl->list, &mgr->amp_ctrls); in amp_ctrl_add()
63 mutex_unlock(&mgr->amp_ctrls_lock); in amp_ctrl_add()
65 BT_DBG("mgr %p ctrl %p", mgr, ctrl); in amp_ctrl_add()
70 void amp_ctrl_list_flush(struct amp_mgr *mgr) in amp_ctrl_list_flush() argument
74 BT_DBG("mgr %p", mgr); in amp_ctrl_list_flush()
76 mutex_lock(&mgr->amp_ctrls_lock); in amp_ctrl_list_flush()
77 list_for_each_entry_safe(ctrl, n, &mgr->amp_ctrls, list) { in amp_ctrl_list_flush()
81 mutex_unlock(&mgr->amp_ctrls_lock); in amp_ctrl_list_flush()
[all …]
Damp.h29 struct amp_ctrl *amp_ctrl_add(struct amp_mgr *mgr, u8 id);
30 struct amp_ctrl *amp_ctrl_lookup(struct amp_mgr *mgr, u8 id);
31 void amp_ctrl_list_flush(struct amp_mgr *mgr);
33 struct hci_conn *phylink_add(struct hci_dev *hdev, struct amp_mgr *mgr,
38 void amp_read_loc_info(struct hci_dev *hdev, struct amp_mgr *mgr);
40 void amp_read_loc_assoc(struct hci_dev *hdev, struct amp_mgr *mgr);
43 void amp_create_phylink(struct hci_dev *hdev, struct amp_mgr *mgr,
45 void amp_accept_phylink(struct hci_dev *hdev, struct amp_mgr *mgr,
Da2mp.h132 struct amp_mgr *amp_mgr_get(struct amp_mgr *mgr);
135 int amp_mgr_put(struct amp_mgr *mgr);
140 static inline int amp_mgr_put(struct amp_mgr *mgr) in amp_mgr_put() argument
Dhci_event.c4381 struct amp_mgr *mgr; in hci_loglink_complete_evt() local
4400 mgr = hcon->amp_mgr; in hci_loglink_complete_evt()
4401 if (mgr && mgr->bredr_chan) { in hci_loglink_complete_evt()
4402 struct l2cap_chan *bredr_chan = mgr->bredr_chan; in hci_loglink_complete_evt()
Dl2cap_core.c599 struct amp_mgr *mgr = conn->hcon->amp_mgr; in l2cap_chan_del() local
615 if (mgr && mgr->bredr_chan == chan) in l2cap_chan_del()
616 mgr->bredr_chan = NULL; in l2cap_chan_del()
4561 struct amp_mgr *mgr = conn->hcon->amp_mgr; in l2cap_create_channel_req() local
4573 BT_DBG("mgr %p bredr_chan %p hs_hcon %p", mgr, chan, hs_hcon); in l2cap_create_channel_req()
4575 mgr->bredr_chan = chan; in l2cap_create_channel_req()