Lines Matching refs:hst
60 static inline void ti_st_tx_complete(struct ti_st *hst, int pkt_type) in ti_st_tx_complete() argument
62 struct hci_dev *hdev = hst->hdev; in ti_st_tx_complete()
153 struct ti_st *hst; in ti_st_open() local
159 hst = hci_get_drvdata(hdev); in ti_st_open()
162 ti_st_proto[i].priv_data = hst; in ti_st_open()
168 init_completion(&hst->wait_reg_completion); in ti_st_open()
174 hst->reg_status = -EINPROGRESS; in ti_st_open()
191 (&hst->wait_reg_completion, in ti_st_open()
202 if (hst->reg_status != 0) { in ti_st_open()
204 "status %d", hst->reg_status); in ti_st_open()
209 hst->st_write = ti_st_proto[i].write; in ti_st_open()
210 if (!hst->st_write) { in ti_st_open()
218 hst->st_write = NULL; in ti_st_open()
230 struct ti_st *hst = hci_get_drvdata(hdev); in ti_st_close() local
239 hst->st_write = NULL; in ti_st_close()
246 struct ti_st *hst; in ti_st_send_frame() local
249 hst = hci_get_drvdata(hdev); in ti_st_send_frame()
261 len = hst->st_write(skb); in ti_st_send_frame()
271 ti_st_tx_complete(hst, bt_cb(skb)->pkt_type); in ti_st_send_frame()
278 static struct ti_st *hst; in bt_ti_probe() local
282 hst = devm_kzalloc(&pdev->dev, sizeof(struct ti_st), GFP_KERNEL); in bt_ti_probe()
283 if (!hst) in bt_ti_probe()
293 hst->hdev = hdev; in bt_ti_probe()
295 hci_set_drvdata(hdev, hst); in bt_ti_probe()
310 dev_set_drvdata(&pdev->dev, hst); in bt_ti_probe()
317 struct ti_st *hst = dev_get_drvdata(&pdev->dev); in bt_ti_remove() local
319 if (!hst) in bt_ti_remove()
322 BT_DBG("%s", hst->hdev->name); in bt_ti_remove()
324 hdev = hst->hdev; in bt_ti_remove()