Home
last modified time | relevance | path

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

/net/bluetooth/
Da2mp.c42 static void a2mp_send(struct amp_mgr *mgr, u8 code, u8 ident, u16 len, void *data) in a2mp_send() argument
44 struct l2cap_chan *chan = mgr->a2mp_chan; in a2mp_send()
66 static u8 __next_ident(struct amp_mgr *mgr) in __next_ident() argument
68 if (++mgr->ident == 0) in __next_ident()
69 mgr->ident = 1; in __next_ident()
71 return mgr->ident; in __next_ident()
76 struct amp_mgr *mgr; in amp_mgr_lookup_by_state() local
79 list_for_each_entry(mgr, &amp_mgr_list, list) { in amp_mgr_lookup_by_state()
80 if (test_and_clear_bit(state, &mgr->state)) { in amp_mgr_lookup_by_state()
81 amp_mgr_get(mgr); in amp_mgr_lookup_by_state()
[all …]
Damp.c43 struct amp_ctrl *amp_ctrl_add(struct amp_mgr *mgr, u8 id) in amp_ctrl_add() argument
54 mutex_lock(&mgr->amp_ctrls_lock); in amp_ctrl_add()
55 list_add(&ctrl->list, &mgr->amp_ctrls); in amp_ctrl_add()
56 mutex_unlock(&mgr->amp_ctrls_lock); in amp_ctrl_add()
58 BT_DBG("mgr %p ctrl %p", mgr, ctrl); in amp_ctrl_add()
63 void amp_ctrl_list_flush(struct amp_mgr *mgr) in amp_ctrl_list_flush() argument
67 BT_DBG("mgr %p", mgr); in amp_ctrl_list_flush()
69 mutex_lock(&mgr->amp_ctrls_lock); in amp_ctrl_list_flush()
70 list_for_each_entry_safe(ctrl, n, &mgr->amp_ctrls, list) { in amp_ctrl_list_flush()
74 mutex_unlock(&mgr->amp_ctrls_lock); in amp_ctrl_list_flush()
[all …]
Damp.h22 struct amp_ctrl *amp_ctrl_add(struct amp_mgr *mgr, u8 id);
23 struct amp_ctrl *amp_ctrl_lookup(struct amp_mgr *mgr, u8 id);
24 void amp_ctrl_list_flush(struct amp_mgr *mgr);
26 struct hci_conn *phylink_add(struct hci_dev *hdev, struct amp_mgr *mgr,
31 void amp_read_loc_info(struct hci_dev *hdev, struct amp_mgr *mgr);
33 void amp_read_loc_assoc(struct hci_dev *hdev, struct amp_mgr *mgr);
36 void amp_create_phylink(struct hci_dev *hdev, struct amp_mgr *mgr,
38 void amp_accept_phylink(struct hci_dev *hdev, struct amp_mgr *mgr,
Da2mp.h125 struct amp_mgr *amp_mgr_get(struct amp_mgr *mgr);
128 int amp_mgr_put(struct amp_mgr *mgr);
133 static inline int amp_mgr_put(struct amp_mgr *mgr) in amp_mgr_put() argument
Dhci_event.c5023 struct amp_mgr *mgr; in hci_loglink_complete_evt() local
5043 mgr = hcon->amp_mgr; in hci_loglink_complete_evt()
5044 if (mgr && mgr->bredr_chan) { in hci_loglink_complete_evt()
5045 struct l2cap_chan *bredr_chan = mgr->bredr_chan; in hci_loglink_complete_evt()
Dl2cap_core.c654 struct amp_mgr *mgr = conn->hcon->amp_mgr; in l2cap_chan_del() local
670 if (mgr && mgr->bredr_chan == chan) in l2cap_chan_del()
671 mgr->bredr_chan = NULL; in l2cap_chan_del()
4881 struct amp_mgr *mgr = conn->hcon->amp_mgr; in l2cap_create_channel_req() local
4893 BT_DBG("mgr %p bredr_chan %p hs_hcon %p", mgr, chan, hs_hcon); in l2cap_create_channel_req()
4895 mgr->bredr_chan = chan; in l2cap_create_channel_req()