Lines Matching refs:h_adapter
51 struct rsi_hci_adapter *h_adapter = hci_get_drvdata(hdev); in rsi_hci_send_pkt() local
86 return h_adapter->proto_ops->coex_send_pkt(h_adapter->priv, skb, in rsi_hci_send_pkt()
92 struct rsi_hci_adapter *h_adapter = priv; in rsi_hci_recv_pkt() local
93 struct hci_dev *hdev = h_adapter->hdev; in rsi_hci_recv_pkt()
103 h_adapter->hdev->stat.byte_rx += skb->len; in rsi_hci_recv_pkt()
112 struct rsi_hci_adapter *h_adapter = NULL; in rsi_hci_attach() local
116 h_adapter = kzalloc(sizeof(*h_adapter), GFP_KERNEL); in rsi_hci_attach()
117 if (!h_adapter) in rsi_hci_attach()
120 h_adapter->priv = priv; in rsi_hci_attach()
121 ops->set_bt_context(priv, h_adapter); in rsi_hci_attach()
122 h_adapter->proto_ops = ops; in rsi_hci_attach()
130 h_adapter->hdev = hdev; in rsi_hci_attach()
137 hci_set_drvdata(hdev, h_adapter); in rsi_hci_attach()
153 h_adapter->hdev = NULL; in rsi_hci_attach()
154 kfree(h_adapter); in rsi_hci_attach()
160 struct rsi_hci_adapter *h_adapter = priv; in rsi_hci_detach() local
163 if (!h_adapter) in rsi_hci_detach()
166 hdev = h_adapter->hdev; in rsi_hci_detach()
170 h_adapter->hdev = NULL; in rsi_hci_detach()
173 kfree(h_adapter); in rsi_hci_detach()